-   Linux - General (
-   -   Strange ALSA problem - sound works once, but not again. (

cupofnestor 11-01-2012 04:58 PM

Strange ALSA problem - sound works once, but not again.
I have an odd problem with alsa on my beaglebone.
I've spent some time setting up alsa with a usb-snd device, and I've got what seems to be a working setup. The problem occurs when I go to test sound output. After a reboot, sound works fine - once. Then, any subsequent attempts to play sound fail. So for instance, if I use
PHP Code:

$aplay test.wav
Playing WAVE 
'test.wav' Signed 16 bit Little EndianRate 44100 HzStereo 

I get exactly what I would expect. If I try to play the file again, I see the same thing, but hear nothing. I get this error:
PHP Code:

aplaypcm_write:1710write errorInput/output error 

From then on, I get the exact same response from aplay, but no sound.

The same goes for speaker-test, for instance, it only works once and gives an error:

PHP Code:

speaker-test 1.0.25

Playback device is 
Stream parameters are 48000HzS16_LE2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz 
(requested 48000Hz)
Buffer size range from 96 to 262144
Period size range from 48 to 131072
Using max buffer size 262144
was set period_size 
was set buffer_size 
Front Left
Front Right
Write error
: -77,File descriptor in bad state
xrun_recovery failed
: -77,File descriptor in bad state
Transfer failed
Operation not permitted 

Any suggestions?

cupofnestor 11-01-2012 05:04 PM

My Alsa Info:

cupofnestor 11-02-2012 10:10 AM

Solved, it was an /etc/modules problem.

All times are GMT -5. The time now is 08:22 PM.