<p><br>
><br>
> > -----Original Message-----<br>
> > From: Takashi Iwai [mailto:<a href="mailto:tiwai@suse.de">tiwai@suse.de</a>]<br>
> > Sent: Thursday, August 06, 2015 6:03 PM<br>
> > To: Yang, Libin<br>
> > Cc: <a href="mailto:alsa-devel@alsa-project.org">alsa-devel@alsa-project.org</a>; <a href="mailto:intel-gfx@lists.freedesktop.org">intel-gfx@lists.freedesktop.org</a>; Lin,<br>
> > Mengdong<br>
> > Subject: Re: [PATCH 3/4] ALSA: hda - display audio call ncts callback<br>
> ><br>
> > On Thu, 06 Aug 2015 08:52:56 +0200,<br>
> > <a href="mailto:libin.yang@intel.com">libin.yang@intel.com</a> wrote:<br>
> > ><br>
> > > From: Libin Yang <<a href="mailto:libin.yang@intel.com">libin.yang@intel.com</a>><br>
> > ><br>
> > > On some Intel platforms, display audio need set N/CTS<br>
> > > manually at some TMDS frequencies.<br>
> > ><br>
> > > Signed-off-by: Libin Yang <<a href="mailto:libin.yang@intel.com">libin.yang@intel.com</a>><br>
> > > ---<br>
> > > sound/pci/hda/patch_hdmi.c | 7 +++++++<br>
> > > 1 file changed, 7 insertions(+)<br>
> > ><br>
> > > diff --git a/sound/pci/hda/patch_hdmi.c<br>
> > b/sound/pci/hda/patch_hdmi.c<br>
> > > index a97db5f..4bd11ff 100644<br>
> > > --- a/sound/pci/hda/patch_hdmi.c<br>
> > > +++ b/sound/pci/hda/patch_hdmi.c<br>
> > > @@ -1786,6 +1786,8 @@ static int<br>
> > generic_hdmi_playback_pcm_prepare(struct hda_pcm_stream *hinfo,<br>
> > > int pin_idx = hinfo_to_pin_index(codec, hinfo);<br>
> > > struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);<br>
> > > hda_nid_t pin_nid = per_pin->pin_nid;<br>
> > > + struct snd_pcm_runtime *runtime = substream->runtime;<br>
> > > + struct i915_audio_component *acomp = codec->bus-<br>
> > >core.audio_component;<br>
> > > bool non_pcm;<br>
> > > int pinctl;<br>
> > ><br>
> > > @@ -1802,6 +1804,11 @@ static int<br>
> > generic_hdmi_playback_pcm_prepare(struct hda_pcm_stream *hinfo,<br>
> > > intel_not_share_assigned_cvt(codec, pin_nid, per_pin-<br>
> > >mux_idx);<br>
> > > }<br>
> > ><br>
> > > + if (is_haswell_plus(codec)) {<br>
> > > + if (acomp && acomp->ops && acomp->ops->set_ncts)<br>
> > > + acomp->ops->set_ncts(acomp->dev, per_pin-<br>
> > >pin_nid - 4,<br>
> ><br>
> > Please describe more how "pin_nid - 4" is supposed to work. Also...<br>
><br>
> OK, I see.<br>
><br>
> ><br>
> > > + 0, runtime->rate);<br>
> ><br>
> > ... this implies that no MST support included?<br>
><br>
> We will support MST later. Currently I just add the<br>
> interface to support MST, but not implementing it.<br></p>
<p>Refer to DCN HDA040-A</p>
<p>Multi-stream over Single Display Port</p>
<p>Can the driver use subdevices for those display port support multi streaming ?</p>
<p>The specification allow up to 64 device entries</p>
<p>This mean the number of subdevices is equal to the device list length</p>
<p>More than one audio output /converters can be connected to the multi stream displayport pin widget but different device entry while only one audio output can be dynamically allocated to other HDMI pin widget</p>
<p>7.3.3.42 Device Select</p>
<p>For Digital Display Pin Widget that is multi stream capable, the Device Select control determines which Device Entry is currently selected and accessible by the Pin Widget verbs which are controlling the sink device operations. This control verb is only required if it is a Digital Display Pin Widget and multi stream capable.</p>
<p>The index is in relation to the Device List associated with the widget. The index is a zero-based offset into the Device List. Once the Device Entry is selected by the Set index, all subsequent Pin Widget verbs controlling the sink device operations will be directed to the selected Device Entry, until the Device Select verb get updated with a new value. </p>
<p>Device Entry: Indicate the index of Device Entry (0 63) which the UR bit of is generated for a multi stream capable Digital Display Pin Widget. Not valid for non Digital Display Pin Widget or Digital Display Pin Widget that is not multi stream capable</p>
<p>Device List Length is a 0 based integer value indicating the number of sink device that a multi stream capable Digital Display Pin Widget can support. If Device List Length is value is 0, there is only one sink device connection possible indicating the Pin Widget is not multi stream capable, and there is no Device Select control (see Section 7.3.3.42). If the Device List Length value is 1 – 63, it indicates the Pin Widget is multi stream capable, and 2 – 64 Device Entries are supported in the Pin Widget. <br>
><br>
</p>