[PATCH] ALSA: hda/hdmi: let new platforms assign the pcm slot dynamically

Takashi Iwai tiwai at suse.de
Tue Feb 23 17:33:27 CET 2021


On Tue, 23 Feb 2021 17:25:23 +0100,
Jaroslav Kysela wrote:
> 
> Dne 23. 02. 21 v 15:14 Kai Vehmanen napsal(a):
> 
> > This is somewhat arbitrary still. If we simply want to enable the mode for 
> > TGL only, easier and cleaned would be to set this flag in 
> > patch_i915_tgl_hdmi() directly.
> 
> A dumb question: Does TGL really support up to 11 separate displays or it's
> just to handle 11 connections and the number of maximal simultanenous
> connected displays is lower? In the later case, the dynamic allocation makes
> sense a lot.

That's the latter.  And, the fixed assignment was merely for
compatibility with legacy usage, and supposed to be 3 fixed ones or
so.  Extending to that high number wasn't intended when the mechanism
was introduced.  We should have noticed it at ICL support (which has
up to 6 devices).

About the number of devices: from the implementation POV, number 4
makes sense.  In the current implementation, with more than 4 HDMI
devices, the PCM device number itself is assigned dynamically, hence
you can't enumerate fully statically, in anyway.


Takashi


More information about the Alsa-devel mailing list