ASoC: don't use rtd->codec on Intel/haswell
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 5 Dec 2017 04:23:52 +0000 (04:23 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 5 Dec 2017 12:43:51 +0000 (12:43 +0000)
rtd->codec will be removed soon.
rtd->codec = rtd->codec_dai->codec, thus,
we can use rtd->codec_dai->component instead of it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/haswell.c

index 5e1ea03..3c51607 100644 (file)
@@ -76,7 +76,7 @@ static int haswell_rt5640_hw_params(struct snd_pcm_substream *substream,
        }
 
        /* set correct codec filter for DAI format and clock config */
-       snd_soc_update_bits(rtd->codec, 0x83, 0xffff, 0x8000);
+       snd_soc_component_update_bits(codec_dai->component, 0x83, 0xffff, 0x8000);
 
        return ret;
 }