none
Designing windows driver for USB sound card with 2 different interfaces RRS feed

  • Question

  • I have built a custom USB sound card with some special features. Now I need to write drivers for it. The card should act as a regular sound card – from WDM point of view it’s clear – I have to write miniport driver for AVStream. However I also need to access the sound card from my application, which uses the special features of the card. When I use the card from my application, it should ignore AVStream. How should I do it? How could the miniport driver provide interface for my application?
    Wednesday, January 29, 2014 5:26 PM

Answers

  • AFAIK AvStream drivers support IOCTL's which would allow you to open the same device, not use the standard read/write interface and instead access the card through your IOCTL defined interface.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Wednesday, January 29, 2014 5:35 PM

All replies

  • AFAIK AvStream drivers support IOCTL's which would allow you to open the same device, not use the standard read/write interface and instead access the card through your IOCTL defined interface.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Wednesday, January 29, 2014 5:35 PM
  • writing a usb based avstream is going to be difficult and will take a long time to develop. have you considered making the device compliant with the usb audio spec? for the custom aspects, you can then create a composite device and load your own driver (or use winub if there is a dedicated app) on the second non audio interface. Or, you could enumerate the second interface as HID and and handle the custom behavior in firmware

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, January 29, 2014 5:54 PM