Jonas Karlman 82ff5abc2e
ASoC: hdmi-codec: reorder channel allocation list
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>
2024-11-15 13:43:00 +00:00
..
2024-06-10 12:48:36 +01:00
2024-08-01 12:51:45 +01:00
2024-06-28 13:39:30 +01:00
2024-08-26 15:52:09 +01:00
2024-10-24 16:09:18 +01:00
2024-10-09 14:40:49 +01:00
2024-03-26 11:24:24 +00:00
2024-01-12 11:55:28 -08:00
2024-09-14 09:09:59 +02:00
2024-09-05 12:31:03 +01:00
2024-09-05 12:31:03 +01:00
2024-03-28 15:54:04 +00:00
2024-06-18 16:45:46 +01:00
2024-10-17 12:11:33 +01:00
2024-10-17 12:11:33 +01:00
2024-10-17 12:11:33 +01:00
2024-10-17 12:11:33 +01:00
2024-04-03 16:07:41 +01:00
2024-04-03 16:07:41 +01:00
2024-04-30 00:15:57 +09:00
2024-04-30 00:15:57 +09:00
2024-11-14 11:39:47 +00:00
2024-04-03 16:07:41 +01:00
2024-04-03 16:07:41 +01:00
2024-10-25 14:10:22 +01:00
2024-10-25 14:10:22 +01:00
2024-04-03 16:07:41 +01:00
2024-10-07 14:54:21 +01:00
2024-11-14 11:39:47 +00:00
2024-08-08 09:14:57 +01:00
2024-08-08 09:14:57 +01:00