[alsa-devel] [PATCH 06/19] ASoC: rsnd: add .set_sysclk on snd_soc_dai_ops

Kuninori Morimoto kuninori.morimoto.gx at gmail.com
Tue Feb 25 07:15:25 CET 2014


From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>

This patch adds struct snd_soc_dai_ops :: set_sysclk.
But, it do nothing, since rsnd sysclk is controlled by ADG.
Without this patch, simple-card init will be failed
if DT case.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
 sound/soc/sh/rcar/core.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index f0745af..98771f7 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -571,9 +571,17 @@ static int rsnd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 	return 0;
 }
 
+static int rsnd_soc_dai_set_sysclk(struct snd_soc_dai *codec_dai,
+				   int clk_id, unsigned int freq, int dir)
+{
+	/* rsnd sysclk is controlled by ADG */
+	return 0;
+}
+
 static const struct snd_soc_dai_ops rsnd_soc_dai_ops = {
 	.trigger	= rsnd_soc_dai_trigger,
 	.set_fmt	= rsnd_soc_dai_set_fmt,
+	.set_sysclk	= rsnd_soc_dai_set_sysclk,
 };
 
 static int rsnd_dai_probe(struct platform_device *pdev,
-- 
1.7.9.5



More information about the Alsa-devel mailing list