<p><br>
> > ><br>
> > > Shall we move or cc this discussion on audio driver side to ALSA ML?<br>
> ><br>
> > Oops I thought I had cc'ed these patches to alsa-devel as well when I sent them.<br>
> ><br>
> > > I think we also need to decide how to manage PCM devices for DP MST.<br>
> > > Now the HD-A driver create a PCM device for each pin, and the substream<br>
> > > number is 1 for each PCM. Now with DP MST enabled, each pin can support<br>
> > > multiple streams (e.g. 3 on Intel HSW/BDW/SKL).<br>
> > ><br>
> > > There may be 2 options:<br>
> > > -#1: Let an HDMI codec specify number of substreams, same as the number<br>
> > > of device entries on a pin. We can specify 3 for HSW/BDW/SKL. Other<br>
> > > vendors can also specify a value according to actual HW capabilities.<br>
> > ><br>
> > > So for HSW, we have 3x3 subtreams totally. But we only have 3 convertors<br>
> > > (for 3 display pipelines), so we can open up to 3 substreams at the same<br>
> > > time. When the audio driver finds all 3 convertors are used when opening<br>
> > > a new substream, it will fail.<br>
> ><br>
> > One thing I noticed is the number of devices on a PIN is only updated when<br>
> > the MST device is plugged in so normally pins 5,6,7 have 0 devices, and when<br>
> > I plug in MST device, I get the 3 devices on port 6. So it seems dynamic<br>
> > enough at this point, though I guess it'll always be 0 or 3.<br>
> > ><br>
> > > - #2: Create PCM device dynamically. Only create a PCM devices for a device<br>
> > > entry which connects to monitor with audio support. When the monitor<br>
> > > is removed, the PCM device will be disconnected, closed and removed,<br>
> > > similar to the USB case.<br></p>
<p>Do the driver really need dynamic PCM since display ports are dasiy chained and the locations within the dasiy chain are fixed ?<br><br></p>