[wdmaudiodev] Re: 'Incorrect function' on querying KSPROPERTY_TYPE_BASICSUPPORT from user mode
- From: Tim Roberts <timr@xxxxxxxxx>
- To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
- Date: Wed, 7 Sep 2016 18:57:43 -0700
alexander ivash wrote:
What I'm doing wrong?
....
This code returns 'Incorrect function'. NodeId is '1', because in the
driver this is KSNODETYPE_VOLUME. If I change it for example on '0' - then
error code becomes 'Element not found'.
In my experience, the algorithm for determining the NodeId is based on
voodoo and throws of the dice. I have tried to come up with a mental
algorithm to map units to NodeId, but without success. You can use
ksstudio to learn the node numbers; its topology assignments seem to match.
In the end, I've usually had to try them all until I start getting
"element not found"
--
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/
Other related posts: