summaryrefslogtreecommitdiff
path: root/sound/soc/intel/boards/skl_nau88l25_ssm4567.c
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2015-11-20 22:34:41 +0530
committerMark Brown <broonie@kernel.org>2015-11-20 19:23:31 +0000
commit85af2a665144f40cdf60c0e0e7fe88e40c20b0fa (patch)
treed77b604ed5d11331b30bc85927cd8d9fe154d1e5 /sound/soc/intel/boards/skl_nau88l25_ssm4567.c
parentb590d5e2cac3d21d4dd6ae35344b03f03914db76 (diff)
downloadlwn-85af2a665144f40cdf60c0e0e7fe88e40c20b0fa.tar.gz
lwn-85af2a665144f40cdf60c0e0e7fe88e40c20b0fa.zip
ASoC: Intel: Skylake: Update the rtd query
sound card rtd was an array and was updated to a list so update the driver to use a list Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/skl_nau88l25_ssm4567.c')
-rw-r--r--sound/soc/intel/boards/skl_nau88l25_ssm4567.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/intel/boards/skl_nau88l25_ssm4567.c b/sound/soc/intel/boards/skl_nau88l25_ssm4567.c
index 3f5a96b585b8..65c65d4c422c 100644
--- a/sound/soc/intel/boards/skl_nau88l25_ssm4567.c
+++ b/sound/soc/intel/boards/skl_nau88l25_ssm4567.c
@@ -35,12 +35,10 @@ static struct snd_soc_card skylake_audio_card;
static inline struct snd_soc_dai *skl_get_codec_dai(struct snd_soc_card *card)
{
- int i;
+ struct snd_soc_pcm_runtime *rtd;
- for (i = 0; i < card->num_rtd; i++) {
- struct snd_soc_pcm_runtime *rtd;
+ list_for_each_entry(rtd, &card->rtd_list, list) {
- rtd = card->rtd + i;
if (!strncmp(rtd->codec_dai->name, SKL_NUVOTON_CODEC_DAI,
strlen(SKL_NUVOTON_CODEC_DAI)))
return rtd->codec_dai;