From patchwork Mon Jan 29 03:13:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 10188919 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 5D798602C8 for ; Mon, 29 Jan 2018 03:21:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50F472864A for ; Mon, 29 Jan 2018 03:21:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44C1E28684; Mon, 29 Jan 2018 03:21:28 +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 59DF32864A for ; Mon, 29 Jan 2018 03:21:27 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 2C143267B9A; Mon, 29 Jan 2018 04:20:56 +0100 (CET) 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 36CD5267B9B; Mon, 29 Jan 2018 04:20:55 +0100 (CET) Received: from relmlie2.idc.renesas.com (relmlor3.renesas.com [210.160.252.173]) by alsa0.perex.cz (Postfix) with ESMTP id DE0B92677A1 for ; Mon, 29 Jan 2018 04:13:27 +0100 (CET) Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie2.idc.renesas.com with ESMTP; 29 Jan 2018 12:13:26 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 1FD7351371; Mon, 29 Jan 2018 12:13:26 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.46,429,1511794800"; d="scan'208";a="269588539" Received: from mail-hk2apc01lp0209.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.209]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 29 Jan 2018 12:13: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=wvWckomNyM2WqkUS3Grucv+5kjosyeVh8XkqRslEE9k=; b=LEBaCCXKIwF6yf4jxkQshp3h6UT5WuCA/O7DkXQh9stqnqmKSW0MeGv8zrSz/ulLMUb8A9yX49ma0GC0sf5v9A40Pg58i2ethmlyds+1Ki8ImNivkXVw+glioY3SOWW8kx7R6iEj7JVmHdkCl85JD75ZBCCtiXcH3PCsQC4Ab5A= Received: from morimoto-PC.renesas.com (211.11.155.138) by PS1PR0601MB1881.apcprd06.prod.outlook.com (2603:1096:803:8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Mon, 29 Jan 2018 03:13:23 +0000 Message-ID: <87efm92war.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: <87inbl5q6q.wl%kuninori.morimoto.gx@renesas.com> References: <87607l8k9i.wl%kuninori.morimoto.gx@renesas.com> <87inbl5q6q.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Mon, 29 Jan 2018 03:13:23 +0000 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: OSBPR01CA0040.jpnprd01.prod.outlook.com (2603:1096:603:1e::28) To PS1PR0601MB1881.apcprd06.prod.outlook.com (2603:1096:803:8::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2ab7ddad-19cc-4798-1ef6-08d566c641f6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:PS1PR0601MB1881; X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1881; 3:/IspkqfPH6Fnb4Cn9SX2KeFBI7PTBVDJrxhQKWUf/Czjm9bvGyGzoYzlTNR41+fuQL6yYjcke9TGhp9RGGQYFNsaPBbZukGUm5LHjqcQEHUU6jaVAvyK8WurAE8gXBSJ+2vSKrbUjNWnWU7Tj+dJjusfK+5nU8Sg1W85ePH3zqeEaEzl2ZJQnPSAqUo8eO/Pkpqf80aFN2UgeZeqJ0lHQTerzpczFN5KE7Gw1n74RSQqrjimL7r5nDL6hClvtot8; 25:Py2QZ5Emv5funjxpNaKztfH3ast4QbSLHP24gQFDgsJ1ePe8Yc1scu6ohhK1A0QDWIrxWXnzUPC/ttnuF+NcDCMlHcOAUIpQyXc8dJusTBreCHffVEAoTkyqYlgXO4UWVt9fKp7wC9+d5tTeETo75GZpWZd53JrYRspicPCsyj1xyGNXOg13iPeoUwHMSaVNK0A+dQ1nEOuYTMcBqoHMxTTwvDIfgZtiw5aCxyrT6x935lcRXpf+FWa/xbxYFjcQoWoLlSHX0pQYQAUFUmLAXjxo0pCr3qrzBt9c8/DCpxLub4zPdOB2lV+8LWyVGZj0qnYU6twVC7uY3Ix7Td9KuQ==; 31:hnaFw/2Kh6gpgqI88PgRnKqdhbUF77n86jRcNJYEWkiLM63Tvj4/hQN4on/YymMdrGW4WuF3vFSkvY1ExBeJQIfBxWNrSucIiq2tLBKDZNGBvfBKZgvK6RSaktdkXAksx3DfJpSpqJHT5LAxVWNKlSd7i+R4K5VusOfgWqy5/xI+FT15KodF8kJYOTvsrDGAhD2WbrfBvsZj1oz5DRVZ5K67rGekwJvGR7ldwmY2oec= X-MS-TrafficTypeDiagnostic: PS1PR0601MB1881: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1881; 20:glnhd2qHv+Jbg7xLmaNy06OdO01Kj05fTZRoXdZpDZT244SH028eU8h5aFMuJOhrEth81F9n+5BXU+UNW5KgDxji5VtGtTqS6W43WVF/SRv5yC+QvK95FXzMnyeT7XO98mWxs9vGL28Vm7EX7+XNTszLqQA2oFKbmSFy1xQ4MboKWZySVo/iYG9Sr4bec0yKc3NKT/sK3TcoH+mV28MZwPeG3npei04EjBKWhLNlzeRR38qZg09KOcL9fn+UKgcfp5Oc3ehkp0f2TjjXc0S26CVJmCZXLGuDQZ5RJaqYos6g1ah20gyUZmctXILapQ1/oY3rOCSPjX7MSGIXq5IBtRKpsuuN0dG603mpjVZmcdInNdMF27EHCJGt8YZcdUQlmzh6KwgJ6/AWGcLBZZab/ljdlKBuWtRU9OXP22SBOg+/3jvLDQOhm6lGxZH/agDC4XQH1v0/DnNTK3stGe3H+wUtbnA0WxUGibDl3hh9WpuoY0oDBAwTWsIoS+hUnqzF; 4:4wffSSLtqoVHmCZADR9NqWG/jSvBPAk8vDcpiRd60LOPVwybn0VKHPpyFFN7Zsa1+u/7Uc8LUqzP/lUKsDp88N8wAq7bdxzscNCC7biTd7vb5xkuwcn98mc9BaGiJ4A0WLTWbqBwWFQoulzi5yyafyNPOhWXoak+LRm8pKJTXxIA5hLcdgGyN6VoF/ur8qGFM0ut7CZ2Nox2hxlIXqyrpi8eNsyHerP+OwxIAXadM0ucD5LLK78MgFwHLAbqkgKC4orOX3RJqgQO1EAumsuv90oWKFE9BfhFgQTHxRP/vGX/wD5Cw99WdUJ2/BnQ6wzH X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(3231101)(944501161)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041288)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:PS1PR0601MB1881; BCL:0; PCL:0; RULEID:; SRVR:PS1PR0601MB1881; X-Forefront-PRVS: 0567A15835 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(39380400002)(39860400002)(346002)(396003)(376002)(189003)(199004)(6116002)(50466002)(6916009)(7736002)(6486002)(53416004)(47776003)(25786009)(386003)(2950100002)(305945005)(52116002)(2906002)(59450400001)(7696005)(3846002)(86362001)(16526019)(68736007)(575784001)(4326008)(23726003)(186003)(26005)(83506002)(106356001)(8676002)(81156014)(81166006)(16586007)(8936002)(58126008)(105586002)(69596002)(66066001)(36756003)(53936002)(76176011)(478600001)(316002)(5660300001)(97736004)(21314002)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:PS1PR0601MB1881; 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; PS1PR0601MB1881; 23:vxaO3JNlT/EychN3ccefMFXO6iMSMq3hIVm829V?= =?us-ascii?Q?mpmPL9hxYWnOPf9E8NaNS+9PcB7a6p+Bl8MLizAWAG4/HNnhY7dW2GwB3pY3?= =?us-ascii?Q?ya0cwDhbeJsyUOCk2tIQMFdAUhads5HIk2SS+ol3NqkszupU6yYsjDAZyN1V?= =?us-ascii?Q?cFxNmMuNM7evtzVBkhMtzIxZNbpxllH/L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jy7DsETwfO9MRiq5FfYHZ/R76BQ/zWMMw+WKBvqaX6j66GEqd2FJEZgMfcBUZ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1881; 20:zaGNVvU71IIl+QApE8AUV6jhOZXHAsoEnxLVMD+FoIFj6huufO/DHAfdE3U1QuIPou/aUgdzbgIorZ6YOj5Eo/NGriUDhOIy5yvWVGxEdi6AyRcXGsKEdBMTMsYhoxvONAc9lewxa8LUpqVGBWfgZ5X1yVUWI4nZERE+B9jsVEw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2018 03:13:23.6031 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ab7ddad-19cc-4798-1ef6-08d566c641f6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR0601MB1881 Cc: Linux-ALSA Subject: [alsa-devel] [PATCH v2 053/186] ASoC: ak5386: replace codec to component 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 Now we can replace Codec to Component. Let's do it. Note: xxx_codec_xxx() -> xxx_component_xxx() .idle_bias_off = 0 -> .idle_bias_on = 1 .ignore_pmdown_time = 0 -> .use_pmdown_time = 1 - -> .endianness = 1 - -> .non_legacy_dai_naming = 1 Signed-off-by: Kuninori Morimoto --- sound/soc/codecs/ak5386.c | 62 +++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 34 deletions(-) diff --git a/sound/soc/codecs/ak5386.c b/sound/soc/codecs/ak5386.c index d0e16c0..d212960 100644 --- a/sound/soc/codecs/ak5386.c +++ b/sound/soc/codecs/ak5386.c @@ -38,30 +38,29 @@ struct ak5386_priv { { "Capture", NULL, "AINR" }, }; -static int ak5386_soc_probe(struct snd_soc_codec *codec) +static int ak5386_soc_probe(struct snd_soc_component *component) { - struct ak5386_priv *priv = snd_soc_codec_get_drvdata(codec); + struct ak5386_priv *priv = snd_soc_component_get_drvdata(component); return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); } -static int ak5386_soc_remove(struct snd_soc_codec *codec) +static void ak5386_soc_remove(struct snd_soc_component *component) { - struct ak5386_priv *priv = snd_soc_codec_get_drvdata(codec); + struct ak5386_priv *priv = snd_soc_component_get_drvdata(component); regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); - return 0; } #ifdef CONFIG_PM -static int ak5386_soc_suspend(struct snd_soc_codec *codec) +static int ak5386_soc_suspend(struct snd_soc_component *component) { - struct ak5386_priv *priv = snd_soc_codec_get_drvdata(codec); + struct ak5386_priv *priv = snd_soc_component_get_drvdata(component); regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); return 0; } -static int ak5386_soc_resume(struct snd_soc_codec *codec) +static int ak5386_soc_resume(struct snd_soc_component *component) { - struct ak5386_priv *priv = snd_soc_codec_get_drvdata(codec); + struct ak5386_priv *priv = snd_soc_component_get_drvdata(component); return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); } #else @@ -69,28 +68,30 @@ static int ak5386_soc_resume(struct snd_soc_codec *codec) #define ak5386_soc_resume NULL #endif /* CONFIG_PM */ -static const struct snd_soc_codec_driver soc_codec_ak5386 = { - .probe = ak5386_soc_probe, - .remove = ak5386_soc_remove, - .suspend = ak5386_soc_suspend, - .resume = ak5386_soc_resume, - .component_driver = { - .dapm_widgets = ak5386_dapm_widgets, - .num_dapm_widgets = ARRAY_SIZE(ak5386_dapm_widgets), - .dapm_routes = ak5386_dapm_routes, - .num_dapm_routes = ARRAY_SIZE(ak5386_dapm_routes), - }, +static const struct snd_soc_component_driver soc_component_ak5386 = { + .probe = ak5386_soc_probe, + .remove = ak5386_soc_remove, + .suspend = ak5386_soc_suspend, + .resume = ak5386_soc_resume, + .dapm_widgets = ak5386_dapm_widgets, + .num_dapm_widgets = ARRAY_SIZE(ak5386_dapm_widgets), + .dapm_routes = ak5386_dapm_routes, + .num_dapm_routes = ARRAY_SIZE(ak5386_dapm_routes), + .idle_bias_on = 1, + .use_pmdown_time = 1, + .endianness = 1, + .non_legacy_dai_naming = 1, }; static int ak5386_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int format) { - struct snd_soc_codec *codec = codec_dai->codec; + struct snd_soc_component *component = codec_dai->component; format &= SND_SOC_DAIFMT_FORMAT_MASK; if (format != SND_SOC_DAIFMT_LEFT_J && format != SND_SOC_DAIFMT_I2S) { - dev_err(codec->dev, "Invalid DAI format\n"); + dev_err(component->dev, "Invalid DAI format\n"); return -EINVAL; } @@ -101,8 +102,8 @@ static int ak5386_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) { - struct snd_soc_codec *codec = dai->codec; - struct ak5386_priv *priv = snd_soc_codec_get_drvdata(codec); + struct snd_soc_component *component = dai->component; + struct ak5386_priv *priv = snd_soc_component_get_drvdata(component); /* * From the datasheet: @@ -123,8 +124,8 @@ static int ak5386_hw_params(struct snd_pcm_substream *substream, static int ak5386_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) { - struct snd_soc_codec *codec = dai->codec; - struct ak5386_priv *priv = snd_soc_codec_get_drvdata(codec); + struct snd_soc_component *component = dai->component; + struct ak5386_priv *priv = snd_soc_component_get_drvdata(component); if (gpio_is_valid(priv->reset_gpio)) gpio_set_value(priv->reset_gpio, 0); @@ -192,19 +193,12 @@ static int ak5386_probe(struct platform_device *pdev) "AK5386 Reset")) priv->reset_gpio = -EINVAL; - return snd_soc_register_codec(dev, &soc_codec_ak5386, + return devm_snd_soc_register_component(dev, &soc_component_ak5386, &ak5386_dai, 1); } -static int ak5386_remove(struct platform_device *pdev) -{ - snd_soc_unregister_codec(&pdev->dev); - return 0; -} - static struct platform_driver ak5386_driver = { .probe = ak5386_probe, - .remove = ak5386_remove, .driver = { .name = "ak5386", .of_match_table = of_match_ptr(ak5386_dt_ids),