[wdmaudiodev] Re: speaker configuration and KSPROPERTY_PIN_PROPOSEDATAFORMAT

  • From: "Philip Lukidis" <plukidis@xxxxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 9 Nov 2006 13:36:35 -0500

Just to add a bit to this...

Very probably my issue is stemming from this:

"A good, general rule is that an audio driver should expose only one DAC node 
in its topology. Because DirectSound assumes that a driver's topology contains 
only a single DAC node, it sends speaker-configuration property requests to the 
first DAC node that it discovers, but not to any others."
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/audio_r/hh/Audio_r/aud-prop_7b81caad-5ac3-428c-b783-8f38b778e0b1.xml.asp

OK, if I cannot get a channel config call to my second DAC, is there any way of 
being notified when the user selects the headphones endpoint, or the speakers 
endpoint?  That, combined with the partially working channel config, would 
solve my issue.

thanks,

Philip Lukidis

> -----Original Message-----
> From: Philip Lukidis 
> Sent: Thursday, November 09, 2006 11:25 AM
> To: 'wdmaudiodev@xxxxxxxxxxxxx'
> Subject: RE: [wdmaudiodev] Re: speaker configuration and
> KSPROPERTY_PIN_PROPOSEDATAFORMAT
> 
> 
> Hello Mitch, thanks for your reply.
> 
> In answer to your question, there are two I/O pins on my 
> audio filter which are routed through their own DACs (and 
> other nodes) and out through their own bridge pins.  Each 
> bridge pin is connected to separate input pins on the 
> topology filter, and of course the output pins on the 
> topology filter are quite separate (speakers and headphones). 
>  Does this answer your question?
> 
> thank you,
> 
> Philip Lukidis
> 
> 
> > -----Original Message-----
> > From: wdmaudiodev-bounce@xxxxxxxxxxxxx
> > [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx]On Behalf Of 
> Mitchell Rundle
> > Sent: Thursday, November 09, 2006 11:03 AM
> > To: wdmaudiodev@xxxxxxxxxxxxx
> > Subject: [wdmaudiodev] Re: speaker configuration and
> > KSPROPERTY_PIN_PROPOSEDATAFORMAT
> > 
> > 
> > Is there just one host pin (I/O pin) that serves both the 
> > speaker and the headphone bridge pins?
> > 
> > Regards,
> > Mitch Rundle
> > Microsoft
> > 
> > ________________________________________
> > From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
> > [wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Philip 
> > Lukidis [plukidis@xxxxxxxxxxxxx]
> > Sent: Wednesday, November 08, 2006 3:45 PM
> > To: wdmaudiodev@xxxxxxxxxxxxx
> > Subject: [wdmaudiodev] Re: speaker configuration and 
> > KSPROPERTY_PIN_PROPOSEDATAFORMAT
> > 
> > Replying to myself to add some information:
> > 
> > For my speakers endpoint, I do receive a 
> > KSPROPERTY_AUDIO_CHANNEL_CONFIG call, which is want I want to 
> > use to replace our older proprietary speaking configuration.  
> > However, since I cannot select the "configure" button for my 
> > headphones endpoint, I never receive a 
> > KSPROPERTY_AUDIO_CHANNEL_CONFIG call.  It is imperative that 
> > I receive this in order that I know which endpoint has been 
> > selected by the user (headphones in this case).
> > 
> > Has anyone managed to receive a 
> > KSPROPERTY_AUDIO_CHANNEL_CONFIG call for a headphones 
> > (KSNODETYPE_HEADPHONES) endpoint?
> > 
> > thanks for any help,
> > 
> > Philip Lukidis
> > 
> > > -----Original Message-----
> > > From: wdmaudiodev-bounce@xxxxxxxxxxxxx
> > > [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx]On Behalf Of 
> Philip Lukidis
> > > Sent: Wednesday, November 08, 2006 3:20 PM
> > > To: wdmaudiodev@xxxxxxxxxxxxx
> > > Subject: [wdmaudiodev] speaker configuration and
> > > KSPROPERTY_PIN_PROPOSEDATAFORMAT
> > >
> > >
> > > Hello.  Concerning our WDM audio device, which supports
> > > multichannel and headphones, I am trying to move away from
> > > our proprietary speaker configuration and work with the new
> > > Vista settings.  Towards that endeavour, I now support
> > > KSPROPERTY_PIN_PROPOSEDATAFORMAT on the filter (supporting it
> > > in the pins does not work at all for some reason, why?).
> > > This is so that we succeed whatever formats we support, and
> > > the Vista settings list our speaker configurations for the
> > > user to select.
> > >
> > > Setting the speaker configuration (except headphones, which
> > > is a different endpoint) seems to work fine- when the user
> > > selects the speaker configuration, we receive a
> > > KSPROPERTY_PIN_PROPOSEDATAFORMAT request with user selected
> > > configuration.  However, I have the following questions:
> > > a) I am not able to get the pin except by checking the IRP in
> > > a try except handler, and extracting the KS_PIN structure.
> > > Is there a better way?
> > > b) How do I get notified if the user selects headphones?  So
> > > far I never get called if I select the headphones endpoint.
> > > c) (somewhat OT) When I start playback, I get a call to my
> > > KSPROPERTY_PIN_PROPOSEDATAFORMAT handler, but the
> > > WAVE_FORMAT_EX structure seems a bit corrupt- the subformat
> > > is not KSDATAFORMAT_SUBTYPE_PCM, but something else
> > > (00000055-0000-0010-8000-00aa00389b71).  What does this represent?
> > >
> > > Am I approaching this problem the wrong way?  Thanks for any help,
> > >
> > > Philip Lukidis
> > > ******************
> > >
> > > 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/
> > ******************
> > 
> > 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: