Message ID | 87354y3up5.wl-kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> 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 <alsa-devel@archiver.kernel.org>; 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 <alsa-devel@alsa-project.org>; 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 <kuninori.morimoto.gx@renesas.com> To: Mark Brown <broonie@kernel.org> 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 Content-Type: text/plain; charset=US-ASCII 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+27fA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EfEjJtOvSKEPM= 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 <lgirdwood@gmail.com>, Takashi Iwai <tiwai@suse.com>, 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" <alsa-devel.alsa-project.org> Archived-At: <https://mailman.alsa-project.org/hyperkitty/list/alsa-devel@alsa-project.org/message/F3NWM43KM52JYOW56RMUMSHJIRGTV5YD/> List-Archive: <https://mailman.alsa-project.org/hyperkitty/list/alsa-devel@alsa-project.org/> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Owner: <mailto:alsa-devel-owner@alsa-project.org> List-Post: <mailto:alsa-devel@alsa-project.org> List-Subscribe: <mailto:alsa-devel-join@alsa-project.org> List-Unsubscribe: <mailto:alsa-devel-leave@alsa-project.org> |
Series |
ASoC: add and use asoc_dummy_dlc
|
expand
|
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;
ASoC uses dummy Component, sharing snd_soc_dai_link_component for it is better idea. This patch adds it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- include/sound/soc.h | 1 + sound/soc/soc-utils.c | 7 +++++++ 2 files changed, 8 insertions(+)