From patchwork Mon Aug 8 08:59:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9267335 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 F0A1B607D6 for ; Mon, 8 Aug 2016 09:21:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E04A327D5D for ; Mon, 8 Aug 2016 09:21:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D518C27DCE; Mon, 8 Aug 2016 09:21:41 +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 19F1F27D5D for ; Mon, 8 Aug 2016 09:21:41 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5D3C7266FA6; Mon, 8 Aug 2016 11:21:39 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id CF1D1266FD4; Mon, 8 Aug 2016 11:08:53 +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 A5F23266A60; Mon, 8 Aug 2016 11:08:52 +0200 (CEST) Received: from relmlie4.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by alsa0.perex.cz (Postfix) with ESMTP id 731D1266FD4 for ; Mon, 8 Aug 2016 10:59:47 +0200 (CEST) Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie4.idc.renesas.com with ESMTP; 08 Aug 2016 17:59:46 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 1BEC445890; Mon, 8 Aug 2016 17:59:46 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id EFF9E8002E; Mon, 8 Aug 2016 17:59:45 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id E92F48002D; Mon, 8 Aug 2016 17:59:45 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac1.idc.renesas.com with ESMTP id TAA03742; Mon, 8 Aug 2016 17:59:45 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="217445595" Received: from mail-sg2apc01lp0247.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.247]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 08 Aug 2016 17:59:44 +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=1jV89Ca5pk8jzlmf1uoaWM0VK6qRbzhJiGptFHfs8sk=; b=Zg3MJhA89t44146OcgiS5gmPbzjgeJAFWa2k4Q5HY1q8GIsdFd+nRUD+x9Ldu77y5Am8wHl2WgWyBZC06Fe7yPhWiC/fvhsDUHWUlHrVCy1iSb6/GvPuSPkg8sOclg4MMW/KnrrbkjhRDkdB2597iB6i3O76Bu+cwyrJkTyFLkY= 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:59:41 +0000 Message-ID: <87d1lj7ie2.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:59:41 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TYXPR01CA0011.jpnprd01.prod.outlook.com (10.168.40.21) To PS1PR0601MB1450.apcprd06.prod.outlook.com (10.165.210.154) X-MS-Office365-Filtering-Correlation-Id: fc79d7ce-cb7d-41de-c2ea-08d3bf6a55e0 X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1450; 2:qXxF0GB8tPhUoRKAzhfIKFba+MLZXHyHvIXehL1d7hoMd8Kj9rHhEDSZYXjmMEdvaHkJLcMrBpqE+zWQT1wlBFJ8dW8ESGeOmKECx+ri893xScepNODa8XthwLZXeQPMfjYOFGK/8DVzUiab7k6OdnfVYgvTQehao9sfKq8lBaG40XnGCp8jN7vMiOpeFKZ8; 3:8KRfjCQiqq8XA3QboXwD8uj3F+vbrYr9XIQrtPuRF8eK5bQCXw/3oT7UJ+xn0EQ5Y8R+sHE6TVCY3sKCTFE1bU6EAq3I4Rskww6ZX8NKc8iepdNy++4VHY7dc17srHpI; 25:xCRbct8uXDFcoTI9BjpAEG1F38PJSkoC58LG98OcdrNRj3I4GN13PWKKEE/djWNd7oXbs2zfp86dc+TutQ2jcrL0d26tWaxlwSfvpFfX58yQgXCTX8OGPzbxffXyp3BButo9yYhRO8Xodvn6CuDxyVxQTYtTHNYXk1MCEB5m2AB+7QyuL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xaSW8fweSFyIAgF63BldfsqAehejuHuhDbJm9ga X-Microsoft-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:uJ8L0sfMtry4noyCurZ5eRP0oOZurdeFQZlUiPllagiqdh/7lvkPak29/b3iPefQ+p6t35OI9oZsWWt3/m41gk9wZXTLSiMqIXPP/I5Uargm8decenvp0VS+9aKjVAkEgPzL/S260L8Diu8isIgDFwFV02Qz2ETfOp9i4WvGQg64DwAaFd+Iq/eONWNzBVKLuC5gA+pP9pfftWMEq9pqhfnrcONQ42N4GVXRCh6+flxr5haj/51CJEoKJCIkc7TNstLOvSKI5T3iwJBp00vcgAQdGIaGN+Jy/S++VN2yjiJHMF6YFdEckae/+/lSVKKPRl3J5g/663oy3SNggr7d6QmIyd2mt1HS3wrGeb8E4fLvTXUkbMKggAzaEK5o8UncjBkG7EK/aUHEgzfhkTuaHA== 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-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OSP+8lL23qVnbAqPd0eO+AhkVwa9xkgNeG0sR+rByZRCfKCORqkskntebZwWz/bz/xpAA9nwW6RKZgpoqRRn9y4LY5W2j0z88HIWUeCEwt/f/bfmmggwPPv8KAaTgAtn2Jj3ueBBqFG2isGxYYc50h6lzyQwdIlVmtnEcPO7Ad58BIRjhrkj+xi/pi37W15Sl1nZfffkcxZyeixO5hZy308NjljSx13fv4oQHijH+Z4EQLBR6J SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1450; 20:7EH3iDVCwEH8IeVL/q1ijDfO6d2dpAX32H4qgyfxx0Dt9lK3gHGUxMsY8aMb3OTJI3nQh8uVzMgCOWj+9KsEKeFT/0WyyKlQkUL1nNtY0snPQFNjhTBWe6C23cZ6mp8s1yplBQk+Ewa8QldafyKqsJPSMU8WdZ30i9UjBIHJEAQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2016 08:59:41.3920 (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 039/159] ASoC: codec duplicated callback function goes to component on pcm3168a 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/pcm3168a.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sound/soc/codecs/pcm3168a.c b/sound/soc/codecs/pcm3168a.c index 992a77e..39bc02d 100644 --- a/sound/soc/codecs/pcm3168a.c +++ b/sound/soc/codecs/pcm3168a.c @@ -599,12 +599,14 @@ EXPORT_SYMBOL_GPL(pcm3168a_regmap); static const struct snd_soc_codec_driver pcm3168a_driver = { .idle_bias_off = true, - .controls = pcm3168a_snd_controls, - .num_controls = ARRAY_SIZE(pcm3168a_snd_controls), - .dapm_widgets = pcm3168a_dapm_widgets, - .num_dapm_widgets = ARRAY_SIZE(pcm3168a_dapm_widgets), - .dapm_routes = pcm3168a_dapm_routes, - .num_dapm_routes = ARRAY_SIZE(pcm3168a_dapm_routes) + .component_driver = { + .controls = pcm3168a_snd_controls, + .num_controls = ARRAY_SIZE(pcm3168a_snd_controls), + .dapm_widgets = pcm3168a_dapm_widgets, + .num_dapm_widgets = ARRAY_SIZE(pcm3168a_dapm_widgets), + .dapm_routes = pcm3168a_dapm_routes, + .num_dapm_routes = ARRAY_SIZE(pcm3168a_dapm_routes) + }, }; int pcm3168a_probe(struct device *dev, struct regmap *regmap)