ALSA: hda: Honor subformat when querying PCMs
authorCezary Rojewski <cezary.rojewski@intel.com>
Fri, 17 Nov 2023 12:05:56 +0000 (13:05 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Nov 2023 16:24:27 +0000 (17:24 +0100)
commita7fc8b862fd5952be791a870ef8ef56016e83ff4
treeb6ce01673cf3158cbe8fab08fd542939f6cf67e8
parent2112aa034907c428785e1a5730927181276ee45b
ALSA: hda: Honor subformat when querying PCMs

Update mechanism for querying supported PCMs to allow for granular
format selection when container size is 32 bits. Currently always the
highest bit depth is selected, regardless of how many actual formats
codec in question supports.

Acked-by: Mark Brown <broonie@kernel.org>
Co-developed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20231117120610.1755254-3-cezary.rojewski@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hda_codec.h
include/sound/hdaudio.h
sound/hda/hdac_device.c
sound/pci/hda/hda_codec.c
sound/pci/hda/patch_hdmi.c
sound/soc/codecs/hdac_hdmi.c