As I read the DDI, you get a function pointer of type
PALLOCATE_CAPTURE_DMA_ENGINE from one of the HDAUDIO_BUS_INTERFACE or
HDAUDIO_BUS_INTERFACE_BDL or HDAUDIO_BUS_INTERFACE_V2 structures.
See
https://docs.microsoft.com/en-us/windows-hardware/drivers/audio/obtaining-an-hdaudio-bus-interface-v2-ddi-object
for how to get the HDAUDIO_BUS_INTERFACE_V2 structure.
Once you have the function pointer you can invoke it via
pHdAudioBusInterfaceV2->AllocateCaptureDmaEngine(…) syntax.
So although the function pointer type is declared in hdaudio.h, there is no
need to link against hdaudio.lib so far as I can see, because the functions are
not statically defined.
________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on
behalf of Gregory House <drghouse221b@xxxxxxxxx>
Sent: Wednesday, January 30, 2019 8:14:37 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: hdaudio driver development
All the structs and functions mentioned there are defined in hdaudio.h. Here is
an example:
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/content/hdaudio/nc-hdaudio-pallocate_capture_dma_engine<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Fdrivers%2Fddi%2Fcontent%2Fhdaudio%2Fnc-hdaudio-pallocate_capture_dma_engine&data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7Cad8fa93fa1b54c78a9d608d686ce26ac%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636844617504975817&sdata=vNV2JFrz52wpgLOA77GVQ5IzN7osHAhuDxylwtew0Tw%3D&reserved=0>
On Wed, 30 Jan 2019 at 08:56, Matthew van Eerde
<dmarc-noreply@xxxxxxxxxxxxx<mailto:dmarc-noreply@xxxxxxxxxxxxx>> wrote:
You’re referring to this DDI?
https://docs.microsoft.com/en-us/windows-hardware/drivers/audio/high-definition-audio-ddi<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Fdrivers%2Faudio%2Fhigh-definition-audio-ddi&data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7Cad8fa93fa1b54c78a9d608d686ce26ac%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636844617504985812&sdata=X%2FppRd%2FC2%2FX99Dh1pB16hTtfATT1w5CjNQn4eui3pZ0%3D&reserved=0>
I glanced over the docs and didn’t see any reference to hdaudio.lib, but maybe
I missed it. Can you point me to the reference?
________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx>
<wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx>> on
behalf of Gregory House <drghouse221b@xxxxxxxxx<mailto:drghouse221b@xxxxxxxxx>>
Sent: Tuesday, January 29, 2019 11:09:44 PM
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] hdaudio driver development
Hello,
Does anyone know if Microsoft supports development of function drivers that
talk to their HD audio bus interface? I see the related docs online but the
latest windows driver kit doesn't seem to have the hdaudio lib.