]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hda/hdmi: Use only dynamic PCM device allocation
authorJaroslav Kysela <perex@perex.cz>
Thu, 22 Sep 2022 08:40:17 +0000 (10:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:26:49 +0000 (13:26 +0100)
commit951898560f73bbffa6828d153b4fb64935cc99df
tree5f3e97140309946efdbe8030664a93a701c8eb2a
parentd65f82a851c6003cb6735904ce763900faa2d678
ALSA: hda/hdmi: Use only dynamic PCM device allocation

[ Upstream commit ef6f5494faf6a37c74990689a3bb3cee76d2544c ]

Per discussion on the alsa-devel mailing list [1], the legacy PIN to PCM
device mapping is obsolete nowadays. The maximum number of the simultaneously
usable PCM devices is equal to the HDMI codec converters.

Remove the extra PCM devices (beyond the detected converters) and force
the use of the dynamic PCM device allocation. The legacy code is removed.

I believe that all HDMI codecs have the jack sensing feature. Move the check
to the codec probe function and print a warning, if a codec without this
feature is detected.

[1] https://lore.kernel.org/alsa-devel/2f37e0b2-1e82-8c0b-2bbd-1e5038d6ecc6@perex.cz/

Cc: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20220922084017.25925-1-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Stable-dep-of: ee0b089d6600 ("ALSA: hda/hdmi: fix stream-id config keep-alive for rt suspend")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/sound/hda_codec.h
sound/pci/hda/patch_hdmi.c
sound/soc/codecs/hda.c
sound/soc/codecs/hdac_hda.c