From patchwork Wed Feb 12 05:05:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3634121 X-Patchwork-Delegate: broonie@sirena.org.uk Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2E98C9F369 for ; Wed, 12 Feb 2014 05:06:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2C07D20170 for ; Wed, 12 Feb 2014 05:06:01 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id EEC5320122 for ; Wed, 12 Feb 2014 05:05:59 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id CBB6B261B36; Wed, 12 Feb 2014 06:05:58 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NO_DNS_FOR_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id A19DA261B18; Wed, 12 Feb 2014 06:05:48 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id D2F1F261B18; Wed, 12 Feb 2014 06:05:46 +0100 (CET) Received: from mail-pb0-f42.google.com (mail-pb0-f42.google.com [209.85.160.42]) by alsa0.perex.cz (Postfix) with ESMTP id 853D2261B1A for ; Wed, 12 Feb 2014 06:05:28 +0100 (CET) Received: by mail-pb0-f42.google.com with SMTP id jt11so8806693pbb.1 for ; Tue, 11 Feb 2014 21:05:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:subject:user-agent:to:cc:mime-version :content-type; bh=Sf9uf22EaqmsdlGQr9UuD3nC614IspsdIPgQahWN1po=; b=mfZmkGFgsLDrKT+Dx7OLWS3FuU5IreQHzGkQh2EIXHMr/oqKDoel+P5zsT5up+0laD bKRGYFs9JGcb+uDiPvT/WHk+mGVmr1vxcbF9BiD42DOwmckgBCLl+G+EvievtEk4ggPt PZKix1JRA9tEK2x+ln/jkxJZqqiJYZry6NJcC6Q/pTH0rPisUMmC/A5pcSCUa2pm0yDc xKTAPxyZ6Nc1fGOP/iF+T89ovpVc4kF9PQQX3fCRmHumdZlqXECytcZoQV1xS5mssJii aEUAFdvzB8ih3s0DmDjLaFRWozSKOgYXqarlVGmr7ImbABokbYHCM16FkQ1fYH8IoYGX QMHQ== X-Received: by 10.66.216.129 with SMTP id oq1mr36802492pac.75.1392181527617; Tue, 11 Feb 2014 21:05:27 -0800 (PST) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id tu3sm58941642pbc.40.2014.02.11.21.05.25 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 11 Feb 2014 21:05:26 -0800 (PST) Date: Tue, 11 Feb 2014 21:05:26 -0800 (PST) Message-ID: <87a9dwapkc.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 To: Mark Brown MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Cc: Linux-ALSA , Simon , Liam Girdwood , Kuninori Morimoto , Kuninori Morimoto Subject: [alsa-devel] [PATCH] ASoC: rsnd: print error if there is SRC settings mismatch X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" 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 X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto rsnd request clock master if SRC is used Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/scu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/sh/rcar/scu.c b/sound/soc/sh/rcar/scu.c index 6e5c763..3984d4b 100644 --- a/sound/soc/sh/rcar/scu.c +++ b/sound/soc/sh/rcar/scu.c @@ -122,6 +122,14 @@ static int rsnd_scu_ssi_mode_init(struct rsnd_mod *mod, struct rsnd_priv *priv = rsnd_mod_to_priv(mod); struct rsnd_scu *scu = rsnd_mod_to_scu(mod); int id = rsnd_mod_id(mod); + u32 convert_rate = rsnd_scu_convert_rate(scu); + + if (convert_rate && !rsnd_dai_is_clk_master(rdai)) { + struct device *dev = rsnd_priv_to_dev(priv); + + dev_err(dev, "rsnd should be clk master when you rate convert\n"); + return -EINVAL; + } /* * SSI_MODE0