From patchwork Tue Sep 26 06:21:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 728193 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 74982E8181F for ; Tue, 26 Sep 2023 06:24:21 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D0F99DF3; Tue, 26 Sep 2023 08:23:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D0F99DF3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1695709459; bh=wbqiXJe5oy5XqNaX8YhwRU25YrkdshuXYkeC4tHIs6E=; h=From:To:Cc:Subject:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=V3HIguD3qEg4f5WipXDjPC3JNAd6XwsOUiiE4j3YJBzrsjfPv2QnLwtjiNWShP0MU bv91bO1zwZlwZn7Bxf0OlU3avySZKgTlu8WwYBfIEv8x6Obwiu6AlHjRogvGIUziLU THmrJRr2pYkE1ujZcwm8SlJAwBA3p2F7dF+sZVfc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id D2BFBF805E0; Tue, 26 Sep 2023 08:21:47 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 2566BF805DF; Tue, 26 Sep 2023 08:21:47 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7E446F805C5; Tue, 26 Sep 2023 08:21:40 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2071d.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::71d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 71EACF8058C for ; Tue, 26 Sep 2023 08:21:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 71EACF8058C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=SZvGRKx7 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X7JQcXjI1f4u5iNt1iqlwsGCX4nVupmQMY9Jv2kA9351OSD8KzlbFYOTL30yLAQa8O7MFcg7jC2NOkfrJhGyI6oPIS4PujnREb8vdfVMrfZYS8hiiR1GJNPd8myfr3Q9Q0AOE0CvxuXAhy+U8eSZBB8Wlet/aPAwSt7A4X1HxDA6VF7RzXfyaJ77sJYtwZu6rzxX0kB+kvjUIvzSTvkM7K/5cApalxzkZ74m871oplctNrsMS+/WzfDYeZD8Xk9ODIGbL1PMD/R0EnrA1Mf9wsf8ScmaI5lKxAOt+dXSNCTDLP3FdXAvogGTSEYr021MRE1cVjqey9mXKYoRNeHuXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZwaRIT34r+XO0h8KTchyZf5IJ8mKLjSng6a71Y5nrJA=; b=DV74CiE+8T7QtTgZ64/k3j3BNPMKrseDw5v+VGlH1enp5BCZtGHeyYUw3PupJrRYzG7xRgJXKs33VFskHSSZVgKpY2bYNTkDDlZYs1Eex8/J5wznp1JJMSGFjrLkPKaxDXW59iKTzMJ+/8TUpwjGNfZLrtMkODUxQsXYB2FYLhNa2Z5VKaYvNKCNHHRkgWS4PHeiGgiVhj0iEf/KUCy9dXeqEIvTU7x0e1lTSe3kvJkox81aC2cD2mdz+8y+XiLXtbKfxC6YmyhmTg6/OymKZGxJPk3nQmzm3MKcOMcPK6gkYc6tuzn0eubLQemvrrPW0Tty4cNGcZQvqF9zjaQOuQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZwaRIT34r+XO0h8KTchyZf5IJ8mKLjSng6a71Y5nrJA=; b=SZvGRKx7AUQSzj9bq1S3Ne0oY5jHL5RBSlMFsC3uLRUnNtsgsv8+ub8vf2yktbyOt6ntHzTbUXLLAh1p0v3ypvOpaOOybfFkDU22A+sezPKag00+caHc5HkZ9L4R62UhjGX8Qr7ERmHI9eyKaeTgu2iXJHiRnpdaQ+/17XqTM64= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by TYWPR01MB10426.jpnprd01.prod.outlook.com (2603:1096:400:24e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Tue, 26 Sep 2023 06:21:34 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::d2a3:45df:a180:595c]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::d2a3:45df:a180:595c%6]) with mapi id 15.20.6813.027; Tue, 26 Sep 2023 06:21:34 +0000 Message-ID: <87y1gth2tu.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Jaroslav Kysela , Liam Girdwood , Mark Brown , Sascha Hauer , Shawn Guo , Takashi Iwai Cc: Fabio Estevam , alsa-devel@alsa-project.org Subject: [PATCH v2 11/54] ASoC: mxs: convert not to use asoc_xxx() User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 In-Reply-To: <87edilihhg.wl-kuninori.morimoto.gx@renesas.com> References: <87edilihhg.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 26 Sep 2023 06:21:34 +0000 X-ClientProxiedBy: TYCPR01CA0184.jpnprd01.prod.outlook.com (2603:1096:400:2b0::13) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB10426:EE_ X-MS-Office365-Filtering-Correlation-Id: 50de8ce7-79e0-41c6-a153-08dbbe58d51c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sJT85UOuquuIkLg0GPQMjHi+Vhi7LTFOHhGBiH99To38F6WPoMq9Zk1GOpw1L/dHg4KcZhm2RGvtnu7nlct3jd0meUNdZSH92fsb7T31i2Vk0tRMIUDHtGvMvzs3hOqtQm0kIkk8FIZ4IGZR6nJXCoLLOAWPwzTFsttONwNTM8oU7itHtwMF0HVWJ11d6f8+3HGQ2WJNwGRiuidfi2QYIIrxo9j9Aqd1iE3I/r5dgvvkEYDs2nxZnJ4AT1aVDjDmk/BRinNq5i2TvYD2XOmnEhfYNvx8ubE40d3xqIvjtWx7a/4xqXoRS6ZR+BLcQZBqGUqADNnRuTLPE2oiEN9PvsgmFNXALSl+ZL+UloDgaJcVNIOFghy3TM/rsVQJwWeaBEtDpfZrvFn9byaCgI4E2BPq4ftzTmtEkiP1B+KzWyEQiFKX9vrciKoVOWPj7icgId8Vv61URuZEzh0pI+kQ8WuPC/Vu2o7kGIGmhh5P9+5dYc2uf3yfViBXsQw7bThHZBiBeTTJ39wKaPkyVptJQ+oEZxbYlf6IfRWenlYnENO4v4/o3AukRgxshRbgSl3J5FuDzTsiwcXXfuG+MhK/Zl4RRqHj3dnvuA/1gucw12Tf4ZKHaIzh6q63ukIfNrf054PLFR4yVnBrmMI5HpkXMw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OS3PR01MB8426.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(39860400002)(366004)(376002)(396003)(346002)(230922051799003)(1800799009)(186009)(451199024)(6506007)(6512007)(52116002)(26005)(478600001)(66476007)(66556008)(66946007)(86362001)(2616005)(110136005)(6486002)(38100700002)(38350700002)(83380400001)(2906002)(8936002)(8676002)(36756003)(4326008)(5660300002)(316002)(41300700001)(21314003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sMIlv8hXqa/XhhcIHru+Qi2LXzyDJu0emp0fRtwDOYNohrw/58I2yTTAqklFHRRGVCPAEFiJaJ6o85y6n5F/zuF2cVduQhW6NWaoPlHOyzgVpjrJ/VeizrOlDgSR3AQAk9KpIeDFNYv6Gfo4YeS3OZetH+tOa+kt0XSoNX+BRE9GdpWThzJJi9lDOv9zElxklVotc6n7MCHLdzA7YdBN7rM1R2z4woASOYv3V9h11qnrI3uYDfGEx6U54rIschSu/0qxZfqZDi3iaBwPNAFGwd/Fg1Aln5za4N1e6AGMc823ICBokX9+oBsiHG3OBrvrBlz15a9IxU2c4EsSjaUCYFrCqYBk/hs3j9vJ4n7GYTWe3NeJOIbaqo+tnzyGyCQ+DBPRg8hlBXOfS3JFPKoroON9ijBQCvot5dG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6ypAKvJopZJa+fG1v084YLt7VSZBgIFdesLU1d58AzYa8uKn8vFN/7Zd7EDOJk0zQifOPabT7uwjMf/AP8C6dMY/GGE1YOw7qXXzBf2Hk3faDjG/JTgh22VYgsXrweyZNu9+lvYzQ73LnS53c5albuLJM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50de8ce7-79e0-41c6-a153-08dbbe58d51c X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2023 06:21:34.6284 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iiL3vye+Tt1ps+lDUrmbkAT/EES5L5Lv58acfeqc0a3c5Mi+3M0n9WB5sImbRYHZY+P49XR1/Uu9XCyewHUgbFoV23UFvgBf98GcX3y6Ex8kzZDWd2rEZO5Q6vIlzroT X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10426 Message-ID-Hash: XMYK3PMIJDYFND5TMCC2RG7RWPHBFBC5 X-Message-ID-Hash: XMYK3PMIJDYFND5TMCC2RG7RWPHBFBC5 X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: ASoC is now unified asoc_xxx() into snd_soc_xxx(). This patch convert asoc_xxx() to snd_soc_xxx(). Signed-off-by: Kuninori Morimoto --- sound/soc/mxs/mxs-sgtl5000.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/mxs/mxs-sgtl5000.c b/sound/soc/mxs/mxs-sgtl5000.c index 457c3a72a414..01cb5c5e72fe 100644 --- a/sound/soc/mxs/mxs-sgtl5000.c +++ b/sound/soc/mxs/mxs-sgtl5000.c @@ -19,9 +19,9 @@ static int mxs_sgtl5000_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) { - struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); - struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); - struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); + struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); + struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); + struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); unsigned int rate = params_rate(params); u32 mclk; int ret;