Page 1 of 1

Where is usbaudio.c ?

Posted: Thu Nov 26, 2015 1:29 pm
by GTBecker
I'd like to try to tackle enabling 32kHz analog (Mic, Line In) sampling on CM106-like chips but, for the life of me, I can't find the source code file usbaudio.c for LMDE. Can someone please point me to it?

Thanks.

Re: Where is usbaudio.c ?

Posted: Thu Nov 26, 2015 3:31 pm
by xenopeek
Moved topic to the LMDE forums.

You can find which package has a file with the apt-file command. Unfortunately it appears this file is not in any package on LMDE. Looking at Google results, this file appears to have been in the Linux kernel tree 10 years ago. Getting the Debian Linux kernel source code only the file .../sound/usb/usbaudio.h is found. There is no .c file in the kernel tree called usbaudio. Whatever you're trying to do, you'll have to find some more recent information on how to do it. Possibly one of the .c files in .../sound/usb is where you can change what you want. In any case, it sounds like you'll have to patch and compile your own kernel for this.

Re: Where is usbaudio.c ?

Posted: Thu Nov 26, 2015 8:31 pm
by GTBecker
There is no .c file in the kernel tree called usbaudio...
Thanks; I guess my frustration comes from looking for the wrong file. How, then, do I identify the module that handles "CM106-like" or CM6206-based sound cards - and locate its sources?

Re: Where is usbaudio.c ?

Posted: Fri Nov 27, 2015 3:51 am
by xenopeek
I have no idea. For kernel development questions you should probably use the kernel newbies site: http://kernelnewbies.org/

I did find a commit mentioning the latter device you mention, and it shows changes to code in .../sound/usb/ files: http://git.kernel.org/cgit/linux/kernel ... 0b687e5771

Re: Where is usbaudio.c? Solved.

Posted: Fri Nov 27, 2015 8:24 am
by GTBecker
xenopeek wrote: .../sound/usb/ files: http://git.kernel.org/cgit/linux/kernel ... 0b687e5771
Excellent; that's a great lead. Thanks!