From patchwork Tue Jul 25 04:21:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9861141 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 9633B6038C for ; Tue, 25 Jul 2017 04:22:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8476A285D1 for ; Tue, 25 Jul 2017 04:22:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 78C2E285F9; Tue, 25 Jul 2017 04:22:07 +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 865B3285D1 for ; Tue, 25 Jul 2017 04:22:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751089AbdGYEWF (ORCPT ); Tue, 25 Jul 2017 00:22:05 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:38990 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750950AbdGYEWE (ORCPT ); Tue, 25 Jul 2017 00:22:04 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie3.idc.renesas.com with ESMTP; 25 Jul 2017 13:22:00 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 7A744472AD; Tue, 25 Jul 2017 13:22:00 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.40,409,1496070000"; d="scan'208";a="252220077" Received: from mail-hk2apc01lp0208.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.208]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 25 Jul 2017 13:21:59 +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=4DZJTnZHRKq9UitNdqCgF2zSou62Hy54SzaylilLbYA=; b=RSuKiL//Z8CNpJB5ain0ktS9KkgOAM3d2iiFEuOgdSmcnEp2/u2jN31etkLjmpjOvrb2hm/63GMI2IbPfkK5E+yVT0Zq2JhTYrcR1JiuR+UBAVRkajIKff9C5C4HmBXk9fsT7uMjuf5NUZpFEqUkvudCaoKPt+MSJXskqN9vFDA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.138) by HK2PR0601MB1875.apcprd06.prod.outlook.com (2603:1096:202:a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1282.10; Tue, 25 Jul 2017 04:21:58 +0000 Message-ID: <87o9s95ez8.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [RFC 6/x] ASoC: replace platform to component on atom hifi2 User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") To: Mark Brown CC: Linux-ALSA , Simon , In-Reply-To: <87wp6x5f2s.wl%kuninori.morimoto.gx@renesas.com> References: <87a83t6ulz.wl%kuninori.morimoto.gx@renesas.com> <87wp6x5f2s.wl%kuninori.morimoto.gx@renesas.com> Date: Tue, 25 Jul 2017 04:21:58 +0000 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: HK2PR04CA0052.apcprd04.prod.outlook.com (2603:1096:202:14::20) To HK2PR0601MB1875.apcprd06.prod.outlook.com (2603:1096:202:a::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f99c6e49-a37f-408a-cf7b-08d4d314b0c6 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:HK2PR0601MB1875; X-Microsoft-Exchange-Diagnostics: 1; HK2PR0601MB1875; 3:3u+bEA+Hedbkj3i5CdTsLWeowut9on3srsLGmW65CplxTQxG4tNMZs5GXVUs+xHIlo0KzCJGCS0y83GT+sLAFcGXP8y0XAu5OuWlUNEZMzMlwVyXNnOCzP3I8YyUlr9X7yweIyx90RF++qFmZ5EbmmU84pHoXHZh2v8iky0yUCKN2KZup2wItABvmMELtmORdormKFvZvDy475tm3VP/2EeMTOLv8QK/n28fH8h0h/noURt5XxEia2PWQf2zn5DIpKymdQOEqNijHToLddiu9iF5oePFSQnshZ72JmIeTcsoTLQY5J61dqlhPX7K3mDGJFKYTpqouVPHQKJ8wTM4NXw8JU8Wq1jiVj1ETpT1dyneGt/OXKIKskf0Wx2110ZnV/gBtdwLGmgxVwty6l+BFIvo/ULKMKscAGSGVlieANf46H4QJbsftQTasarbZJaVDNQ3FhiDwdqj/AuM63vODuXPd7HUq9JhmpQyg/mHcvB0NkfCEGwBgkTsa16RK1Lz+OkCEqllhLsNZXf8s4CeCQWOp6sQceVmaftm9KIuctDrcvsiGfVeESv4L2sCIDDR5HoZxZkJntJdT9ZOtKYTtA1YiaX6d8OYeKQhcqOLt7kVlPth2f9APdAHcI8RAVRVzbl/ELDk1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fe2NAI424P1w4m2zswW6lTv3W1+W37+LbTjGikfR+kCUqN7e3MqMymmskWY+4yk6TvsVzOU0N0TOa79AbGTCIggfMGMarQ9GQd8LyhV/68aFAleqZCEKWvAjF8pmRO0ZpbZ0baCEoSRIKb+g3Y3z+o944h69JHCS3S0e15+qNt+2adX+xpH71h98hDrG5u//CfEFSGjWrFzXVK249FcVIKjOS98wUNH9ANXPlb6ff9SD++qvmiXirA30SC5nE50YtFr+4+P8ITdTdXwhL6ZgSuohGramq9nwqKTi3SfFK4IT+Ernw7GCN7iiZ X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123555025)(20161123558100)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HK2PR0601MB1875; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HK2PR0601MB1875; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR0601MB1875; 4:bcpnxc6glHIPCfLA+NrfNKSJyR2IV2U02Xk4S8xW?= =?us-ascii?Q?pSOLtCA3uxDpo6/18H/KzEb9BffFR267duPd/2Z4z+2dVNHCwiiSZusRMMYU?= =?us-ascii?Q?G2glo4tlYBETvRuzp7/qoOIGtgrM5A6hHFTwoydSh5U5tIelqN5qUEO2PNnU?= =?us-ascii?Q?wKUhhU3MBwW+YnQMStwxJHoS+HPx4qRzRMIgCbl1aUK+aFfHHxYjsDHmTOgI?= =?us-ascii?Q?3Opsys3SSwo0VrkCISgvI0YJ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?Q?N7RJeAxOru5QAAqkbyYi0UiLKlP3q1NPW/UeY3xUnceQV5Rkotssp9jnsXHE?= =?us-ascii?Q?bwOI6SSCcodT3m/ghFuH3ePOceJotpfReDD6?= X-Forefront-PRVS: 03793408BA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(7370300001)(4630300001)(6009001)(39840400002)(39860400002)(39450400003)(39410400002)(39850400002)(39400400002)(189002)(199003)(54906002)(36756003)(478600001)(4001350100001)(8676002)(46406003)(69596002)(38730400002)(68736007)(110136004)(7350300001)(83506001)(86362001)(6486002)(53936002)(97736004)(2950100002)(6916009)(25786009)(50986999)(76176999)(33646002)(23726003)(101416001)(7736002)(305945005)(47776003)(50466002)(4326008)(6116002)(2906002)(81166006)(3846002)(189998001)(81156014)(106356001)(5660300001)(105586002)(54356999)(66066001)(42186005)(53416004)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR0601MB1875; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR0601MB1875; 23:wXvHGrRcvROJhfOZRK7HUZcQ+U+QLXgSIqtcyFE?= =?us-ascii?Q?rdmWRV1zKo7X20+N8lyCSbZXeiwCZNO2IY9bXzdcAZqGpcnU7muvFVUx8ksT?= =?us-ascii?Q?30AlMkQDlaUkc8JOcd0649IzPQ/z1q0hsrjA//LC0U+f47rz7dbS5jsIoANF?= =?us-ascii?Q?6AWXb7eG3pnn6mQwkoUaU9K2J6m4ypIF+g2ujYi4VciUGmI3z1JcjBAs5Qt6?= =?us-ascii?Q?FC67S9RP4cJZp1Loa7xc89ZOpxlG0JCtAlo1wIVgGEJXMnxasLfybq1BUmoc?= =?us-ascii?Q?wuyStcRzTCL3vc+LU+m8WpXtH1r9K9rK6KKepaZvQC7pdgMK+ozDRMBwTVwj?= =?us-ascii?Q?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nQJqFHXBa+uq?= =?us-ascii?Q?TLIyBS8E2lkYFcrDyczRH2YS/AQUSL5/IkP0wXFqN3zDY7aFgoYmtVXBLS1Y?= =?us-ascii?Q?Bl+2CK0lBpVszE4pGiWhZ7Tk2QJTZ/SAeepDdUipMobvf+wrYmHZujkGJRi/?= =?us-ascii?Q?GSAA8GA=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR0601MB1875; 6:e7CqMEUtI4heZ5Zeha5gWmtMCkM1sSdj5jP3rlp5?= =?us-ascii?Q?5mf9RWsdQMRwFaf5BCIwn6yJQrGXRxYBlcsKjYsDINln+5jdfv+TlDJRitqg?= =?us-ascii?Q?dqCG74TBcPu9Gw65+P0R3IJBlI1iS/RlbzaYdj9ufh5WFi+xEFtm3scND+kN?= =?us-ascii?Q?RM5509GlnlYwscrSEsaPRPBtt+1YblRR0xTubf8ITeWbl5sq2LvRTDpMZl37?= =?us-ascii?Q?J1mWw/t/ENoxXbFG8hzK8o9k7IJV5Eip6bNNYYUnUKyRommyoYCeC/OJB7i1?= =?us-ascii?Q?g0KIFJT6qeaS6ThMqVvoEGMnORmUVwzxj4Ce7/VnUUieBzFIcKnK3/LE13wK?= =?us-ascii?Q?IXhRgWh1Ndv03yh59z/Uy54KnPqzNB+Wstua+warQFPMQHa5C1pViYWAeWZW?= =?us-ascii?Q?tldZg2KOJYrGt6jkbBPvFxN4GtMbQTWDlB88oEoGUXGnQzXLGb+mEFcVT2J4?= =?us-ascii?Q?XB96doKJS7OFrw3+3K7h2kz/yezrhZjWWgFcHET2aWp1d7kA7Ewp8JKx4jbJ?= =?us-ascii?Q?49w8yPuCD/7iy/hSE4Pkqdcrw92PApOUggyy+A0z83b1Sw0fcwVb+442lMR2?= =?us-ascii?Q?aEP95ZztYwXGT+sFSDPm2enOnDhyLeiITXIJ03yQryj9MdHQ65gZVoTPV77T?= =?us-ascii?Q?gGn36BsjgwCBnldUcVRE6J0zo7hUoz1gkZRXXZPYfXede1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IroKQGcGBA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HK2PR0601MB1875; 7:tlT/Q1qjhBtgvUIu0BP4vxe9p9OPVg3Npr7f7/dTU9h/TQMMOFxMkSbZ7viGo5qv9aGfmWjxfPD9GPA0KjC5so+5UAfNM4rcsshmzUPl6wJeRxlFWzpRfqpn59NVmPHFd6Nf/+lcl9GobayjIyiR+7YFDaXsZd6pHg3bJ+rFM+X07jlHvwCLTfyPP4it090aWy/9ulHz17OSM2ls8t3flqZKWPJFeHAnNwcA41sD+1ZPO1BqG7mytqSimt1qHOe1g3c2phbKCM4rl3edhR2TQPvQiAmEtyoe6tPGUxkXBGX+96LVLuBj5bfgiZwF4KLjxs6iZrAeveorTMWOdZf13mkApijL5GFi1L2nYeWApLQZfnUFvJQAEzvkuloaRO2UVReaQH5AYd2VqUSStHRqqDq8PydbHJaZ3p/wUD12uv1ptKU3u/+nC/i32zOudtMFDGD4KtbAi0CGD0vB9GkBQqwIyT8SfNNY2TUdY4CVvudoYFgQKPMHIL8vTUea8DvD43tsWH6HuOyhFVG0y6H+fzqku2DGNWaZ+ksMhDRFP9tiVsPm4DGSR4rgNn/xu8PTCni+DpJSJvr/4Fk39luAD/JBL1Vah6iS+v5uxB0O+FLHZ8UNRT5dgxAC1o5q7aM6kzqZUI/3ifvNalubBUhOEpOkokXc+zUL+Qz1nZTKnZVuKYUSHJ93YMSbx6M0ukgPLWDEiUy4noX/GVwlbnX8Egeocvy7FG/9vKLJaVa29cGiRnGQKpg9trV65wk2uzPRF2pBM/J6wCbqTua5UTye9CL2EFNMd2uBk6i7AcBqT7w= X-Microsoft-Exchange-Diagnostics: 1; HK2PR0601MB1875; 20:3yIk1u6uKWgKFoDkscDRZexpqBcD5lQ1SsTnPGa5E7e96asiF1bf7ZjI/XboAhTmeJhcA+owLymY90Z7GKy9WKDmugbbYMafMWY8FTNY0r2p8dSf6UsektqFcxTj/BpKGI00uxy0glwsjAPkPKkbGA+h246sjFYH7gxmSJz2hAI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2017 04:21:58.0489 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR0601MB1875 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 Now platform can be replaced to component, let's do it. Signed-off-by: Kuninori Morimoto --- sound/soc/intel/atom/sst-atom-controls.c | 36 +++++++++++------------ sound/soc/intel/atom/sst-mfld-platform-compress.c | 5 ++-- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 32 ++++++-------------- sound/soc/intel/atom/sst-mfld-platform.h | 4 ++- 4 files changed, 33 insertions(+), 44 deletions(-) diff --git a/sound/soc/intel/atom/sst-atom-controls.c b/sound/soc/intel/atom/sst-atom-controls.c index 0f3604b..3672d36 100644 --- a/sound/soc/intel/atom/sst-atom-controls.c +++ b/sound/soc/intel/atom/sst-atom-controls.c @@ -1414,11 +1414,11 @@ static int sst_fill_module_list(struct snd_kcontrol *kctl, * name. First part of control name contains the pipe name (widget name). */ static int sst_fill_widget_module_info(struct snd_soc_dapm_widget *w, - struct snd_soc_platform *platform) + struct snd_soc_component *component) { struct snd_kcontrol *kctl; int index, ret = 0; - struct snd_card *card = platform->component.card->snd_card; + struct snd_card *card = component->card->snd_card; char *idx; down_read(&card->controls_rwsem); @@ -1468,13 +1468,13 @@ static int sst_fill_widget_module_info(struct snd_soc_dapm_widget *w, /** * sst_fill_linked_widgets - fill the parent pointer for the linked widget */ -static void sst_fill_linked_widgets(struct snd_soc_platform *platform, +static void sst_fill_linked_widgets(struct snd_soc_component *component, struct sst_ids *ids) { struct snd_soc_dapm_widget *w; unsigned int len = strlen(ids->parent_wname); - list_for_each_entry(w, &platform->component.card->widgets, list) { + list_for_each_entry(w, &component->card->widgets, list) { if (!strncmp(ids->parent_wname, w->name, len)) { ids->parent_w = w; break; @@ -1485,41 +1485,41 @@ static void sst_fill_linked_widgets(struct snd_soc_platform *platform, /** * sst_map_modules_to_pipe - fill algo/gains list for all pipes */ -static int sst_map_modules_to_pipe(struct snd_soc_platform *platform) +static int sst_map_modules_to_pipe(struct snd_soc_component *component) { struct snd_soc_dapm_widget *w; int ret = 0; - list_for_each_entry(w, &platform->component.card->widgets, list) { + list_for_each_entry(w, &component->card->widgets, list) { if (is_sst_dapm_widget(w) && (w->priv)) { struct sst_ids *ids = w->priv; - dev_dbg(platform->dev, "widget type=%d name=%s\n", + dev_dbg(component->dev, "widget type=%d name=%s\n", w->id, w->name); INIT_LIST_HEAD(&ids->algo_list); INIT_LIST_HEAD(&ids->gain_list); - ret = sst_fill_widget_module_info(w, platform); + ret = sst_fill_widget_module_info(w, component); if (ret < 0) return ret; /* fill linked widgets */ if (ids->parent_wname != NULL) - sst_fill_linked_widgets(platform, ids); + sst_fill_linked_widgets(component, ids); } } return 0; } -int sst_dsp_init_v2_dpcm(struct snd_soc_platform *platform) +int sst_dsp_init_v2_dpcm(struct snd_soc_component *component) { int i, ret = 0; struct snd_soc_dapm_context *dapm = - snd_soc_component_get_dapm(&platform->component); - struct sst_data *drv = snd_soc_platform_get_drvdata(platform); + snd_soc_component_get_dapm(component); + struct sst_data *drv = snd_soc_component_get_drvdata(component); unsigned int gains = ARRAY_SIZE(sst_gain_controls)/3; - drv->byte_stream = devm_kzalloc(platform->dev, + drv->byte_stream = devm_kzalloc(component->dev, SST_MAX_BIN_BYTES, GFP_KERNEL); if (!drv->byte_stream) return -ENOMEM; @@ -1537,26 +1537,26 @@ int sst_dsp_init_v2_dpcm(struct snd_soc_platform *platform) sst_gains[i].ramp_duration = SST_GAIN_RAMP_DURATION_DEFAULT; } - ret = snd_soc_add_platform_controls(platform, sst_gain_controls, + ret = snd_soc_add_component_controls(component, sst_gain_controls, ARRAY_SIZE(sst_gain_controls)); if (ret) return ret; /* Initialize algo control params */ - ret = sst_algo_control_init(platform->dev); + ret = sst_algo_control_init(component->dev); if (ret) return ret; - ret = snd_soc_add_platform_controls(platform, sst_algo_controls, + ret = snd_soc_add_component_controls(component, sst_algo_controls, ARRAY_SIZE(sst_algo_controls)); if (ret) return ret; - ret = snd_soc_add_platform_controls(platform, sst_slot_controls, + ret = snd_soc_add_component_controls(component, sst_slot_controls, ARRAY_SIZE(sst_slot_controls)); if (ret) return ret; - ret = sst_map_modules_to_pipe(platform); + ret = sst_map_modules_to_pipe(component); return ret; } diff --git a/sound/soc/intel/atom/sst-mfld-platform-compress.c b/sound/soc/intel/atom/sst-mfld-platform-compress.c index 1bead81..5480be1 100644 --- a/sound/soc/intel/atom/sst-mfld-platform-compress.c +++ b/sound/soc/intel/atom/sst-mfld-platform-compress.c @@ -107,8 +107,9 @@ static int sst_platform_compr_set_params(struct snd_compr_stream *cstream, struct snd_sst_params str_params; struct sst_compress_cb cb; struct snd_soc_pcm_runtime *rtd = cstream->private_data; - struct snd_soc_platform *platform = rtd->platform; - struct sst_data *ctx = snd_soc_platform_get_drvdata(platform); + struct snd_soc_component *component = snd_soc_rtdcom_lookup(rtd, + DRIVER_NAME); + struct sst_data *ctx = snd_soc_component_get_drvdata(component); stream = cstream->runtime->private_data; /* construct fw structure for this*/ diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom/sst-mfld-platform-pcm.c index 49c7b88..62c141f 100644 --- a/sound/soc/intel/atom/sst-mfld-platform-pcm.c +++ b/sound/soc/intel/atom/sst-mfld-platform-pcm.c @@ -697,26 +697,22 @@ static int sst_pcm_new(struct snd_soc_pcm_runtime *rtd) return retval; } -static int sst_soc_probe(struct snd_soc_platform *platform) +static int sst_soc_probe(struct snd_soc_component *component) { - struct sst_data *drv = dev_get_drvdata(platform->dev); + struct sst_data *drv = dev_get_drvdata(component->dev); - drv->soc_card = platform->component.card; - return sst_dsp_init_v2_dpcm(platform); + drv->soc_card = component->card; + return sst_dsp_init_v2_dpcm(component); } -static struct snd_soc_platform_driver sst_soc_platform_drv = { +static struct snd_soc_component_driver sst_soc_platform_drv = { + .name = DRIVER_NAME, .probe = sst_soc_probe, .ops = &sst_platform_ops, .compr_ops = &sst_platform_compr_ops, .pcm_new = sst_pcm_new, }; -static const struct snd_soc_component_driver sst_component = { - .name = "sst", -}; - - static int sst_platform_probe(struct platform_device *pdev) { struct sst_data *drv; @@ -740,26 +736,16 @@ static int sst_platform_probe(struct platform_device *pdev) mutex_init(&drv->lock); dev_set_drvdata(&pdev->dev, drv); - ret = snd_soc_register_platform(&pdev->dev, &sst_soc_platform_drv); - if (ret) { - dev_err(&pdev->dev, "registering soc platform failed\n"); - return ret; - } - - ret = snd_soc_register_component(&pdev->dev, &sst_component, + ret = devm_snd_soc_register_component(&pdev->dev, &sst_soc_platform_drv, sst_platform_dai, ARRAY_SIZE(sst_platform_dai)); - if (ret) { + if (ret) dev_err(&pdev->dev, "registering cpu dais failed\n"); - snd_soc_unregister_platform(&pdev->dev); - } + return ret; } static int sst_platform_remove(struct platform_device *pdev) { - - snd_soc_unregister_component(&pdev->dev); - snd_soc_unregister_platform(&pdev->dev); dev_dbg(&pdev->dev, "sst_platform_remove success\n"); return 0; } diff --git a/sound/soc/intel/atom/sst-mfld-platform.h b/sound/soc/intel/atom/sst-mfld-platform.h index cb32cc7..909bd30 100644 --- a/sound/soc/intel/atom/sst-mfld-platform.h +++ b/sound/soc/intel/atom/sst-mfld-platform.h @@ -27,6 +27,8 @@ extern struct sst_device *sst; extern struct snd_compr_ops sst_platform_compr_ops; +#define DRIVER_NAME "sst" + #define SST_MONO 1 #define SST_STEREO 2 #define SST_MAX_CAP 5 @@ -155,7 +157,7 @@ struct sst_device { struct sst_data; -int sst_dsp_init_v2_dpcm(struct snd_soc_platform *platform); +int sst_dsp_init_v2_dpcm(struct snd_soc_component *component); int sst_send_pipe_gains(struct snd_soc_dai *dai, int stream, int mute); int send_ssp_cmd(struct snd_soc_dai *dai, const char *id, bool enable); int sst_handle_vb_timer(struct snd_soc_dai *dai, bool enable);