Login / Register  0 items | $0.00 New#KVRDeals

USB Windows Driver Development

yun.cloud
KVRer
 
8 posts since 20 Nov, 2015

Postby yun.cloud; Fri Jun 16, 2017 7:57 am USB Windows Driver Development

Hi everyone, this doesn't have much to do with actual DSP / algorithmic work but since it deals with audio I was hoping someone on this sub-forum would be kind enough to point me in the right direction!

Anyways, I've been tasked to develop a USB Audio 2.0 driver for Windows (7,8,10,etc). Obviously I could just tell my higher ups to outsource this task as I have zero knowledge in the field; but I do want to learn how to develop drivers for Windows as I've had a lot of experience at this point on developing USB devices with microcontrollers.

Right now I have looked at WDM, KMDF/UMDF, and ASIO for starting driver development. However, I'm still at a loss on how to even start doing anything. Does anyone know of open-source/example code I could look at to kind of get started (or even better, books/written material and other forums to look at as resources) or even have experience with this topic? I've googled a lot and still can't really find a reliable source on this. Seems like ASIO is where I should start but then again there are no really well-defined examples out there.

Thanks! I can try to take down this thread if it's really off topic.
stratum
KVRian
 
1362 posts since 29 May, 2012

Postby stratum; Fri Jun 16, 2017 8:28 am Re: USB Windows Driver Development

Microsoft has driver examples here https://docs.microsoft.com/en-us/window ... io-drivers

Probably it would be a good idea to tell your higher ups that you'll just try this without promising anything.
~stratum~
yun.cloud
KVRer
 
8 posts since 20 Nov, 2015

Postby yun.cloud; Fri Jun 16, 2017 8:35 am Re: USB Windows Driver Development

stratum wrote:Microsoft has driver examples here https://docs.microsoft.com/en-us/window ... io-drivers

Probably it would be a good idea to tell your higher ups that you'll just try this without promising anything.


Thanks! Judging from these examples, I would have to implement the USB side separately right? And yea I already did tell them that and it's honestly how it usually turns out; they ask me to do something I have no experience in and then I somehow make it work out in the end (which is actually why I have a lot of experience programming USB devices now).
stratum
KVRian
 
1362 posts since 29 May, 2012

Postby stratum; Fri Jun 16, 2017 8:37 am Re: USB Windows Driver Development

At a first glance there is no USB example, but I didn't download the archived examples.
~stratum~
yun.cloud
KVRer
 
8 posts since 20 Nov, 2015

Postby yun.cloud; Fri Jun 16, 2017 11:35 am Re: USB Windows Driver Development

Yea there's no strict USB example but I've dived into the example and see the general guideline to develop an audio driver; I guess the only part I'm confused about is how to integrate USB into it but luckily I found a general USB sample project with isochronous transfers. Still trying to figure it out but thanks!
stratum
KVRian
 
1362 posts since 29 May, 2012

Postby stratum; Fri Jun 16, 2017 11:46 am Re: USB Windows Driver Development

Before diving into the driver it might be a good idea to see if that hardware can be interfaced in user mode (application) code, in that way you can do a lot of experimentation with the communication protocol without loading anything into the kernel. It makes sense to figure out that first, if possible.
~stratum~
stratum
KVRian
 
1362 posts since 29 May, 2012

Postby stratum; Fri Jun 16, 2017 1:27 pm Re: USB Windows Driver Development

a complete usb audio driver source https://sourceforge.net/projects/zaudiodriverwin/
~stratum~
Chaotikmind
KVRist
 
35 posts since 26 Sep, 2005, from France

Postby Chaotikmind; Sat Jun 17, 2017 7:08 am Re: USB Windows Driver Development

stratum wrote:Microsoft has driver examples here https://docs.microsoft.com/en-us/window ... io-drivers

Probably it would be a good idea to tell your higher ups that you'll just try this without promising anything.


I second that, debugging drivers can be REALLY painful at times.
yun.cloud
KVRer
 
8 posts since 20 Nov, 2015

Postby yun.cloud; Mon Jun 19, 2017 5:50 am Re: USB Windows Driver Development

stratum wrote:a complete usb audio driver source https://sourceforge.net/projects/zaudiodriverwin/


Wow thanks! I will look into this.

Chaotikmind wrote:I second that, debugging drivers can be REALLY painful at times.


Yea honestly at first glance it looks like a huge headache. Not excited for that ;(

Moderator: Moderators (Main)

Return to DSP and Plug-in Development