USB Sound Device -- how to load ALSA? [solved]

Posts: 347
Silent Observer
Joined: 08 Aug 2013
#1
I just received a USB sound unit which has a C-Media CM108 audio controller along with an input device I didn't note down. It shows up in PC Information and says it uses the ALSA driver; in System Information the input and ouput devices show in the Summary (but not under USB Devices), but the mixer won't load (either automatically during start, as it does with the on-board sound in my Athlon XP 2000+ desktop system, or by manually starting the mixer from Control Centre) and Sound Test opens a terminal that closes before I can see anything in it. Needless to say, it's not playing sound (haven't even plugged in a microphone yet). I plugged the device in before starting antiX, so it should have been detected during startup, right?

How can I get ALSA to load, so as to be able to open the mixer and set volume, to be followed by playing actual media files? I tried service alsa start and was informed ALSA wasn't a known service. Does it have another name to the service start/stop command?
Last edited by Silent Observer on 15 Dec 2013, 17:41, edited 1 time in total.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#2
Errrr, has on board sound chip been disabled in bios?
Posts: 347
Silent Observer
Joined: 08 Aug 2013
#3
I bought the USB device because Linux doesn't even detect the on-board sound (NeoMagic Magicwave 128X; as far as I can determine, there's never been a driver for that sound hardware for any Linux distro). Further, the on-board sound is what I use in Windows when the computer is acting as a bedside stereo (Win98 isn't safe on the internet, even just to try to find and download a driver for the USB sound, assuming there even is such a thing for Win98), so if I have to disable the on-board sound hardware to use the USB sound, I'll have to toggle it every time I switch between Windows and antiX (though once I have sound in antiX, I won't need to switch to Windows with any frequency). I'll give it a try next time I have time to test (that'll be this evening).
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#4
Way back when. Early in AntiX. I had 2 sound chips. one was onboard. One was a pci card. This was a Desktop.

A conflict of both fighting for the operating system ensued because of that. I had to unplug disable one of them.
I pulled the card and used the on board motherboard sound chip instead.
That is why I mentioned that.
Posts: 347
Silent Observer
Joined: 08 Aug 2013
#5
Hmmm. I've seen inxi dumps from folks who had multiple sound systems; it didn't occur to me that Linux would fail to resolve such a conflict. I can see potential for IRQ clashes that the OS can't resolve (some hardware doen't allow reconfiguring IRQ), but that should affect USB devices, since they're using the USB IRQs. Further, the OS is detecting the USB, but completely (as far as I've been able to determine) fails to detect the on-board. Still worth a try to toggle off the on-board next time I restart and see if that changes anything.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#6
Older gear is quirkier sometimes than newer gear when it comes to
Hmmm. I've seen inxi dumps from folks who had multiple sound systems; it didn't occur to me that Linux would fail to resolve such a conflict.
at least that has been my experience.
fatmac
Joined: 26 Jul 2012
#7

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.cmedia.com.tw/ProductsDetail/page-p/C1Serno-25/C2Serno-26/PSerno-7.html"
linktext was:"http://www.cmedia.com.tw/ProductsDetail ... rno-7.html"
====================================
Compatible with Win 2K / Win XP / Vista / 7, Linux, and Mac OS X without Additional Driver (WinCE / Win Mobile supported with C-Media’s own Driver)
Try and find out what the sound chip is, then check to see if you have the required module.
If you don't have a module you will likely need to compile the alsa sound drivers on your machine to get it working.
(I had to do this on my HP-G62 when I first got it, until distros had updated drivers in them.)
Posts: 347
Silent Observer
Joined: 08 Aug 2013
#8
It's a CM108AH chip, apparently; it's consistently reported as CM108 in everything that detects it (including on my desktop antiX system). This sound chip is reportedly fully supported by Linux. I don't get sound from the USB unit on my desktop antiX system, either, but I suspect that's because ALSA is using only the on-board hardware. I don't know how to check if I have the correct module for the CM108 on either system.

FWIW, the USB sound doesn't play back on my MEPIS 11 primary system, either, but that's not really significant at this point; the system where it matter has, as far as Linux seems able to detect, no sound system other than the CM108, but won't play through it.

Edit: Okay, here's the information I've (quickly) been able to figure out how to get; this is from the laptop, with the USB sound unit plugged in:

Code: Select all

user@Little-Luddite:~
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
user@Little-Luddite:~
$ lsmod | grep snd
snd_usb_audio          73509  0 
snd_usbmidi_lib        12785  1 snd_usb_audio
snd_hwdep               4064  1 snd_usb_audio
snd_seq_midi            3473  0 
snd_seq_midi_event      3645  1 snd_seq_midi
snd_rawmidi            12723  2 snd_usbmidi_lib,snd_seq_midi
snd_pcm                50454  1 snd_usb_audio
snd_page_alloc          5015  1 snd_pcm
snd_seq                34663  2 snd_seq_midi_event,snd_seq_midi
snd_seq_device          3890  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              12034  2 snd_pcm,snd_seq
snd                    36700  9 snd_usb_audio,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_usbmidi_lib,snd_seq_device,snd_seq_midi
soundcore               3447  1 snd
user@Little-Luddite:~
$
It looks to me as if I have the appropriate modules loaded, but attempting to run alsamixer from a terminal reports"cannot open mixer: No such file or directory". This seems to suggest that the problem lies with having nothing for mixer to work on. Further, if I look at [/]dev/soundstat I find that all the sound related lines are marked as"not enabled in config". I'm starting to think ALSA simply doesn't have permission to talk to my USB device. How would I fix that?
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#9
but attempting to run alsamixer from a terminal reports"cannot open mixer: No such file or directory".
Run it as root instead of user. This is beginning to sound like another tripping point point I ran into on my AntiX 11 install.

post31277.html

I got a feeling running alsa mixer as root is gonna suprise you. Then use F key in alsa mixer to enable the usb.

Edit: by the way. I can't remember sh__ half the time because I have broke and fixed AntiX as a tester many many
times over the years and some of my fixes are lost with dead brain cells.Just look at my post count. It would take me a week
to glean over what fixes I have posted and forgot about.
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#10
Try running:

Code: Select all

sudo modprobe snd-pcm-oss
This should also load the snd-mixer-oss module. It should also create the device nodes like /dev/mixer, /dev/mixer1 and /dev/dsp, /dev/audio, and /dev/adsp (these are the ones created on my system running 3.7.10antix.4 kernel). That could be enough to fix the problem.

If this works then add"snd-pcm-oss" on its own line in the / etc/modules file and the modules should get loaded automatically at boot time.
Posts: 347
Silent Observer
Joined: 08 Aug 2013
#11
Aha!!

Based on the clue about"not enabled in config" I did a file search for *.conf and found [/]etc/modprobe.d/alsa-base.conf -- which contains a line that prevents a USB sound card from loading in the first position. With no other cards to load ahead of the USB, that was preventing the USB from loading at all; commenting out that line and restarting brought up the speaker icon when fluxbox loaded, allowed me to adjust volume control, allowed me to load a music file into Gnome Mplayer, and hear the resulting output (right down to the pops and such from the original vinyl I recorded from). IOW, I was correct in thinking ALSA didn't have permission to talk to my USB sound device. Now it does...
Posts: 347
Silent Observer
Joined: 08 Aug 2013
#12
This issue followed along to
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://antix.freeforu ms.org/viewtopic.php?f=13&t=4734"
linktext was:"this thread"
====================================
, but it's fully fixed now. I'm marking this one solved.