summaryrefslogtreecommitdiff
path: root/sound/soc/intel/boards/cht_bsw_rt5672.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2024-08-23 22:45:53 +0100
committerMark Brown <broonie@kernel.org>2024-08-23 22:45:53 +0100
commitb42c0ec286c5bd7ec14110a11e27d2f99a154cd3 (patch)
tree7240261593c7f35334e436cd14938de23faa91c4 /sound/soc/intel/boards/cht_bsw_rt5672.c
parentca39fab8b7bc6c5a38c48c7bdf2b3c47792af9dd (diff)
parent839a4ec06f75cec8fec2cc5fc14e921d0c3f7369 (diff)
ASoC: Merge up fixes
Some of the fixes for the Intel bards overlap with development work that removed old boards.
Diffstat (limited to 'sound/soc/intel/boards/cht_bsw_rt5672.c')
-rw-r--r--sound/soc/intel/boards/cht_bsw_rt5672.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/cht_bsw_rt5672.c b/sound/soc/intel/boards/cht_bsw_rt5672.c
index be2d1a8dbca8..d68e5bc755de 100644
--- a/sound/soc/intel/boards/cht_bsw_rt5672.c
+++ b/sound/soc/intel/boards/cht_bsw_rt5672.c
@@ -466,7 +466,7 @@ static int snd_cht_mc_probe(struct platform_device *pdev)
/* find index of codec dai */
for (i = 0; i < ARRAY_SIZE(cht_dailink); i++) {
- if (cht_dailink[i].codecs->name &&
+ if (cht_dailink[i].num_codecs &&
!strcmp(cht_dailink[i].codecs->name, RT5672_I2C_DEFAULT)) {
dai_index = i;
break;