From patchwork Wed Nov 4 08:42:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7548411 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DAA0BBEEA4 for ; Wed, 4 Nov 2015 08:43:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2080F20532 for ; Wed, 4 Nov 2015 08:43:44 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id E8DFF20527 for ; Wed, 4 Nov 2015 08:43:42 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id D3D9F26545D; Wed, 4 Nov 2015 09:43:41 +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 E034926545F; Wed, 4 Nov 2015 09:43:29 +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 9306226545F; Wed, 4 Nov 2015 09:43:28 +0100 (CET) Received: from relmlie3.idc.renesas.com (relmlor4.renesas.com [210.160.252.174]) by alsa0.perex.cz (Postfix) with ESMTP id DB0832654EC for ; Wed, 4 Nov 2015 09:42:57 +0100 (CET) Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie3.idc.renesas.com with ESMTP; 04 Nov 2015 17:42:56 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 17E5D46DE4; Wed, 4 Nov 2015 17:42:56 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id E5EAA1800A; Wed, 4 Nov 2015 17:42:55 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id C407B18070; Wed, 4 Nov 2015 17:42:55 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac3.idc.renesas.com with ESMTP id TAL12364; Wed, 4 Nov 2015 17:42:55 +0900 X-IronPort-AV: E=Sophos;i="5.20,241,1444662000"; d="scan'";a="197822104" 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; 04 Nov 2015 17:42:54 +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 HKXPR06MB1013.apcprd06.prod.outlook.com (10.161.137.28) with Microsoft SMTP Server (TLS) id 15.1.312.18; Wed, 4 Nov 2015 08:42:53 +0000 Message-ID: <87h9l2w46o.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: <87io5iw47y.wl%kuninori.morimoto.gx@renesas.com> References: <87io5iw47y.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Wed, 4 Nov 2015 08:42:53 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0008.jpnprd01.prod.outlook.com (25.161.225.146) To HKXPR06MB1013.apcprd06.prod.outlook.com (25.161.137.28) X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB1013; 2:i5TlGN1d2GRA17qLCKLljAAWFRqeWGXn4wZZwV7ijsdIpNQssR3jb5I55NcRQEz2auK9xp/wedGad6GwpHhXlASiJCb/RcfdaQDWNyNcqctDWO0CtTnrkuVcsk/cio7pJG9XxWR0qra4gIg7lQD/Inyc6/WZGcsEZtBzFgiN1MM=; 3:8XoehJANKxNCFe8vtuFn/JpDL4A8WpSSc363RJX6BGSbJqdAokq96nLmuRsWLj4CVvVP15dwKiU+lbAS+//FeJH8ALqsnP3yA9LV1fFA1/wUTaKacrGRWH32YKWVg482fqfrPiLGNPlIgAR19JU4PA==; 25:U6Kjzhicp1Jc3iimJ+GicBCND4kQh1fNRJQHN9veyyJN4mwv/k2zYECgd14FjQo+eRnYy1DWP5Qe1t/4wa7aYWsy/iUuv6qmA+xP2Y5zAdv8M6A28CkMQhIppMJO76GWuGHC7lBiR+7h7s/quJUP2+yaFKO7ifvYKUiMtPsO7XRhpgLpPk8I+2/KC9rEv8Zqg3OnJ9XJ84Q+d9GVcLb0dMw2/lJ7JoHXEo8XBAHE+0SSf/8zE2U0yyEd8MOLnKGb72nLej/3vt7EOcDLPJrXgw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HKXPR06MB1013; X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB1013; 20:0ucngHliHHkykQm6RuO11xqWDaPjiGOSISoD6CTtj1vwrqdLr1jpk2JUZ46B7C49KdWgXtLSTlZBjKlm03P0gl9h0z+njvXe64yOP6yWxycgZP3dY0mgUO7r5N5vCnJZ/2uo0YauO6pody3vgWPR0joJnboE18daCNh59A41itLc2CpPuRI1TomaOfdN3Jdl2A0Ymm+B+pzNUKJmk+4e+Dg6toXbgaE2VJcuZsOtIiliQRgU6AhovVhNMmJFaq05awzH/9b5sJcPBd3yl+yhObZ/EfCoMUcBHILjRDR2C1ZIc9z2YPIn4XrfqwHMbSNKMBJKbq/WgQOFfVc1BGEDuj24O+bymtxkAy0NOVM+cWM0599vByktkmbntlVeFADsfVqBsnps8YfLltkWwszrekSzDCFtXnsImQe4NDuOGdBG//3o/xM6tBXhEOS1gf579Y5yzmVyFStshwwARDR+ZfKumRbah3c2m5qOV76I4TX1HKJ4yRvozCTeN68sWJDv; 4:KO0Vzm/Llmbr+myXA0ZjsYNYSgl8Nw4M7unwbmo+P+73GIDUsl2qkmgba011pdSAcPR5AD9puZ+i9KMoltgOGzN28a8UEJavI/xvegLDnnVw3TvscW/rqHwsNpg8Urvwmo8hDJ8WDAI4FE1KkEdeCgSHJoGHwl6BdWAifLlXHN5+RCcCNewYloUwD+NX2C95qdkVtzkdLbjX5BWIxGkBBKUrBXlHOlnXZXxKPECamBaZM8FOhVQrWV2Q5rxTMif9QUT8mYU6YI7oCq1Cs8js2TmMHzjS3h0jr7/VSDAP5ZFVFqtl6b99gRgygcgaEG5vHHARnw5yf5clkJjPGHQtWLy9fXHdNZazIrhJQrXHDlzYIgUvVbf9eOM7z0T2FNGf X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85106069007906); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(10201501046)(3002001); SRVR:HKXPR06MB1013; BCL:0; PCL:0; RULEID:; SRVR:HKXPR06MB1013; X-Forefront-PRVS: 0750463DC9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(92566002)(77096005)(46406003)(189998001)(83506001)(47776003)(5001960100002)(36756003)(229853001)(4001350100001)(97736004)(40100003)(81156007)(2950100001)(110136002)(23726002)(106356001)(50986999)(66066001)(42186005)(122386002)(5007970100001)(5001920100001)(105586002)(33646002)(69596002)(53416004)(54356999)(101416001)(5008740100001)(19580395003)(50466002)(76176999)(87976001)(5004730100002)(86362001)(19580405001); DIR:OUT; SFP:1102; SCL:1; SRVR:HKXPR06MB1013; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HKXPR06MB1013; 23:303qkYCoYvapG63/u5U9ftBOtrldYdl4lfs9fPYUW?= =?us-ascii?Q?scz//D5kxZ6AMrOUI6NRTvsD1dPTfrd5xJkkAYN+uFkWUm/bPyHLd9wzJ5zx?= =?us-ascii?Q?3hx7d9HaW9ck0UjjDxK7NIi9iT6aJDsXMC+pkABVdVm2JixugtJH354raF22?= =?us-ascii?Q?KFjg3pnWLPQJniRjWeZBYL7AYEsJIgelqSa9Zmrh6VTkHBgctssN2dVC0wfs?= =?us-ascii?Q?i0CGDiYuaOAef7p3j8SXVEHCFOHm2Q54NRiv9TCrhc+TDZU0NnrLTcG42Z9L?= =?us-ascii?Q?c6XAZKKRAlDak/tHCeiu0VcqCb7dBh8FNWZpw911pbsrCNapr7LrnKI8w8Us?= =?us-ascii?Q?ysA6lsJVY9tJ0RQbWedgu7AcD3PcaqCNw0p3XQKrJf5U2C16luaTxmm4aQvq?= =?us-ascii?Q?SisSJVL3+WWznxOSXSkbFkYUraPZE5BcFSDXNV3K+QEiC/GUcVzGJD0JaGdi?= =?us-ascii?Q?gMGyPD8tdmnVFKa7dH89Y2NMYOsWVDTK7CGGo39L91RQ9AgIdzO4Ln0RtPzn?= =?us-ascii?Q?7qm6YZY1Uto/3+OAi/pZ6DQMM+N/WykEMaRp07FuHvY8XdGYI5KyDtHiBaHx?= =?us-ascii?Q?u1tp1hw0hiaXkFkzC+Af8CkoW9Lg/DXwVy902o2a8LlV6QqECNjN1kdgadRY?= =?us-ascii?Q?egWyOaQHf227N3PFPifjhAZsl7nwNk2BcA870q2AxPaRr8KR+FPf6RhGF0WU?= =?us-ascii?Q?XLZVgJ2fS8gxdU8yP75mF1kO/qxRm3tEaJPvdoddSC2ky6O19KeDtmJOEk+/?= =?us-ascii?Q?GBiYWhE9WjVJaw4U23Bu/klJ1QWf9XGriORirZYvPCYltP1Fs+XvYkLn8wSZ?= =?us-ascii?Q?T2irBY1sSt5YF8e7RbHdzlTZZm6vplejEWV98oo0+RtEaedHYQdipaduiDPX?= =?us-ascii?Q?gvpxYxGdn08+bsb0XuUtHRLKB88BJtvdq1O80h7LWH31IVuRbNrw2yYZ4waD?= =?us-ascii?Q?0+nhnvXIebHGhNexzDz0UTUbvzd2UVPGNZ9rmxMghp9ZcOaAT1PJ18QZiKXb?= =?us-ascii?Q?nOOg5zO7OXB6LJCryXb6mYJFNuZy9abyRFJ6X902SLpl2mSHgyu5JrYkNQGZ?= =?us-ascii?Q?2CGksER4V0oMsQhGh+Up8lY4zAiTEIcJHWqqIqbK+F/Lt8Bpg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB1013; 5:o8bm0NH1GvKuGe+FJNsp82gQS389HO/3ql1WxcfzxXSWg0uHqIIZUFZVT3BWolkjFD9xfZR6LSIOyqb7RbN2AQHdMrtHGASXPpwqc8TU/6fCKLBwfS69y71pOvOfKeYb8tuXCb3Dr9tDcF5AsnK5RA==; 24:RLLM2qTbqNX8MwpalXFukEJ7ozMU58DExc/xozF3am03tYHnU6d6PJ298oH603hmabz46sOhLWE3MrWtfYclQBph31AYrprS6I8EC+R/woI=; 20:BgxyavBSEjkuql9EVI7O0OGu6lYXWxiclTTAJhbCOenot5Zl1Gh+PKisTYnLTbAVZ+QidWBkvtsN+8kWBW8Ys9XCbao8jYuglmb/1G6mngmh/kvi7TnuZwThWjqbxhrxQ4qEg8nb3azTfHKm0XVbqH3yIa6JWESfvGv8K+uoHsE= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2015 08:42:53.1269 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKXPR06MB1013 Cc: Linux-ALSA , Simon , Liam Girdwood Subject: [alsa-devel] [PATCH 1/4] ASoC: rsnd: call clk_prepare()/clk_enable() for AUDIO_CLKx 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 ADG can output AUDIO_CLKOUTx, and these are generated from AUDIO_CLKx. Thus we need to call clk_prepare()/clk_enable() for AUDIO_CLKx. Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/adg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/sh/rcar/adg.c b/sound/soc/sh/rcar/adg.c index 2a5b3a2..107812d 100644 --- a/sound/soc/sh/rcar/adg.c +++ b/sound/soc/sh/rcar/adg.c @@ -425,8 +425,11 @@ static void rsnd_adg_get_clkin(struct rsnd_priv *priv, adg->clk[i] = IS_ERR(clk) ? NULL : clk; } - for_each_rsnd_clk(clk, adg, i) + for_each_rsnd_clk(clk, adg, i) { + clk_prepare(clk); + clk_enable(clk); dev_dbg(dev, "clk %d : %p : %ld\n", i, clk, clk_get_rate(clk)); + } } static void rsnd_adg_get_clkout(struct rsnd_priv *priv,