From patchwork Mon Aug 8 09:25:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9267431 X-Patchwork-Delegate: geert@linux-m68k.org 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 1649D607D6 for ; Mon, 8 Aug 2016 09:27:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 072B426D17 for ; Mon, 8 Aug 2016 09:27:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F057127F8F; Mon, 8 Aug 2016 09:27:19 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DBBB26D17 for ; Mon, 8 Aug 2016 09:27:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751670AbcHHJ1M (ORCPT ); Mon, 8 Aug 2016 05:27:12 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:10266 "EHLO relmlie4.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751320AbcHHJZ2 (ORCPT ); Mon, 8 Aug 2016 05:25:28 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie4.idc.renesas.com with ESMTP; 08 Aug 2016 18:25:27 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id EF1F2599F6; Mon, 8 Aug 2016 18:25:26 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id E50898002E; Mon, 8 Aug 2016 18:25:26 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id DDCF88002D; Mon, 8 Aug 2016 18:25:26 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac1.idc.renesas.com with ESMTP id UAA14163; Mon, 8 Aug 2016 18:25:26 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="217447870" Received: from mail-pu1apc01lp0022.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.22]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 08 Aug 2016 18:25:25 +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=3kaea2OrHjTSZA2KyyhiXalCBUtvjlG3zfpUIT8PUV0=; b=SCsBRQA+w+8Qu/GPlAuVdmtGf8j3YZqDlIf5FPdh40mFtm5rgUcZGXGdzB0bsUbgJPD8tEohyGiVSjsWi79OFhQtPjPGmnOxlX57z5vNlAgVfCNNRdStPsj6eskOBF1N2rjM38Z+1Ik4hJdOrZV1Amug9hxldW86PbeCHg2L/J0= 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 KL1PR0601MB1446.apcprd06.prod.outlook.com (10.169.69.24) 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:25:22 +0000 Message-ID: <871t1z39hx.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 122/159] ASoC: codec duplicated callback function goes to component on stac9766 User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown CC: Linux-ALSA , Liam Girdwood , Simon , 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:25:22 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TYXPR01CA0008.jpnprd01.prod.outlook.com (10.168.40.18) To KL1PR0601MB1446.apcprd06.prod.outlook.com (10.169.69.24) X-MS-Office365-Filtering-Correlation-Id: 082b6dfc-580e-4520-6e80-08d3bf6deccf X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1446; 2:vUDlZSim67e2GdgqmTQ+rs4r/BFa9oqe8//pxzzFhJNht4CenJ7CSkuwiCifz4KKCR3Dz6sUUF/vQgBTPcYqtrYKhtuQoob8Rui3Xy/B2SMLqDMK0OZlwG82EaaNvUQhSVKS/ycYCvd+umAM4MY9tH+VrCf/1ppLMycdAfoBOnhbnunTepKd/uob9ePqsiU5; 3:wro5wdwPJnOnEsNy/56yCSu0zro/mQy8FzFODtIl1pqlEC38vdvS7yOPznpytOltLTmxuCOrPlGviRr/4tqZK2/kNJSJ7QgABnqqGTEuVnVMzFPUXDKuNl4CJsojXpDv X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:KL1PR0601MB1446; X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1446; 25:v8fTk5Y5LeDt/b9tpKkE4MhKWUivXGuJZKvB5URSS9B0gAViOhFv/ODZ4FzFiMtcO4tXgsZwWQDFP7UEI3Gdz0Ql71VZbGACGT9H0desu2Pmru10ix6sRF5WCK9JQMzH5KpIAz54Shh/5gOAIBqI0eJhYL1Lqix/wLedEizHx8XDA2DQFPLhvG99jPpTHLTlcwXgKRU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AGUnvLQ14jc1l5ZYJzE+kkcP1XGQ4Y5DUh2JuVDHbuuIw32fya0HyW6mAwdvfqe2Hyu0JlLt+To6oEvEVMi/pfd0/c695iBNDWtro2Y9W4D3bK8xmkJp6Jmvrv+UwInphXe9R9kHLwUW1QMAUDsfgtNdcBzDgnQknW6bNoaqaBiC9oMzNgmS5etylfwFEzind0OK37ktOD+tgmJXZSZqPRTwnfU9so96d9uwR; 4:Vr9iSWye8ln8G/CAyIJ6r8b9eyau6SiZ2euwPe4AvDaxwXFti8s5VRcdw83LLjdn5FS9L6dIV5hXJvc1c3aXK5kQuJXSnpU+y/zRwZqvl9O27/dENnU+k6gCcedy9XM+QQHM6VseurK2S5VZLXpmcC1QapmzflEZodLzgZrdR2jXmS78D+9G//ntzLOPt4IqiNYnDLe7dwp+Xo4dQakIoxf9Nq6BzH31cRtKJDwrngf8R4zbJ3osz7vNKsbIgmSekpKtUdHvmcbiDx6rcuL1ZV+Cv4n831FvPvzx8rp6BGBp9Rps9pPiyztUdTYRSwVH3zMVWZd5oKvUTr3p5SCeg9VqIS2+1Gw3SMFREA7qZpOWpGZVwcFjZKFbu+ekJ55+oTuEU61uTmuEjlC1fO1/bg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:KL1PR0601MB1446; BCL:0; PCL:0; RULEID:; SRVR:KL1PR0601MB1446; X-Forefront-PRVS: 00286C0CA6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(42186005)(189998001)(305945005)(19580395003)(50466002)(92566002)(106356001)(586003)(23726003)(77096005)(86362001)(6116002)(46406003)(101416001)(53416004)(36756003)(3846002)(105586002)(4326007)(8676002)(81156014)(97736004)(4001350100001)(33646002)(81166006)(54356999)(76176999)(110136002)(2950100001)(83506001)(50986999)(68736007)(19580405001)(66066001)(2906002)(229853001)(7846002)(7736002)(69596002)(47776003)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:KL1PR0601MB1446; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; KL1PR0601MB1446; 23:6SSjfGgXcdQW3tcBHQTA1bPg2mdqjxhSQ/5vEnI?= =?us-ascii?Q?ekgLiL2JC9JD+4bAcfAXhK8xKF8odbHGiOJCrQoF+2ClWhtDUleQ5XDOi4Ow?= =?us-ascii?Q?Lvbqmfhg+cFgqJeP/aJctA45uFV6wJaD70bmnc+Nzf4NbW9+RrfU6LpIJaeG?= =?us-ascii?Q?4tQyGW3+IVThMsJRM5IltAAIU5S1stnT7HweScvNKhdX7EDZmEi7FZ1YxXYz?= =?us-ascii?Q?HNzh2LBUJ6vniLtgh+0uGYS5m6c/dZTHM6BRumuziYudw/+8fp7M2u3olA6c?= =?us-ascii?Q?Uy1m5iISSjd1FWSwmunxpdeqOSgO64/JMXCsfdBC1HJr4iUapIluZNxF+/BH?= =?us-ascii?Q?l9DQOnfobUnwBPooOR/JlsLlJUiU0Dqqb8g3OiyKyJGwsntc5DxTMysjCS0+?= =?us-ascii?Q?1RFAK+rc6XdfJbkrM9lFMzDG1+sN2TqZeXjP2NF/IWweDRVEkXmhV55rfI5R?= =?us-ascii?Q?rVxk8dLsRA+o3AB8aYvbCDnylTVk0/ZiiBx/zL0FGh+xhsVGdIkumcgLOMrS?= =?us-ascii?Q?QdaoM3AIKaL4vBPUczBqDnmShMlBLq/pL94OhL5RkjVJuiy/jKuErEstQXRy?= =?us-ascii?Q?K+CfISw+718VUU7h9FxZdeGOVhK/hXPCL0u+hPf6hj9eHoR0+LfHExG6O1Ic?= =?us-ascii?Q?NSCTGvfw/kgK0UIaF4y6scQffgPSMmRyScWOChTD2zMEjJlmCK+edr8Mfo6l?= =?us-ascii?Q?O+xezJlJHLy4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a0IFvgUAgFovrKIJtmP4rXUbIVZD42A==; 24:Qy2GC+IqIpKLvT+UDsXieKaw3/6mVjdB0+nrevANFeEegOFUJeTbS2AKdxmgnFtS+Ur7j6n2oDn5P5M0dL09wTxHbVDeTxffSTwH5SyUUHw=; 7:cMkZcAXU4jIe3NFy5+iiDK0KZLFFiD8u+BAgD4tGErspcpBRmOXjlD7HyHn55MOW+U7fj9MOHUWsTzLvzXeW9Xa3pRmARgDmYyKR4FFfivTTxem6QC/Q/YAWlEkH/xk3DN+LNtsPCNIO6QdsUvuoN1hz9rLSimUbm42LkI846D24oHtDCzlbhCgJenMPl9TLfiYYtcrE+rEUlCfWXxdgWDWcdy3rzebGsoP6SkA4LoGr5F9mWVpi9DEX0v2VD2QR SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1446; 20:8zMGVGXaRY6H41iolIK0fcyhBAjo6ykfVFphBqWfbHretJmIXgRIjlGzPjNgpaCZ1fpLrLis2dLzGwMfHz+udxBDuLnnFp3P0FddT5GnT+KW1gcpkOComP3hINDp3DWsY4V/8Gw9W1MMCKPUYCPTyQHY6tTecZMf5uZ93J6KX1Y= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2016 09:25:22.8453 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB1446 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.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/stac9766.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/stac9766.c b/sound/soc/codecs/stac9766.c index 0945c51..2c5941f 100644 --- a/sound/soc/codecs/stac9766.c +++ b/sound/soc/codecs/stac9766.c @@ -320,8 +320,10 @@ static int stac9766_codec_remove(struct snd_soc_codec *codec) } static struct snd_soc_codec_driver soc_codec_dev_stac9766 = { - .controls = stac9766_snd_ac97_controls, - .num_controls = ARRAY_SIZE(stac9766_snd_ac97_controls), + .component_driver = { + .controls = stac9766_snd_ac97_controls, + .num_controls = ARRAY_SIZE(stac9766_snd_ac97_controls), + }, .write = stac9766_ac97_write, .read = stac9766_ac97_read, .set_bias_level = stac9766_set_bias_level,