Skip to content

Commit 70b4769

Browse files
krzkbroonie
authored andcommitted
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>
1 parent 35314e3 commit 70b4769

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sound/soc/soc-core.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ static int soc_dai_link_sanity_check(struct snd_soc_card *card,
10371037
return -EINVAL;
10381038
}
10391039

1040-
#define MAX_DEFAULT_CH_MAP_SIZE 7
1040+
#define MAX_DEFAULT_CH_MAP_SIZE 8
10411041
static struct snd_soc_dai_link_ch_map default_ch_map_sync[MAX_DEFAULT_CH_MAP_SIZE] = {
10421042
{ .cpu = 0, .codec = 0 },
10431043
{ .cpu = 1, .codec = 1 },
@@ -1046,6 +1046,7 @@ static struct snd_soc_dai_link_ch_map default_ch_map_sync[MAX_DEFAULT_CH_MAP_SIZ
10461046
{ .cpu = 4, .codec = 4 },
10471047
{ .cpu = 5, .codec = 5 },
10481048
{ .cpu = 6, .codec = 6 },
1049+
{ .cpu = 7, .codec = 7 },
10491050
};
10501051
static struct snd_soc_dai_link_ch_map default_ch_map_1cpu[MAX_DEFAULT_CH_MAP_SIZE] = {
10511052
{ .cpu = 0, .codec = 0 },
@@ -1055,6 +1056,7 @@ static struct snd_soc_dai_link_ch_map default_ch_map_1cpu[MAX_DEFAULT_CH_MAP_SIZ
10551056
{ .cpu = 0, .codec = 4 },
10561057
{ .cpu = 0, .codec = 5 },
10571058
{ .cpu = 0, .codec = 6 },
1059+
{ .cpu = 0, .codec = 7 },
10581060
};
10591061
static struct snd_soc_dai_link_ch_map default_ch_map_1codec[MAX_DEFAULT_CH_MAP_SIZE] = {
10601062
{ .cpu = 0, .codec = 0 },
@@ -1064,6 +1066,7 @@ static struct snd_soc_dai_link_ch_map default_ch_map_1codec[MAX_DEFAULT_CH_MAP_S
10641066
{ .cpu = 4, .codec = 0 },
10651067
{ .cpu = 5, .codec = 0 },
10661068
{ .cpu = 6, .codec = 0 },
1069+
{ .cpu = 7, .codec = 0 },
10671070
};
10681071
static int snd_soc_compensate_channel_connection_map(struct snd_soc_card *card,
10691072
struct snd_soc_dai_link *dai_link)

0 commit comments

Comments
 (0)