diff mbox

[5/7] ASoC: don't use rtd->codec on Intel/haswell

Message ID 871sk9vmj2.wl%kuninori.morimoto.gx@renesas.com (mailing list archive)
State Accepted
Commit 187c43df88196c0c4b231771a39e4a46f20a4f7a
Headers show

Commit Message

Kuninori Morimoto Dec. 5, 2017, 4:23 a.m. UTC
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

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>
---
 sound/soc/intel/boards/haswell.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/sound/soc/intel/boards/haswell.c b/sound/soc/intel/boards/haswell.c
index 5e1ea03..3c516077 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;
 }