ASoC: Intel: sof_da7219_mx98360a: Access num_codecs through dai_link
authorNathan Chancellor <nathan@kernel.org>
Thu, 22 Sep 2022 15:37:52 +0000 (08:37 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 23 Sep 2022 12:56:26 +0000 (13:56 +0100)
commit0402cca4828dd9556d36ddef67710993b7063f7c
treea454e29a02f7ea55313900d334d42aace602cd8a
parent4f865485e8ef1d04de23fc1def1fa4e39fb00b91
ASoC: Intel: sof_da7219_mx98360a: Access num_codecs through dai_link

After commit 3989ade2d1e7 ("ASoC: soc.h: remove num_cpus/codecs"), the
following build error occurs:

  sound/soc/intel/boards/sof_da7219_max98373.c:198:27: error: no member named 'num_codecs' in 'struct snd_soc_pcm_runtime'
          for (j = 0; j < runtime->num_codecs; j++) {
                          ~~~~~~~  ^
  1 error generated.

This conversion was missed by the aforementioned change. Do it now to
fix the build error.

Fixes: 3989ade2d1e7 ("ASoC: soc.h: remove num_cpus/codecs")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220922153752.336193-1-nathan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_da7219_max98373.c