From: Kuninori Morimoto Date: Tue, 5 Dec 2017 04:23:52 +0000 (+0000) Subject: ASoC: don't use rtd->codec on Intel/haswell X-Git-Tag: v4.16-rc1~43^2~2^5~37 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=187c43df88196c0c4b231771a39e4a46f20a4f7a;p=uclinux-h8%2Flinux.git ASoC: don't use rtd->codec on Intel/haswell 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/boards/haswell.c b/sound/soc/intel/boards/haswell.c index 5e1ea0371c90..3c5160779204 100644 --- a/sound/soc/intel/boards/haswell.c +++ b/sound/soc/intel/boards/haswell.c @@ -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; }