summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorBard Liao2017-06-29 03:47:55 +0200
committerMark Brown2017-06-30 12:56:12 +0200
commitc243d96378bd0dc1249a335c282133f05e93c253 (patch)
treeb5e164c30f5201f1ef58eee71b6e70c69c517bfd /sound
parentASoC: rt5670: move set_sysclk to codec level (diff)
downloadkernel-qcow2-linux-c243d96378bd0dc1249a335c282133f05e93c253.tar.gz
kernel-qcow2-linux-c243d96378bd0dc1249a335c282133f05e93c253.tar.xz
kernel-qcow2-linux-c243d96378bd0dc1249a335c282133f05e93c253.zip
ASoC: rt5670: fix incompatible pointer type of set_sysclk
The first parameter is codec not dai. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/rt5670.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5670.c b/sound/soc/codecs/rt5670.c
index 7fa63ad366dd..64756dc95261 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);