From patchwork Mon Aug 8 09:05:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9267537 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 24E3F6075A for ; Mon, 8 Aug 2016 09:37:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 126B326490 for ; Mon, 8 Aug 2016 09:37:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 061602793D; Mon, 8 Aug 2016 09:37:57 +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 35E8926490 for ; Mon, 8 Aug 2016 09:37:56 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 724DD266D74; Mon, 8 Aug 2016 11:37:55 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id B2226267334; Mon, 8 Aug 2016 11:16:20 +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 A002A26732B; Mon, 8 Aug 2016 11:16:17 +0200 (CEST) Received: from relmlie4.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by alsa0.perex.cz (Postfix) with ESMTP id CCC23266E80 for ; Mon, 8 Aug 2016 11:05:05 +0200 (CEST) Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie4.idc.renesas.com with ESMTP; 08 Aug 2016 18:05:04 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 69DD9509CD; Mon, 8 Aug 2016 18:05:04 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 6C6052806E; Mon, 8 Aug 2016 18:05:04 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 66E1A2806D; Mon, 8 Aug 2016 18:05:04 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id UAJ10170; Mon, 8 Aug 2016 18:05:04 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="216936220" Received: from mail-sg2apc01lp0247.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.247]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 08 Aug 2016 18:05:03 +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=7pZw21TFcAiFRF1FxL2cyRhk7mTA05yInkaTYDgV5/g=; b=FU18rNdlxMxaDbia7gqFVEhytTHYrUtJ0vq4n4PpBc+GOnCTjGYKak/buIUoDTmKSh0WEYFFlEERhuw0lzFi5Dc3IDfvfnBYp6z23Co2i/1ewsWHjQa7aI4WnYSyf1GAo73fViel8QhQOS0ACRG9ShxegmRFa35YzBQOKRvIktk= 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 HK2PR0601MB1444.apcprd06.prod.outlook.com (10.165.182.150) 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 09:05:00 +0000 Message-ID: <87oa5363kq.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 09:05:00 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: KAWPR01CA0002.jpnprd01.prod.outlook.com (10.161.24.12) To HK2PR0601MB1444.apcprd06.prod.outlook.com (10.165.182.150) X-MS-Office365-Filtering-Correlation-Id: b204f56f-7e40-4dcf-bc1c-08d3bf6b142d X-Microsoft-Exchange-Diagnostics: 1; HK2PR0601MB1444; 2:dbWjdQm4rvXeX8unZFO6ZLkZduBZOvKuSUaSXUDfAoZnDhw/p05CvGJIUMq18R+OnJYjtfoiXeCZU/CJEbFLcuYQZJDCJl/5wMT4E4xyLk61qg0/CViw1d1/S/ECCLGD32YRFlIyMNj7KarAOuSEwLd2tK3h+VwaEJS8EsIdkDDzimtzXUrltqo/0lP5H6uf; 3:l4Gsrxs2xJBMQhcLiF9oCId0naYNsQwVOV0NZ3263Qx8hgDZsrs6Bl75YtPOwXWF4kOcrYVpSC9EpMcx8rE/CmChjI5l5chiBPNbD3PDxLg63qTNisXckYaYFARcvceO; 25://JgBMp/dmupCBoLBH5Kbtsa2o6tt/o61xrugG7Cf7a8XQEMwfASq16MDL4tpZJp5eWeXg5Fsg8rIudOVT05/TsgXEzDC7txEMv5vDnOK8lmpv28MhGnPJfQcVW3cRFkWl86zESzz5IWXqiaZT5jPln/4nIbzgaO50y+J+JiylFkmR9kyshoQ1+dD+vLm7XpomxqVgoJVhxUay75xEj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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)(10201501046)(3002001)(6055026); SRVR:HK2PR0601MB1444; BCL:0; PCL:0; RULEID:; SRVR:HK2PR0601MB1444; X-Microsoft-Exchange-Diagnostics: 1; HK2PR0601MB1444; 4:CqUBCie1F9wBI/YQUEHeCp4ezunadMHTsRlEZE2iGIuk+LT4AIZEOQYK7bL/rRZcywfa4Q9pS0HpysDGqKMWzbqtOoBNi5rz6OfWxH993udhVVlND9ocnw++9YUm1z1lN4xlaVXaTyUoKkMJKEG0t1AQQ9oDawGbc/lAREvoK55Ma2k4SXanHe3WS93x107PMf6BlZqI/Su2HGL09Toh6yyaYATm7vcBMgA9hz4hhf4bfWurTGFSUXsZp/Xo5M577cq4We7MkscrqH5uQlpJ4cMcSU5/GDvyw9mgU4WDU4VwmOfcfLLSejvBJuByCghI8qLs0dbMxyFZc2B+rCOYfwHnut2vw29gFgf3uImNBOf0Ke5bWH1w2L3vfLqjMT5ypvWoNjebiLC39BSQcsrhxQ== X-Forefront-PRVS: 00286C0CA6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(46406003)(68736007)(53416004)(81156014)(586003)(106356001)(229853001)(36756003)(110136002)(23726003)(81166006)(305945005)(77096005)(97736004)(4001350100001)(2950100001)(7736002)(50466002)(6116002)(66066001)(33646002)(7846002)(47776003)(2906002)(92566002)(54356999)(4326007)(19580395003)(19580405001)(83506001)(42186005)(50986999)(105586002)(69596002)(76176999)(3846002)(189998001)(8676002)(86362001)(101416001)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR0601MB1444; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR0601MB1444; 23:+4EfkWNB2YOTju/KS6TtnDDzPHYav+BtkSH/7O5?= =?us-ascii?Q?OoYulDKFIAovujAQksHLodbNY2KDUeX8FsIQUL5wGH9ONQBIcb6yf50ThoWJ?= =?us-ascii?Q?66XP/G9X923ciwltko/mvkYa1QhtkxgiT9oH+OBOpcgM/BGwa3O5FUvii9Tg?= =?us-ascii?Q?KgxYzyYK1NQFGQJ0D+VuDi0HFAeRNvGijzIO7XeIc+bzwNjk89JiunCkzotr?= =?us-ascii?Q?LgP2iM2QJ6YrlnmiwQcYs2qLdCvhj5L1e3ehhB76X+UkjjFCmkF3IyqeClqN?= =?us-ascii?Q?uuHtifek8onTFsMXQuZ70S6RUodBG026efJh3QI/cIGK9sJMFi6u+kqB20YI?= =?us-ascii?Q?vrP091s2GmqQyNbxb+BMQ1/DuoF1G+aFppM873iTVJbXgWo123/XHXBPLZpp?= =?us-ascii?Q?a4kybrY+kkG9EUMpWc9zQFJ/2wfYc3WtLE61h0YwZ3MWGXVRy90+YNkxotu5?= =?us-ascii?Q?tTMeYLDh4cOWouNVuh07kNiigcRyglqMyGUYaPp9eoplK9QPRlg/brZoqq6p?= =?us-ascii?Q?FTW0Vj2P3APd2S//veNoeccQRuJaaVqTvvLYDw+60cmjA26GUL5+W/zy4UGU?= =?us-ascii?Q?oVz5tKPVJVx3svna/PM9z0HhhWAPTkcopjnZ2evek0VacOcfob7rtrzxFQXF?= =?us-ascii?Q?Qvx96p1cpoLqZuktsk2p4XcGPvGOE2LK8JVbSkbJCPltmXJRzHctSdl6LHpT?= =?us-ascii?Q?LqEUOOCBbo5jhrCU1MCq0cgvLXNeuh5cDNGejE6n/aEVyzpp1hWpVjepahiw?= =?us-ascii?Q?8ZImm/+Wz/dRiiAUmrrPd6r6DPk+e1f5Duc/cc6h5b1OlPJBUTObJlyF3Gok?= =?us-ascii?Q?wcocuZ3OkOfno1IulkJGuSbxI7r4zvqPQkrlAXMrlM1ePRnBb78wnNG1wZ27?= =?us-ascii?Q?tkxl5iw2cN70y3pcOpF7nM1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K35uRoBpnvlZPORV5y4fQCslpye+vbBCsGJZUcSFpxj6BNqSvgDTZFv6TntiuB4rr69JPhqRaNKeFpel5jnEWAzroirEk8k58Ei6znkSZ9Waq6TYrAC9gT3oldcoJ69ZhBVkNMZBhHMoFsykr8nwyXOp2ShM0c418vNRs7Y1SEnfXzR5mal8nN SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HK2PR0601MB1444; 20:DU0htW98isjswVi0e4htQg1pQi1lIERaPjJ+/fDZ9B4ihL129N4lCXRODfsnjWFhRja0rbALJc36RS43jRDDEGxMgxzbDWXaSKzpUHjaXLH9UZ4y2crJ39xzBrRNpulW0R/GSzCXcdFRBaBxS5iXTC5/Z4HEzup8tpTdirYo9Gs= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2016 09:05:00.6186 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR0601MB1444 Cc: linux-renesas-soc@vger.kernel.org, Linux-ALSA , Simon , Liam Girdwood Subject: [alsa-devel] [PATCH 056/159] ASoC: codec duplicated callback function goes to component on cs35l33 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/cs35l33.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/sound/soc/codecs/cs35l33.c b/sound/soc/codecs/cs35l33.c index 6f9c1ad..6df29fa 100644 --- a/sound/soc/codecs/cs35l33.c +++ b/sound/soc/codecs/cs35l33.c @@ -837,13 +837,14 @@ static struct snd_soc_codec_driver soc_codec_dev_cs35l33 = { .set_bias_level = cs35l33_set_bias_level, .set_sysclk = cs35l33_codec_set_sysclk, - .dapm_widgets = cs35l33_dapm_widgets, - .num_dapm_widgets = ARRAY_SIZE(cs35l33_dapm_widgets), - .dapm_routes = cs35l33_audio_map, - .num_dapm_routes = ARRAY_SIZE(cs35l33_audio_map), - .controls = cs35l33_snd_controls, - .num_controls = ARRAY_SIZE(cs35l33_snd_controls), - + .component_driver = { + .controls = cs35l33_snd_controls, + .num_controls = ARRAY_SIZE(cs35l33_snd_controls), + .dapm_widgets = cs35l33_dapm_widgets, + .num_dapm_widgets = ARRAY_SIZE(cs35l33_dapm_widgets), + .dapm_routes = cs35l33_audio_map, + .num_dapm_routes = ARRAY_SIZE(cs35l33_audio_map), + }, .idle_bias_off = true, };