Files
linux-bredos/sound/soc/codecs
Jonas Karlman d7a6ff5dc8 ASoC: hdmi-codec: reorder channel allocation list
[ Upstream commit 82ff5abc2e ]

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-14 20:00:09 +01:00
..
2023-08-14 13:10:36 +01:00
2024-09-30 16:25:11 +02:00
2024-01-20 11:51:44 +01:00
2024-01-20 11:51:44 +01:00
2023-05-25 10:54:21 +01:00
2023-08-11 21:12:45 +02:00
2023-01-31 11:04:55 +00:00
2022-06-06 12:33:10 +01:00
2023-08-10 00:19:02 +01:00
2023-08-13 19:38:00 +01:00
2023-08-13 19:37:49 +01:00
2023-08-13 19:37:50 +01:00
2023-08-13 19:37:52 +01:00
2023-08-13 19:37:52 +01:00
2022-10-13 13:01:32 +01:00
2023-08-13 19:37:53 +01:00
2023-08-17 22:38:42 +01:00
2023-08-13 19:37:54 +01:00
2023-08-13 19:37:56 +01:00
2023-08-13 19:37:58 +01:00
2022-07-08 11:52:42 +01:00