From patchwork Tue Apr 18 00:22:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13214894 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 4E862C77B72 for ; Tue, 18 Apr 2023 00:24:11 +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 131C2E0F; Tue, 18 Apr 2023 02:23:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 131C2E0F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1681777448; bh=u4qP/QJgLKg814UKnZPJr8h+xvPNXxFTWcpBaxdhvKk=; h=From:To:In-Reply-To:References:Subject:Date:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=W8uix5tSBf/SUL9FhAR2RecuAn1Vf7prV4/WXweJ8Ict5wXYF7rJwhlBQzE8hX72K 4i4Xak8nRRN4bv4ExcIFZBRMeKZI1RibOlhysgwvUqBbZ2FdtzDlBA1Aw9jlY8MM+Q olLcGzsK0EW5KC5Jtt+lH//eW6aOHqn8O/ujh+yo= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 5C20CF80212; Tue, 18 Apr 2023 02:23:02 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0F43FF80534; Tue, 18 Apr 2023 02:22:59 +0200 (CEST) Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on20705.outbound.protection.outlook.com [IPv6:2a01:111:f403:7010::705]) (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 66EDCF8052E for ; Tue, 18 Apr 2023 02:22:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 66EDCF8052E 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=e1s4gyf9 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=euRLmgUfB6iv3wq25qRW7pOFSKS1wkNktCmeAvq43qCrLLk2vebzJ7edxGL1g594IFhVzrBIGBFVEC302UMEuVRKuF475GmW3nHd3yDfY5sflBXArHVXsqCvH5UvZRaYdqVeaEmTtG9C9EBm9L0tSMuw82uEI7xHe0SRSQvaD4VyC4NiZhoI8MZ58GxeevBhygZLfBdAhZDkCt6mUZ2OL7PrXvkPbyzJe5dgKzDNmhMT7dlBK/C0t2Mvvl0pGwiLUYDET+Fe4FsV9VNgb0PUWNmYPB1EbqT5dmPDtjyI1LINTG6Rx4mVYI0HzvALixnKtcTMKER1TRZQhXyt1mlUtQ== 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=zIRV10xTkiLSVJB9ODafbuBctZQfkvXjXYNjX3aLxf4=; b=XfDeA33ONpxxnQm5M7JL+CNQLIKBCyi8QS12rs1laBodJIkjqZ+pDC13I7RVZ9+tF1jcZWbAoYkghg4zziBjfcYDLcdWQPFOo9ZiiFriSxQorkwre7LH9BwXPl5gOe/gBPNXrp7LhNMONRW9SUTgimqXcymRB/Eg2U5K+yHov1ZsDoi+UOucE4p7/9Fw+pcLieX1DCglM/g5EkScm/M48sG4L2Hx7xR9tTmW+mZojsmDWfORA7cCyGDuR664DoJ7pbSIEej+uM/bQgVrop7Ko1F3HWVjtQhU9n4zhL8f2pJRLwnDBO9OCuLzbQtYu1/un/v7FFcEQA4eqJSpZHlnfg== 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=zIRV10xTkiLSVJB9ODafbuBctZQfkvXjXYNjX3aLxf4=; b=e1s4gyf9TN6tQGEK7/q3F7jmdad+nchpsOXsLs/rl4AqNaUuc8RZ8yEY30xVf/7hM0ZnmuRQXvZj28XLB2JUZuXC+5Z6YQDOenlDyzzoqFxrq2/laOYW9Ov6PJ6cIT2AM8hUqiZqRPVRWDRg6TORLhNQH3JGSrN5Mm5rSl6v9no= 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 TYWPR01MB10968.jpnprd01.prod.outlook.com (2603:1096:400:394::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 00:22:47 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1%3]) with mapi id 15.20.6298.045; Tue, 18 Apr 2023 00:22:47 +0000 Message-ID: <87354y3up5.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Mark Brown In-Reply-To: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> References: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 01/11] ASoC: soc-utils.c: add asoc_dummy_dlc User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Tue, 18 Apr 2023 00:22:47 +0000 X-ClientProxiedBy: TYAPR01CA0125.jpnprd01.prod.outlook.com (2603:1096:404:2d::17) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB10968:EE_ X-MS-Office365-Filtering-Correlation-Id: 4cb2ed58-b2f3-49fd-a4cf-08db3fa3098b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O2jJF/W43BjPnceDeSnfsiwlFZwigYUVV9C4OREiJp8299Mp3M6c6z/Nvs6v8o1tJNtrU3cTEtue+9BuiUyghoUk/UDFiEe7awjxPM+UZpkd8FeZh/ALCOUzPNzFSHUKipz05cS+Hun76ddyaqveQVnB8wyOZqk9OokrSHzfRVQMvCf4q+rI6o8cV/G3oucWkWpFBUN9W6TAjf323VhQn/70rgFGNRk2mWDXETFCTnm43XHqOuQoIMD3ORgbUlQ/x9Ure8kveklbF7AP7Dp4Lx+ffeWEVvhi5BCs8TCtE1jsmoLbi6FKQeNswNPeFV5kMNMfnsovAWO1MbXpHaX/ACtw6pBn7QN4Ji6cplVK596Msq1mwizXYl1VkpFCJ7UxMMXpeHQ6gHNPwLC7RzfsXpsh/qVuLfqHcHxYrzFB/qsRVrG6Z6eONKCGLe0J853kuYpZTKWhy6bCwb9o4TjHXTipQjEuI4YqmhgFiywKFb5Jx0o2CYKNlTUwkZnv1t7Ge0SyojVhGNzZy4425R1vRvs+htL5TvXwV0+SWcCLVboDnwHQBNNRwDcv2ODuILjaouV1jzo7OT3kbEEzjZRCiDJFAxq1paWQvZpw3HU6/2K5M6HscJ89BY+OxzJAReVF 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:(13230028)(4636009)(39860400002)(136003)(376002)(396003)(366004)(346002)(451199021)(6916009)(4326008)(54906003)(316002)(66946007)(66476007)(66556008)(6486002)(52116002)(478600001)(8676002)(8936002)(41300700001)(5660300002)(2906002)(36756003)(86362001)(38100700002)(38350700002)(2616005)(26005)(186003)(6512007)(6506007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fx/kP9vEVA8NDfAExT0kpSShWLYzMOWR6h7JrQf3drNCktUm+pwCs9C1yIarmDaC28exdc9b0mwiIhW0McQiM3q/WPU8cLQU+lDru7hRHci0wQmY6FoV3eldC04bqF7TY3vl2CyjY3GQYNp/aTChVfs8W3/iXCUuumqsDgLv18tn6N3Jr8nyiRqNfEH+uVfTvKKxUIW/+vYL3wB3mOIR4/DR5EfZrDzO0dvN29W40LaT26qzFRTyl6FRsBxW+TF4MP6EQXW+xsB/RGt1r3bJPHjqtSDn1s1zrsM5XgGRWAatqAhOpbrnb7r6qQwDv0iROGHKsn70PsdEL8VQ7sXjy8+OJ4K17Bm2/JGwwClPPtpr7zLweVJ1dhjp9pU8A+ZiR0VK2CgY14ocBZUGHNdN8EACMpd5RJI0OzBTyoN2wIzj1/QXWzrzZ2vQQWzAD1LJUEH/1S2FozHt6OsD9W5Lxl3MdjdXkQ7NT4bo6hgUBK5DhKm8Fg+BFtkjPwLBY7E3aKUUknJA1upXx6kkggStAM+HgQh+27fAzPZ6LZLMtiWYhVm+XONYKzMu30a9uZd5Z7raXrhPbjBAoO98m8msdSZGp97kPgZmWQV8tnm0FCZSZSaLEKeczQEKTf1hTaDSILwRMNhAVoUumF2ylE+lkwRtFu3iG0Bw3sSLsA5xPZvA49viVhR3cbdNVK84v5wdBY0N00JgI/6LodbceEspQ4cyqnyCNFv0uJK90XsGOug/TMIvqlgIcSgMQ8tQJUWfPiilgqcb6JYikwPU1EG2hZYXy4GQGg2t3CjLcO7uD5aAWnsHRFqVCM/Q+rbB7EwVDAwF8bEevoEFGOJAU/YlcieCoigLmFb9MELYEVW4wnePnSqyKjjXVcOmMYkwIxIT+Jy2kIaanTC9PonBdn9wMKT96/Yg439GgAg6r3S5Wl/r0kEmrnBOq5Cpl8bL+u5NHx7/2cTrwvPEhv2N+ve0lO2O43FhKNTKsoBMpCwsYyX7X2uyhUIbAGvq6/Sm3Zr0S1IgLQg96ddrzJlDgmPPsfd1bdWFmjK5TUIYKaZG7mZvo58y/NYQ83TVD3bofrrCMt88J9c/MKwLLdWlFvFgs7jU7/R1akaNWJkq1jBtwb5go5RCEd4eLB6tQNk6y3MsHxgJVA97rJwMQsQNvDhWn626U9Awv8P+pXTcSFbNP7BG5MRMUF2J6JMAHwKlGokrMXUyY28nhLeefZTCX/ZZDi+v6T4k5xqgVsHiGRtrs+pARU1RvAzRNL2VGUNutolHv5mRfsftTksJxYRVJr20klxpGKBQ+tp7jw32MjpxYjdGJlspb7jVeg585yliQRVMEMCiU5LPrvazAXyD1XjW+/+zuQ7czlazETcOHfZpY06TeNeCJDyD8444+doqEgNjtFkW90VQldCRDXWecXtdA4PZBhM0qK3Zk+8Ih2cv0tXPJ0HTyhav6KRiclJfLurRtQT/BdAjXh6gn3wnRz8CKA/351gjaR3rVKOyEnkpjHxjtUjLeOk5RkINYC2+ZysQMzIyXJu8ig9C3wxN6BQeUbEnwr7UQguSXyACJdHLak36z+GI+m71jyj5oToRV4tApZZjaVEP15tHk9Dy0AmWLqopsDXNaWEfEjJtOvSKEPM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4cb2ed58-b2f3-49fd-a4cf-08db3fa3098b X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 00:22:47.6229 (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: eLLVle2YXusWk3V4g3Ec8mC5D6XJn4/Zt0HXgovy1uAyls60LOq7tXyXB8fwh+dcF1fsIf4ujuj3wWXTjPVUhGdpkNGxGvI9UdHv/aJ2+FNKilSenGRcFZqVtys0NVnY X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10968 Message-ID-Hash: F3NWM43KM52JYOW56RMUMSHJIRGTV5YD X-Message-ID-Hash: F3NWM43KM52JYOW56RMUMSHJIRGTV5YD 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 CC: Liam Girdwood , Takashi Iwai , alsa-devel@alsa-project.org 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 uses dummy Component, sharing snd_soc_dai_link_component for it is better idea. This patch adds it. Signed-off-by: Kuninori Morimoto --- include/sound/soc.h | 1 + sound/soc/soc-utils.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/include/sound/soc.h b/include/sound/soc.h index 05004c048dd5..533e553a343f 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -878,6 +878,7 @@ asoc_link_to_platform(struct snd_soc_dai_link *link, int n) { #define COMP_DUMMY() { .name = "snd-soc-dummy", .dai_name = "snd-soc-dummy-dai", } extern struct snd_soc_dai_link_component null_dailink_component[0]; +extern struct snd_soc_dai_link_component asoc_dummy_dlc; struct snd_soc_codec_conf { diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c index a4dba0b751e7..11607c5f5d5a 100644 --- a/sound/soc/soc-utils.c +++ b/sound/soc/soc-utils.c @@ -224,6 +224,13 @@ int snd_soc_component_is_dummy(struct snd_soc_component *component) (component->driver == &dummy_codec)); } +struct snd_soc_dai_link_component asoc_dummy_dlc = { + .of_node = NULL, + .dai_name = "snd-soc-dummy-dai", + .name = "snd-soc-dummy", +}; +EXPORT_SYMBOL_GPL(asoc_dummy_dlc); + static int snd_soc_dummy_probe(struct platform_device *pdev) { int ret; From patchwork Tue Apr 18 00:23:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13214895 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 06A15C77B72 for ; Tue, 18 Apr 2023 00:24:42 +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 7EAD1DF4; Tue, 18 Apr 2023 02:23:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7EAD1DF4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1681777480; bh=Rg4IMg9HSQc2Sr58+u9l3fWjEPnlBoiFdfeVUui35Ws=; h=From:To:In-Reply-To:References:Subject:Date:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=iCP/HggSG95mdgPYOZ+B+UUMfaoAwlWyNf5Uc7szbTQfae1miC9ggLqA9pGMDjFLl dLzTnHA0ccu7pwXmtt9G2wCfjWi+1fBURMBnal/+WW18OOL7KFx8t9+o+BJ/to/S3F a3t9jMMGIkyNFUdTlUbqxy2/VlnxBeSnD3j/Vg3k= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 2F46AF80155; Tue, 18 Apr 2023 02:23:50 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 59578F80155; Tue, 18 Apr 2023 02:23:45 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2071e.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::71e]) (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 35EA1F80149 for ; Tue, 18 Apr 2023 02:23:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 35EA1F80149 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=kfJkda4N ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BbW4yvXXHgs0mVdXYPxhSRYuZGTfu7B5ry5u4wMJ2A3ZVyW/gwbCy8qDQh22WZhITkNCOYvYqaEemDeHYNvKG9CmPjx4tBhsaPR520Z7pybmLvVA4vRByGtBPxaNd1v2K1AxmHuT/hGXtzgabo2hmHoyKb+IvkozSLeRuPKOvNxEU94HTH+aykdyv6Oh1EqtAMsVAw+y1YCzSH5SvMcs9sI8DShS/yemGEJOWd5gDA2cxYLOXWUQSYayb1K4wlbN2OEqs4+3QLMlD5tLlJBWn6cXlBn2GDCDBIjoO0WfPbOx9bJrn/VzcRDrf3A5Ulue5v2C9qo/0NdEVPewOHjE8Q== 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=TGdsGLXilvyRuqIfhQ5sQ2F04f/JwMzcCnoqTqDCXB4=; b=VVi3LJNAFk/GwxXoqwBw4t+ygIBrybt1z7gOkHI2yGJmVI0hKl+10CpJm36IQyhisk52tT/QX6M7yO3S5NavJHV+N5syh1q+2LGgvBrKrcabaGNxwUFuzI6+WbxOzefDjl9I2fGQzHEDXUAta9YcaBOjotKA9rzkHgD9ODnSiIHvWgWeoHC20UtOqkGxRoMHNetAZ3pjLVAHlSwRElpbhQdsSKf7/t7tBm/vmvn03PBlMIAc7A2/Lj8SnrqN14JEkkaVMuXoZ9DH4iU9+w9HUy3+22dMEKoARdzT9INhpUBEVMbR+j+D2JW5nu0mF/cW44AuUKXMMh2FyME7XlXY0A== 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=TGdsGLXilvyRuqIfhQ5sQ2F04f/JwMzcCnoqTqDCXB4=; b=kfJkda4NNwEPjvFgJTcUh6nR35CUAPnDmtcv0iSoi6bu8j7VukczTH2N+ww6opxAS+EH7PLVU6K/gwKJeH6ynk7AykUSF5dHh7ZdDv3yUvywBi4XKZ8AuqPRU4zj7OPPUcnfYfGA3K4pGQHiUarTv4iZypCSuKs37fsWYMMxrkM= 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 TYWPR01MB8855.jpnprd01.prod.outlook.com (2603:1096:400:17c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 00:23:28 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1%3]) with mapi id 15.20.6298.045; Tue, 18 Apr 2023 00:23:27 +0000 Message-ID: <871qki3uo0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Mark Brown In-Reply-To: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> References: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 02/11] ASoC: simple_card_utils.c: use asoc_dummy_dlc User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Tue, 18 Apr 2023 00:23:27 +0000 X-ClientProxiedBy: TYCPR01CA0086.jpnprd01.prod.outlook.com (2603:1096:405:3::26) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB8855:EE_ X-MS-Office365-Filtering-Correlation-Id: 08558188-6435-4446-6d07-08db3fa3217b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BHUQpDnwE7fpbmIsHfGzmdPuEyHokas2Mhr3g9fOwXQAClFG7HihgkL3gB3LbNhCvnTphmISQ/fvUrd3p5kWCsdez8Hdv4ol8CodqIN5/DdnHfIv7pWQtykR2J7abcX/1H2uz/fqL90RQNlCpCCE3wlIvLBii4GhFyUqm0YBfcq+FjoEN9xcbPtyzT6cJ+nI5RVExmsu/8JOUJYZAaR0tPxL/Ko3lh+NIocsvS/JR+wdtsBg5z311xcRxRjTzXiUdHzTb/XC6kvS8Y4NwM4RPrOurxYlbGE/4wLuW+r4xr+99KFePdK7noASNxe5zDlfOWRVazaZWGhnttX+OBqVPmZhxip/lmPPSM19rEzHZ/WKnNCb19bJOgpwAcJwYKwsHAaROiCx+rCDdPhQWuheZmbf+m5pZWKHkeHwlF0YrdOqw6NgjGwGjMwaM5h1idl9ReN3K+gHudeHibC9uXX8ELuqoSKMbWiPhw0xzBVEGmj+VlCGB12OHPeZsFawK31rkArr/9F5s2IjWVERe61iWcrybQmqQNWZs0Fur6i2IdFt+BS0XB2SrXwTvBraJmBF2JMfaKenZsbCHTBBIdm/YsiYwVv7IFRkG6/2bNh0fkAiEFPDDlFYobszcPFGT5Cq 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:(13230028)(4636009)(376002)(136003)(346002)(396003)(39860400002)(366004)(451199021)(6486002)(478600001)(86362001)(2616005)(36756003)(26005)(83380400001)(6512007)(6506007)(186003)(38100700002)(38350700002)(52116002)(66556008)(66946007)(66476007)(316002)(2906002)(4326008)(6916009)(8936002)(5660300002)(8676002)(41300700001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CeJn1YdN3AceSgEnTbJ3POIsMtxApqBFl/AJRupUSmFIcZQvwmmbyybb1J97PpNqw0xfP9CYoH7MuNopA7A3ev3sZYeuvYd3fx/sU+aGV6mKwq6GR7ExJkgcmT/31c6fMBF6w4IQXosIFnR/+F9CiAkOW4Ju3+zJWjyvlDozBt/C/apVjImS0KkX3UErKyQ+DcoamEQpBxN2CEuHc2e2YgfaVfUYnlSca+cIf6MAaSwUfq93Mz9Avj8y/1T84gifP0fonNKQqw1oiVS9iUikWr5IYrxdMalAIsMv9MJGcYpZLhVVK/bCkikx/lfnWkSNztJOh5RkSpWzLpnSLG5Vk2zWwZ8qE/IGvBssR4+fQhdRf4nqY9YtoCIgjnDXjbxWHfAOAXw2t8PpRmfl4BCdWgDuLFbebm+DtqyUxZPjZl74IJs6cNcSCQq52SbO4wCo/WO730ySq5TGfkcbotkwO5OqnkrNVMFkOyAomSELW6lfUvnsrodlKpgC5Q5lqtPf8GIig7DDjyMeUVk86gdOuppPIyoXJC0H6A3iCdGG1V1Fg7Dn3yf6srarzN+2ZTqKpP9wvtWNQMohlw0skoT4kywkxdvj0EgZT3D5ypAfti+Y0qngNzkaICXd5u10u+RmFwx19A63iaxI4BeQBfptWDjtU95h9Pdw7qK1GV81nL4X6TLdxfAp0pX0WAWTuKBUrbrZIBfLvGwGHVyJsv6rc48kBuMej4PAMEKMl/JxKyf/rtaPSvz6Aqe6AweMj1SLlLHt42tV1cFKzyZSeQWVA2hgdFfGMSeT68cS4iyEQ6aTke7QlgUrHtnDm6ftkTjzZrQzor/ZxqzsCMBjKnM3j9tO3jN3WNI7s6/Hvqm9ymkGM6apr2uJxCtAOX9Q++RB/Kk9xEtyWSHOmjnQ3mK66e3XhQ/0qgZEzIvMwFDjab2E3UC4dAnupOkrq1prQTzBkw5b/nD0Kh2BTX62ls5VwXqalPq9tHlFXEDdo+qrjbmxxWvzCAxSZK1OifPfpiUeYezSxt246EgONWSRDaQLIBMlDV6WFBJ9bhJOhJEe02Htj9ZoBcLoUkZPPILA4Dj5HYn3B3peKv/GHipNMSRxpmf3DrrdpeZ66oBq6no0v5JOBntZ18jOhviHvTgSmoHRLfb1+NmCxUj1Y0oaxudob4/424yrdZPyZQIBYOmQ8xp5Nzk/4oZEfp3IOFE8dCYNdNZOBiDmuClOYL36tUpo1UOUHPppEAM5IPabcEK/sVVbNrVjq+Jng7hQKJ9Y3rXIYzHqtNt+NYHCrLbvQh6SoJHtlZMdAXDh9x8UcCFl+XDQ6hq2R3BO12+JaAhVSRJs5HgEiFBCsd/vGBFrMgPb860ayF/YIJUwmLAuwOibpyXfQMrw03f9f4FVbjFO1fnS0i519L+IkAtKqu+iNayVc/8gkYCEAGW1qQRYzcfjCiVz18zm5DXlhza6p2ycVOpbAqQYzM4/haumA7H2n8BajW9/ViDQwFic11pD5BRI/dc4UZq9M1GwXMwAoeuOZWPpejwpqsqZKd/GjNVEu835HUjs8PdQb2BskyGIBoELj91+ZYpbvSKIWmKfQ4Cl3o6hDR5z6xqAvP6detYxdzmFsaLc4CUXouH3ce7V/xdJNqI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 08558188-6435-4446-6d07-08db3fa3217b X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 00:23:27.8051 (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: AueMTLIfnDsFsaES1oMDnPIAfwZsInIf4sOgzx3ziNoaF1DCXBx2zBRwIXbh5c8RJUdehLJ5mdBnWO7TvHiVyIAU5vfzF53HdX41yHgM++6A/VBOSl9JRlx0VFVqq9FO X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8855 Message-ID-Hash: 6NUCXNW2SYPH57TQF5662XIDEAC5H7VM X-Message-ID-Hash: 6NUCXNW2SYPH57TQF5662XIDEAC5H7VM 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 CC: alsa-devel@alsa-project.org 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: Now we can share asoc_dummy_dlc. This patch use it. Signed-off-by: Kuninori Morimoto --- include/sound/simple_card_utils.h | 1 - sound/soc/generic/simple-card-utils.c | 9 ++------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index a3f3f3aa9e6e..0e46f985eeda 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h @@ -73,7 +73,6 @@ struct asoc_simple_priv { struct snd_soc_dai_link *dai_link; struct asoc_simple_dai *dais; struct snd_soc_dai_link_component *dlcs; - struct snd_soc_dai_link_component dummy; struct snd_soc_codec_conf *codec_conf; struct gpio_desc *pa_gpio; const struct snd_soc_ops *ops; diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c index 467edd96eae5..b5ac0f0d5e8e 100644 --- a/sound/soc/generic/simple-card-utils.c +++ b/sound/soc/generic/simple-card-utils.c @@ -889,11 +889,6 @@ int asoc_simple_init_priv(struct asoc_simple_priv *priv, dev_dbg(dev, "link %d, dais %d, ccnf %d\n", li->link, dai_num, cnf_num); - /* dummy CPU/Codec */ - priv->dummy.of_node = NULL; - priv->dummy.dai_name = "snd-soc-dummy-dai"; - priv->dummy.name = "snd-soc-dummy"; - priv->dai_props = dai_props; priv->dai_link = dai_link; priv->dais = dais; @@ -919,7 +914,7 @@ int asoc_simple_init_priv(struct asoc_simple_priv *priv, } else { /* DPCM Be's CPU = dummy */ dai_props[i].cpus = - dai_link[i].cpus = &priv->dummy; + dai_link[i].cpus = &asoc_dummy_dlc; dai_props[i].num.cpus = dai_link[i].num_cpus = 1; } @@ -943,7 +938,7 @@ int asoc_simple_init_priv(struct asoc_simple_priv *priv, } else { /* DPCM Fe's Codec = dummy */ dai_props[i].codecs = - dai_link[i].codecs = &priv->dummy; + dai_link[i].codecs = &asoc_dummy_dlc; dai_props[i].num.codecs = dai_link[i].num_codecs = 1; } From patchwork Tue Apr 18 00:23:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13214896 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 D0049C77B76 for ; Tue, 18 Apr 2023 00:24:49 +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 3DB05DF3; Tue, 18 Apr 2023 02:23:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3DB05DF3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1681777487; bh=vD4Tk8iyNS2nCdXm8WYldWnopHYY5gqAsWXrCngQjWI=; h=From:To:In-Reply-To:References:Subject:Date:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=tSXlDxM9cpAmx5L+2x9oQM0IAX2wzJMLfVszBKFCnz/+Ij4TQ4WdREvLh/cMId0GY djkVcuXQcf/efmFJInqbzxXV2hpsO8gbnoCSq3wO7urBeK+8nsh7xachCkgyJigKYk lPxoY9UzZ88LtNMVhqYQl+eYWmziNOvjBULswW1Y= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id ACC87F804FC; Tue, 18 Apr 2023 02:23:51 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A4F82F8019B; Tue, 18 Apr 2023 02:23:47 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20720.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::720]) (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 2BDB9F800F8 for ; Tue, 18 Apr 2023 02:23:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2BDB9F800F8 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=PapUfNb2 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DLNl8agIxPxqkm3O4ZAlVm1pFoMspQvHFHHEA0ZGd4dNRDq+dEOCDpxqYr+ZWs6H07ndMsaiRNhBNg7lTU1S6k5G9gRHC3ImmMmLSxpS4+kRMnVnPHPLbNrAb7svjsQHKlRbETU9l+MAqNfQ4Yz3jxQFPKTe6G6RrsFGZbYbInLR3pXjC7cZ7ptJyE2vXHpL5t3P7YRhEPRkPC+9UKKITb7ViHCANnn6Imi+ZvEsEgpRQBYxu0s+x87bmOiNid+yNF/b/gvks+F+eAzHVP4YIMkt/8Cj847Qcv+tyKFPjQMKOmAG5skmM5WOZ1Sd1e/9hajyQpuowcFAvFdEI1jjUA== 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=N3/fvya0HQsFubTh9VjgKAsBwKWdTWp4DyQllrwcoPE=; b=g3eiMmBcrTm4++JnGyTdoj4c381s5rTnZlHGH/RCXhjAsXbJHLk52y4zPpeNL6MAWMVcBVjnRb/w5+b8Rmhk0qb6l+gpRz7kfrIMfrzaCHcR3C+zPmPSIajnP7+vohlH6V+5Pvt6bCK8H2YidrrosyDKnC/EQtwzJsPObpSQgeQqB+ot5otRuYlLDmBy/oSFuI4k9O49vCqDMCCMmt0pRGWmaYLoxZ8UwXQzgbGWW9tAtFTGNrT6RhoR3yrkuRUjD/NKctJtV2eQuiEV0FQAVZC+IugLgjXQdzhPHrtE/r/TOmTOTJZLCBvFDKe2JHPVZoJK6FKbfRTVpkqs1Rt+vA== 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=N3/fvya0HQsFubTh9VjgKAsBwKWdTWp4DyQllrwcoPE=; b=PapUfNb2oD+nGiOgieApzRQYepc+LNpYPSaiUnQbj38rIKR9tTRodoBqsaSh6Yw1fvTY5qCZ60XQ5K1CXNlyDt6vgCyJMpFCohfH4d2pRdVfKWabUpq2eEwlC8t61CLC7AZ+s+9pOOyMCVllCrveVr5cYacBV84cgomd6EbU+80= 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 TYWPR01MB8855.jpnprd01.prod.outlook.com (2603:1096:400:17c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 00:23:40 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1%3]) with mapi id 15.20.6298.045; Tue, 18 Apr 2023 00:23:40 +0000 Message-ID: <87zg762g38.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Mark Brown In-Reply-To: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> References: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 03/11] ASoC: ti: use asoc_dummy_dlc User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Tue, 18 Apr 2023 00:23:39 +0000 X-ClientProxiedBy: TY2PR06CA0007.apcprd06.prod.outlook.com (2603:1096:404:42::19) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB8855:EE_ X-MS-Office365-Filtering-Correlation-Id: 241743f4-1bf1-4ea9-4ed2-08db3fa328bd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 35usLZqOykEuON7NP3z6tLkxX+0vMaHR54HqPczx/gLRq/F8+wBtmgzoQvndYTy8bbJD6/89goK2W1A/iV4fDlUpRSB4t2wHweE6lEiJCY146f/7kY7Ih1iOwDerUYsTgSZZA5bJcIRMKwh7JZnRn7UhTqhK2N3376Uf17j4/bnFK2HiRcbDIZWcbUsHzaNKp8Okx5BrG1WsxKhdVSptUW1KZCy9gKqU70ozjKi99D55U/jAV78k2qaqDrcwTrNvJOI/wKPDHWY/K+lnMDRpZHXq2Oe1FZWUVOTdKSd73oYFM0IjGt0M/mFcxRmIGCNU3BHDHOwn4FZvjdIDehWOZiM7+oaLW/OMz7yrizxC0BW/NS9c6Xnso/Y7QOd7woiNyJQvf9zfRx/BDW3P+XY6Hu7Scr1TlId9uw2xZIxJ0t+zbVXCoWGFvbOkNgLkoBmVMwx2W+e6UJrVG5bJCOdprdpMnEIpqYjlPrix0v0h1dHS5tcdXM7owb41ckfsr37BrB8ROiPdBSHNQuiJ9IbLOBn31h9XPrPylB9oFGnJNZ+tjGTwlo4MgnbBmSdUpBpz+QQyYb67QTkbmbvlf/BPHFxWozuJevJJDcOJxFI6xXntvkjFfdvbcs10H8a182hi 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:(13230028)(4636009)(376002)(136003)(346002)(396003)(39860400002)(366004)(451199021)(6486002)(478600001)(86362001)(2616005)(36756003)(26005)(83380400001)(6512007)(6506007)(186003)(38100700002)(38350700002)(52116002)(66556008)(66946007)(66476007)(316002)(2906002)(4326008)(6916009)(8936002)(5660300002)(8676002)(41300700001)(54906003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: t+wzdvfd7AD+jJ8g3SeRzFhljZ75uaMTWlVqfticc3VAYEo7xp339uJ7eXNsTh34Ip6vuIuZwVZIDYgx44WvAnJhHvYUkpGrzMJZSCoyRT7PXYt0w/Pb9y+X9dAoJJgB2LSvmB5HaUHQeqpJq0reRxCWbzRFQMJeOMn9c5AwF4XGrTexKD/813UnmAb60MPM3D/45dvdAJ4Rt2JcY2Wvxr1dlU/Ig01UlSNxiGaYAKpHuYXA9sCRkpZIcfIzXAYKqbaLZMwGVrE3lNyXKaYCAOcR+Cs2lDTFjZ8mNuoVjCABvZzvyHlbvx6i5ZlOFr+Jm++XhNHcC/wZkObVPwv4+GD/pnNkthVG5gREpJMopv9+YacmF6gz0IsXVIItsUrSpKc6sD1vZKgdpS3TrWu3cprRFIKgMPkGc8GzwuNDugPD8bv3xi9AF2yZyxbRURt8JdmmttEqR/VuOIh4h6MV7zhbszIwQ0Oo1r/rPQvikWvLfS0FHibjnh8wXVBZkMzDKm3bGN2ru3vfLaA392TaNOCJWjfSh1xJW43OfnuDc+T4UNWBxq03ZvU3Y4uJxURg09Cm7PoNsOOOQg7uN1dSSzsCqCedZVXlJTaEnT8T0OYxNF1hXAavKTkGFb3dRpUgV7fUMpT5w8samrxMqfZA9xei1t9Rj0547+Yl1ZdpDFJ79vpXywCrK/9P77IP4ONEiipK9xUO5RkA9I6lCGzMJ4GP5e1BkS53r/6qn90/J4kdEXpMu8bahtf+o8qUBibvqpmRU73plNEA87pGNEw5yeC0GoyVJ1xJbEubO3mhmQURFWVAVMmJTLZqYjfjReYtRfteYYpbXPfpRB0uqk/Qn8o9H56efOz8Tw4XFw9TgjldoOrejkHRR/RbklacTZOkpwqHGuc/3ww7yhw1ZX/FmSaJDhJDwkJ/q4DK0M8c1ecKCdIzL3QZQQZs3JkDwqTHlS578t2CyRtTyLKJ2oG5gj/skaByL5m7B6L5YjEdYkzPZoLxYmLOIwgbZ3ZiAT1oxdrXbAwrYI9znJz1xHR1m4+Lbzfq3lXlFx3JwpNXBlI8Gu5s3gsVUbKZdEYLQeWpRwzbX7cHUZBPyJCg/jFSgu6JJEvcmnM03rFM7/eZcyxdRnk5mYfw3EdC2VsCJGA0vupyt8vBxNH8UuBiItLPxMV8bfKRIT4vyrzKHl4/v6sSaUnkMFU5IelA4GWEFyzXpIW6OJcqkAxhGmY4pwKQ+c2P8J5wi4Iw2b0y1C53x124DDkSnXkHex7Qzqa1Eo4LL4Rizy9RUTKF5BEWbFV5ae+AL/dPWso0Pbcrg2kuHgXU5R2NLTbh+LO9aoI4OqFYtaVbOpYxVMRRDqLE+uwIMt9k0uQ/nAqX6JPVjYQI9L2XwirH/X3NVLFfjsVudsCVYoydONVBAJvDVfPE1/QfX6Ry4094gPSPr1kBRrmSIdHNGCeQXPFF+uqES24kG03kYK+OGIUtteges+bfGDUbYo29mZA9q+NeJosIZBJ1HNcsr8GhyTuHWh0+RdTQCQiG41CV/+xweKDu4WhGcu/QPJvXygyoPUN3dvRc5+NQuS1tPzh2BUOitZRWRBYLGAusyCqCbGBbpVnvvGUvsR74psdXe3K8GPTkPhCqfEu1JOA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 241743f4-1bf1-4ea9-4ed2-08db3fa328bd X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 00:23:39.9666 (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: nItuYxvdUo1I9pmuGvMybo6BBGRB6uCm/7U008fdV20uwadUWhRo5qHp/WdUHGAgm8xE2bTkGD2VAyYIns+MgAk6Gm7sBsNoDGPS0TjGO8v2fnD4V0s8FB0LhJThLO3A X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8855 Message-ID-Hash: HXWHEP6XHIPFROPQBG6FUDWVSERORY5J X-Message-ID-Hash: HXWHEP6XHIPFROPQBG6FUDWVSERORY5J 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 CC: Peter Ujfalusi , Jarkko Nikula , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org 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: Now we can share asoc_dummy_dlc. This patch use it. Signed-off-by: Kuninori Morimoto --- sound/soc/ti/omap-hdmi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/ti/omap-hdmi.c b/sound/soc/ti/omap-hdmi.c index 96c3569d7643..fee7b82d7e52 100644 --- a/sound/soc/ti/omap-hdmi.c +++ b/sound/soc/ti/omap-hdmi.c @@ -365,19 +365,17 @@ static int omap_hdmi_audio_probe(struct platform_device *pdev) if (!card->dai_link) return -ENOMEM; - compnent = devm_kzalloc(dev, 2 * sizeof(*compnent), GFP_KERNEL); + compnent = devm_kzalloc(dev, sizeof(*compnent), GFP_KERNEL); if (!compnent) return -ENOMEM; card->dai_link->cpus = &compnent[0]; card->dai_link->num_cpus = 1; - card->dai_link->codecs = &compnent[1]; + card->dai_link->codecs = &asoc_dummy_dlc; card->dai_link->num_codecs = 1; card->dai_link->name = card->name; card->dai_link->stream_name = card->name; card->dai_link->cpus->dai_name = dev_name(ad->dssdev); - card->dai_link->codecs->name = "snd-soc-dummy"; - card->dai_link->codecs->dai_name = "snd-soc-dummy-dai"; card->num_links = 1; card->dev = dev; From patchwork Tue Apr 18 00:24:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13214897 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 14DCDC77B72 for ; Tue, 18 Apr 2023 00:25:42 +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 D61C4DF2; Tue, 18 Apr 2023 02:24:48 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D61C4DF2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1681777538; bh=0b6CUewAj9LG/fmyQbM7zY3aNXo+nDD0QUQAQzEQ8Vk=; h=From:To:In-Reply-To:References:Subject:Date:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=EA0kKWkcS3GbLUiqWOb330tFN5b1U0JSNRFLl5DJKZYzPMjqXXI4EqFUejBb+0VfQ JNJJ5PnyYe829+3A+avis+XcDDw9hwxbBA3H9z8HHmRYtPEryuAS7hDf7X0ap0qBtc QaDiIY2MqOBn9Pr3YM1ybytZ299miOd2VSwtxHdM= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 92827F804FC; Tue, 18 Apr 2023 02:24:48 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 36AAEF80155; Tue, 18 Apr 2023 02:24:45 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2071c.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::71c]) (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 6B01BF800D0 for ; Tue, 18 Apr 2023 02:24:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6B01BF800D0 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=BXFv3je2 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lWvBS9BSawDiXueb7b9mdSwE2WAG5iInoZ5zcJecHEgbHaypMnzPhPo0Ckfyr5AAcXrm6v75r893qlo5CJpASTvp+2UKjTxzPBmP/DszR5Hp1EgLQfjev/veY0nLT8LndxC4lWcFozaLNDV7Q3z43TzoKipe/WgoZs4y2tgyDagjN5jJSdWRRadh4T1L5ChNY0KEJ7dEliocaiNeh4R4KjSCWl0uEbr4V95FekTzHHwZZatJ2xilHTOvYvl5THCiptDiaYoQ4ZveSfqiwugxdYdsrp1FngiY0LNFofCrv3s+pt0/SBgci1v3tyU/fIEgS/1OTqKWi1/DisgA6STYiA== 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=7T8mCwmGzA7AsQ5pc9Mxi8wfsvjLsAWDSfYHUpyYH7Q=; b=b1rZPj0RTblQTxkL7G477fG1TagovLxQf6/VmxVX4GXOkbfvG2DYynlSs0IUwuxrFrk1wIcDi0nOfgVDDjq86B3Y+pJJF2onr6M4cAo7SFT4MM66hDBJSZWMoxC++LIWIfHUFYtRvoXRwSlWr/LRI2vepNnrTcMYM60mUFWpluVFFqRB8TPH+ycbfFInTyC7cS84RvdferCbcE7cg+iQgoOfWe7dT//2fqFHl0MiaZUGjroMVphANy9XoE4NyX4exTMeLdyw/F9fwgizX/cA6IeuHd4slBgmoB2bmE7HgIm1IqWkZMF7Iqx5/vDPKyWub61Ls1getLD6EKftFUyFIA== 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=7T8mCwmGzA7AsQ5pc9Mxi8wfsvjLsAWDSfYHUpyYH7Q=; b=BXFv3je28ic7RYikYU0t6uSLFo+lqaQP4jpq4pZpFDehncbWPYAGzR92E5MfRPPif0C/z/CdOufn95ZTjIcdtmsawWMEdRa2EiLe1c47Pox0U6RU5ykdthYeLVfmc/LmBsS51KToGRwiji7jl09YTtLCeHvG8XKu/ERLA1ML4dw= 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 TYWPR01MB8855.jpnprd01.prod.outlook.com (2603:1096:400:17c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 00:24:37 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1%3]) with mapi id 15.20.6298.045; Tue, 18 Apr 2023 00:24:37 +0000 Message-ID: <87v8hu2g1n.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Mark Brown In-Reply-To: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> References: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 06/11] ASoC: fsl: use asoc_dummy_dlc User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Tue, 18 Apr 2023 00:24:37 +0000 X-ClientProxiedBy: TYCP286CA0086.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b3::12) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB8855:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c6b6275-c0e3-4fb5-bde5-08db3fa34b00 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /JPQIKyJWyQd/tcO4BBZ4a2WRxwxnvkNfOtnKpk3xyjuGJgXCcwGw0bZVfoNLQUN0CwoTOcCpnKW5TGAdMyTmugIGdsqW1tSeHS3FuBKHYkdFaEYdC0oBc7mCKXkiTcCt1z+uJv7LiMLAi0klfLFaK5eZy0z46EEVCgo+/C90o3GI2bNyR07FskRAv52xqwr+byuyu0qnCAh7DFcjidHq1cjHSf8jKUjRiMTZH9TiiR8RGzYAGLkpevOGeWj5Jn9+JwuuxSLhsLLW8yKL243vsznR38SYESrZk4VxG1IHBaBHn2yL0+3TJrMZGi8HnpSW1b0wg8ulcMLuitxVkT8B/WF1veJ7RY4Mx2LO8TMRAydNzjA6iLCBQ3gjI99Gk4jL5zxmWdocVPLZibkONCIo1UjTNfpP2pT3J8heRfnX6ZPC1w3RUKtw27ZjkiwyhrADYLIjAEJiJop2w2ewp7feVZL2EkLB+zR2kXidEZ+NAf+YPpdMfARUqBkxkQFX2TD8opNGES+vRW8x7KQE7ljaYDaFmi8HDW9CprBU+nTt9iQKRdHJT40SGCfxJMaeMDI0ExW4ZkwXSNpZyUB2CBugrP6jVEFA3j9+Vs18PEPC3KEAtJge8t8lJrBIgGy2Utc 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:(13230028)(4636009)(376002)(136003)(346002)(396003)(39860400002)(366004)(451199021)(6486002)(478600001)(86362001)(2616005)(36756003)(26005)(83380400001)(6512007)(6506007)(186003)(38100700002)(38350700002)(52116002)(66556008)(66946007)(66476007)(316002)(2906002)(4326008)(6916009)(8936002)(5660300002)(8676002)(7416002)(41300700001)(54906003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3rdLZyY6M1kuVZAFkmR6ud458CsEIXCGuRBPQSzJacedayAZSqIdl3vtKzdmx2GbtxVDwUvGhUgsevSjcD2AYYnVPci5eXmHKw/NJgMFLTnlrfCSr/SMOrZikZX+M5zali3YDZ3ku0Wc04PTh1YI2zHW4niGBJeiaJK3houRJYNpoWsRe1zfw4ijR+WZU1vvmJJ4xIYog4AZ/fAbp2yhcvmxnIsQc/MDih4ppuzbeotYtAbkLiXXchKwzz3idcFNGgyydJSb3AtBFnWIfrki+svjRgBCtZINsg+KFxnW5/QUvYavIX7bzL41qHf3XS2jh6AXFFZx8+uf5B+LX9KJfwkTpq/4egnc8E5MWx3sIpd4FjU2qu1yVbe1Kv8mKtikXssPZBdelbZ678EcwD9apmXtcRTQMJWat9e4/2FaB72lcspZngMtpE5xALoLIC/9AWfzCQGp9twSR1DM9I6MiNFiQ4yFkYHZJoVXGWtMlb5dtM3sRIngzEXPokiobhJ6TqAj+VUhYsTmPC5jQ3FQWB5ih/pmkzUBf879fF8b70U29C3yAIhOMIRuJiFa2ppZOoP0f8aROS5JVFlrgeGJiUt6/axUjEeU6pkQ+qnuL9y/BnsUGsw8jR6orUsiBmFV9/CpWI6ppqV6HidFoMvQIsLiFLShwU0zTe09B/vC4vSGP+i9YEeDvK8fsBV8QoRDEraqZwkKrcaiNEMp3zTn/jBdhWk/DWqW65rMsLxPFFR4iRcxeiLD85Hs3ocilc8ccmXoawfEzqNmnYW5hUOO9mTkqjNmEJQ65hWEzQPrV9GdVPTI1tuIbEz/RKvQeFLrudWR9zsbxG7JxnCsYrlXzoIyGe/51a9nbWpfYX6PoBiLYWJYYWq0Fxfmmaz94C79M7TIO1BuOcg7r2EF1Dc58Xs9zAT+EImayl4/as5v/SfclGciDz/u5L6Uqrees+zrkoqqef5s++07uqYQJq9mC0kqPFMqnGyy6IAcJ5cRxL3OpmZ5VOpvSvG62yeYeZkP/jlykfTaRp/iFUUjwUCaHmQM++tz6yk7Hkz/tnNn1iW0WiKrYtm0WnaykUawqxrUYTJFLTlZTGwOeAF6ndklzunnDpnXXdgDJUbkahFFLUtCJqh3ZtYWTLL47zUkgXzdITXq8sha86gW6/IlweoyXwhAxa+M7IPb5ken/10Zkvg0bYT26UScH1bVP+fnpIcSXYcckEJGiqo2FPkdpmka4Q+5Y0Jp0eouMDBAG/v+Sg+4utxULqDpwN3wLNsquT4R+oB7P0PfQxhRho1f7ZVy+ywMCEfLUix0xxZ0uUz6XvUEbW0ku780/L9yHkJx5JjO6Z0hIFqFwvTqUZhok000+h55FQxKAMyctaHFRsrEnxd01TPOtnfCXXD+nI9d4Pg2LARyi/VXC2L8AczvRGlTd+C7YmodY4CmcJPgvwHJ6gBYVG+zSVq8R3hPdW+ItmHb9JiUzRaXOP/UjscDmkwj5dQMDtYyXJ5Q1a9kXMqVgWB5izAXUtW8MF1z8ZpiRhHsvA9JG4ulbyCuq4+P71FVH2k9MKZ9rgJ42XCs1ytaFYIUXGlThMlK4+xJjRwVpCmwrxm1sYpAWgNALiqEej+7P/3GCYHoV1YJdQEFkVXQuC8= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c6b6275-c0e3-4fb5-bde5-08db3fa34b00 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 00:24:37.4358 (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: Q5kOVKsXT8FzB4H77RoJHHFAtv4c7Pxqj3796XxU+xlieebz2Vw7k7E8X7M78e/iBPcaFgjfkOS4AX4sE9ADmAeeVHGhLmwmKr8pla2ogtZtBfWaX2ETRmXED6ZUgGFJ X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8855 Message-ID-Hash: VO6FUPD3IZ2FRAF3GZE4WKYI4NCNNYV7 X-Message-ID-Hash: VO6FUPD3IZ2FRAF3GZE4WKYI4NCNNYV7 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 CC: Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org 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: Now we can share asoc_dummy_dlc. This patch use it. Signed-off-by: Kuninori Morimoto --- sound/soc/fsl/imx-audmix.c | 14 +++++--------- sound/soc/fsl/imx-card.c | 11 +---------- sound/soc/fsl/imx-rpmsg.c | 3 +-- sound/soc/fsl/imx-spdif.c | 6 ++---- 4 files changed, 9 insertions(+), 25 deletions(-) diff --git a/sound/soc/fsl/imx-audmix.c b/sound/soc/fsl/imx-audmix.c index 2c57fe9d2d08..8287b366eea1 100644 --- a/sound/soc/fsl/imx-audmix.c +++ b/sound/soc/fsl/imx-audmix.c @@ -207,8 +207,8 @@ static int imx_audmix_probe(struct platform_device *pdev) for (i = 0; i < num_dai; i++) { struct snd_soc_dai_link_component *dlc; - /* for CPU/Codec x 2 */ - dlc = devm_kcalloc(&pdev->dev, 4, sizeof(*dlc), GFP_KERNEL); + /* for CPU x 2 */ + dlc = devm_kcalloc(&pdev->dev, 2, sizeof(*dlc), GFP_KERNEL); if (!dlc) return -ENOMEM; @@ -239,15 +239,13 @@ static int imx_audmix_probe(struct platform_device *pdev) } priv->dai[i].cpus = &dlc[0]; - priv->dai[i].codecs = &dlc[1]; + priv->dai[i].codecs = &asoc_dummy_dlc; priv->dai[i].num_cpus = 1; priv->dai[i].num_codecs = 1; priv->dai[i].name = dai_name; priv->dai[i].stream_name = "HiFi-AUDMIX-FE"; - priv->dai[i].codecs->dai_name = "snd-soc-dummy-dai"; - priv->dai[i].codecs->name = "snd-soc-dummy"; priv->dai[i].cpus->of_node = args.np; priv->dai[i].cpus->dai_name = dev_name(&cpu_pdev->dev); priv->dai[i].dynamic = 1; @@ -264,15 +262,13 @@ static int imx_audmix_probe(struct platform_device *pdev) be_cp = devm_kasprintf(&pdev->dev, GFP_KERNEL, "AUDMIX-Capture-%d", i); - priv->dai[num_dai + i].cpus = &dlc[2]; - priv->dai[num_dai + i].codecs = &dlc[3]; + priv->dai[num_dai + i].cpus = &dlc[1]; + priv->dai[num_dai + i].codecs = &asoc_dummy_dlc; priv->dai[num_dai + i].num_cpus = 1; priv->dai[num_dai + i].num_codecs = 1; priv->dai[num_dai + i].name = be_name; - priv->dai[num_dai + i].codecs->dai_name = "snd-soc-dummy-dai"; - priv->dai[num_dai + i].codecs->name = "snd-soc-dummy"; priv->dai[num_dai + i].cpus->of_node = audmix_np; priv->dai[num_dai + i].cpus->dai_name = be_name; priv->dai[num_dai + i].no_pcm = 1; diff --git a/sound/soc/fsl/imx-card.c b/sound/soc/fsl/imx-card.c index 64a4d7e9db60..78e2e3932ba5 100644 --- a/sound/soc/fsl/imx-card.c +++ b/sound/soc/fsl/imx-card.c @@ -615,17 +615,8 @@ static int imx_card_parse_of(struct imx_card_data *data) plat_data->type = CODEC_AK5552; } else { - dlc = devm_kzalloc(dev, sizeof(*dlc), GFP_KERNEL); - if (!dlc) { - ret = -ENOMEM; - goto err; - } - - link->codecs = dlc; + link->codecs = &asoc_dummy_dlc; link->num_codecs = 1; - - link->codecs->dai_name = "snd-soc-dummy-dai"; - link->codecs->name = "snd-soc-dummy"; } if (!strncmp(link->name, "HiFi-ASRC-FE", 12)) { diff --git a/sound/soc/fsl/imx-rpmsg.c b/sound/soc/fsl/imx-rpmsg.c index 89178106fe2c..93fc976e98dc 100644 --- a/sound/soc/fsl/imx-rpmsg.c +++ b/sound/soc/fsl/imx-rpmsg.c @@ -92,8 +92,7 @@ static int imx_rpmsg_probe(struct platform_device *pdev) /* Optional codec node */ ret = of_parse_phandle_with_fixed_args(np, "audio-codec", 0, 0, &args); if (ret) { - data->dai.codecs->dai_name = "snd-soc-dummy-dai"; - data->dai.codecs->name = "snd-soc-dummy"; + *data->dai.codecs = asoc_dummy_dlc; } else { struct clk *clk; diff --git a/sound/soc/fsl/imx-spdif.c b/sound/soc/fsl/imx-spdif.c index 114b49660193..547be9438333 100644 --- a/sound/soc/fsl/imx-spdif.c +++ b/sound/soc/fsl/imx-spdif.c @@ -26,22 +26,20 @@ static int imx_spdif_audio_probe(struct platform_device *pdev) } data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); - comp = devm_kzalloc(&pdev->dev, 2 * sizeof(*comp), GFP_KERNEL); + comp = devm_kzalloc(&pdev->dev, sizeof(*comp), GFP_KERNEL); if (!data || !comp) { ret = -ENOMEM; goto end; } data->dai.cpus = &comp[0]; - data->dai.codecs = &comp[1]; + data->dai.codecs = &asoc_dummy_dlc; data->dai.num_cpus = 1; data->dai.num_codecs = 1; data->dai.name = "S/PDIF PCM"; data->dai.stream_name = "S/PDIF PCM"; - data->dai.codecs->dai_name = "snd-soc-dummy-dai"; - data->dai.codecs->name = "snd-soc-dummy"; data->dai.cpus->of_node = spdif_np; data->dai.playback_only = true; data->dai.capture_only = true; From patchwork Tue Apr 18 00:24:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13214898 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 A7519C77B72 for ; Tue, 18 Apr 2023 00:25:49 +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 758AAE0F; Tue, 18 Apr 2023 02:24:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 758AAE0F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1681777546; bh=B6pMiZIuiWj4gHxFk9ROuez4bPCBeko7cVhaNMuDFSs=; h=From:To:In-Reply-To:References:Subject:Date:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=kJAINWtR/+zzb5GEmum3PbXxMmgZXn4QmxdRD/lQ8RYmTufuR4HkY61r3A9vLWH90 n8IKDTkVYXXlopIE2fkcYncF2JWTg2E+9ilX+ZN83Ca4RcrqMo6X9rrny5/jKDd6/X soXj7n2HfCPLTIJ9hDD78iGBotRXuPnCtAztYDO4= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 31FEBF800D0; Tue, 18 Apr 2023 02:24:56 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 04880F80510; Tue, 18 Apr 2023 02:24:53 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20725.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::725]) (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 9306BF80149 for ; Tue, 18 Apr 2023 02:24:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9306BF80149 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=EJlSjfPu ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XfKgWturI32xsgkxwwF7CzSK11YRF0DfvCEtm43Ee6NLdgAu7KTDNLavd1vJkZTAmsJiP/SbcErurrqAudcBQfSgyItKT5n6Ky84awGPAPo5/rCtLF737V8vlRCTBC9MxhA355OjGyzYK3iDuObFDzqCMKvz06QEOnbWNLeXu3KpqGM1BWHDRjpm32+guduphB/DllTfSupJvIM6VJVeZshdRlMXstxyI4PFGlDmgRgVE/xjUsR+JzfuFaln5CEaTZidCHPCBm9XtXvbHy1eHGSsRwmeEoKSzYKMIFhugW5j+3X8u5oI2KOrz17bUA0F+rO60R+aCnto3Nj9KueRLA== 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=DG7k8UGtCHvZZMsM3BMgjlksc9muxPdsnEU2Bx8IXzg=; b=VX5orOXH1Ok4SHKTcCwApmugb9++zuXBOFs/VjLX4c3iyS2b6+MUTqwBzkM3Mj8vQe3nz7p4uHz3OOcOKI4g9QngZYpDVhkSbVf+fMPMtyx413SxipQPeSgf0t3q6VAVXfcLaMeL0ZaqgmksY8xuvbHRfcoEpMkgwJZMHxs+fqOGNpIYMIE6tdso8JXy1tSHISu+S0qhcGdZSK3Urzz47lia1u6tBm/RsMRbG2jEc+YyblQU4pM+Wjph48g6jLPo3ErBF0hCx0PVVclyvUG7Ie0yET/Uwb6lnHRASSPjSRHiY1zvFHPc4/TbcFGUCFpz6Z9MKqi+x7GF8dk0t3MpJA== 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=DG7k8UGtCHvZZMsM3BMgjlksc9muxPdsnEU2Bx8IXzg=; b=EJlSjfPuXLzZ+1BGReh3GCkdxTXw5h5QtgPhW4Z1Q19YIBwqfU4JB5brr4/wgAEiNNaMMe4vX5EkBRzzcAU4rxc9C15sOQHmc4FgceCuLLQXWuhCHwQmw9FWU+pb3l2T08/3fSUGIi1dMNKVSQR30mlp8zwP0K5fytgn9jNKmT0= 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 TYWPR01MB8855.jpnprd01.prod.outlook.com (2603:1096:400:17c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 00:24:45 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1%3]) with mapi id 15.20.6298.045; Tue, 18 Apr 2023 00:24:45 +0000 Message-ID: <87ttxe2g1f.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Mark Brown In-Reply-To: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> References: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 07/11] ASoC: qcom: use asoc_dummy_dlc User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Tue, 18 Apr 2023 00:24:45 +0000 X-ClientProxiedBy: TYCPR01CA0132.jpnprd01.prod.outlook.com (2603:1096:400:26d::17) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB8855:EE_ X-MS-Office365-Filtering-Correlation-Id: 1478852e-a3b1-4200-1976-08db3fa34fab X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ure4YBH0Bn735diYSCksfo12+2jsdAx7dUcdVIyiGCl+MNJSKI6nyWwUA67siT0+txjyXSikPr40QCRWkVmzgZ9TqP+4dOOB0X0pD+ZeQTpitvtnqJPwtNxIIWG96rBxXjBtsGpKM18bLkiiS3VxP2y7bS7dlMG8p0Q3qrJmIUs4GyJoyFknyQvVB3lkw8urKZhrfWRYUrPZA3HRQqqjTReJHlYSesjdMUPEgfLAstlH2ARdFJAwQkwa6mWlStl88VjaSYckkBali7kBtDdTqnOAMr8exCH8Gw0NHbAvVczUOVSzrqMNqIMB9mEymglCW2ENXGt2n+OtPkE145RivFUU90jqSOitt6+caZJNL0am0pQgDBse4D4EcGo1+hlXL16wR4st/DfI6Yi8dMAcfOu96Vz3VQADPkC7ZYRFEkUEzYXoVNq+ezaW598jJ/4YQhIj57rrRfILM5/w7Js4T7Rk3/vyCXqtava1iPd3Elv4E+VL0MKrLnkuODAx8rCUj/8DlSQVNRQgT/vsD1raYtIcZ6OdkSdz5qbwb2fG4dmcga3tk4/2ywLKvcv23hFOcRIzRR+YgasHDla2wY1VQC5Qu8O0qhO/Sz/Nl2u+HFsGjO/BvtXAqsU7p5oZezMd 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:(13230028)(4636009)(376002)(136003)(346002)(396003)(39860400002)(366004)(451199021)(6486002)(478600001)(86362001)(2616005)(36756003)(26005)(83380400001)(6512007)(6506007)(186003)(38100700002)(38350700002)(52116002)(66556008)(66946007)(66476007)(4744005)(316002)(2906002)(4326008)(6916009)(8936002)(5660300002)(8676002)(41300700001)(54906003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sUF3odDAYxV7dFxcP1XHdXEibfBX2szf1WhioJXQMbAsPpjUudWYwhFDq6/rerf+XhAWfiZqOGpfMDNpErYVEUEzJrOW8wTy5QpplX/QcKekwdf9f25fRyqR8+VN/TgODed2bdjW0aBXiTU+b0LW8Hm4QtHQzevH9WFYFBAzrvluq3gTtxrtzs1xVwd7CoqkxAHry8enyhzAjWBv1IN0CjwtSAzDvWaJCljVyrSjCSF+jHSQFR+7pwW/BR++FIUrxGMwyd4iO3I0/gkK2+EuyKwWbCitm0TjBAjc3ZzXDgEs+HnfmWwgBVUf+1v9c0ZAtkTY/H+Xe3Tzil5zreB+Y5RayNUcqzscgEB3dvulQtqxceiOArqGR5qg/h7ccIz7DbCgXNoT8DGrI5dwjKAqK56h3q7ZwBx87IBbA+QhT0ZihLOTXEEMyH0YzkbYweVA1S02uIqfPHu3svXx2xOIppii0SwoT0yN20rrCSc1o6RoYpaNVgOoNG1Njsh1ifC4PvtTmgmanU916MeJKPHrqOpe3SMbjgiObeh86v0SMhCdShfIQxl2uIClFR0qqlfatpaIx34WznFoaLE4kGXPON7e2aOu2K6jTf+6FTSIElnV296jnlTYObTJALjXxmQLdNsCd3hTxy4JUWWU6Hplhxv061s4NurXsCF5m6951SCVav/z/GOous6wioe0WbzxVov8cVwBUgb6ElmT0Wy16DIXFp7AF1mc6qszxpi1YTLOu31S/gmyrmf5bPXnBxWG0eCDhbYZkhlJayc7lkog9OUmhGUZkCTBVQX8/3QUhbNCih0d9iqiOYI25NI1/+CwCLWalQMXC953Rrd4KL0pSbtWtdOYWa2BcWH6vZBe8d1MhJFvP5kSFmY8VGpwmp+q0+utIByR1Bg7WkIrXixPI5ta9Ggr6DV38PzVrPHirbSLtM6rA/mT84ShaegkzO0BnIrmEiOkcD8pYdBwtpj2M5yl1U8HuGrIr2UcOrX9FD1+1mOclfA/3NsJ1A9kJ7jkKbZU4nXdtTZRDhCIH+Z6I3m9WSAsgq9tDhNa8EpgheOAh7OOxg0VPfdeYFsjLCZqJvFS8R52ATOTtd9P35DLubCafOS2Lw5wiTISaOT2u3+dMnaPxNA8JeU/is9gu83+uQOPtuLG5A4cukUQJt50g8jiKG5vFQOrTlJMd9Ge0Lh5D9wGd0cGZHjE85YroRutpFZhuQsw29XFLiZ/1XplR6c+25J/kGCD4IvY+29PqY0lfE615oOVY1kLrNJKWdw0sxWA6Mkmy3LhEXsDyTLYvgjgaR1ZYmOkqrahzf5xRccZ5YYI95CpSongy8PriEbs5n6+xS5ygNijzXAaWFqWIONHbLzbNDOORvu6b9y9Qj58Yz77Qz73ZLcLJZXXCSn5ZGu896DP/c8hPRBhJyhi57NDVAV2RvGod7+kvzVwNd3dwFuTUOzsTSSbNVZyyyb/422z91/YTlYwnHsJ5Wd6/RpZqir1/p+pEyND5riXEt1xrE0O5WZXWzKPPNsAIO8yVBjcuTNh/+d3hoaOgHn9TMwxPy/DtnvRSWBeM94p1nLq4ojBKKjzgKiN6e4YxZqx0EqYsO/W95nTPyFGJB26SkrdAKCJZPNCUIrPX5iXKeA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1478852e-a3b1-4200-1976-08db3fa34fab X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 00:24:45.2877 (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: xzieA9b7rmzuG5Y8xd28MZIVVVqMLS1azwmLyER3nQCE+uF88vkQIPaOy9WjWTplGA1tGwZV/+tBMjIkqathtJPamz20A6pS0zv75fcunS0oc6yvAzddjGB68CuF5mYn X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8855 Message-ID-Hash: H6T236TM6XVXHCFGUUX2NXWEKJDWTHYA X-Message-ID-Hash: H6T236TM6XVXHCFGUUX2NXWEKJDWTHYA 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 CC: Srinivas Kandagatla , Banajit Goswami , alsa-devel@alsa-project.org 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: Now we can share asoc_dummy_dlc. This patch use it. Signed-off-by: Kuninori Morimoto --- sound/soc/qcom/common.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/sound/soc/qcom/common.c b/sound/soc/qcom/common.c index c1f24af17506..cab5a7937a57 100644 --- a/sound/soc/qcom/common.c +++ b/sound/soc/qcom/common.c @@ -140,17 +140,8 @@ int qcom_snd_parse_of(struct snd_soc_card *card) } } else { /* DPCM frontend */ - dlc = devm_kzalloc(dev, sizeof(*dlc), GFP_KERNEL); - if (!dlc) { - ret = -ENOMEM; - goto err; - } - - link->codecs = dlc; + link->codecs = &asoc_dummy_dlc; link->num_codecs = 1; - - link->codecs->dai_name = "snd-soc-dummy-dai"; - link->codecs->name = "snd-soc-dummy"; link->dynamic = 1; } From patchwork Tue Apr 18 00:24:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13214899 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 DF861C77B72 for ; Tue, 18 Apr 2023 00:26:00 +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 BB532DFA; Tue, 18 Apr 2023 02:25:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz BB532DFA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1681777558; bh=LAmiyTwlAKxFHLwd6Zg3vZM8aD6pk0Xqh2BzQi8OIUE=; h=From:To:In-Reply-To:References:Subject:Date:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=VPjqLKfXW7jI974Pkbp7hWzR0DLwOiOQi3GFWxUx1YqkCq7RieBvdfEFAmf8pty0U Id1yR1bv8ik4FoWzCM9M3rXk2jLavbJLDaMPxNe+L2Lj6ePa11f34lhEP3raPWwj8o hGBOhDq2Zycn/ryzzTW6LILrPN471jp7BmIdkbgs= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id B1707F80510; Tue, 18 Apr 2023 02:25:04 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2B790F80529; Tue, 18 Apr 2023 02:25:01 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20716.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::716]) (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 33637F8019B for ; Tue, 18 Apr 2023 02:24:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 33637F8019B 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=Q1jJLSEk ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SDChEHLQUGE56pg0HvjJtmqA0fVWbaaS/0ncmraIYhqSOAO1CRAkPw+dZ+FTgx7mn4VoomLQqlRgsdBIlTzWsQug3RMKS6PPZif3JyZ5w+XFMwuPoKqCo/KwZoB25l6iO8fB5icor0WULAlSEVc2M7EAP0uTEzkoXWjQScRJZV6GP6muL3XONIGOfryLRR+pMaThgmLd1mSiATcWOpfYUb1owg5Ed6Lj5Z9hof5EG64E8ISkZl3lPgoFpTJSrwX5u+YXUF6C6NO8G0FRYeqbNyNeU96GBkH96F+9GOJJYzYtX2dc7poiYx2fp0PJHuujAunEHwbEmPsmDaomMez7BQ== 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=HFtqxj9wVAMvKAU/U1S2aAG7wPeT2lGiGrBx+NcqQxE=; b=Oxs6/M8KTjIeqOUaHwrPSX+lgzk22VIpOu/tgAeicEA9CTxxdrRwdDjzeB+3s2Pvi3itTaFou/+4C98Gu5pvyBmCyjgFCVar7kDcSbmtTkEKRGsSRSFsT4wWR6BtJV4KnSh9tHjKkswP1SmNlduROB65I51S3wWRQzPPjaIdt1qshg04SJpAtvVtI0U9Un9IUwoBuZuq94hi0iT2El5G3hOdDmJ6JwdyB3mfHJeiUjt9DW3JQoJd6Suj92X52O4Ov1EGD9/ouR267EqLeaTzz1/bvKhyuXWAOHFjdMvR8QXvKrbw0Bj2GrH/BT/4zuhE94p5miuQQt47wZSJupM1Hw== 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=HFtqxj9wVAMvKAU/U1S2aAG7wPeT2lGiGrBx+NcqQxE=; b=Q1jJLSEkQ+DnBH/jciKUFXoW+S8mtvq9dWXCOrRMxkhzJsoDbMBpv6IY2yWNag83EDDjkkhVhKF4TgoorZKxZAo6HeyrwLwRAfDB1kpM6LnYJMyRJZnePIo2iSx7kfymTQpo+gl9MnXowLs2lyUONVF+r6rdNZL5S+Jc/1upMg4= 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 TYWPR01MB8855.jpnprd01.prod.outlook.com (2603:1096:400:17c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 00:24:55 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1%3]) with mapi id 15.20.6298.045; Tue, 18 Apr 2023 00:24:55 +0000 Message-ID: <87sfcy2g15.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Mark Brown In-Reply-To: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> References: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 08/11] ASoC: atmel: use asoc_dummy_dlc User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Tue, 18 Apr 2023 00:24:55 +0000 X-ClientProxiedBy: TYCP301CA0047.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:384::11) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB8855:EE_ X-MS-Office365-Filtering-Correlation-Id: 5f5d4ff4-ef7b-45c9-74a1-08db3fa355c0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xPKqbUcxerc7QMSLXSi1sBANV3Ez28RU9/Xmmph3aMQvIzTHqkL7uQkrSoJSXLsL395EhiacKChOu15MEzq+dH0VtUKi8AJrtG8M+Q9VZCcxGaRNW9vAcs5SDXWej/023yMT9oC3EYYzxGa5FOprl+OASzLwWR/JVWQHXTWBKjkiBlE6rjw7Ox+SplqLC+ZfMyOaqP6KIhMFCXtiEwi7o6SwjXNC5RrBwwHcWPQqgdhS3NasnACUrpOHEXOyYqpdXPzbhr4/UW8QX3283G09Vss5X3LNBFQVvFj0ZMNyHHHEq2srCMKwj6dJfKM0ZQ+Smcz1I67hKtW10je7W/LKACuxIZMgJSt98vHhiY8dJ8JQQN2iwG3usIPY0imc7Kbgt7R+Kae5i2O3GVD/YBHWV882kVnuLGmfvq/0xd06NLXg9quye7cyusSnpqlY6qd6YvEhczXpnaIGYWRA7uzRSQK1J5tuIYxbNJtsYc6tSHL3NCIyiogY2S3NsGG0zN6TTuI4F7XL8vLtZbjUhucYIhpideMn5cHndkkMAaNibINDkfeDc9Rd3TYCyaKGofKauLHJtYmR2XZIZ12TdW9vBhlhIK/FuvasZF9k3DWSJVpZ26XJxyMh01S5BZTLb46r 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:(13230028)(4636009)(376002)(136003)(346002)(396003)(39860400002)(366004)(451199021)(6486002)(478600001)(86362001)(2616005)(36756003)(26005)(83380400001)(6512007)(6506007)(186003)(38100700002)(38350700002)(52116002)(66556008)(66946007)(66476007)(316002)(2906002)(4326008)(6916009)(8936002)(5660300002)(8676002)(41300700001)(54906003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cGjM/WdiBLEkRbwhnOaPAvtepWmovl+7dFKajVTOA0woaMlXoVt7evPrnmXKWmfRkOzMO9Am5P8rav7oeCfsluxtrmPcHMVNMGQkIfM3o/aKY/tRnQNfTfPD+j+lTZEDEAX6x0moW4euHKLRDj9JkzKruqd/IIML6Rb9jeE7oS23/2gPo8FGm1FMU05rCCe+4sSD6Rs1np3WWhGeEXsfnJ2IEKboNEPYb688wWhvw3aeLWV1kr6wGk56MGiYl52sf5TO3NsqB/Jpfm/wPhdHoLAmfzXSish3at0Zc1fJeTLOqJO3sj+fH5QWidW/Dd9cZ3/CQyNBbOz/XOR2lZAxFDv3Y/q0vGlX1+pL8GCCyLLvgEerHamrV6aBZmGWkRVhcABiWZwBUc/IPtJVHjYkcZjcEpRcCzP8VNW5ArW2MBxOUi7U9zTMQVUNmYPgNIegwbAkvYhusQqF6si+WsBnVZ56yUMMl2oR/NM2+wmhFnbJs6hDW6aJhAXZAarOHQc8OrmiZq0K1cPCI79CNB4nRAOuPHLo22VTGCHtCqarjwgkdkUQQXiwig6fQvLcvM76EX8k1X72nmX3vtbiAobxZcKVa6uvz4K0kqFYt2nJutrKU4Gp9M81v/D0ntCxYpTRT7zjJQ/s5v/s7t0cbB3RWWra0dOWjQR2eFUWsgeQDKg8nnki8O99JJSomgkBx15vTg7twK3p8+JNlrWuQfpvGJAEtElH8ZXpKXy56FiCIPlkg5PUPnabMC55skVP1wVCJXV/OnUFcKKI4PbvkhsfPMJqWz0J7fXmQ62wty93tQeyjqsr5pD4tR6guPRoZQCrV34QmybHCwdJ9CFCHLWKqM7B9cVBz03pWXThJ2VjHuZqSPuJGodzmMwTpThPNWGGwq8x8ALIODHhkNGsQ80fhZwD67Dv4PMlXKdiJUDz03Xo5Zqzjej3/gwNk+WXLKLHC2A2SjkqfPfQ9OTykdqEfKIr2UDFARcMHJG28iEdyfEFAj2DtVa+htR63CvMp82yVhBbbdgor6NYAcwF8TkNLBBImOdiKjznBK6YtFffn9a1nhayOo+0qPLLVPOWXe51BVW8VUxu2FpANAKKvZ4B9OSQA5xiN7C0sG+uK632jH6ldFoMw+hI+n63XLhiM1o1pls4Qsc97qbbdaKcLNneVLVYdagA5jxZsBgsjKWK08urvsZ2U8EGyiqzeKOWIi7O7aCUAAsq6rvtKYo0fAU6sV+dCiSKdoTcX7YfGw6V+70vHo0V6l5KeUo6v2mj40IPXC8pWnlKys3llstjyye1HiJJzCj+RNVew4YcA4wF0ApgmQhckmC+QD95cNmEd1fz1CFZQR9qB/6dDM/5q2qHhcIugZvx7VshfNb8u1BqrrWjS8wOjRGaKC1FK8sptRVNcGc4ZsrSxl0r87DhEISdPGyvSin8OtUewHn4TOve1kUwB5IcKTAlWlQenqXcxsBSWn4dkEzSSeVzFh2hMDSoS5KKjMcNBKK7fT0PO1Rp0JI+KXV9HunMpVKROc/OS9ayWWJMl7Rox1zz+wsuiyEjzDGrQ1bOS/zvkwU19v9ijrMxA7P24djdekbncJXSFQDc4GSV9psV5RwiWYQVNWAQgsWj2k67rA07GQ178FzRJh8= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f5d4ff4-ef7b-45c9-74a1-08db3fa355c0 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 00:24:55.6305 (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: MJxuMudvgWYEIwCBYZpIQCocXLVO9/pRsGH5kfaQ7S+IOsRzuR/Lo4aTsr78JUr73yXWywNQgJQaM0me2GFaJtAmSTPA6vvop1KO62upXaPykPl3FAgHfFyKpgQ9S6eJ X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8855 Message-ID-Hash: ZMCADG3D5XC4SHNPFMDFELDYAU632BZA X-Message-ID-Hash: ZMCADG3D5XC4SHNPFMDFELDYAU632BZA 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 CC: Claudiu Beznea , Nicolas Ferre , Alexandre Belloni , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org 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: Now we can share asoc_dummy_dlc. This patch use it. Signed-off-by: Kuninori Morimoto --- sound/soc/atmel/atmel-classd.c | 6 ++---- sound/soc/atmel/atmel-pdmic.c | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-classd.c index 007ab746973d..0fe42543a47a 100644 --- a/sound/soc/atmel/atmel-classd.c +++ b/sound/soc/atmel/atmel-classd.c @@ -473,21 +473,19 @@ static int atmel_classd_asoc_card_init(struct device *dev, if (!dai_link) return -ENOMEM; - comp = devm_kzalloc(dev, 2 * sizeof(*comp), GFP_KERNEL); + comp = devm_kzalloc(dev, sizeof(*comp), GFP_KERNEL); if (!comp) return -ENOMEM; dai_link->cpus = &comp[0]; - dai_link->codecs = &comp[1]; + dai_link->codecs = &asoc_dummy_dlc; dai_link->num_cpus = 1; dai_link->num_codecs = 1; dai_link->name = "CLASSD"; dai_link->stream_name = "CLASSD PCM"; - dai_link->codecs->dai_name = "snd-soc-dummy-dai"; dai_link->cpus->dai_name = dev_name(dev); - dai_link->codecs->name = "snd-soc-dummy"; card->dai_link = dai_link; card->num_links = 1; diff --git a/sound/soc/atmel/atmel-pdmic.c b/sound/soc/atmel/atmel-pdmic.c index 00c7b3a34ef5..133f17ae24a5 100644 --- a/sound/soc/atmel/atmel-pdmic.c +++ b/sound/soc/atmel/atmel-pdmic.c @@ -496,21 +496,19 @@ static int atmel_pdmic_asoc_card_init(struct device *dev, if (!dai_link) return -ENOMEM; - comp = devm_kzalloc(dev, 2 * sizeof(*comp), GFP_KERNEL); + comp = devm_kzalloc(dev, sizeof(*comp), GFP_KERNEL); if (!comp) return -ENOMEM; dai_link->cpus = &comp[0]; - dai_link->codecs = &comp[1]; + dai_link->codecs = &asoc_dummy_dlc; dai_link->num_cpus = 1; dai_link->num_codecs = 1; dai_link->name = "PDMIC"; dai_link->stream_name = "PDMIC PCM"; - dai_link->codecs->dai_name = "snd-soc-dummy-dai"; dai_link->cpus->dai_name = dev_name(dev); - dai_link->codecs->name = "snd-soc-dummy"; card->dai_link = dai_link; card->num_links = 1; From patchwork Tue Apr 18 00:28:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13214916 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 DDB87C77B75 for ; Tue, 18 Apr 2023 00:29:37 +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 27166DEE; Tue, 18 Apr 2023 02:28:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 27166DEE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1681777775; bh=qcN1H653t1C/KFL4fBmfdpn3vlUjf9ZzStMkdOWGla8=; h=From:To:In-Reply-To:References:Subject:Date:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=n6wXKJ2+gEu5f4drz3lr2uQFhbVoy2iEc8ql6tDRH5mTqubA+XkEn8VIDhLpvG3Bv XAJGqojfaE6SxlrACZE3f52sEb9mCnAMXFfhtgeoUqy/cigef3CvynevUxyQUvUTF3 bRUGya9FEUFKRxrsEq1r7ILi9GiOLb9u9vMCo9UA= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 158BFF800D0; Tue, 18 Apr 2023 02:28:20 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 79362F80155; Tue, 18 Apr 2023 02:28:16 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20715.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::715]) (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 852D1F800F8 for ; Tue, 18 Apr 2023 02:28:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 852D1F800F8 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=YZQK8MhS ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EWYzgOPSEn/YRXZWvT1zAu9DsXrT5T4kwayDan1Bj01DA1XQpoHbuS5vz3iWnfcwcDPcF2HOiWQcqqn2o8Hv+V36b4BWSp8Ny3yAK4KJUeZY02EczkJsERksl1KAFGTWlxVB+n6vKJXHYsckNHNUKx161ko9H6jrcpRR/J8VITM5qtHAYK2/6WFz05QCugZwyWvrAVsW5g6Qqa4K2Dyggq+tb6hSfppDgMK/IIrPYoQc36hanZtVKuSFngcy7U6fcaefKYIR5qL/AU/rWcti3ORVaeT331/V/jZ28K+GEhriRFqoS8dVGpAIru7Qcdx6cc/MkbZnKR6NfV8wobvHDQ== 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=toPofxRYG5O42jQiDJA/TzsU3o8U1GGGFIcrip1VUOk=; b=G9qK8/rM/ll1m6ocUjvzKfsidDFPCn0gPktFpF8MiY/H2Q4v6pUXAfFoE2hAmvjc4VOh3gmx+Qfy17Wa67BNcVSo8095yVXaL6I/YT1O6oeKLMy42OjObDlQiix5EmLcKEiF7MLWYrT2oK668NO1W5SiCwHyuRYWFBXGqcYZPo5U0dLCpsSO5iLdPibbgQLdAgycJiTAIRqDELl83MbvceCddzBqZZgKWedmpPlb00rzOm1TwCuPmMpj2ydd8pxvbX0IHEh01HgZOzDpCA3x2RfhYPCKxr/tXstr9i3MENmw2mzpbZsG3BxAnORI2E1DxxFGwrJgAv2jY3lMLPtGIw== 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=toPofxRYG5O42jQiDJA/TzsU3o8U1GGGFIcrip1VUOk=; b=YZQK8MhSVOqLBJfPyO8VT1Ypl40nsdKGgE8kcgTPoh+8EFcwiWpJGq/EV9aFXK/qY33TLZccSCajyIes44FWHlUJpo6VVkjTBrRpvr22NoMhlggUA/H/DqffD4iDCgSkXKRSrvkXDAdPj2xXna6DM1X8j601EaQRXoXwAe02Pm8= 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 OS0PR01MB5665.jpnprd01.prod.outlook.com (2603:1096:604:b3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 00:28:06 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1%3]) with mapi id 15.20.6298.045; Tue, 18 Apr 2023 00:28:06 +0000 Message-ID: <87pm822fvu.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Mark Brown In-Reply-To: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> References: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 10/11] ASoC: meson: use asoc_dummy_dlc User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Tue, 18 Apr 2023 00:28:05 +0000 X-ClientProxiedBy: TYCP286CA0238.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c7::11) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|OS0PR01MB5665:EE_ X-MS-Office365-Filtering-Correlation-Id: 6c847da6-00b1-428e-438d-08db3fa3c75f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jQO5huvuj6woWbyVgiJKb2dCqPxj4wfYqHSnHMkn0gTeI/RTNilb9+FK4/gqqcNtioBIcRb1ySo83sEZj/J7sqQ/4dLcPpaCbU/JXAFwaofnJBY2XqvslGax3GLJYKqF14VYYDfKloLzch9ynM7xNVEtwwxxioK1hxsJZJemmjiNcSRD5O7wlOwe7hGuqowYYfuKWea1045PADvPMM/LnStS4AKV+JV95gBzCemWaKGcQf+PoSvKkTGQKCy8+askRTjt9+dt/9lRhOE8cLLpq5T4fQ6S7CsRBJiS3C3ArSg8knjdFPsNBMiojA1vyPGfvYBRCf+ouKfV75Re+sePMkD2a7Ra9YQomxBOpsX2qBveodBkeyik8Mwh5XAyakDn886KYay4TmyCfzo8EqHLqHUaY9qrl8RZ4aNZaPzzo+Gsdk8+owz8erhUDjqotquAh57BLwyJ7yooPxLGpbzzzpyHaOajRJiRcPH1DmT+luv7hcW553OebK4ylgOt23CI+56WzM+QY9u9SLobrIfbZzV6l8YjPC2YY4JVFS7zpXfr0Is7OfMwV2xQ8o0CDxwMn8UQla4sn0rmpzcOJshXN27l5VQlOlwqjDFbmwUNG46/jSG8aUsvoWcuagD4jOBG 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:(13230028)(4636009)(396003)(366004)(136003)(346002)(376002)(39860400002)(451199021)(5660300002)(2616005)(83380400001)(86362001)(186003)(26005)(6512007)(6506007)(38100700002)(38350700002)(8936002)(8676002)(54906003)(478600001)(6486002)(52116002)(41300700001)(316002)(36756003)(66556008)(66476007)(4326008)(66946007)(6916009)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ddsSPMRYGm9fNWlCSjqubmRtGtcb24Ne5tluTg667CK9Ai6Ag0WC9UDXs+GqgWHKUJuEgxUMZDwahFfCSVctsQZ+SIjKjn4byaDdfXVRG1pCLSoqKvmepUTVYMFSPeHCRxwRGLM7W3F+7Daeh+hgHU9BF5dCGZuq3vUE72iHxapcv42oEDU7NLmWzrOWiFHltFUEgz5NUuioC2jMQBh+XX9yy0/LQ2gmptxQBDzzg2P9BW3OIs2Drto34eCxzJsLRvEk4smth4Zp6IOoavE+SuBqEl9dBRphd4nszbVOpWV2w3Z+AJANZy8bdCZdIczVZRYuuyPR/C24xktV9PerrizzT34FEV99v1XIj7E32EqrBVPEprlT5dzuHhKkNBDwYZPRTAnQUagdIexsvfNQY421OZj2UO4FAdeowdzsfah0Xm/aPkbSCYCnrUN5EuMBldeiA27WRFQIvgRLTvrjB46USca8gJa7hUp4fbBkU87wVwda0c2dUBkryQqP8zgs8eD20CdWLY/jvodXqIiCaL+wf/6fHt120Fzlo48w2QbmNqguDKdZsoFSi003qPtR3qRLNp+CmuIqJ1pPrvOaKyIR72TxWPCUTx8UhfcNpAiHsHpLOCI9b2nRI/HSmFxFGyoo5zkdn+ZoL/+GsAO9BWdoLgyaPacB6m5FUOaEU28vW4vUbJR84RFXMNhNHVd9s+qbiaz6lN7aFBTpYh/SuKB2/Ti7dZyuvnt3edhl0uBj3xqyNUSEOkKm/+WHHhRJhXR9LmNdngkcpD/vNRAtoZPJvFzPFUkhQsZ0uMBPZFGbOZftzeVtqkEjX+wjp6w2yfB25Dc9OCB+BuNRCD0PsfCsIlYm0diGKZfIqtf6ose4ltinOxySDsCRyPTxJkSYFpX/n4OTNvD9SRuXjZ+6F9NbwrnEUeTQXWIU3jxkUKHBQ2UeJHuCbLi4XCtQchOABGzx8YvmuRa9gSD77zL2J7i0CDZ7R4DBGSEtTHYZN1IDrehT0lMs3EenFKB6r/5jX7PitZVvRccmJdJDaQR8Q46fl/mufOZA5d30/0zQFLyUs/gRTtEwX68pwgNU6pLxHuVomlv4D7goc9C2qRtE92BQFUlabGcHzxdpMREw32SiwMihhwaJMRYVUaH68siaZ2lzM45HoVOPTFKbdOa8fpELGYylYdJx2yTtaJ/kTxwQePZZg2muzBjaCl+iAvKIvp1ZkZSEt/NNlhYNaB/vGbv/OfACsvSxwHOckxWOwwGsNHWn4GTj4hH5voR0R5Nd/dU1ndNTzCl8bGvMkyGStGMtCIAnirIoE9SOl6BbQ2lKcTcrBiITpQW8n8kZWRL6GFGDmaIWLCpdJPOt4C5qWobebIsP+tzSURSvKfhcbk4vy3v9nEf44YoBB9+ufxXxsy1XmdrMqeO26yVTRyIYoxXhY3FCfcj3Jh9lwOlVjpJO1kHkYhfgO7vM9tFS3Rtb+BOMGP/xMUIEJlpJMzkIXrPhRJyaUN8a8htN6ZOtEhmv2NOxOY17VVbXKA4fJ2DNB5YKK3XXK4LIu3HjegytbSmLGSmM9zKZ5LKzLJL2AE7X7AqB99Ifbq/haSdEmxHAUMZ0ThpQXSzIgAK2NqhOZd8DvyrhB3zmLOh34brmlxM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6c847da6-00b1-428e-438d-08db3fa3c75f X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 00:28:06.1346 (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: iTGRC8y//5qVuup294OdPRn3PABiKFNIwz3IbJO31EIqOEGQ0p5Pc7jlAIAH6ehK15y6ESC03Xg5h7ktONDzD0yzZVufPeFyRhdOYIEGx7A5BbaXwng8w1b8BggGfF/a X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB5665 Message-ID-Hash: IZQF7HMCK3IW3NBC4I2ZSQ6YQSLVAMDU X-Message-ID-Hash: IZQF7HMCK3IW3NBC4I2ZSQ6YQSLVAMDU 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 CC: Jerome Brunet , Neil Armstrong , Kevin Hilman , Martin Blumenstingl , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org 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: Now we can share asoc_dummy_dlc. This patch use it. Signed-off-by: Kuninori Morimoto --- sound/soc/meson/axg-card.c | 6 ++---- sound/soc/meson/meson-card-utils.c | 10 +--------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/sound/soc/meson/axg-card.c b/sound/soc/meson/axg-card.c index a25c397c66c5..5c2fff1ff607 100644 --- a/sound/soc/meson/axg-card.c +++ b/sound/soc/meson/axg-card.c @@ -120,20 +120,18 @@ static int axg_card_add_tdm_loopback(struct snd_soc_card *card, if (!lb->name) return -ENOMEM; - dlc = devm_kzalloc(card->dev, 2 * sizeof(*dlc), GFP_KERNEL); + dlc = devm_kzalloc(card->dev, sizeof(*dlc), GFP_KERNEL); if (!dlc) return -ENOMEM; lb->cpus = &dlc[0]; - lb->codecs = &dlc[1]; + lb->codecs = &asoc_dummy_dlc; lb->num_cpus = 1; lb->num_codecs = 1; lb->stream_name = lb->name; lb->cpus->of_node = pad->cpus->of_node; lb->cpus->dai_name = "TDM Loopback"; - lb->codecs->name = "snd-soc-dummy"; - lb->codecs->dai_name = "snd-soc-dummy-dai"; lb->dpcm_capture = 1; lb->no_pcm = 1; lb->ops = &axg_card_tdm_be_ops; diff --git a/sound/soc/meson/meson-card-utils.c b/sound/soc/meson/meson-card-utils.c index 2d8d5717fd8b..ffc5111f9e3c 100644 --- a/sound/soc/meson/meson-card-utils.c +++ b/sound/soc/meson/meson-card-utils.c @@ -183,21 +183,13 @@ int meson_card_set_fe_link(struct snd_soc_card *card, struct device_node *node, bool is_playback) { - struct snd_soc_dai_link_component *codec; - - codec = devm_kzalloc(card->dev, sizeof(*codec), GFP_KERNEL); - if (!codec) - return -ENOMEM; - - link->codecs = codec; + link->codecs = &asoc_dummy_dlc; link->num_codecs = 1; link->dynamic = 1; link->dpcm_merged_format = 1; link->dpcm_merged_chan = 1; link->dpcm_merged_rate = 1; - link->codecs->dai_name = "snd-soc-dummy-dai"; - link->codecs->name = "snd-soc-dummy"; if (is_playback) link->dpcm_playback = 1; From patchwork Tue Apr 18 00:28:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13214917 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 2BA7EC77B72 for ; Tue, 18 Apr 2023 00:30:04 +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 6BB30DEF; Tue, 18 Apr 2023 02:29:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6BB30DEF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1681777801; bh=184jBGANhlzfvWfgETZHe6WC2XeCrsieDdx1jPzx4K0=; h=From:To:In-Reply-To:References:Subject:Date:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=oYr+oQO6mWjr3nDJfOk3zGLyZ7X483XfWT9hX1to07gZCBWi85eZ61FkhYJEXzywO /C7B+tSmNgiLMX5DUwr/TAqltWzn3lPFAv8RplfTsihQHD4VVt9UvWwbVtrMBLYFHF UVlG9IM/Po59t76PQY1wmlN7kaOSgcuJXMqySetA= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 69FB1F80510; Tue, 18 Apr 2023 02:28:29 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5EBCAF80510; Tue, 18 Apr 2023 02:28:26 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2070a.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::70a]) (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 09215F80212 for ; Tue, 18 Apr 2023 02:28:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 09215F80212 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=KEtPKLHA ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YJbHmuTTSFEgCdGB3mgvl8+kZjChnOeZcTEjMc1En0ZhPjtDA6TV/EJ24YqQei6Xv454pJf0phTYj4pbpukqdhuYOyBhU7WKVUsWYCo0+fkNE9l3VinS2obLijN0U441z2mZFkMiAePI12sH981yC1b2EE0ndEc6vO7CPjPnnjwlpU4k960GFwnCiLbKIwxszPrm8JNr4S5d9Rpr5zS1uYtNyI1LuuoEnzShbva3UqyVKLN0jn/uBFR4IjrCdxEKIz7Buh9rLxbWvDJul/vHgyw0MeyoGlray8sYg6Zess6NxNil5+CjaxzHKLjRPmedieSrcMTEiHV5gH9t0PXYAw== 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=otv6T9ckUvV2ewdzkVkWUbtbiYsexoEoGjgO2QjqJvA=; b=I+GNIb44B4wPYapbmGAsoQidGTpjRKRwhN5E7YkfGhGEOcKyJzCJD4634Y9NpCfCeUk6O27kim5gR8ZHYJcYH6KkcHTE050VYianxFdqUyBqfhuzucOpfgQgMfUbbD98o94B7Ki8s7o9BHGpax4yBwJntQQ4Zifd2QlvyHu9gwOiP4qZT/KMIquNVSQ0HcZCeS79OTKIM/MJFs7NVN/m3/vWdsH31NLOB/1Po9wj+d6eLJ9/SEEzCr2Fu1lVqmReJzyx8TgJR0e/yuwRT+YA4vJXwV+w5DmuTFBgDIf2NpCcAEovguhSg6/XaoZcEEUTiw/RgBXITOY9Pkcj2RL6rQ== 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=otv6T9ckUvV2ewdzkVkWUbtbiYsexoEoGjgO2QjqJvA=; b=KEtPKLHAJj6Udd6JVWv4LsZEYiwh9okGhERkxaPZCKM8tfeKH2ctFL6KDl8rAqNdekgivaTXLXqbFsCcYsVNOkZKPJ8kp9HQL/OhzfhaPfh93IKR1hxvjYylA621ZJsmGTbRHOa84ihTluD3TAyIOpqg9pLL5y+njV0hYrkIM58= 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 OS0PR01MB5665.jpnprd01.prod.outlook.com (2603:1096:604:b3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 00:28:20 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::b005:5b0f:6ad8:3eb1%3]) with mapi id 15.20.6298.045; Tue, 18 Apr 2023 00:28:20 +0000 Message-ID: <87o7nm2fvf.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Mark Brown In-Reply-To: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> References: <874jpe3uqh.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 11/11] ASoC: soc-topology.c: use asoc_dummy_dlc User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Tue, 18 Apr 2023 00:28:20 +0000 X-ClientProxiedBy: TYAPR01CA0226.jpnprd01.prod.outlook.com (2603:1096:404:11e::22) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|OS0PR01MB5665:EE_ X-MS-Office365-Filtering-Correlation-Id: 1900a6bd-e94d-4fea-b978-08db3fa3d019 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QVYw04a0y/cTl50JC/5CV1qZ6uLfDdXFIbohkJincmrTo5TB2AwrVQwcazJfHTBx006MUXpA20eSlo90HVQDe768NfN4OUR/mV9duQnQ9yH0FUUNOQ8orv9Yl9GnitgiEH/k+SlXrucInKMXzY+PJOk1Ket4Bem19OPG4z0nBIV8f9d5FEHE7KvW5E017Qkelj56rLQEHOgzo9sIGzCCS7rTlg4U0d/VCYoAsfe6JSbL/lrB4C1CIOoUWgNBBAKXkBp9f6BtUw0QEGsKfh8uGKUwGE2Kp+9nZbey5lEIB61kbiuf/Q7GFyxXfJFuNKVrDQpSGHc0jF47uWim2d0549Xr96ZgvFXoTB++fZTIxkzQKqO8j/NrgFObLwX18Tzem3aZ0yrUqsjbRmXBrcSkl3OvRfxoiPXT4fCKV88RpmTLGVPyZEW7iNRGzuI+JpKgIHK5pKX9tnQ58ooIBRoVHD0riJjiRgi8wsJyqQ9U+O9gzHRj2M01BahI8+DakS0+QmLeisWmXP8tuV6vXNc1FcER9j6W2jC2ueQZnETPMHYee1DFgh6D+t7mU5chyitPVWAc2E+QxpDSphUZulvw+4TtcFWQOy4Dry5KpTvIK61SZkBMXaKKwQpE1CFX8zYS 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:(13230028)(4636009)(396003)(366004)(136003)(346002)(376002)(39860400002)(451199021)(5660300002)(2616005)(83380400001)(86362001)(186003)(26005)(6512007)(6506007)(38100700002)(38350700002)(8936002)(8676002)(478600001)(6486002)(52116002)(41300700001)(316002)(36756003)(66556008)(66476007)(4326008)(66946007)(6916009)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MpF03i27yXLDFuuVzUen1h/qoN65r6c8AYrjBbfXAnnaXr9p3/lOAmnruXw1ZPKoh9z0TNQD13o5bmZFyyvDe3cFGfXqRfZmoTpRCv8/SjOwE94as88dS4aXxl5jer/E7V0dn+SUkZ3bR/Ou/57xbvRNwoQwLMWoN0VQisAOB2frbrugajyXGdZ9GqaxEvTZY/WKbW5EmLsWU94N2Bw9t1gvLlf4StVdOhIslMe9J4GWW5ps2rZSR3qpA6kOU2OVt88d5dAEWcqTBQ8EZSVhP7rOMDVLasrv/aZQlSjeeuOZcEbCnHWqDIa6p7EFPsG0laqmHVVDDU2LubhvXnSqubXHnjLdADte8EzC7k5AfofGw0+ZAFhbU9EDcCTBIkHPIxEgnO7q2aReSPwsYQi15zZcbfdMgIdRU63d7E/bWb4tw/4wDmMOO/ZoEOrgFTZniCtr3MTk8R5TN4NqA4nAsF3YKsrZDecVIoXjVoP65TJVS7oyimU+Jjncpmwbw1tzfVUTdQffNX/7pSfYGo9DwY0WMaoDZbO2NDP0K1XBzlpq94Z+jDs+lB0rZ6lV0Uw5gQU5EOxftDCsp0R7ytFInVeuIA7j9kH5Puvf7rJjX2EBZb2MiTQY/ZO3GcF02vQPEvc6/2zqoxa2lsY6vugb7sYqHKUcyC2DkFm70pqPBojgQwPlElVKDfYfkpJo+H1EXRM+f6Q77FPwqFDdv949A49fngYJPqtxTdml3F53xYe8jTtd9J7l1yy1qy2IkAIiKRXHzXz5a3zomi58LpHUDhPfF61WURwiFK5BBxSfPoGow+S6HR5TL67CfUAhq0XYsstGKM4Wb91ORFw1BnT9DtNFhOyEcwMWPr8+3zYbyCE7XMRswePHqgdhsYAo124sfe7o0PTWPft8PtfJF/w191PN/TM/80ur9P0ONvD73+FeTwXesQmFec0L3VI3CZ75kGxuAcCi85fZzLH53D2SdUH93sX7gM0iWkqCVdNM3LCztMAhk833HFnmC2nV+K86EXbluZacryLzoKmks90oqeMCcXMeF2nZl1sNyDeSmYLOczcg0OG+KU175snkIT7GxiHrUrEKH56cad2dFdMT8YCOKgpKwAYQEwKZ8fl/QDLK4LIhLCMyF6zyKjy29wE/egB+1Brx2j+WUkeyy6apY1DALuOH3Pqm7MfG0URjr8q2cYqpKHask0bfXI+oO7G/yj2sruG+XB/CtQhrB0VAL96DoC2pCN80o3N30GqGfOkaXMXRQFC802n/tg2K6/eAroruc3VoSqSn/3fpuvFXyCxhGdANvJDypnqklN8Px+XSgA/2SlDwpwc9SBzG3YLXQNB1CjfpJGPxhyqGqhCJ7LfM/lfL/D5k33z0/QT1AcYBtlIxOvfzohIA+vAKNJ5nb7TYBPPt0Agsjmf2HPmOfwt0hQXG/UZV0/T+4WNX+Oeeqkdw9ZgvS7PUWAtaw3poZVbnYpjPJcz8vvGOtYFmrnlYCRrcY4aA4SXJfgIvZw7rspZcHBJpaVwJ60z4qGfcdf+JQl6DgwOxJXIqn6ecH2m/mFVSiCHKrLyBHd5VhvPab5blF0897Mi2ONxb5fPn2qj9fl2CDs/og7yTAhzQW3f8QyOYRzEDvKT+O4Yfg7Q= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1900a6bd-e94d-4fea-b978-08db3fa3d019 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 00:28:20.7683 (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: kTVIfCo9cQxOjC1Ph/Pl1FFrkL87MVLvONPnbMBfeLCI19piwubCfJRdAI/Vz17MODIiy85ksU5bVdLqRulkRdeJrKerXbKf03n5O5IGZHbFmuNlHabSa4XCKJHL5Wv/ X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB5665 Message-ID-Hash: HDHV4RRGJIPOFD6ITE564NY3ZWK2R5LR X-Message-ID-Hash: HDHV4RRGJIPOFD6ITE564NY3ZWK2R5LR 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 CC: alsa-devel@alsa-project.org 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: Now we can share asoc_dummy_dlc. This patch use it. Signed-off-by: Kuninori Morimoto --- sound/soc/soc-topology.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index d0aca6b9058b..873448c4a895 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -1685,15 +1685,15 @@ static int soc_tplg_fe_link_create(struct soc_tplg *tplg, struct snd_soc_dai_link_component *dlc; int ret; - /* link + cpu + codec + platform */ - link = devm_kzalloc(tplg->dev, sizeof(*link) + (3 * sizeof(*dlc)), GFP_KERNEL); + /* link + cpu + platform */ + link = devm_kzalloc(tplg->dev, sizeof(*link) + (2 * sizeof(*dlc)), GFP_KERNEL); if (link == NULL) return -ENOMEM; dlc = (struct snd_soc_dai_link_component *)(link + 1); link->cpus = &dlc[0]; - link->codecs = &dlc[1]; + link->codecs = &asoc_dummy_dlc; link->num_cpus = 1; link->num_codecs = 1; @@ -1721,14 +1721,12 @@ static int soc_tplg_fe_link_create(struct soc_tplg *tplg, } } - link->codecs->name = "snd-soc-dummy"; - link->codecs->dai_name = "snd-soc-dummy-dai"; - /* * Many topology is assuming link has Platform. * This might be overwritten at soc_tplg_dai_link_load(). + * Don't use &asoc_dummy_dlc here. */ - link->platforms = &dlc[2]; + link->platforms = &dlc[1]; link->platforms->name = "snd-soc-dummy"; link->num_platforms = 1;