diff mbox

ASoC: rt5670: fix incompatible pointer type of set_sysclk

Message ID 1498700875-13120-1-git-send-email-bardliao@realtek.com (mailing list archive)
State Accepted
Commit c243d96378bd0dc1249a335c282133f05e93c253
Headers show

Commit Message

Bard Liao June 29, 2017, 1:47 a.m. UTC
The first parameter is codec not dai.

Signed-off-by: Bard Liao <bardliao@realtek.com>
---
Sorry for missing it in the "move set_sysclk to codec level" patch
---
 sound/soc/codecs/rt5670.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/sound/soc/codecs/rt5670.c b/sound/soc/codecs/rt5670.c
index 7fa63ad..64756dc 100644
--- a/sound/soc/codecs/rt5670.c
+++ b/sound/soc/codecs/rt5670.c
@@ -2442,7 +2442,7 @@  static int rt5670_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 	return 0;
 }
 
-static int rt5670_set_codec_sysclk(struct snd_soc_dai *dai, int clk_id,
+static int rt5670_set_codec_sysclk(struct snd_soc_codec *codec, int clk_id,
 				   int source, unsigned int freq, int dir)
 {
 	struct rt5670_priv *rt5670 = snd_soc_codec_get_drvdata(codec);