From patchwork Mon Aug 8 08:57:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9267263 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9101260754 for ; Mon, 8 Aug 2016 09:16:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80CFD212D9 for ; Mon, 8 Aug 2016 09:16:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75A2827D64; Mon, 8 Aug 2016 09:16:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1608212D9 for ; Mon, 8 Aug 2016 09:16:14 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id D903C26732A; Mon, 8 Aug 2016 11:16:13 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E8B93266D74; Mon, 8 Aug 2016 11:05:21 +0200 (CEST) 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 4647E266D71; Mon, 8 Aug 2016 11:05:20 +0200 (CEST) Received: from relmlie2.idc.renesas.com (relmlor3.renesas.com [210.160.252.173]) by alsa0.perex.cz (Postfix) with ESMTP id 7B49B266EB5 for ; Mon, 8 Aug 2016 10:57:24 +0200 (CEST) Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie2.idc.renesas.com with ESMTP; 08 Aug 2016 17:57:22 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id E40E250963; Mon, 8 Aug 2016 17:57:22 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id C25138002E; Mon, 8 Aug 2016 17:57:22 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id BD5578002D; Mon, 8 Aug 2016 17:57:22 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac1.idc.renesas.com with ESMTP id TAF02968; Mon, 8 Aug 2016 17:57:22 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="216935386" Received: from mail-sg2apc01lp0248.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.248]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 08 Aug 2016 17:57:21 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=U8Lpy33/rT7icp0X2SmYQcXPVqsruib046CH9oOyKLo=; b=WltBfAUlantPRAYG0CuGipUamGFqz7O4Bxs1MZQ3UAgQKrZLZQeXaVMB6Vo1zNkvv1qJincflKaqkAyKAia5yNuAsrdMVg5rdROJzqGh6ThaAQk1GFDANCiPlfHhfqpWNi3gsz9HUaE2Noncl7Bl902f2tJ4e2Gxv0VSYSsLS6Y= 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 PS1PR0601MB1450.apcprd06.prod.outlook.com (10.165.210.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Mon, 8 Aug 2016 08:57:18 +0000 Message-ID: <87oa537ii1.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: <87wpjr8xld.wl%kuninori.morimoto.gx@renesas.com> References: <87wpjr8xld.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Mon, 8 Aug 2016 08:57:18 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0036.jpnprd01.prod.outlook.com (10.164.162.18) To PS1PR0601MB1450.apcprd06.prod.outlook.com (10.165.210.154) X-MS-Office365-Filtering-Correlation-Id: d64b87f0-1ca4-48ad-cca7-08d3bf6a0097 X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1450; 2:X6OvySWxNDURaZQlu6tUZYh3wPUw45RggEdLfr2TjRQKBVsVXEV8O6iXxGb688MuzRv1M3h69xhQRiqt4TGbSfynRskjx9lquVk7JkSIcTxMC8jxSTE4a7NmQMVpC946RvXm969qAGcds9abL0UFAuBqL3cB4phDggtb6B5pjTjVzYe11yncYu4b5AxDs4ut; 3:3FNojOOSkGm9xSgnMvOdsSjTyVzDpya+BPopXKP0dPENDNmhjPi7itjhyrPeRma5da+Cpcyb9zpGWqfULwc3jFOm0xgTsIFgfPK3j6Z4pKxlcoW0Kha6lKy6Vueysvjd; 25:1J5Iz47rZhyQ4fA/vHtZTYkaGuJ2QUXUrVqEepkXMHiwa3gUjYNjNpu/gYUKmwVlFmemiN8Cl7eMVdjU8zNofxhLChX0tsXVMXTvN/SDL9Hs86uCvEkTwnEIG8z5d4sIuBeOHdDUJM5GcICxu+Jhgaxn5Wg5NT+pPoHsfFlGex6ePcuaUC2VZiXheKoxslxsfoP8R6TzFqcsDA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Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:PS1PR0601MB1450; BCL:0; PCL:0; RULEID:; SRVR:PS1PR0601MB1450; X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1450; 4:X2HtRj3n0Afk7ai+IvcY3KWRQuixITvL//r5RAa16Zau1/L8I2H1WSQ0uITGJOF4nBlqMEza5RurbvSdHshW+ugFH/LPNn3lSQNn0ns6iP+kWXew1+f1ZxhVSvuHjlUCxfcLLVfmUj8wj/AMBVnpcac74PIipdhHZJitsNev0PTJRHwXJkIdhpAs0sO5QVd93vngOqkTpilzcsZbGdU4W63pDucTxhXD91wW+yv5HndMG71QQNZ3SrTTCHypVbANhxaCe47zrhx7i+XQ2JZQN71MOQFxirZBJrOj7biibhLLV4Kx9NtyNrKJxaIRnCOoLPXtmODXMDlQWyxbUT//RoMM/TzMiEFPwmSY8br2zEw/mb14wHlWZZ4ubK6xrfPiMSkvsJ851xh+x+zvEBnKQQ== X-Forefront-PRVS: 00286C0CA6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(2950100001)(50466002)(4326007)(189998001)(4001350100001)(305945005)(23726003)(97736004)(7736002)(7846002)(3846002)(6116002)(8676002)(110136002)(105586002)(36756003)(586003)(68736007)(77096005)(229853001)(92566002)(66066001)(81156014)(53416004)(86362001)(19580405001)(19580395003)(46406003)(50986999)(106356001)(69596002)(47776003)(2906002)(83506001)(101416001)(42186005)(54356999)(33646002)(81166006)(76176999)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:PS1PR0601MB1450; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; PS1PR0601MB1450; 23:rtq3cGnbHqcIJdoP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PuMZ4yQ8hsuGvORsIX61+rq8Dm03CUCfto3vE1+7O1YLpSVLgAfXRveFDdeiemOcslqrQaElAjKe3TqKXVQpcQiDsEKDCjCvdftQuQg/a8AQF3k9rBVd2ONjDTlSWTQRQx5BOgaHyMt07YENEEc78hetETaEVi9+b6Y3jZQuKm7tPVr7eIOELUsJHg9LYpXyY SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1450; 20:Z6MaT8vsvJjOkbyxME4bFQjLSKL5KAnqW1Il9/crGNg5S2xHpUWE1XlOEcaBAHM86WzVaYe/0OTQ+TRSGoohpvkkbEXTtKbAHj1J/ehdetBN8GyV47KjrzIhEUpveLXBUetf01MEuE7i3QD06Ve/goZFBKtscfc6A+mTj/weSYA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2016 08:57:18.2165 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR0601MB1450 Cc: linux-renesas-soc@vger.kernel.org, Linux-ALSA , Simon , Liam Girdwood Subject: [alsa-devel] [PATCH 031/159] ASoC: codec duplicated callback function goes to component on ssm4567 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 codec driver and component driver has duplicated callback functions, and codec side functions are just copied to component side when register timing. This was quick-hack, but no longer needed. This patch moves these functions from codec driver to component driver. Signed-off-by: Kuninori Morimoto --- sound/soc/codecs/ssm4567.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sound/soc/codecs/ssm4567.c b/sound/soc/codecs/ssm4567.c index 080c78e..2bb5a11 100644 --- a/sound/soc/codecs/ssm4567.c +++ b/sound/soc/codecs/ssm4567.c @@ -421,12 +421,14 @@ static struct snd_soc_codec_driver ssm4567_codec_driver = { .set_bias_level = ssm4567_set_bias_level, .idle_bias_off = true, - .controls = ssm4567_snd_controls, - .num_controls = ARRAY_SIZE(ssm4567_snd_controls), - .dapm_widgets = ssm4567_dapm_widgets, - .num_dapm_widgets = ARRAY_SIZE(ssm4567_dapm_widgets), - .dapm_routes = ssm4567_routes, - .num_dapm_routes = ARRAY_SIZE(ssm4567_routes), + .component_driver = { + .controls = ssm4567_snd_controls, + .num_controls = ARRAY_SIZE(ssm4567_snd_controls), + .dapm_widgets = ssm4567_dapm_widgets, + .num_dapm_widgets = ARRAY_SIZE(ssm4567_dapm_widgets), + .dapm_routes = ssm4567_routes, + .num_dapm_routes = ARRAY_SIZE(ssm4567_routes), + }, }; static const struct regmap_config ssm4567_regmap_config = {