Message ID | 87fuqm8xur.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 8073aefa60823acf205a1e6a5ea118297179d766 |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> 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 96DD860865 for <patchwork-alsa-devel@patchwork.kernel.org>; Wed, 3 Aug 2016 01:34:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8ACAA27F95 for <patchwork-alsa-devel@patchwork.kernel.org>; Wed, 3 Aug 2016 01:34:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7EB4B281F9; Wed, 3 Aug 2016 01:34:51 +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 721F427F95 for <patchwork-alsa-devel@patchwork.kernel.org>; Wed, 3 Aug 2016 01:34:50 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 07C5C2667D7; Wed, 3 Aug 2016 03:34:49 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E161626661B; Wed, 3 Aug 2016 03:33:34 +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 C33F72665FA; Wed, 3 Aug 2016 03:33:32 +0200 (CEST) Received: from relmlie1.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by alsa0.perex.cz (Postfix) with ESMTP id 47D19266911 for <alsa-devel@alsa-project.org>; Wed, 3 Aug 2016 03:14:26 +0200 (CEST) Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie1.idc.renesas.com with ESMTP; 03 Aug 2016 10:14:24 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id EB29345D84; Wed, 3 Aug 2016 10:14:24 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id E71E98002E; Wed, 3 Aug 2016 10:14:24 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id E18008002D; Wed, 3 Aug 2016 10:14:24 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac1.idc.renesas.com with ESMTP id LAA02798; Wed, 3 Aug 2016 10:14:24 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="216548513" Received: from mail-hk2apc01lp0212.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.212]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 03 Aug 2016 10:14:23 +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=m1PKO6/JSzjouFeljxiRec0LvhpMxH2hiLOlS1nh2Ls=; b=ntAhVLoAsysKJ36PH6vjxn8s9Cypoiq3cSl/f0W48t+YCGGOnzA22WsjiyZ+Tpfwpfprlv3pxP0QrmybIEAHz+zeFar/330a3S61VPMuFtMQtQUyeKZz7SwldIufFzPAFlW5FkZY5QBo/m6jFQYvFzxh1MLAiXFPS7Atoj/uryc= 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 PS1PR0601MB1452.apcprd06.prod.outlook.com (10.165.210.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Wed, 3 Aug 2016 01:14:21 +0000 Message-ID: <87fuqm8xur.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown <broonie@kernel.org> In-Reply-To: <87k2fy8xy5.wl%kuninori.morimoto.gx@renesas.com> References: <87k2fy8xy5.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Wed, 3 Aug 2016 01:14:21 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TYXPR01CA0023.jpnprd01.prod.outlook.com (10.168.40.33) To PS1PR0601MB1452.apcprd06.prod.outlook.com (10.165.210.156) X-MS-Office365-Filtering-Correlation-Id: 33efa280-3293-4f1d-a1cf-08d3bb3b7ff6 X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1452; 2:ODtCmfD01t9X9a9yFfiH1fbQaj3dbuYtp3ZJbtZBfQwufGq7MqGGiW3RoF1JqkwfMxiYg8UTLWjYOHQM5lK0rYjYWfGOO19ZH4QUGWkX5E1/oCP4Ek6DnyeVLL5yazxw7sSuIL1ZEcwrab2GGuLBhreefreEM4f9ySwSha+/KYC0REQxTUBLVCongSkB3J3P; 3:viotZr4EYU0oF90GOrxsTn1JCy0K4yAFade0MU6KJW6vIIsQ63vdieKTQRJ01SGSIU/Q6wLulNlHe+JZPvpflFRuOl5BoYwhIhTxhgprmjlbRLaX5VGBF1t9/vHOX3Cw; 25:lcFuTVCce/6ujGcnT9PGuHpaftNoliDGKPNrYSW/6xd3MSKzbuk/FJTCcj7D1+wkyoo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QPI2S9NKUTM0zyJihAm3enDfqJ54Ikbpox6TKvd+QtXsBYyAwg9iZ4bPDaimUB2Ecskekcqk0ESiYOUWaEUBflbp9vkOLphW3NFBLW7HYuw7s0ca0HIl+exE X-Microsoft-Antispam-PRVS: <PS1PR0601MB1452ED8A74C13488CD260B5ED4060@PS1PR0601MB1452.apcprd06.prod.outlook.com> 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:PS1PR0601MB1452; BCL:0; PCL:0; RULEID:; SRVR:PS1PR0601MB1452; X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1452; 4:61j3xvRgygclXPGPFq3jNkNCK1bh1rmSDeWP+Fx6BvY47SjWNju/p/9h2+ip4G1Edya3/hKH7VnQgQfqMekfESAhgc+YAlU0FiTvBv7M0BHlrmBg74RCC8opwqjVt2lNHQ/ZW+VgyWJftOB2Iv/IrwTNuSLd4FQz2iZvOEOeaj4dVvEKkleGf00Y0blC9drNA+wfaliwotIzsDvad+7J+r3VLFLE8qy1iE1hlLTtED6qQcIMd8WSCwYzD3lLZt9imNpsEWs/NtgDFsdsufosFMYeYcdAabyy1Pcx72191wfQky5br8NGKPY+R9dJIysJpa21NDzSw53fgY6MknA2K8layY9Pkvw1U6J7OQcsyyx/Iw31xcLNL/xz2+K8G8h+nS7wn53TKcaDEgTUIrSOPA== X-Forefront-PRVS: 00235A1EEF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(86362001)(54356999)(6116002)(2950100001)(3846002)(4326007)(76176999)(101416001)(106356001)(53416004)(36756003)(105586002)(23726003)(586003)(77096005)(50986999)(33646002)(19580405001)(19580395003)(69596002)(189998001)(81166006)(8676002)(50466002)(68736007)(97736004)(47776003)(81156014)(83506001)(92566002)(4001350100001)(2906002)(42186005)(110136002)(66066001)(305945005)(229853001)(46406003)(7846002)(7736002)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:PS1PR0601MB1452; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; PS1PR0601MB1452; 23:wL+xIvDGPHeXx3DEIYnxRlQRlrMAzgOdjoYCz5v?= =?us-ascii?Q?RMn3JnnZp22/O/BnvHZZDW4s7bHhCMTXsXihOmp3nw8dICn/pRTu2UVFRvDS?= =?us-ascii?Q?qm2zoGMwWN6Ujt3Z/7Jd853sV7LM3ejMIQP7ryv3KgwREIrMEwfVpuMlABrY?= =?us-ascii?Q?kRUOdMsh4klrB+6wG/9E6wls/8PGuWd0VyGbSYL/xYgybICcKzSmeJ+up5mI?= =?us-ascii?Q?teXDJkGc1/5nGmDGTSVzFRXa+4k46ZSbfjyNyTEwJtAOTEfNcC66OsSPDYlt?= =?us-ascii?Q?qc4vGGKU1HFVhguP4Am+RnUVt29edID4SChd1gQ/fIDC/fohOal4BwMKaYIQ?= =?us-ascii?Q?XG+sXo06GkSVTNg4kDCmkNZLvf/WOghhFEINrpzHr2+Uyk9QxXHLtV5ffaja?= =?us-ascii?Q?jiCZhrOn6tsCGqjkh07P+T+NvRzP2BNXMPsaMB0xL/7I+FtyiYdKW/ZBYG0x?= =?us-ascii?Q?i6evx1AutXtCVOXyq/GeFbR4oDnxjj7OoSFyyk/RySMuHeX/1uC5P9JftsLH?= =?us-ascii?Q?/MrfDcuATeEKC0aa2l+1LLwuOB3tN5SEkeaU/XBNV8pyTnSHTOVQKPXmIB9r?= =?us-ascii?Q?Vlg9vZvFJplOGUqH8dC5MhOsrJJ5lFbToCUHzgdp8si7qVIW9p9KeeeXQPU/?= =?us-ascii?Q?G8+DZHTecq66KwGzZiBziWWyDkGgWcdfz2hCsZLCLYW6NZhivorvNMTI62+9?= =?us-ascii?Q?mElTcl5UdKPWZ06pl52w0PoQ2Iy/ah1w8jbjrV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9N0qDBr1ksQw==; 24:qJE1AklLwvGjY0wU0ienWfqfe/2ZTZoONYFCpKnId+nBtE1gZ0l6ggJ04ga+ac73Sqeb5RhFAxg7R7Rd2txd2/lX/hIGy3tKZnke9k5tqyo=; 7:unp/GMZ+Q6g770gVMzvOsdMxC8eotQEniA1tL/TjK3t09m/VcQ0+kOn2RGSvaJqbIDmKlra76/AuYKq3jSeGneLGGQIwTYK4PuYh5WQUCnpH0dW0AsZ2tU6ip3fDMHMpD8ieYCAxELko5AYNBzqgH5cKwu0Ntzlt7PejzglDWFyKuu061maXyMhY7QUDvL6HYkSfMZ/IJj6mAT2m4mmGnWPAjBXwoRfR5wkssDngsf0FmzuvE1qbq0xCfriYf0w1 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1452; 20:Swt3BDKmRYqakzz2/GEBBO6+oyMErwuoO97HwSMS6XanVSbxsVMNvSn0NpysuJDSS4OE3dtaSpV4yNcZxQIqj8IAY7CAwkAeWSOr8tp/y+tCslKMVNxF8CekSeuw+AwHtGMTIXIqdAleShC9FoxT5rhaBpNCDqGv+a5jg7c9fdE= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2016 01:14:21.0162 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR0601MB1452 Cc: linux-renesas-soc@vger.kernel.org, Linux-ALSA <alsa-devel@alsa-project.org>, Simon <horms@verge.net.au>, Liam Girdwood <lgirdwood@gmail.com> Subject: [alsa-devel] [PATCH 3/xx][sample] ASoC: remove codec duplicated callback function 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" <alsa-devel.alsa-project.org> List-Unsubscribe: <http://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/sound/soc.h b/include/sound/soc.h index 41c21f9..4e36538 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -901,14 +901,6 @@ struct snd_soc_codec_driver { int (*resume)(struct snd_soc_codec *); struct snd_soc_component_driver component_driver; - /* Default control and setup, added after probe() is run */ - const struct snd_kcontrol_new *controls; - int num_controls; - const struct snd_soc_dapm_widget *dapm_widgets; - int num_dapm_widgets; - const struct snd_soc_dapm_route *dapm_routes; - int num_dapm_routes; - /* codec wide operations */ int (*set_sysclk)(struct snd_soc_codec *codec, int clk_id, int source, unsigned int freq, int dir); diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 16369ca..edba975 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -3333,19 +3333,6 @@ int snd_soc_register_codec(struct device *dev, if (ret) goto err_free; - if (codec_drv->controls) { - codec->component.controls = codec_drv->controls; - codec->component.num_controls = codec_drv->num_controls; - } - if (codec_drv->dapm_widgets) { - codec->component.dapm_widgets = codec_drv->dapm_widgets; - codec->component.num_dapm_widgets = codec_drv->num_dapm_widgets; - } - if (codec_drv->dapm_routes) { - codec->component.dapm_routes = codec_drv->dapm_routes; - codec->component.num_dapm_routes = codec_drv->num_dapm_routes; - } - if (codec_drv->probe) codec->component.probe = snd_soc_codec_drv_probe; if (codec_drv->remove)
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 removes codec side duplicated callback function. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- include/sound/soc.h | 8 -------- sound/soc/soc-core.c | 13 ------------- 2 files changed, 21 deletions(-)