LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Need help to write C code for USB Audio Class v1.0 microphone device. (https://www.linuxquestions.org/questions/programming-9/need-help-to-write-c-code-for-usb-audio-class-v1-0-microphone-device-949301/)

bduhyba 06-08-2012 07:33 PM

Need help to write C code for USB Audio Class v1.0 microphone device.
 
Hello. As far as I can tell there are not any current posts for this issue, but if I have missed them, I apologize.

I am trying to write C code interface to a UAC microhpne device using the /linux/usb/audio.h header file. It seems that only the kernel uses this file, but my end goal is to create and use an extension unit to the USB Audio Class. Does anyone have experience with UAC devices and extension units? I have used UVC with extension units before, but it seems the audio world is different. Should I be using a different method to access the device instead of the UAC drivers directly? I have found zero code examples using audio.h. Should I be using ALSA for this? I will be searching for XUs and ALSA in the mean time, but so far a day and a half of searching for direct use of the UAC driver has yielded zero good result. I would be using version 1.0 for now to ensure cmopatibility with older kernels. Any help or pointers would be appreciated.

This would be for kernels 2.6.32 to the present. If I can get started with the current kernels, then back porting should not be an issue.

Thanks in advance!!

Regards,

Brent


All times are GMT -5. The time now is 08:20 PM.