LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Strange ALSA problem - sound works once, but not again. (https://www.linuxquestions.org/questions/linux-general-1/strange-alsa-problem-sound-works-once-but-not-again-4175435138/)

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 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 
default
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
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?

cupofnestor 11-01-2012 04:04 PM

My Alsa Info:
http://www.alsa-project.org/db/?f=eb...67ba11555224bb

cupofnestor 11-02-2012 09:10 AM

Solved, it was an /etc/modules problem.


All times are GMT -5. The time now is 04:42 PM.