Re: speaker-test works but a aplay does not

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


The content of
 /proc/asound/card0/pcm0p/sub0/hw_params
is just "closed". This is as expected as the HifiBerry card is card1,
its parameters given in
 /proc/asound/card1/pcm0p/sub0/hw_params
are
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 32768
buffer_size: 131072

The differences to the values prompted in the error of
 aplay  /usr/share/sounds/alsa/Front_Right.wav
seem to be the number of channels and period_size and buffer_size.
If I just run speaker test with one channel (default)
 speaker-test  -t wav
I also get a similar error like aplay:

speaker-test 1.0.28

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 16 to 131072
Period size range from 8 to 65536
Using max buffer size 131072
Periods = 4
Unable to set hw params for playback: Invalid argument
Setting of hwparams failed: Invalid argument

So the problem seems to be the number of channels. I therefore tried
to also set it explicitly for aplay but
aplay --channels=2 /usr/share/sounds/alsa/Front_Right.wav
still didn't work and gave "CHANNELS: 1" in the error.

I hope that there is a way to fix it because it is a bit wired, that I
can play mp3 files etc but no simple wav files.

Kind regards,

Hauke
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlcQn3UACgkQjz8jfoq989c71ACfdBx0K73m/ftMuKy+sgM/733B
ijIAni5JGaQCWTxC4EUUQuu7rUboY94P
=Yq18
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user



[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux