From patchwork Wed Nov 25 06:39:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7695601 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 1053F9F1D3 for ; Wed, 25 Nov 2015 06:39:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3B9D8208AB for ; Wed, 25 Nov 2015 06:39:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 570FA208AA for ; Wed, 25 Nov 2015 06:39:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932107AbbKYGjS (ORCPT ); Wed, 25 Nov 2015 01:39:18 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:12104 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932103AbbKYGjR (ORCPT ); Wed, 25 Nov 2015 01:39:17 -0500 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie1.idc.renesas.com with ESMTP; 25 Nov 2015 15:39:15 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 0B9E449667; Wed, 25 Nov 2015 15:39:16 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id EBBDC2806D; Wed, 25 Nov 2015 15:39:15 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id E41212806F; Wed, 25 Nov 2015 15:39:15 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id RAH28072; Wed, 25 Nov 2015 15:39:15 +0900 X-IronPort-AV: E=Sophos;i="5.20,341,1444662000"; d="scan'";a="199264144" Received: from mail-sg2apc01lp0243.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.243]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 25 Nov 2015 15:39:15 +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 SG2PR06MB1018.apcprd06.prod.outlook.com (10.161.9.26) with Microsoft SMTP Server (TLS) id 15.1.331.20; Wed, 25 Nov 2015 06:39:13 +0000 Message-ID: <87oaei7flt.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 10/12] arm64: renesas: salvator-x: Sound DVC support User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Simon CC: Magnus , , In-Reply-To: <8737vu8ucv.wl%kuninori.morimoto.gx@renesas.com> References: <8737vu8ucv.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Wed, 25 Nov 2015 06:39:13 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0003.jpnprd01.prod.outlook.com (25.161.131.141) To SG2PR06MB1018.apcprd06.prod.outlook.com (25.161.9.26) X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1018; 2:maMxeVHJCp/eQr3SDC5L4AlN09X8/vsySWp/TqfKe48KVKtkVklDLqD8sntoPo34G6klh0Tcj439oZH4B8vXFVbF9MMlRI13FwndW/cdUejdYPGWpZvwrJ3ON/cTOsFEQDil8RZgGok4657gIt5A2w==; 3:SN6SKvjbW6JqAMLVfVL/9N8jcIGZdO/kTzauCiHEV1dGfv6EbnMouGKjH+NXpqJTlH3I0r8oivqZRBoV6m5nCvR4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M1Zr1Ej86GeMv+zrHDrpVlm31VLLSxOKDBMxNis4SkOg8iSrwhp4m+ztzBR/wUd/vm58h5GYXk+aOB7UxfdtQuiLFgyg9It8C9zlcU9XgZ3qAYdm64I+P5xGcxcdGt+Jd+ZbBKNzyVNYLa83VxTVXxihYYY5nGT/h8vV7mYJdl7UOx+0hrewmj4A5k/Id/gxbItlBVZ9OoUUEhrZDyANqRneqQaFBBn6rAUBntDJxATrAalkmBRGG/do+gdQ4EA1Mv6v8YQVMYIfgV 31U1d6USuIk/3/TGkclfXs6sWa X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85106069007906); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046); SRVR:SG2PR06MB1018; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB1018; X-Forefront-PRVS: 0771670921 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(36756003)(3846002)(106356001)(5004730100002)(47776003)(5007970100001)(53416004)(19580395003)(6116002)(46406003)(76176999)(5008740100001)(54356999)(92566002)(229853001)(87976001)(66066001)(77096005)(2950100001)(101416001)(42186005)(122386002)(5001960100002)(40100003)(69596002)(586003)(5001920100001)(19580405001)(105586002)(33646002)(50466002)(83506001)(189998001)(50986999)(110136002)(97736004)(86362001)(23726003)(81156007)(4001350100001)(21314002); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB1018; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR06MB1018; 23:jkeNNbTKibULNP/rnL+t1HBLy6Tql+gArMs4eNdbi?= =?us-ascii?Q?YJoz+hJwv0KgCsa12ujfpnLJ2jZhP+F4L26BkTOY5TdnokYdH+jol+J40dHT?= =?us-ascii?Q?bciOy2cgDpwA2ZDpXFwjbSU95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q?6V3E4JHKfthlO7QZabnIsRxvPjUGCIWleba37CPLaI70I9FxaVINl1YZWM0k?= =?us-ascii?Q?i8oXkl9aEQsTWmARXaabgHI89+B7fPl+Ch4FkyijI1AIjuLyy20HJzFwt5/T?= =?us-ascii?Q?kV4x8ozHzMMs6tnUFgSM3dzAyjMGR+X1K4MQM4DTSWzkbZlVqGPMOCs6PEdQ?= =?us-ascii?Q?5chUNDf5wUkMXY=3D?= X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1018; 5:BPTy4bBl8GpNalhWqwHcU8TginaQlrlc/72ExsevkRMQAmlBPTHmeDrif2x1AclVRROq2bgWOhX+j3RfQ/f/Sz8+7ApEqm9A8UVHY90Y/AGBDGgtKa5MoQ4zSgL+4ahsPRxwFqlHaq9QKcwouBCrlQ==; 24:BMf27Hon4SvwkBRaO2lnziDe6m6raA0JnmNh4KvYXg3d1/do0ARqY98KJ4/fhepDo6/gSHx9VCm2NjwhVtkZMDqWr1IJvZ35CXPzoJ3s85g=; 20:VqdXiaRDBFx5QyuYhzTCw0NvE1HvLcZ9gnNJGVQbU+JhihCmUhrwDbhzm1lNL/FY+r8wsujuJvpJWrJnuuCHzHTzL5GwBHqTTJv6Z5W30cNUJwWJs5+3Uxr9Xfds5HmjJkQR8mAL8fDfsh6Myr3I9VSHQATmFl6MtL74QBSqcF0= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2015 06:39:13.8798 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB1018 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Signed-off-by: Simon Horman --- 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 47bf252..c5f709e 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" @@ -136,8 +159,8 @@ rcar_sound,dai { dai0 { - playback = <&ssi0 &src0>; - capture = <&ssi1 &src1>; + playback = <&ssi0 &src0 &dvc0>; + capture = <&ssi1 &src1 &dvc1>; }; }; };