[wdmaudiodev] Re: Unplugged source lines in KSPROPERTY_AUDIO_MUX_SOURCE

  • From: Matthew van Eerde <Matthew.van.Eerde@xxxxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 21 Oct 2015 12:08:43 +0000

Audio HCK tests generally operate under the assumption that everything is
plugged in during the life of the test, unless they specifically ask to
disconnect things.

It seems reasonable to fail a request to set the MUX source to a path that
pulls from a disconnected hardware pin.

-----Original Message-----
From: wdmaudiodev-bounce@xxxxxxxxxxxxx
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Eugene Muzychenko
Sent: Wednesday, October 21, 2015 1:38 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Unplugged source lines in KSPROPERTY_AUDIO_MUX_SOURCE

Hello!

My PortCls miniport driver contains KSNODETYPE_MUX node with three source lines
connected. Handling KSPROPERTY_AUDIO_MUX_SOURCE request, driver returns
STATUS_INVALID_PARAMETER if requested source line is not connected
(KSJACK_DESCRIPTION.IsConnected == false).

Testing driver with HCK 8.1, I get failure in case 100.7.6:

====================================
Start Case: ID 16.200:100.7.6 : KS
properties\KSPROPSETID_Audio\KSPROPERTY_AUDIO_MUX_SOURCE\valid test data:[Wed
Oct 21 14:33:10 2015] Device Name = Virtual Cable 1
PnP ID = ROOT\MEDIA\0000
Property SET is supported
DeviceIoControl returned 0x57
Error : The parameter is incorrect.

DeviceIoControl Failed when expecting DeviceIoControl to Pass.
ERROR:Failure information:
Context: pin=-1 node=0 device=-1
DeviceIoControl: returned 0x00000057 during property set request
Type: unexpected result
Test failed with error code 87 (0x57)
Property GET is supported
Value received for the property = 1
End Case: ID 16.200:100.7.6 : FAIL : KS
properties\KSPROPSETID_Audio\KSPROPERTY_AUDIO_MUX_SOURCE\valid test data : [Wed
Oct 21 14:33:10 2015] ====================================

If the appropriate source line is connected, this test case passes successfully.

Does this test case work correctly? Should the driver allow to select an
unconnected line as a mux source? If so, how the driver should handle
subsequent capture stream creation?

Regards,
Eugene

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

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/

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

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: