[wdmaudiodev] Re: Is it a good design to include KMDF APIs in WDM based Miniport Audio drivers !

  • From: Girish Pattabiraman <girish.pattabiraman@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Wed, 18 Dec 2013 14:43:55 -0800

Updated URL for sample audio driver.
http://code.msdn.microsoft.com/windowshardware/slate-system-virtual-audio-f241062f

Girish


On Wed, Dec 18, 2013 at 2:39 PM, Girish Pattabiraman <
girish.pattabiraman@xxxxxxxxx> wrote:

> You can definitely use KMDF APIs within a WDM driver.
> This has been showcased in the latest sample Audio driver "sysvad"
> published along with the WDK for windows 8.1.
>
> Samples can be downloaded here:
> http://code.msdn.microsoft.com/windowshardware/Windows-8-Driver-Samples-5e1aa62e
>
> Regards,
> Girish
>
>
> On Wed, Dec 18, 2013 at 1:06 PM, Tim Roberts <timr@xxxxxxxxx> wrote:
>
>> maraboina suneeth wrote:
>> >
>> > I work on audio miniport drivers which need to talk to a KMDF based
>> > driver. When I tried to use WDM based APIs to send IOCTL it never
>> > seems to be working. But when I tried to use KMDF APIs then everything
>> > was working fine but I'm not sure if its a good design to use KMDF
>> > APIsinside a WDM based drivers. I would appreciate if someone could
>> > answer what are the drawbacks/repercussions of this approach.
>>
>> Your question doesn't make sense.  First, all of the KMDF APIs
>> eventually call WDM APIs.  KMDF only works within your driver: all
>> inter-driver communication is done through WDM.  Second, you can't use
>> ANY KMDF APIs inside a WDM driver.
>>
>> Why don't you show us some of your WDM code, and we'll take a look?
>> This kind of problem is often caused by calling IoCallDriver with the
>> wrong device object.  In a miniport, it can sometimes be tricky to
>> figure out which device object to use.
>>
>> --
>> Tim Roberts, timr@xxxxxxxxx
>> Providenza & Boekelheide, Inc.
>>
>> ******************
>>
>> WDMAUDIODEV addresses:
>> Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
>> Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
>> Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx
>> ?subject=unsubscribe
>> Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx
>>
>> URL to WDMAUDIODEV page:
>> http://www.wdmaudiodev.com/
>>
>>
>
>
> --
> "Motive of LIFE: It is not death that I wish to avoid but life which I
> wish to live." - Ayn Rand
>



-- 
"Motive of LIFE: It is not death that I wish to avoid but life which I wish
to live." - Ayn Rand

Other related posts: