From: Kuninori Morimoto Subject: [PATCH 06/19] ASoC: rsnd: add .set_sysclk on snd_soc_dai_ops Date: Mon, 24 Feb 2014 22:15:25 -0800 (PST) Message-ID: <874n3n90qt.wl%kuninori.morimoto.gx@gmail.com> References: <87d2ib90t9.wl%kuninori.morimoto.gx@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by alsa0.perex.cz (Postfix) with ESMTP id 21F2F265574 for ; Tue, 25 Feb 2014 07:15:26 +0100 (CET) Received: by mail-pa0-f45.google.com with SMTP id lf10so7616071pab.18 for ; Mon, 24 Feb 2014 22:15:26 -0800 (PST) In-Reply-To: <87d2ib90t9.wl%kuninori.morimoto.gx@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: Linux-ALSA , Simon , Liam Girdwood , Kuninori Morimoto List-Id: alsa-devel@alsa-project.org From: Kuninori Morimoto 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 --- 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