kernel_samsung_a53x/sound/soc
Jonas Karlman f80ed648c5 ASoC: hdmi-codec: reorder channel allocation list
[ Upstream commit 82ff5abc2edcfba0c0f1a1be807795e2876f46e9 ]

The ordering in hdmi_codec_get_ch_alloc_table_idx() results in
wrong channel allocation for a number of cases, e.g. when ELD
reports FL|FR|LFE|FC|RL|RR or FL|FR|LFE|FC|RL|RR|RC|RLC|RRC:

ca_id 0x01 with speaker mask FL|FR|LFE is selected instead of
ca_id 0x03 with speaker mask FL|FR|LFE|FC for 4 channels

and

ca_id 0x04 with speaker mask FL|FR|RC gets selected instead of
ca_id 0x0b with speaker mask FL|FR|LFE|FC|RL|RR for 6 channels

Fix this by reordering the channel allocation list with most
specific speaker masks at the top.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
Link: https://patch.msgid.link/20241115044344.3510979-1-christianshewitt@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:31 +01:00
..
adi
amd
atmel
au1x Revert "ASoC: allow module autoloading for table db1200_pids" 2024-11-24 00:23:34 +01:00
bcm
cirrus
codecs ASoC: hdmi-codec: reorder channel allocation list 2024-12-17 13:24:31 +01:00
dwc clkdev: remove CONFIG_CLKDEV_LOOKUP 2024-12-17 13:24:00 +01:00
fsl ASoC: fsl_micfil: fix the naming style for mask definition 2024-12-17 13:24:23 +01:00
generic ASoC: Fix 7/8 spaces indentation in Kconfig 2024-11-19 11:32:42 +01:00
hisilicon
img
intel ASoC: Intel: bytcr_rt5640: Add DMI quirk for Vexia Edu Atla 10 tablet 2024-12-17 13:23:57 +01:00
jz4740
kirkwood
mediatek
meson Revert "ASoC: meson: axg-card: fix 'use-after-free'" 2024-11-24 00:23:34 +01:00
mxs
pxa ARM: pxa: spitz: use gpio descriptors for audio 2024-11-23 23:20:06 +01:00
qcom ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe() 2024-11-23 23:22:02 +01:00
rockchip clkdev: remove CONFIG_CLKDEV_LOOKUP 2024-12-17 13:24:00 +01:00
samsung
sh
sirf
sof
spear
sprd
sti
stm ASoC: stm: Prevent potential division by zero in stm32_sai_get_clk_div() 2024-12-17 13:23:58 +01:00
sunxi
tegra ASoC: tegra: Fix DSPK 16-bit playback 2024-11-19 11:32:48 +01:00
ti ASoC: ti: omap-hdmi: Fix too long driver name 2024-11-19 14:19:48 +01:00
txx9
uniphier
ux500
xilinx
xtensa
zte
Kconfig
Makefile
soc-ac97.c
soc-acpi.c
soc-card.c
soc-component.c
soc-compress.c
soc-core.c
soc-dai.c
soc-dapm.c ASoC: dapm: Fix UAF for snd_soc_pcm_runtime object 2024-11-23 23:20:59 +01:00
soc-devres.c
soc-generic-dmaengine-pcm.c ALSA: dmaengine: Synchronize dma channel after drop() 2024-11-19 14:19:48 +01:00
soc-jack.c
soc-link.c
soc-ops.c ASoC: ops: Fix wraparound for mask in snd_soc_get_volsw 2024-11-19 09:23:10 +01:00
soc-pcm.c
soc-topology.c Revert "ASoC: topology: Properly initialize soc_enum values" 2024-11-24 00:23:41 +01:00
soc-utils.c