diff mbox

ASoC: rt5670: Fix arguments to set_sysclk

Message ID 1498722411-2387-1-git-send-email-subhransu.s.prusty@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Subhransu S. Prusty June 29, 2017, 7:46 a.m. UTC
set_sysclk expects pointer to snd_soc_codec. Fix it.

Fixes: 6c28ce3c425e ("ASoC: rt5670: move set_sysclk to codec level")
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
CC: Bard Liao <bardliao@realtek.com>
---
 sound/soc/codecs/rt5670.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown June 30, 2017, 11:45 a.m. UTC | #1
On Thu, Jun 29, 2017 at 01:16:51PM +0530, Subhransu S. Prusty wrote:
> set_sysclk expects pointer to snd_soc_codec. Fix it.

Someone already sent a fix for this.
diff mbox

Patch

diff --git a/sound/soc/codecs/rt5670.c b/sound/soc/codecs/rt5670.c
index 10fec7cdf1a1..0ec7985ed306 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);