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

  • From: Harry Graham <Harry_Graham@xxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 9 Jul 2009 07:55:17 -0700

The SupportHandler is the field you marked with a comment "No raw serialization 
hander" in your example.

Harry

________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] 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@xxxxxxxxxxxxxx] 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<http://in..rd.yahoo.com/tagline_local_1/*http:/in.local.yahoo.com/>



________________________________
________________________________
Yahoo! recommends that you upgrade to the new and safer Internet Explorer 
8<http://in.rd.yahoo.com/tagline_ie8_1/*http:/downloads.yahoo.com/in/internetexplorer/>.

Other related posts: