From patchwork Fri Sep 18 02:07:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7212551 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 95CDC9F32B for ; Fri, 18 Sep 2015 02:07:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA1D92041F for ; Fri, 18 Sep 2015 02:07:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BD3B5203ED for ; Fri, 18 Sep 2015 02:07:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752696AbbIRCHG (ORCPT ); Thu, 17 Sep 2015 22:07:06 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:10529 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752472AbbIRCHE (ORCPT ); Thu, 17 Sep 2015 22:07:04 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie3.idc.renesas.com with ESMTP; 18 Sep 2015 11:07:02 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id CE87342D58; Fri, 18 Sep 2015 11:07:02 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id BB994480A4; Fri, 18 Sep 2015 11:07:02 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id AA07B48014; Fri, 18 Sep 2015 11:07:02 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac4.idc.renesas.com with ESMTP id MAK31934; Fri, 18 Sep 2015 11:07:02 +0900 X-IronPort-AV: E=Sophos;i="5.17,550,1437404400"; d="scan'";a="194700813" Received: from mail-hk2apc01lp0211.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.211]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 18 Sep 2015 11:07:02 +0900 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by SG2PR06MB0602.apcprd06.prod.outlook.com (10.161.10.152) with Microsoft SMTP Server (TLS) id 15.1.268.17; Fri, 18 Sep 2015 02:07:00 +0000 Message-ID: <87si6czdq3.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 14/18 v3] arm64: renesas: salvator-x: Sound DVC support User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") To: Simon CC: Magnus , In-Reply-To: <87d1xg1oc7.wl%kuninori.morimoto.gx@renesas.com> References: <87twqs1osz.wl%kuninori.morimoto.gx@renesas.com> <87d1xg1oc7.wl%kuninori.morimoto.gx@renesas.com> Date: Fri, 18 Sep 2015 02:07:00 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0025.jpnprd01.prod.outlook.com (25.161.131.163) To SG2PR06MB0602.apcprd06.prod.outlook.com (25.161.10.152) X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0602; 2:5k4kv6tGG1qoir1CBDMOmE/HEufqOEA8kdyDP7glZbrRwxQPjzKeFsBUfkqX0hH2KKTtwQoMvZCsZnP0QNYe13NlelNC2mKMgJ2KGenvks8FLQVfOxV76JeB6VIZ2lhmzJ8FVzbY2lYmcT9ZALPPFHZ6PRn+v7rkwgfmeOrLMWQ=;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k/OkYNL3/ZXE3z859DStCvlYK+6X+TO0jyRpewh7tBZ656XIZ8tetClgehySXSpZNZSAWSzoEy08xrPZMp42/cL66U8mh+mO+QFDn101XanuN5fr9JFx8I3d93PSGzMRbZ+rUpC4iU9gqyfSScx/m3lrrnJt/riBF/MWLvRkd6giWxwQOzxmkj/bdT0e6BRdXuXVfR2G709LI35TTPVchkx76/6JMhpBcNFyTG4f4/BCP2KDZ01wRzS928wURdlSOYsAsM+XKYcNc0y6qX2Kzz3QdMWMSXZw7o9mW0GVZHj5I4LZMbaHkli3WqJ6RLFjF9RNEZS9U6FfAUD91znk1a0cj X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(520058)(520078)(8121501046)(520075)(3002001); SRVR:SG2PR06MB0602; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB0602; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(53416004)(68736005)(77156002)(83506001)(92566002)(105586002)(87976001)(64706001)(5004730100002)(81156007)(46102003)(36756003)(2950100001)(101416001)(42186005)(229853001)(66066001)(97736004)(5001830100001)(40100003)(4001540100001)(106356001)(4001350100001)(47776003)(5001860100001)(19580405001)(46406003)(189998001)(5001920100001)(19580395003)(77096005)(110136002)(122386002)(62966003)(50986999)(50466002)(69596002)(5001960100002)(76176999)(86362001)(23726002)(54356999)(33646002)(5007970100001)(21314002); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB0602; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR06MB0602; 23:muIXzUgbhM/WmeI0M3SHEtWaWApWY9COD9K/zrK/x?= =?us-ascii?Q?081da1P4hhavHHgBte/MW3ohPfAKJwZlwOD0iCZA6QsUWB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q?F/dXr+sevi6FljXaXV9NSHqJZwCchESit39jNqPGVeAfyrqs97xZnl5wQLAt?= =?us-ascii?Q?KxFaLJp8WuVv36F5eOtTq4qUUP4ORlaM2ya/Qwp24iTkYAhq4csMhQH4/uQ0?= =?us-ascii?Q?G/GwP1I69UCD5TEyQF5SGiApttAWRvR/Ge8i+kLjWIeIPJnSmtp2LBHJL7dM?= =?us-ascii?Q?Vmdsj03DLjfPhmgU6sFv1w90jG5qgkyiknL6lQ3YQrmkpXpwXgwWFIdCxey8?= =?us-ascii?Q?HVMQlfaiFQHwcRH6TUOOA/iAfivPXKVfUR0wzkWTkaJEPRKivU6TvE6vp+k8?= =?us-ascii?Q?izk0UQ41mcx45fxMsA6GsnqFI+9jbRpJTybQ+HZTlhcbZvUIfntwPDcQxCkP?= =?us-ascii?B?QT09?= X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0602; 5:g4pP2+8NrsXLTHnHP73LxMNeyLHvTkD8Xw/NVYDMQUHRZdyY79RoICNN2nNQyauw/fhwNKpUIUCKgZEYpdsZzK3rBc3EaVHLw/ZXmawpdQ8HkEN6CY5v8bd28ghkxCs83b/FXZYQ4fwh9xfdEwz99Q==; 24:/Ndf6tkCjmmxe6XILl0hctTZqF117iSgt5tRpSzNwOV1V1Qb3MT8Na4dPc3+squvCTa53jH8PvIYabUk13Ne/gzNUkMco8+H+VGg5kdXKYg=; 20:BPRK1iJFZopKM9D+ddYmTpFpnpJuXcIKPgEjCmDAz2aN+UMObtevFOA87dyep4ydH6vs26wK/Kvce8Gn0YiUleYHiR6NcgVAzKAMdD8elvDRN8s1BbxyfRozds5m4R2LGhHbuVeaVDY5dstuUSp7Q/ES3Cw9L7L8nM4cFmpDGyY= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2015 02:07:00.7628 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB0602 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 From: Kuninori Morimoto Signed-off-by: Kuninori Morimoto --- v2 -> v3 - new patch arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 27 ++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts index cc550b3..652e93e 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts @@ -8,6 +8,29 @@ * kind, whether express or implied. */ +/* + * SSI-AK4613 + * + * This command is required when Playback/Capture + * + * amixer set "DVC Out" 100% + * amixer set "DVC In" 100% + * + * You can use Mute + * + * amixer set "DVC Out Mute" on + * amixer set "DVC In Mute" on + * + * You can use Volume Ramp + * + * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps" + * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps" + * amixer set "DVC Out Ramp" on + * aplay xxx.wav & + * amixer set "DVC Out" 80% // Volume Down + * amixer set "DVC Out" 100% // Volume Up + */ + /dts-v1/; #include "r8a7795.dtsi" @@ -219,8 +242,8 @@ rcar_sound,dai { dai0 { - playback = <&ssi0 &src0>; - capture = <&ssi1 &src1>; + playback = <&ssi0 &src0 &dvc0>; + capture = <&ssi1 &src1 &dvc1>; }; }; };