cupofnestor |
11-01-2012 03: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 Endian, Rate 44100 Hz, Stereo
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:
aplay: pcm_write:1710: write error: Input/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 default Stream parameters are 48000Hz, S16_LE, 2 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 Periods = 4 was set period_size = 65536 was set buffer_size = 262144 0 - Front Left 1 - 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?
|