From patchwork Fri Mar 14 00:56:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3829851 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 B25149F1CD for ; Fri, 14 Mar 2014 00:57:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D0DA0202F0 for ; Fri, 14 Mar 2014 00:57:46 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 911E9202E9 for ; Fri, 14 Mar 2014 00:57:45 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 83FA72654E5; Fri, 14 Mar 2014 01:57:44 +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, 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 5B7902654FB; Fri, 14 Mar 2014 01:57:21 +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 7D9A5265524; Fri, 14 Mar 2014 01:57:20 +0100 (CET) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by alsa0.perex.cz (Postfix) with ESMTP id C7F2F2654FB for ; Fri, 14 Mar 2014 01:56:45 +0100 (CET) Received: by mail-pb0-f49.google.com with SMTP id jt11so1859197pbb.22 for ; Thu, 13 Mar 2014 17:56:44 -0700 (PDT) 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:in-reply-to :references:mime-version:content-type; bh=4xrmSEzyLumur9CFT2x0A4Ssbkh/jqIcL2TwXPl6dZw=; b=JQmF5gRwdjkmqTIuY3gzRhfSS7JKFDDMJkAbpJUd887kGMbH4R0ar7L7+NhV5yauEG V+iaafxrKdba+EaXrQ+9vZVrN/uCzJQuc7gIxoEru8wlyjRiUcBap9Jz5Ph0i3EjZQWc +A/dKBwEzIzT2g3oEB5tCbZ1j9jPuSfMyU5/2Y5Vo3z6FPCtfNV0KKI/Cdm6O87IsDnR tHz45q5PscagLibJYHlJ00c+cnjl8L6+H8s3zjy3hsxMVTcc7/gfkT0R2SF8p07R8h4B zbJUSB8xZ06qM9acjph5aJbc9BVEjxGYed9D1ByfB7VHUR4w7fjMu7hBUfoqgLv4bZOK Ba3w== X-Received: by 10.69.31.171 with SMTP id kn11mr5933391pbd.47.1394758604469; Thu, 13 Mar 2014 17:56:44 -0700 (PDT) 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 x5sm10934445pbw.26.2014.03.13.17.56.42 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 13 Mar 2014 17:56:43 -0700 (PDT) Date: Thu, 13 Mar 2014 17:56:43 -0700 (PDT) Message-ID: <87a9ctpph2.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 To: Mark Brown , Simon In-Reply-To: <87d2hpppk3.wl%kuninori.morimoto.gx@gmail.com> References: <87txb3rjzw.wl%kuninori.morimoto.gx@gmail.com> <87d2hpppk3.wl%kuninori.morimoto.gx@gmail.com> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Cc: Linux-ALSA , Liam Girdwood , Morimoto , Linux-SH Subject: [alsa-devel] [PATCH 2/2] ASoC: rcar: fixup SND_SOC_DAIFMT_CBx_CFx flags 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 SND_SOC_DAIFMT_CBx_CFx means "codec" side master/slave mode. Then, rcar will be master mode if it was SND_SOC_DAIFMT_CBS_CFS. Signed-off-by: Kuninori Morimoto --- v1 -> v2 - no change sound/soc/sh/rcar/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 743de5e..3a4fe9d 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -486,10 +486,10 @@ static int rsnd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) /* set master/slave audio interface */ switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { case SND_SOC_DAIFMT_CBM_CFM: - rdai->clk_master = 1; + rdai->clk_master = 0; break; case SND_SOC_DAIFMT_CBS_CFS: - rdai->clk_master = 0; + rdai->clk_master = 1; /* codec is slave, cpu is master */ break; default: return -EINVAL;