From patchwork Thu Oct 29 23:27:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 7522221 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 EE6589F750 for ; Thu, 29 Oct 2015 23:28:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 21B6E20848 for ; Thu, 29 Oct 2015 23:28:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 33F4120879 for ; Thu, 29 Oct 2015 23:28:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758245AbbJ2X2k (ORCPT ); Thu, 29 Oct 2015 19:28:40 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:45468 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758187AbbJ2X2i (ORCPT ); Thu, 29 Oct 2015 19:28:38 -0400 Received: from penelope.kanocho.kobe.vergenet.net (121-80-213-238f1.hyg1.eonet.ne.jp [121.80.213.238]) by kirsty.vergenet.net (Postfix) with ESMTPSA id 43C4125BE27; Fri, 30 Oct 2015 10:28:23 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1446161303; bh=MDZOsNjnp3ZFNJ1qVV1pEVzxwpPrhjTunv/RTFvB5vA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cfxSOmbIjIjTCNh10HcHc5ixgb3YcC2iBxmR1XKB79uAibbtE1bfTEC2+GVwKJ1rQ Bxh1xNF1kTTdOVQzSO2BXrlsWgHQu8pDyszQnTUu7BOnh5hT/BXoJMFh3vtIhAxvOp 1RPOExoj4lziJeqt0ZMZrbppMlbKoJBEuu+KyqwI= Received: by penelope.kanocho.kobe.vergenet.net (Postfix, from userid 7100) id E3D00614CD; Fri, 30 Oct 2015 08:28:19 +0900 (JST) From: Simon Horman To: linux-sh@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Magnus Damm , Kuninori Morimoto , Simon Horman Subject: [PATCH v5 11/14] arm64: renesas: salvator-x: Sound DVC support Date: Fri, 30 Oct 2015 08:27:57 +0900 Message-Id: <1446161280-23097-12-git-send-email-horms+renesas@verge.net.au> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1446161280-23097-1-git-send-email-horms+renesas@verge.net.au> References: <1446161280-23097-1-git-send-email-horms+renesas@verge.net.au> 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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 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 38546a1e0487..b463fb1317a6 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" @@ -138,8 +161,8 @@ rcar_sound,dai { dai0 { - playback = <&ssi0 &src0>; - capture = <&ssi1 &src1>; + playback = <&ssi0 &src0 &dvc0>; + capture = <&ssi1 &src1 &dvc1>; }; }; };