[wdmaudiodev] Re: Audio driver : KS topology test fails

  • From: Girish Bhat <girishsadananda@xxxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Fri, 10 Jul 2009 17:34:19 +0530 (IST)

Thanks a lot. We were not returning error in AudioVolumeLevel support function 
for the unsupported channels.  The testcase passes now.

--- On Thu, 9/7/09, Matthew van Eerde <Matthew.van.Eerde@xxxxxxxxxxxxx> wrote:


From: Matthew van Eerde <Matthew.van.Eerde@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Re: Audio driver : KS topology test fails
To: "Matthew van Eerde" <Matthew.van.Eerde@xxxxxxxxxxxxx>, 
"'wdmaudiodev@xxxxxxxxxxxxx'" <wdmaudiodev@xxxxxxxxxxxxx>
Date: Thursday, 9 July, 2009, 10:13 PM








For some reading on the subject, check out:
 
Exposing Multichannel Nodes
http://msdn.microsoft.com/en-us/library/ms790303.aspx
 
Note especially the sentence "For example, a client can use the 
KSPROPERTY_AUDIO_VOLUMELEVEL property to iteratively query a volume node 
(KSNODETYPE_VOLUME) for the volume level of each channel—0, 1, and so on—until 
the request returns an error indicating that no more channels exist".
 


From: Matthew van Eerde 
Sent: Thursday, July 09, 2009 9:38 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: RE: [wdmaudiodev] Re: Audio driver : KS topology test fails
 
One possibility is that you're returning success in your handler even if the 
provided channel number is too large.  Can you share a GAudiT log on this audio 
device?  It may shed further light on the subject.  You can email me directly 
if you like.
 
mateer@xxxxxxxxxxxxx
 

From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxxx] On Behalf Of Girish Bhat
Sent: Thursday, July 09, 2009 5:33 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: Audio driver : KS topology test fails
 





Hi

 

Thanks for the response. I have already provided my own support handler i.e 
AudioVolumeLevel. If you please elaborate a bit, would help

 

Thanks



--- On Tue, 7/7/09, Harry Graham <Harry_Graham@xxxxxxxxxxx> wrote:


From: Harry Graham <Harry_Graham@xxxxxxxxxx>
Subject: [wdmaudiodev] Re: Audio driver : KS topology test fails
To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
Date: Tuesday, 7 July, 2009, 8:00 PM


The only way I have been able to get this to work is to provide my own 
SupportHandler.  I would be very interested to hear about other solutions.
 
Harry
 




From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxxxx] On Behalf Of Girish Bhat
Sent: Tuesday, July 07, 2009 3:03 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Audio driver : KS topology test fails
 





 

DTM test KS Topology Test fails with our driver. Following is the error

====
Node[01] (KSNODETYPE_VOLUME)
       Property Descriptor[00] (KSPROPERTY_AUDIO_VOLUMELEVEL)
        IOCTL called with an output buffer size of 0.
        IOCTL called with an output buffer size of 1.
        IOCTL called with an output buffer size of 2.
        IOCTL called with an output buffer size of 6.
        IOCTL called with an output buffer size of 8.
        FAIL:  Node[01] KSNODETYPE_VOLUME - Property[00] 
KSPROPERTY_AUDIO_VOLUMELEVEL: KSPROPERTY_MEMBERSHEADER.Flags has 
KSPROPERTY_MEMBER_FLAG_BASICSUPPORT_MULTICHANNEL set and must return the number 
of channels in KSPROPERTY_MEMBERSHEADER.MembersCount
====


We set the no of channels to 2, but still we are facing this problem.


DEFINE_KSPROPERTY_TABLE (gVolumeProperties)
{
    DEFINE_KSPROPERTY_ITEM
    (
        KSPROPERTY_AUDIO_VOLUMELEVEL,   // property item
        AudioVolumeLevel,           // get property handler
        sizeof(KSNODEPROPERTY_AUDIO_CHANNEL),
        sizeof(LONG),            // minimum buffer length for returned data
        AudioVolumeLevel,    // get property handler
        &VolumeValues,     // values
        0,      // related properties
        NULL,
        NULL,      // no raw serialization handler
        sizeof(LONG)     // Serialized size
    )
};


KSPROPERTY_VALUES VolumeValues =
{
    {
        STATICGUIDOF (KSPROPTYPESETID_General),
        VT_I4,
        0
    },
    SIZEOF_ARRAY (VolumeMembersList),
    VolumeMembersList
};

KSPROPERTY_MEMBERSLIST VolumeMembersList [] = 
{
    {
        {
            KSPROPERTY_MEMBER_STEPPEDRANGES, //MembersFlags 
            sizeof (VolumeRangeAndStep[0]),  //MembersSize
            2,      //MembersCount 
            KSPROPERTY_MEMBER_FLAG_BASICSUPPORT_MULTICHANNEL //Flags 
        },
        (PVOID) VolumeRangeAndStep,
     },
     {
        {
            KSPROPERTY_MEMBER_VALUES,
            sizeof (VolumeDefault),
            2, 
            KSPROPERTY_MEMBER_FLAG_DEFAULT
        },
        (PVOID) &VolumeDefault,
    }    
};

 

 

Any pointers on how to proceed futher would help.

 

Thanks
 



Looking for local information? Find it on Yahoo! Local
 



Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8..


      Love Cricket? Check out live scores, photos, video highlights and more. 
Click here http://cricket.yahoo.com

Other related posts: