LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Alsa: USB soundcard device disappears suddenly (http://www.linuxquestions.org/questions/linux-general-1/alsa-usb-soundcard-device-disappears-suddenly-4175419391/)

JonL 07-30-2012 12:14 PM

Alsa: USB soundcard device disappears suddenly
 
Hi,

I'm using an USB DAC (basically a soundcard) with my Linux box and MPD software.

It works great when playing files stored in a remote share, but when playing files from an USB pen, it stops playing in a few minutes.

Mpd.log shows this:
Code:

Jul 30 13:03 : output: "USB" [alsa] failed to play: No such device
Jul 30 13:03 : output: closed plugin=alsa name="USB"
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
Jul 30 13:03 : output: Failed to open "USB" [alsa]: Failed to open ALSA device "hw:0,0": No such file or directory

It seems to be somewhat related to the USB bus not being able to cope with both PCM streaming to the soundcard and reading from the flash pen simultaneously, I guess.

So, anybody faced this issue previously and can provide some hints to solve this?

MPD is 0.17, kernel is 3.2.17, alsa-utils is 1.0.25.

aus9 08-04-2012 04:47 AM

umm I am thinking hw 0,0 may be your internal sound device?

if so, set up an index like this...use root powers to mod..../etc/modprobe.d/alsa-base.conf

contents added

options snd-usb-audio index=0
options snd-hda-intel index=1

where snd-hda-intel is the sound module for my onboard or internal sound device.

this will force usb to always be index=o

reboot to test

good luck


All times are GMT -5. The time now is 01:47 AM.