From patchwork Mon Nov 30 08:51:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7722421 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 77E4A9F1C2 for ; Mon, 30 Nov 2015 08:56:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 88E9F20641 for ; Mon, 30 Nov 2015 08:56:18 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 617CC20631 for ; Mon, 30 Nov 2015 08:56:17 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7C4F72658D2; Mon, 30 Nov 2015 09:56:16 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 8C621265764; Mon, 30 Nov 2015 09:53:32 +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 6F4CD265326; Mon, 30 Nov 2015 09:53:29 +0100 (CET) Received: from relmlie1.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by alsa0.perex.cz (Postfix) with ESMTP id 98177265326 for ; Mon, 30 Nov 2015 09:51:56 +0100 (CET) Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie1.idc.renesas.com with ESMTP; 30 Nov 2015 17:51:54 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id E603B568FA; Mon, 30 Nov 2015 17:51:54 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id C9E301806F; Mon, 30 Nov 2015 17:51:54 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id C58AF1800A; Mon, 30 Nov 2015 17:51:54 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac3.idc.renesas.com with ESMTP id TAA24917; Mon, 30 Nov 2015 17:51:54 +0900 X-IronPort-AV: E=Sophos;i="5.20,364,1444662000"; d="scan'";a="200771167" Received: from mail-sg2apc01lp0248.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.248]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 30 Nov 2015 17:51:53 +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 HK2PR06MB1011.apcprd06.prod.outlook.com (10.161.187.28) with Microsoft SMTP Server (TLS) id 15.1.331.20; Mon, 30 Nov 2015 08:51:52 +0000 Message-ID: <871tb7ub1p.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown In-Reply-To: <87d1urub7x.wl%kuninori.morimoto.gx@renesas.com> References: <87d1urub7x.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Mon, 30 Nov 2015 08:51:52 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: HKXPR02CA0067.apcprd02.prod.outlook.com (25.161.48.52) To HK2PR06MB1011.apcprd06.prod.outlook.com (25.161.187.28) X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB1011; 2:MAU6vt+S9tOibBEYOmyF22/NtGaEBfr7BD8+oTCRA1wpRO1ZHAjdasWzt8cMqsrRyFPGzPgZyhbv+kMt586PzdZxb2dj5IKNSru+ytju6+9ImeOUDm7TOoFmMszsnUmV62UfUVGDLKiw8nbM+ISNgg==; 3:/KCIDuUFR75u5p2fldDuQ9IBZKLimtJp04VVGIG3BPs4c7VMx7fe2c0sygpYft7/lfJWZxX/e3MihbAfnD85IorOE3gkR49SJTgPoeRtQwSKahbTfjN5a+bElcWgut1B; 25:XzxfF3S986zvvXIAfGR8+QEQrnjqGoyqWu8f6X+f58WX+k7hySxGODx+QV7ymasPbD3hMbU87aTxZRGhha51MQsPycP5BDh7McmU40gDBjMqRE+vEL9pD+TCUgc1VlJ63HyOlZo6U2tjW8xd3jo5e0EwUCUuajtNxcOFZvZV68IbLTRjnmA4Z1uZAdPr6b6lEYoijMwVRwBvHKBIdxrF4iycXiURlZYXI3EOYHKFhrZS1xaJCdgyLpmn1mFFQoTPGhdZzlljYoCctWcLhcPpYQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HK2PR06MB1011; X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB1011; 20:U9r3lNN8aNQP5YSsnu4a08BAD2KavwiPNipe8F9MKsBVWnoL10rIpTNGYWM2kYNRuzMRWM2H7UPIOQpE4e95m2L6nHBFzIMzY8K6TLzFQrEpSWYm4PpVLEojVXJPMAsfh9JL2bDl0/3H8+4wfk4XO5a8kP7RR2/80EHD1w8PYfNVOaTntGVHO3uwy0QdB17V3Dmx+8ZFKFgwHa9GRmMSFRjdOKZXHpoCaC5N3ze62NNt1zimoy0bvPSTMHYDWyoXZZ8ShZcYgU7DFhpqgQp7hVocZn7A3D4glijddPtPwniswQmA7wdJKo2NcRkC5ctE8HESSgzqz+7Gi2V/xGOPBAzXuukKIGnml94fpHKcewOqOsHHewCPUYrb4Mr+gOw3fQ4fK7R3HL1F9PGUMgFPD+k7X/+Gv/9tUu80yvypOJAc3ecVfyhbwyZjBta5kV/qziiKRNXw2siH5w3oNO/zTKpH9RzjFRbn3Dtqs2ZZD3xssGz0lAvo6HF/4IBkgkC6; 4:yptIzduaYTHIbUlrBmEPSstfokVeq+SaetEIG3xSeaq31OdpT5zy93+ZusVe1FNC9Jd09AhC5VLkh3esXGRvE00SW0BVWbN/W7Cnb6iHjfc8MDu/ALCHERgKCQRQEIub0/qd+PYR84j6bkFO22ng80c3flYuCkeqC2GATuKVfv5ZgzLJLi4tFcB2QNZGbWKrObSKYYbGJCAGC1H13+Q69UQgrl5gFrqI/T+SSD8+dDfCMaFnRM2J2O/npYQALvJXcM3q5KGD8mgmmYQZCwrzR/cyGHUWkwP3Jp5k8jrVgyQocil2E1ohVWYyjdMX0kZjGXBS3wQSa+DopOpISXsiV8SVchLBp+UpVgf9wJMgUTjeLTVHBvgzZXhzeR3mXOfbej9FvPPcD8CuQIdkkUGa7sUn0FBiG85Ki4CE+GGzKnRSI4gmllyzG36jVcCm2CH7 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85106069007906); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046); SRVR:HK2PR06MB1011; BCL:0; PCL:0; RULEID:; SRVR:HK2PR06MB1011; X-Forefront-PRVS: 0776C39A48 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(3846002)(110136002)(42186005)(36756003)(97736004)(53416004)(586003)(92566002)(81156007)(1096002)(23726003)(5001960100002)(105586002)(106356001)(189998001)(50986999)(76176999)(47776003)(33646002)(6116002)(101416001)(2950100001)(5004730100002)(50466002)(83506001)(69596002)(46406003)(19580405001)(86362001)(77096005)(122386002)(229853001)(66066001)(40100003)(54356999)(19580395003)(87976001)(4001350100001)(5008740100001); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR06MB1011; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR06MB1011; 23:8VgNyUwB6yvkexRvbIKSPrJTTAtXpjKcwZlBLDtI3?= =?us-ascii?Q?pFxJCeX1qf6l8UbLd6joBaE0leTM/qPlHZAAR7evEEEwOoJcxQSsfMXGKf3u?= =?us-ascii?Q?oDPPK3JusDKhMayus2k0/T/UpuyN1W6hyILxUA+KRbrfqf+EOXjlUfxKRF4a?= =?us-ascii?Q?swZXnKsQ8eu8xZSosip+d/g2JK7xRViLm7PD4PhpuDdpjBlGM7fBIg/u9cKO?= =?us-ascii?Q?KLFniejp4SZIGtYpDOsW7pPu6N8tOoDUvmksvUyprU5llhDCCV6va/lRN/Tz?= =?us-ascii?Q?t346IiCGrwzjIZsL+ySs499oS8NHbTj3a/QEANl41ffOvx/sexOAh9nKZ2xJ?= =?us-ascii?Q?WX6vln+3Q44I/TVgv9yZmXv0i6B7BJ8mhaZ8B31+iPsnsfAr1903cIMYvZjK?= =?us-ascii?Q?7RDdSl/bstU1VYZERoYuJHpNzFpPVp0kMfuNCaUZLVJC9iK7nOHSdEoz/5Nc?= =?us-ascii?Q?8yHrRsVqrXWO8cc6/KGRX0VCsNfFmy0aB/j03tDSEwblX2jD/JyGvr5UK2tv?= =?us-ascii?Q?C01PJe+IfVA96NSE4vGgNiBIMb3rGrdevSF51rRhWl6fhmvXgM3LWcxjNvKO?= =?us-ascii?Q?0PXTOpBkJRvJW2tE3Ksl9g20D8BTvWfXBw39ewrdUYnIg4PYcS50LI6BsG2h?= =?us-ascii?Q?goSmahuSDltHRK5Jn8zfjYIumI1vNsr8YH1Onzuj/UTzQx/g9XNfZanDARs4?= =?us-ascii?Q?S4tJNF4rtaOUCPZWJCL0XlmsYxTpynDUCzh3Y8cHhVEF9zAyY1qV+FUPeih5?= =?us-ascii?Q?etZ8V6En6Q7hBiIKCiF7+k8wgDfcn5j0+R3yJYFm79BaZQmpcdqHPbSZL+1w?= =?us-ascii?Q?I2TwrIhtVTIux4KVQY+QnXxVvSamEjhiA00DEjjyLQ63EpGt7bxBJj37BUBE?= =?us-ascii?Q?BBKfY1PCfxwQGEo5goxTKj/jNMJxxqR38WahcO07Dr2EBHUh9qqyuOxUaRSR?= =?us-ascii?Q?htNtQm3nvPFPIiLELu+x89R9RBbyoIcJYUqj8LX1p2Fsfc4K/vFaSEpa0yWD?= =?us-ascii?Q?52imHGMOS3h8SrYmC/CAJshHMYdkfD89/2TDxTsUxMsIawmRC1osRbcxCSaV?= =?us-ascii?Q?PLu+aA3ve/27delklHWPOCaiDB6P9RR5LuwpB6Jn6R6OCy4Jg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB1011; 5:lII/2F9UASOIfMfi77Ug/RP6k7VEnBo0VRRNvnneZ2gANo9zkYTGAWE75EPaxrBbDJkdPB8KTpx8GOumDL/4f+IVNr0CBf5pdbN9FY4T3+qL0/SHxsrnvyUImJkefwwy; 24:vCFLgGUZnDxtm/pwToorTgu/cKTwz0VNkSz4r+JkN2uIyu7a43OrqynI6bYS1OLgyXysXWqwCF472rPShCt/2ZX/wK3giSDkJjkW6mdk8mI=; 20:OEOUR69Yi2sZuCA66uj9rOITU8WrNUUe4K4uGzavNDCnMiWHIgiryCfBKPbSfgcQ51g4mpQHNsl8wJGTfsj626alLEyU9PFsiz/Ova7hIAGhkexDI6WWTWaJ5a0DZZU6geXU3n/pY4J0R83YUBKBwy3O8Vzqfg2xTa/nCbK+j18= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2015 08:51:52.6474 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB1011 Cc: Linux-ALSA , Simon , Liam Girdwood Subject: [alsa-devel] [PATCH 08/14] ASoC: rsnd: mix: add rsnd_mix_halt() 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 Based on datasheet process Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/mix.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/sh/rcar/mix.c b/sound/soc/sh/rcar/mix.c index b2f22bd..b34957a 100644 --- a/sound/soc/sh/rcar/mix.c +++ b/sound/soc/sh/rcar/mix.c @@ -30,6 +30,12 @@ static void rsnd_mix_activation(struct rsnd_mod *mod) rsnd_mod_write(mod, MIX_SWRSR, 1); } +static void rsnd_mix_halt(struct rsnd_mod *mod) +{ + rsnd_mod_write(mod, MIX_MIXIR, 1); + rsnd_mod_write(mod, MIX_SWRSR, 0); +} + static void rsnd_mix_volume_parameter(struct rsnd_dai_stream *io, struct rsnd_mod *mod) { @@ -96,6 +102,8 @@ static int rsnd_mix_quit(struct rsnd_mod *mod, struct rsnd_dai_stream *io, struct rsnd_priv *priv) { + rsnd_mix_halt(mod); + rsnd_mod_power_off(mod); return 0;