[wdmaudiodev] Re: KSPROPERTY_PIN_PROPOSEDATAFORMAT/SET is called with invalid data

  • From: "Matthew van Eerde" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "Matthew.van.Eerde" for DMARC)
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Tue, 5 Dec 2017 17:22:55 +0000

My point is that if FormatSize is sizeof(KSDATAFORMAT), then it is illegal to 
even look at the WAVEFORMATEX, so it is meaningless to say that data is 
“invalid.”



Can you take a memory dump of such a call in progress and send it to me? I can 
look at the stack and try to figure out why Windows is making the call.



________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on 
behalf of Eugene Muzychenko <reg.wad@xxxxxxxxxxxxxx>
Sent: Tuesday, December 5, 2017 5:37:36 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: KSPROPERTY_PIN_PROPOSEDATAFORMAT/SET is called with 
invalid data

I'm afraid you didn't understood me.

As you can see from my text and attached images, Specifier field
always is KSDATAFORMAT_SPECIFIER_WAVEFORMATEX. FormatSize (0x40), of
course, is less than sizeof(KSDATAFORMAT_WAVEFORMATEX) (0x52).

In such conditions, my driver fails such requests as invalid.

But these requests are generated by Windows Audio Subsystem on a
regular basis.

My question is: are they meaningful, or there are bugs in Audio
Subsystem code that should be reported?

******************

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:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wdmaudiodev.com%2F&data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7Cd9bcc03fb9944ccceb1508d53be57d19%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636480779219845322&sdata=X1XhMEX0IidmnRPw6lzx%2FQ0E3681EUWdUuSbia5YBN8%3D&reserved=0

Other related posts: