Re: usb audio crash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jerry Geis wrote:
> I am searching for a solution to a usb-audio crash...
>
> I thought it was debian specific but it seems related to usb-audio.
>
> I have a computer running centos fine, with onboard audio fine.
> I disabled the onboard audio and put my usb -audio device in this unit 
> and I get the same crash.
>
> aplay reports 48000 rate. does it help to change to 44100? how is that 
> done? I havent found it.
>
> Is there a "general" fix anyone is aware of.
>
> lsusb reports
> Bus 002 Device 003: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
>
> Jerry
>
>   
If no one else has this specific issue, you are probably going to have 
to compile asterisk in debug mode, and run it in gdb to find the exact 
problem.  It sounds like there is a difference between the pci sound 
interface and the USB sound interface in something critical to 
asterisk.  I'm not an expert on this, so I can't help with that.  The 
call where asterisk is failing will tell you which functionality is 
failing.  It seems to have something to do with frame transfer.  I 
recall seeing something on these lists saying that there is an extra 
buffer for USB, that could be the problem.  To confirm, you would have 
to run gdb with the pci soundcard and see if it passes the code location 
where the segfault occurs with USB and what the return is.

Once you have that, you would go looking in the usb functions in 
alsa-lib and the usb driver and compare them with the same for the 
onboard sound card.

There is also a possibility that your cmedia card is not standard in 
some way.  Alsa implements a standard USB interface according to the USB 
spec.  On windows a vendor will provide firmware that is loaded by the 
driver in order to gain extra functionality.  I suspect that won't be 
available with alsa unless there is interface data available.

As far as changing the rate making a difference, I doubt it.  A seg 
fault means a stray pointer.  Rate should have no effect on that.  Rate 
mismatch should give you underruns.

I've never used a USB sound card but you should be able to use the 
.asoundrc file in your home directory to set things like rate, etc. just 
like pci cards. 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux