Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: allow up to eight CPU/codec DAIs

Sound card on Qualcomm X1E80100 CRD board will use eight DAIs in one DAI
link, so increase the limit.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240117160144.1305127-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
70b47699 35314e39

+4 -1
+4 -1
sound/soc/soc-core.c
··· 1037 1037 return -EINVAL; 1038 1038 } 1039 1039 1040 - #define MAX_DEFAULT_CH_MAP_SIZE 7 1040 + #define MAX_DEFAULT_CH_MAP_SIZE 8 1041 1041 static struct snd_soc_dai_link_ch_map default_ch_map_sync[MAX_DEFAULT_CH_MAP_SIZE] = { 1042 1042 { .cpu = 0, .codec = 0 }, 1043 1043 { .cpu = 1, .codec = 1 }, ··· 1046 1046 { .cpu = 4, .codec = 4 }, 1047 1047 { .cpu = 5, .codec = 5 }, 1048 1048 { .cpu = 6, .codec = 6 }, 1049 + { .cpu = 7, .codec = 7 }, 1049 1050 }; 1050 1051 static struct snd_soc_dai_link_ch_map default_ch_map_1cpu[MAX_DEFAULT_CH_MAP_SIZE] = { 1051 1052 { .cpu = 0, .codec = 0 }, ··· 1056 1055 { .cpu = 0, .codec = 4 }, 1057 1056 { .cpu = 0, .codec = 5 }, 1058 1057 { .cpu = 0, .codec = 6 }, 1058 + { .cpu = 0, .codec = 7 }, 1059 1059 }; 1060 1060 static struct snd_soc_dai_link_ch_map default_ch_map_1codec[MAX_DEFAULT_CH_MAP_SIZE] = { 1061 1061 { .cpu = 0, .codec = 0 }, ··· 1066 1064 { .cpu = 4, .codec = 0 }, 1067 1065 { .cpu = 5, .codec = 0 }, 1068 1066 { .cpu = 6, .codec = 0 }, 1067 + { .cpu = 7, .codec = 0 }, 1069 1068 }; 1070 1069 static int snd_soc_compensate_channel_connection_map(struct snd_soc_card *card, 1071 1070 struct snd_soc_dai_link *dai_link)