From patchwork Mon Sep 1 04:29:40 2014
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Xiubo Li
X-Patchwork-Id: 4816391
Return-Path:
X-Original-To: patchwork-linux-arm@patchwork.kernel.org
Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org
Received: from mail.kernel.org (mail.kernel.org [198.145.19.201])
by patchwork2.web.kernel.org (Postfix) with ESMTP id A176DC0338
for ;
Mon, 1 Sep 2014 05:24:47 +0000 (UTC)
Received: from mail.kernel.org (localhost [127.0.0.1])
by mail.kernel.org (Postfix) with ESMTP id D348420155
for ;
Mon, 1 Sep 2014 05:24:46 +0000 (UTC)
Received: from bombadil.infradead.org (bombadil.infradead.org
[198.137.202.9])
(using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by mail.kernel.org (Postfix) with ESMTPS id 09F5220145
for ;
Mon, 1 Sep 2014 05:24:46 +0000 (UTC)
Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux))
id 1XOK4M-0006TA-O2; Mon, 01 Sep 2014 05:22:22 +0000
Received: from mail-bl2lp0205.outbound.protection.outlook.com
([207.46.163.205] helo=na01-bl2-obe.outbound.protection.outlook.com)
by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat
Linux)) id 1XOK3v-00069f-6k
for linux-arm-kernel@lists.infradead.org;
Mon, 01 Sep 2014 05:21:55 +0000
Received: from BN3PR0301CA0044.namprd03.prod.outlook.com (25.160.152.140) by
BL2PR03MB337.namprd03.prod.outlook.com (10.141.68.16) with
Microsoft SMTP
Server (TLS) id 15.0.1015.9; Mon, 1 Sep 2014 05:21:26 +0000
Received: from BL2FFO11FD022.protection.gbl (2a01:111:f400:7c09::125) by
BN3PR0301CA0044.outlook.office365.com (2a01:111:e400:401e::12) with
Microsoft SMTP Server (TLS) id 15.0.1019.16 via Frontend Transport;
Mon, 1 Sep 2014 05:21:25 +0000
Received: from az84smr01.freescale.net (192.88.158.2) by
BL2FFO11FD022.mail.protection.outlook.com (10.173.161.101) with
Microsoft SMTP Server (TLS) id 15.0.1010.11 via Frontend Transport;
Mon, 1 Sep 2014 05:21:25 +0000
Received: from rock.ap.freescale.net (rock.ap.freescale.net [10.193.20.106])
by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id
s815KbjA027602; Sun, 31 Aug 2014 22:21:20 -0700
From: Xiubo Li
To: , , ,
, , ,
, , ,
, ,
,
Subject: [PATCHv1 6/7] ASoC: dts: sh73a0-kzm9g-reference: To support simple
card newest style.
Date: Mon, 1 Sep 2014 12:29:40 +0800
Message-ID: <1409545781-20530-7-git-send-email-Li.Xiubo@freescale.com>
X-Mailer: git-send-email 1.8.0
In-Reply-To: <1409545781-20530-1-git-send-email-Li.Xiubo@freescale.com>
References: <1409545781-20530-1-git-send-email-Li.Xiubo@freescale.com>
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI;
EFV:NLI; SFV:NSPM;
SFS:(6009001)(189002)(199003)(90102001)(81542001)(97736001)(81342001)(229853001)(80022001)(86362001)(64706001)(62966002)(36756003)(77156001)(106466001)(104166001)(81156004)(105606002)(77982001)(47776003)(107046002)(95666004)(46102001)(19580395003)(93916002)(87936001)(74662001)(230783001)(20776003)(102836001)(83072002)(85852003)(92566001)(92726001)(2201001)(83322001)(48376002)(50466002)(99396002)(50986999)(4396001)(76176999)(31966008)(26826002)(88136002)(85306004)(89996001)(74502001)(104016003)(50226001)(6806004)(19580405001)(76482001)(79102001)(44976005)(84676001)(87286001)(21056001)(68736004)(69596002)(1121002)(921003)(83996005)(2101003);
DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB337; H:az84smr01.freescale.net;
FPR:;
MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en;
MIME-Version: 1.0
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:;
X-Forefront-PRVS: 03218BFD9F
Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not
designate 192.88.158.2 as permitted sender)
receiver=protection.outlook.com;
client-ip=192.88.158.2; helo=az84smr01.freescale.net;
Authentication-Results: spf=fail (sender IP is 192.88.158.2)
smtp.mailfrom=Li.Xiubo@freescale.com;
X-OriginatorOrg: freescale.com
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20140831_222155_385988_32A57D1E
X-CRM114-Status: GOOD ( 10.04 )
X-Spam-Score: -1.4 (-)
Cc: Xiubo Li , linux-kernel@vger.kernel.org
X-BeenThere: linux-arm-kernel@lists.infradead.org
X-Mailman-Version: 2.1.18-1
Precedence: list
List-Id:
List-Unsubscribe:
,
List-Archive:
List-Post:
List-Help:
List-Subscribe:
,
Sender: "linux-arm-kernel"
Errors-To:
linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org
X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE,
RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org
X-Virus-Scanned: ClamAV using ClamSMTP
This patch depends on the following simple card patch:
===
ASoC: simple-card: Merge single and muti DAI link code.
This patch merge single DAI link and muti-DAI links code together,
and simply the simple-card driver code.
And also do some other improvement:
Since from the DAI format micro SND_SOC_DAIFMT_CBx_CFx, the 'CBx'
mean Codec's bit clock is as master/slave and the 'CFx' mean Codec's
frame clock is as master/slave.
So these same DAI formats should be informed to CPU and CODE DAIs at
the same time. For the Codec driver will set the bit clock and frame
clock as the DAI formats said, but for the CPU driver, if the the
bit clock or frame clock is as Codec master, so it should be set CPU
DAI device as bit clock or frame clock as slave, and vice versa.
The old code will cause confusion, and we should be clear that the
letter 'C' here mean to Codec.
===
Signed-off-by: Xiubo Li
---
arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
index 18662ae..e689ae3 100644
--- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
+++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
@@ -160,15 +160,19 @@
sound {
compatible = "simple-audio-card";
- simple-audio-card,format = "left_j";
- simple-audio-card,cpu {
- sound-dai = <&sh_fsi2 0>;
- };
- simple-audio-card,codec {
- sound-dai = <&ak4648>;
+
+ simple-audio-card,dai-link {
+ format = "left_j";
bitclock-master;
frame-master;
- system-clock-frequency = <11289600>;
+
+ cpu {
+ sound-dai = <&sh_fsi2 0>;
+ };
+ codec {
+ sound-dai = <&ak4648>;
+ system-clock-frequency = <11289600>;
+ };
};
};
};