Skip to content

Commit 7618ab5

Browse files
krzkbroonie
authored andcommitted
ASoC: codecs: wcd938x: use defines for entries in snd_soc_dai_driver array
snd_soc_dai_driver array in wcd938x driver has two entries whose order must match order of wcd938x->sdw_priv array. The wcd938x_bind() and wcd938x_codec_set_sdw_stream() rely on this order. wcd938x->sdw_priv array is indexed by enum with AIF1_PB and AIF1_CAP, so use the same defines instead of raw numners for snd_soc_dai_driver array. No functional impact. Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent e29de7a commit 7618ab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/wcd938x.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3394,7 +3394,7 @@ static const struct snd_soc_dai_ops wcd938x_sdw_dai_ops = {
33943394
};
33953395

33963396
static struct snd_soc_dai_driver wcd938x_dais[] = {
3397-
[0] = {
3397+
[AIF1_PB] = {
33983398
.name = "wcd938x-sdw-rx",
33993399
.playback = {
34003400
.stream_name = "WCD AIF1 Playback",
@@ -3407,7 +3407,7 @@ static struct snd_soc_dai_driver wcd938x_dais[] = {
34073407
},
34083408
.ops = &wcd938x_sdw_dai_ops,
34093409
},
3410-
[1] = {
3410+
[AIF1_CAP] = {
34113411
.name = "wcd938x-sdw-tx",
34123412
.capture = {
34133413
.stream_name = "WCD AIF1 Capture",

0 commit comments

Comments
 (0)