Message ID | 87ednql6wm.wl-kuninori.morimoto.gx@renesas.com |
---|---|
State | Accepted |
Commit | d2a4e0d7409705a0b6010ee537c5114eac31bd13 |
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 C72ADC77B7F for <alsa-devel@archiver.kernel.org>; Mon, 8 May 2023 23:51:41 +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 4A739119C; Tue, 9 May 2023 01:50:49 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4A739119C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1683589899; 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=pfvmLSevMicy02TXYl08tJ0RZWlXDXyUbxvCReGamSNnYIaYBac7MGnhIwQ4BbUP6 TPWx4+QlE0OFYQKA+UFiR9LRYifiRzrmlJToR6RqyoeIUW/aPz1HAAwh7yoUzSwVd2 AFLndY8wrA5tPEh91waczq17sJrd/N/dVJMDZVJA= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id D0DDDF8053B; Tue, 9 May 2023 01:50:48 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E8A89F8053B; Tue, 9 May 2023 01:50:44 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20710.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::710]) (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 C2297F8032D for <alsa-devel@alsa-project.org>; Tue, 9 May 2023 01:50:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C2297F8032D 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=S2bF/XE1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I15Qc1ntUnoNxWOyrVm2z0t7o0zyVbpaKUZa2Wdc1TxXGZY1Zzd55lqTAsqeEFeuHaPNEG2GgqrOouWtJpKYqJmz2Yr/Furbz2De5Cga8qXg+iAwMHEMV+JxLWeFEEEvMJnq4G0wP9Ek8tycv2zMG1XqvaS049pIvFmZ8TIfLWah9IlZWO+lEHDIwOBrWHkRM7KQCrwBABeGTuxmnSjPWzoaHKh3XM66oLx+PBcLFHCJ2z07RB6r16cRAicESgSUaBKTcEylPo6Rqh3j+JFeQlghKSlZ4cp28Vmveu3RHhJ8NVosdc/+cHP0/M+wYLOTjwsQCK61SmEIYUY7BFdmKw== 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=EbaI/3EJPipagZjwPk+1oQhWxUBATtcYDkkqD0rwf4LKpArmK2TV+dIJ39H2E5pElxF5wiasd6vjADmvc9IIfa3C3bF1/kgwCunu3gwlh4Jcu8jMfK2yUhVWTQ3wK7ZCXlZJNGzGCGOXWzykqWSoGhOYZmTjSHv/B50kcbosyOEQy1MOT6YScPhfCLRt8A/LRiN5UkBZXGHcSopugowavWQhY+ivrf2J4+Ji9TkpdDpd5BvuxP2gvAr3u3vnDBhxviOlbf+COGzVbmelTYBirnRRkcFqNXmDCcN50dVbdsWGyTADqF+ZZERClSpF5MDfbdgFs+uhtuXbXsbffiOcRA== 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=S2bF/XE1bisrWu3dQiLGRoidM2AoaoMHuVMBPzy9UikO5EgAmyWemV4wUjaTxfKWVEutWckPNG1FZGIIcF892/doH5f/GrWhqciMUHlgyiAVOXi0FnOCjhAKooGSvhg2S4NqfnWgKpwAaUY/K6/1YldrL7AQeEexdHwSP9N/LZY= 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 TYWPR01MB10226.jpnprd01.prod.outlook.com (2603:1096:400:1e7::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.33; Mon, 8 May 2023 23:50:34 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::91e7:a94f:9f75:d840]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::91e7:a94f:9f75:d840%6]) with mapi id 15.20.6363.031; Mon, 8 May 2023 23:50:33 +0000 Message-ID: <87ednql6wm.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> To: Jaroslav Kysela <perex@perex.cz>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Richard Fitzgerald <rf@opensource.cirrus.com>, Takashi Iwai <tiwai@suse.com> In-Reply-To: <87fs86l6y8.wl-kuninori.morimoto.gx@renesas.com> References: <87fs86l6y8.wl-kuninori.morimoto.gx@renesas.com> Subject: [RESEND][PATCH v2 01/13] 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: Mon, 8 May 2023 23:50:33 +0000 X-ClientProxiedBy: TYAPR04CA0007.apcprd04.prod.outlook.com (2603:1096:404:15::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_|TYWPR01MB10226:EE_ X-MS-Office365-Filtering-Correlation-Id: 6c1830ba-ae24-44c6-581b-08db501f03a3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xvUGmCHmfIj3milljbG5yN6XkaMjIzMkGWkmRkkTyfLnsHbQ66K7xRnllfCwiR/Bff9lkH6+MT13uyalg8YQGHbepZcGlGeyOjXTGK7wI4og8BrrN4q5DCmY8Bay3sXi954+70gCDSAYVuTfPlHF1YXHCLg9C+y0i+gIU93jTgp/KF7zZeaiezW+1hjWhXldY4wW+hKcAOKWLVAqZ2gMa36OK3Mg+iAaHzD308pfnHIvnWWcDq34UqjqS4r/M64AoYMfJMFfMPqBbuNXTcqu7/MIIKUDhvxZBaZdqGhlqN35ZwjoxZt0utopl8GkXd7Tn1q8HLom2IgZn97H8wugu71sIwTDERBnChkMofqTl54y5na8nbZZ/BcQ6RBVErkg+8E/umguPRkvbQfQEVOVFGGoSLerUld+k+j0JFIyG/ZEICaLJ/Wmg5Rrj2CFwtEJAFpRoiOvGoifDLPNBQsWzhoWr6T73nVweGiRX0R0DqgxegwGlelxhkRPGfq8P9l00J5BP2xSAHBv40UxsvEkm2v4j4jRgdqCas5n3LHPuGQyfNj8rDgUPKI0A94tcU4nm0jm8XJ6JkGUWhmGtkAMLeS2c1pr8j4aO/caUdN/0NvyOAU8/FmIg5bHm+GW0LfL 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)(366004)(136003)(346002)(396003)(39860400002)(451199021)(36756003)(41300700001)(86362001)(2906002)(38350700002)(38100700002)(8676002)(8936002)(6486002)(5660300002)(4326008)(66476007)(66556008)(66946007)(478600001)(316002)(186003)(110136005)(6512007)(6506007)(26005)(2616005)(52116002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: XZc+X5QWVATvcIBpimO5iUfGs2Lu747/jRdmYs2mpJSJoNvOLJxKbNYvMrepwcsuJnQI+myxoYWu0taqeLK8jSMTQ0V1PL80s49BaqG0M106gd7MX7MN2PyjovoeaYXoC5xrE4grX6izgzh35Bb+1KdPHyMrZ35Z/ZuD4i9vr64m6VDtWuAjT/wivMdCzifMUWn1+Q3O39u/orpF9WPQYihjFH6R/hTSpzikSx9XXSSu+XYJk9ywb/HXmI+c5UjZWugk/HWGZfIB8aIauoEiHI53hogItIrP3Q4LuX8tzC379k6bGoKMii2oL7ArVaGs2b1XRLPwZAq+c0GZNnXtJ4wEbHh1Kku5ypVWSavXPG4277P4mu0NEICGRIQwkqbMmsOedkDjPP5XbKl5YSIgf8cBRxpGxLHdNcsMZCxbNhthBUgP9pK9+5aSkZoMRfl/l9Ht8p7kAkwB1YtBAdCxhSlsFSG2yTdj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4AI/daYgDG2028tF60mCNK9PNlh8RrpJ+5/bOlr/WT/SApVp81GaV0oqi0mrlFVEtLnftYoply7KJBADDQo= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6c1830ba-ae24-44c6-581b-08db501f03a3 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2023 23:50:33.9523 (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: p+fEmA17PHBpAWAjgA8zNsH8e6K2YsXxgGoxWdki4TuZHaJXP98XIBSnM5v7BaYntxsvF9cUIkC652w62jBLTDFmrEouPQzTOuRg+HLb0zVNfHaFNGtw4olndtJOLkD3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10226 Message-ID-Hash: LNJFLKOXFNEKPEVWIAFWGBLU7FJJDW3T X-Message-ID-Hash: LNJFLKOXFNEKPEVWIAFWGBLU7FJJDW3T 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" <alsa-devel.alsa-project.org> Archived-At: <https://mailman.alsa-project.org/hyperkitty/list/alsa-devel@alsa-project.org/message/LNJFLKOXFNEKPEVWIAFWGBLU7FJJDW3T/> 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(+)