From patchwork Tue Dec 19 05:09:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 756444 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 C798AC41535 for ; Tue, 19 Dec 2023 05:10:52 +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 32707E80; Tue, 19 Dec 2023 06:10:41 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 32707E80 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1702962651; bh=JkguLnKlN6NbBtpvcp3GdsgVJu+ebS3k1h4FAncZS6U=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=eRbLsz9IyKGmSUgb0+O6xwpFqdOLkSdtXqBSVw9v2NA7MzwfW8gKSZMk+aExTGgar F9HRmDrY29FbBgyUyquVdka7tilMeSQZc5I+xaMPkxRBpd3TvTZ3aGSr+1pq8bC6Ei pgJ6nc039J/hw33fHUG8VmjzYW0VypEsRLjYQf/s= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 67140F8057E; Tue, 19 Dec 2023 06:10:37 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 3A4C9F80578; Tue, 19 Dec 2023 06:10:37 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 90DF5F80589; Tue, 19 Dec 2023 06:10:06 +0100 (CET) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20700.outbound.protection.outlook.com [IPv6:2a01:111:f403:201a::700]) (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 B3334F8016E for ; Tue, 19 Dec 2023 06:10:00 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B3334F8016E 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=dd1XtYIL ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fAyKKSyRPpEi+RWTuDBdY8siT1Iz7mGh84BYWd65zMBg2h5s2tPS9werXxEWQMtMuyOr1iHekTtW3JWP4kG3gdkW+F5hePDS6YUJtkIg+pv4friuLHWNkan56ovkOWZelYamMxQkJq9D+npcInNopJ56iaopsYQjVipSPNSjbhkLUDXfy8lYqsEqOiC05W2Swnuy7bdDO0Ww1qqxgxIrruG3DiYqCgoW5Xke+qs7GTsVyT4ytjpmUnMMusZBC4qI9UG4cqffNbvM54KhkOPalUw6FsvzoGHCAPGXmMmM6s4HROzxsnm1NNojhIh2+X4mgjpHJOEU42+8vBDXkIht1w== 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=RdQoeL6szFU4iabfpuBy6jZ4zibauuxP9ZREDyEjLd8=; b=K7ocGbFHf7RpmbCzQspzeK/leMXEp2zvv2GtCjDWCF3SsaW96jWVZoZjS8GOIZkSsk5o1/wOxf/P83oFQH/vJeAD+rJ2AuwRam+XqHZZm/tFZi1Bn9WUtEwa9QApDa4BDJre5d2SQBAbUjFX+QSIdbyAhPPzr3xqvjuesgGvLMe5+rx05s29RpiKVVXeVcHyMrviuJ1d4iBbtqcp1RSJ6Nk5E/79YEYD+Zwuyc+0zuqcS8JIa5kwhQiwXvEnTLmXkqdbbaNvzSZDPZlOLa3ATKr78I6CjPVgg92gj1RmDEd9JQuXcJeCfvX4uSNSADlKcIIAhNVOBVqCSmaZqbUHwQ== 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=RdQoeL6szFU4iabfpuBy6jZ4zibauuxP9ZREDyEjLd8=; b=dd1XtYILrLEgz4NN7INnz/bmZUaPpwVn10NB9ltaYkgeYS6O+VkhdofzKLBDQmTyKQxryXugQ64ogRq1oDvvASsVxLlDTt+Er4Bfx/Sx/oDLbY0rUesatuNu2FfBu2zOIhlzDkfN5f3+U976ZolSg2vKV8tnhW2W7UKH+Rc5dvg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TY3PR01MB10094.jpnprd01.prod.outlook.com (2603:1096:400:1dc::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.10; Tue, 19 Dec 2023 05:09:54 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::6d8e:5f2:f206:6fd4]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::6d8e:5f2:f206:6fd4%7]) with mapi id 15.20.7113.016; Tue, 19 Dec 2023 05:09:54 +0000 Message-ID: <877cla93ry.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 1/5] ASoC: fsl: fsl-asoc-card: don't need DUMMY Platform User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 To: Bard Liao , Brent Lu , Cezary Rojewski , Daniel Baluta , Jaroslav Kysela , Kai Vehmanen , Liam Girdwood , Liam Girdwood , Mark Brown , Peter Ujfalusi , Pierre-Louis Bossart , Ranjani Sridharan , Shengjiu Wang , Sylwester Nawrocki , Takashi Iwai , Xiubo Li Cc: Fabio Estevam , Nicolin Chen , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <878r5q93sq.wl-kuninori.morimoto.gx@renesas.com> References: <878r5q93sq.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 19 Dec 2023 05:09:53 +0000 X-ClientProxiedBy: TYWPR01CA0028.jpnprd01.prod.outlook.com (2603:1096:400:aa::15) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TY3PR01MB10094:EE_ X-MS-Office365-Filtering-Correlation-Id: 7e488bd5-272d-43a6-5aaf-08dc0050bc75 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WTldzpsCfGDVQL5Gz0b4bztL9IOagx9f3bitAsTaoJkDzPscs3kN8opc5mnRpwJUfDItCx+RWijH/WaGrpOrOSGFLxZVnMkGSErEawV0MeHBnbr4mEyObuNsslvAxs5gGI2/dUISzPgIdsFVDmfROHSoppU8sri6iKtb54VKWyJGvav5oghEShORFJbEZMY3zXx5V8juhoxwF2WEe6djoIx+zgGjQz0pCa7xkr6V4fQEmFeZp/YY0wSlfsjjMrV3aHUlk1cydeqFElVebS6yjUL1t9WFDT3vJZeHqsYzg24LCJPXiS1ane04vUvc4x2pljHHlkXI+nrjs23dEYBU/5VmhGj2ab7VROdusXWw21GqAQbB9lTnGl2wf/fe+nIcPpqoJK0Hg0PAzbO8KguD3AmgOEVrA3G2bN+9odaVIn9mnSG88PfK/j92PGcPw9PY6kK8j38czsrJ45dH9Gkq1rN1MMo9NtmqlWnNxYB+84D0APiIVK+GOyR45Ay2heAOEzucReEeAKOXqqfKCGp3bVTMEt/RO0YdnTlGqNltU4vIdQnK9SOX24bkx6/ARAR4Z/lyJThNBVEBCpWcIAyT6y4sk2ulykU8YT56T52cmgrLDnu8XmLBQiktBKOX3hcKvAM/6aQ9+jD5RYiGDsxqrg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYCPR01MB10914.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(396003)(376002)(39860400002)(346002)(366004)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(66556008)(36756003)(66946007)(110136005)(66476007)(54906003)(316002)(2616005)(26005)(6512007)(6506007)(478600001)(38350700005)(41300700001)(6486002)(921008)(8676002)(7416002)(8936002)(5660300002)(2906002)(4744005)(52116002)(86362001)(38100700002)(4326008)(83380400001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sPfnQ5WM6uPZ7oy2NVSZuZbvhDQnhFPSDdZl+ksv49awC8w/4uHFZU4D9KmG5eli5vkFbNmoqGCkS5aokToqbdl5wrEV+jiM3roi0Nwadb/btEYp4tfLR5FCBMD4ltJihVJe9M2eSHPyxhQJbKQut1cFO7hocqooBiWb6MwTuf596tWFlzRIJp4AfZ5BvogZnLsrTXwEmnXtWTyoBt7uREa/FV3koaE3yYH5eaQsoVLhEvFgzFEUGfT3Jo9t5ilcTZK46DIVaJx7LSlCmY0AnrwCvW/1TviwXO6Xd4i5uN3tzrdj7+HleDfd8vrn9JCuK0Jo9kBQ6/6U1yCtoN0CqO+u0Mcl4SXb8xzHWB/uZ25TsZ1wbNx4QRM5Vy9NBZ8EX4sjTFAgEopleejWx0y8pRvGWUht0gzXLgNhtq2zn7mNwVATORv29dj7SHdGS8jxO4/b536IkGKzwgiG4nGOPouVKiIJHecA2xM1qSqGn/H8eYiZn/7FIcf2rWBHUkGgVsIWMPnGXIXwFWp8hBxiIfSm+caRfAqiaALKO1H4JVSrdQGbpLBG0J0eG3+meQ5OyPQxYTPVZMPB3/P5Z0RtiahxHaDB1+4xYInuJpI8WxBeCYjFEj27Q4rMSVY/8JzHVsyBDRkxQfA3LlXaYCPwfdbetOlvVzv1YhQdaBWUTgEQt85CDVtdBHvOAQnP4IjEP4sxpTYIPn3nXnaHroYBMB/tMhcSw8p9cHzmuisE/0TltExtHnanVuozLZbLk1Z073fW2grMMUk0UMef5OgSk2uxctL8hbLQst2egPxsdEYjRDeSshetT6jP5OY/s2xKHz5cejNvYYd0ej5qR2MULcSJI/frMD4TQ9Mhr6aapatKHOs4Mb/fIMuJXV7CXgrkv0vSKoJDQ3ucAz4jvVYJDqxYEvpUMi6cR2T+2KQe8XPQOMXwGov8N5CsSilZMrWg85Lz0CuPs0h7mlzbr0Jdk1fFwQS3rUrGv8XVu7xqXOK7R5vK9v2D1HdbIUJdxsV4912RyBNTueDxpuBSiRBXVuiDT2dst5tytW+PdfrZWD3o90AKIAbcGhb4/sqDiMQtBq3bsg7Ccvmv8uXTtdMEqNt2MLxlH6CWTRoqe4Wg4SAH348Byiyy+1b0SOMmSsrfW5JnHt2FAcpxpEItUDFvRL0ZxbZasSV5V5X3TWe5/mvjAAG6wo/3uK7YL/EZxj4WpTwrE0KXygjs4bZT7tyaKrjHgXht80r8vKu8HI7nIdI2FJiXn2zkL8jwJhc4oJl8lChqmizAzbcv73gsXy2hXD31qCDdoAZe3OBQ7qdW4kfCho2cg8fRx8au9UCj87gv/7dLn49jXi8L/wr2vXpkmyV+acHvIKFqdvmEMfMvL3nDDW8acSFdwpoHtkLXC/yzWQHBf7KCo/FiDk+aEh1pJsjGwrCFPsAmo+IzSj42hmFikhHik6duv+h1gDBTkv6hDRpkh5BwM6YP67Q04evs/eO7iFBiBC2sQJmrWqw4ZYGlX+wGwxFVzk89hk0+4hWxcvaU3dUaKFH4uJCnE6O7/m7VILxJQ7OLoEmCDU+7oZtgz9VERA647IN02u3I3VK2D5Vbi2OH4G8UTZuh5iMx4FkEe5RUNjMbIXThqhUH7JY= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e488bd5-272d-43a6-5aaf-08dc0050bc75 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2023 05:09:53.9816 (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: tw1bNwgH9o1O8Wz2B8CLwNTdCsMdirV5HMH7Y86F5wjsSLbOltCgriVWmX10nolyA4jNLq+WG9FaAPQASX+DOxRVhSGoj7BwzeM7PPmkdGJaSSZMHeXc4du9tjXM5aoO X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB10094 Message-ID-Hash: PHAFRZXS5OFPSMZXFMYAESKZPJVNQIDO X-Message-ID-Hash: PHAFRZXS5OFPSMZXFMYAESKZPJVNQIDO X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 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: We can use SND_SOC_DAILINK_REG() with 2 parameter. DUMMY Platform is not needed. Signed-off-by: Kuninori Morimoto --- sound/soc/fsl/fsl-asoc-card.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index 7518ab9d768e..bc07f26ba303 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -305,8 +305,7 @@ SND_SOC_DAILINK_DEFS(hifi_fe, SND_SOC_DAILINK_DEFS(hifi_be, DAILINK_COMP_ARRAY(COMP_EMPTY()), - DAILINK_COMP_ARRAY(COMP_EMPTY()), - DAILINK_COMP_ARRAY(COMP_DUMMY())); + DAILINK_COMP_ARRAY(COMP_EMPTY())); static const struct snd_soc_dai_link fsl_asoc_card_dai[] = { /* Default ASoC DAI Link*/ From patchwork Tue Dec 19 05:10:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 756443 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 31705C46CD2 for ; Tue, 19 Dec 2023 05:11:33 +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 1976BE11; Tue, 19 Dec 2023 06:11:21 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1976BE11 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1702962691; bh=rfVKHBQm+NtAm+6jwbUjqMj4uWupzXeiv73rWdaj9tc=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=RIVcxjstaP7Wpy2hF/9AY+jH5y5PlGpWQ6owtyhMqfauzwsUSRCqqn22WeElv0lRq pVvAJcwbyNyPBGy+wj7KzyprKY2IPzyRDAXPeabeYQRp4eDKZ7bCIOY9g5HmLaTL81 rBmGYDOdl+3kNFrAsaAs50T96/quPb+3Rb5+y5uE= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 94B61F805ED; Tue, 19 Dec 2023 06:10:41 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 64827F805CB; Tue, 19 Dec 2023 06:10:40 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id BEDA0F805A9; Tue, 19 Dec 2023 06:10:12 +0100 (CET) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20701.outbound.protection.outlook.com [IPv6:2a01:111:f403:201a::701]) (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 0CAADF80580 for ; Tue, 19 Dec 2023 06:10:09 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0CAADF80580 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=klc03IGI ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EZ31f1UrTxemPCpxBUIr/CWG8Es+JGGeqAjMabU10s3HoTLvsl3+MPO0KzxSo0m0upKT8whrB+MUpAMjkY+Yfx6bBPYAk0xUU1EpBrUlM7PWt3OK6XCShHSfsZ0Y0zLUkR1b5MiOIN2xS7ExarsfD07XLFPkNIu77veZFkXJYmSH1fIR4QX6qmceW63eB/poFe0ZgX28xMNeywGb2MdnpaVuqB9J664cTHnYi2a8JTZJ/41qg6aSabI/tz4yeOnnUQAH8cBjcbLrNqVno0V4gY90e+3mvuVz+XxNetfufCDT5ar5O+MnRV/ldwgtK5l+K8P5dAws5cFFfQbgL+bY/g== 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=ox+x5ZO7KFS8nh3Ga+svuF7cigmX7JbnmkjgSHDqRB0=; b=nCn/rmpjMfoSToDhC6rdoIfmFa43682N3zqP1vQhHnWnrzX21+D0aXI0uOIEKbQGOjRI9zWw9ZtTZBSvBeBAA/4SHHGoCPU1aq7kas6CfNmfJC6wEp3LHuVmCY0INDbLEU9KVgbSNrI5YjPKItqpl+Z+N+FEq14IZV2PWSAsB8SuhhECjjc66Rm2ZvrofgN4fujjS0i4GKkD2JEKGgj4VXNH+P8YN4mR9n05gvW17NopzxbbW4mK/4qfYLWN9+S+5b2JnmEsT8JZxn6BeWhaj01Qcx2530X+lmrVhlficZqtN2ZgR5yeg1bPzSlYtjbF4fk8Z+idKQmmV7vVIEMgjw== 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=ox+x5ZO7KFS8nh3Ga+svuF7cigmX7JbnmkjgSHDqRB0=; b=klc03IGIRNR2ZW4QlbekidWUb9Ryb9RApYQRBJM5HrDvPAw5q9bjvIWTdW26k/wG6PDM5uPJhgVaT0IZgb4AM1Oh8C81gNPpaAvB384TIRHMdFlyGspsYQrFHl7MBX0BiNU0tsvAOyQJvBmeB8BGVh/91BGhN78kJtWvRLR0uDc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TY3PR01MB10094.jpnprd01.prod.outlook.com (2603:1096:400:1dc::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.10; Tue, 19 Dec 2023 05:10:02 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::6d8e:5f2:f206:6fd4]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::6d8e:5f2:f206:6fd4%7]) with mapi id 15.20.7113.016; Tue, 19 Dec 2023 05:10:02 +0000 Message-ID: <875y0u93rq.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 2/5] ASoC: samsung: odroid: don't need DUMMY Platform User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 To: Bard Liao , Brent Lu , Cezary Rojewski , Daniel Baluta , Jaroslav Kysela , Kai Vehmanen , Liam Girdwood , Liam Girdwood , Mark Brown , Peter Ujfalusi , Pierre-Louis Bossart , Ranjani Sridharan , Shengjiu Wang , Sylwester Nawrocki , Takashi Iwai , Xiubo Li Cc: Fabio Estevam , Nicolin Chen , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <878r5q93sq.wl-kuninori.morimoto.gx@renesas.com> References: <878r5q93sq.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 19 Dec 2023 05:10:02 +0000 X-ClientProxiedBy: TYWPR01CA0032.jpnprd01.prod.outlook.com (2603:1096:400:aa::19) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TY3PR01MB10094:EE_ X-MS-Office365-Filtering-Correlation-Id: fb1ceac4-bf49-40bd-c64f-08dc0050c175 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: w1ksoLap0PPbDiDNDRkQ18gKFzLpp3L81riqi/nhsRinbkJvW6ZKDsqw9IXgmuj7mhk/ne6D4QkGRMjYy4Fw5JhLXqSpZWgtHR2n02+wP5FcJpo8at2XDUHkI3AxLpEdjekanCginIz4BpYO/7iX7JSMk3YVZ6PIEsM56EXcRq+4yYwMPNsEsADpN92qKRfljVCuHgC2UKNvpDnOhf4dFJxPQvLesuIFypuSCUDXRaH0von97WYbrEW93cQ40WBhppsLEtQSjiWeRKuKnNBofHq/cZe/xLWK+FTaHNvafrg6HgQo02ovwUUPvH4I2hNFNupDPdszFrrIF5RDxkcaAeFgn7sLZJCSHd+0eLAnXKQYMdRPJ7bWTs++B0wPpqIl+z2q+ayK7qr+Bt33gaNZXQRQNO1lnLf1Sggh4C6CtMIBBwUL/vcGVGgpqtiVf/m9BfviPsWRoMUAdt4OraAgUhZ3AV4urYlOhpw5pRxUdgwr5kglGE6+cNKb0c7TWMV777zR18S3CK1BCRrrckL9H1Jif9FRxInTzcltsbh/Z+TsMQbn3ZqmrZFrFPAjhfYgFVDuJwM9vgAH6DDTT19XZ5IoJwhiLRkIO2jXVpwExdP53hmygtpThD2AXqi4U1gQ/l3ZbseXlO0fPMGk10NE8A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYCPR01MB10914.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(396003)(376002)(39860400002)(346002)(366004)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(66556008)(36756003)(66946007)(110136005)(66476007)(54906003)(316002)(2616005)(26005)(6512007)(6506007)(478600001)(38350700005)(41300700001)(6486002)(921008)(8676002)(7416002)(8936002)(5660300002)(2906002)(4744005)(52116002)(86362001)(38100700002)(4326008)(83380400001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tu7Y9D6cfDJIdVOUdr7dLO2pXA7NocXJjQ+aAFgHoEGDPxd9v/xF1AbUbSzZLmKBOGs/BWmKLyMuUC5v5wpA7CcLPK7OVfC0iEpLDJjQoWeX4xg+Y0Bu5VLxfbEkdmQeuwzZgIQofqOE8sFZ7AZTs9bJdqv0pheLbG4xHConUp0GtnxhZk5kbQpscsanzMU8AXzQWwhBHrY+jY+KHCMpEMWrulxXkkNcScgm90yxeKorO/FFLKtvLQVUBwftfeKnvu1Xhzo0jR0++CorPwC9lFRklYBu3DavRmXo94DZsFMWoC5u9eG61ifJhvvc/vaiAJzLFt5JgMsuhWNK3+/2EkwG1XLSvuR6y5YBGBAaFAH1ZOLNrhWq5IhjLGpo9s29LH0f2OXp2cM77rq0wC88HYsNxChxsZ/G6RT7Ke0NxWOH0ZYFbD8kmo4XVzv71vw0ypZLDHKJWw9H5G13zRBAKv2DhsZyvX27cd0p5kUMsZNW3U+uZlh67A8RQtj1LrzmhniZnj444wJnzRmwOP1oebsD/UmD2UvWo23bHzg631XFdx2lNh1qLYjmF8c2OpzAK0XfTVIyUP84sDOjN7saMTVRhh/tASmrQQBFgGrNxGVBLLeDy0AIoLCdHbg41K+mBKIdiX2xlkcVBAavlguBOI/yz6Pcby188kLnA7M1H/mCUVDGBMAZaVCEmAKtuPEDIXPROJFcYBoxSC6MThAdK6N0qkMI+qIFbc1z9hMO4/sP6ba+u/o9g4kQjjyshV/Mf3uQOBjY5dAN40WPAK+Sws5UrLve3cXwn4Qp9eRJNVE5mp4QDtr/rZuzHXrvbW4j5Lu6zHmAKr64U2WGEmH07MCn2UGq8xUgELvN25llIjy2CfEoSu/FcJMDrHis7z+kXIC120VtRlyZBHdO6WM4F7wuR6Em+HTDl8NEt7wydTBGafNmNcGK8F6/VJRzz7U32KqsbclWKumlbqQXU8LimyejJVRps0AoApwlcaW3pQn1A+BD+ax0Vjeht1cU1RXYILzImgAtD9sQhWlmXyLEucgsmPeAEKNVZGMbEt8vmIQJ3KH1tYrxZweOswS40xmzFeleCnzq77dmXT30nhtLK8OzgjLi0xJZbL83LcXFuyoq/Hu5Cb0pVW2s++S5zAom7ij54tGeKjmZqIDYnz8AbSbk+lpmzDgoXCF05PRLIBRwIjBmfvmAadFzBiwsomxkSH7Htcjlu1jBo5pMMvKUwQMMJ3c3DOag8tM0j83PpSBs5FXD09SIQ5YvvRkIL/7ske5SSheXp3yIGM6yNltVgJVx7Re4TpkdNTd2QkABFA9Bset9En64zrV8pnaOl6w2XbCm4p8hHD63P9/g0Kod/OQHubpbzd1LQSNezdVcQGQ7TfuTkW9yBIWBYLAAEuJRLiC8N3hFT/Wi+1c1vfFBDoqMvhe4BJxZsT/3u60fx4OX/jkK0sCU1lWfRP6KKY0QLImsbQlObq9aH6hruukXv+7brh9tSaHOp3fTU8MF0Jb/j8Gi88HZqtTSqWqM4Pc0AEDQibtVylJ9xD/Ni8ILfAdjtdXJm7Whb43DVFYOHpr5ISz/qeRjcDXbyzCS9mWFrdJ4HX9Rw6mXBXagvnbFY2lrK76d3CXL+wkrAmQBesA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb1ceac4-bf49-40bd-c64f-08dc0050c175 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2023 05:10:02.4083 (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: Mw9/0dn8Zj3vCkuSRCYN6PC7L5OxgZLxTqg0mfgAeleKQ+A6bSeaknLjA0I4F3LysMtq8VY/jQAtIVVbfEusp84Om9LTVB0ZyElqhK0SiOA33PRdZyTz/aRdbmZMCcrF X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB10094 Message-ID-Hash: PR5SPGBGV55HR765ZSLP4UZO3KENSEZA X-Message-ID-Hash: PR5SPGBGV55HR765ZSLP4UZO3KENSEZA X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 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: We can use SND_SOC_DAILINK_REG() with 2 parameter. DUMMY Platform is not needed. Signed-off-by: Kuninori Morimoto --- sound/soc/samsung/odroid.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/samsung/odroid.c b/sound/soc/samsung/odroid.c index e95f3d3f0401..110ae14dd7ea 100644 --- a/sound/soc/samsung/odroid.c +++ b/sound/soc/samsung/odroid.c @@ -157,8 +157,7 @@ SND_SOC_DAILINK_DEFS(primary, SND_SOC_DAILINK_DEFS(mixer, DAILINK_COMP_ARRAY(COMP_DUMMY()), - DAILINK_COMP_ARRAY(COMP_EMPTY()), - DAILINK_COMP_ARRAY(COMP_DUMMY())); + DAILINK_COMP_ARRAY(COMP_EMPTY())); SND_SOC_DAILINK_DEFS(secondary, DAILINK_COMP_ARRAY(COMP_EMPTY()), From patchwork Tue Dec 19 05:10:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 756002 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 859F0C41535 for ; Tue, 19 Dec 2023 05:11:23 +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 69AA1E88; Tue, 19 Dec 2023 06:11:11 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 69AA1E88 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1702962681; bh=dVe00EEUw20qddc8MUIEjRbJk4I2Gixg9B/9tNYvbJg=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=jiJGbHwQt3mujWRE+4I3qbXAJNW/RSN6AaGrytIHxAvFksJHbhxcvTpBquEU8nwe6 yc8g1l1OzwtcDLPKsXoC8XrxScH8yMxP+Z37q268a1tdePvFgzCdCxNPw86uZJY8mI 0fFiu/dRKnCIFTVs0JCxgj0dfVTLrs8sxCKZ+wgU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 61B7EF805EB; Tue, 19 Dec 2023 06:10:44 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 71F91F805C6; Tue, 19 Dec 2023 06:10:43 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E214AF80537; Tue, 19 Dec 2023 06:10:15 +0100 (CET) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20701.outbound.protection.outlook.com [IPv6:2a01:111:f403:201a::701]) (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 2A97BF80589 for ; Tue, 19 Dec 2023 06:10:11 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2A97BF80589 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=jXqaukkJ ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OcuLLT+H2cCbDxRmh0tQqPypRnZ9ejX7rbUIzgrJdiWg7z48yVLl0jSgNHS1/h8AQBLo5RGQ1rVcYJ+ri5XRxxcHkD2ZWIEUUbxnQabMV21h4EjcAxNLpSYa0L+XREvbvveIDtEp8oo4dro0pFjaKJ0C/gv3HsvQH9823N0FhYOp6q975/FDypvU1uPXzJ3THXk01vyYRzRsBHfD3Z13fNIMs23buXMnM4+PwBAswb/UZeeioDpO+dr+3LpUDg7hRLDcbmX4RkSur6NmPYt/RMFJErLBMAbpJEumbnVrWFlYh6cz4SCmD8NTyh5TlXnpHzqzzGBZ9LvL8LVPNGzDDA== 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=KPZaBuDcIYtLD6+R+IwieYzeg8s4mAbBjD7GeyrKfRs=; b=nhx0nJpv1CU6IByW9T2XZRlP2k5du9xeZBMqBAdGVPlqlIqheE+R/0yW+nqu7chf/iJPWAXvHr0K5REhimX0gep6qN3W+n84X1X0XRy01WoZg7PXrxN5zI8PT/LkwsVE0efACEDsqUvkbBaOZswq7s/R/oFJ/1EkFE/UHkFErTENH53WFXq9xKdKWItgeqz1AdSaK2bZrtigHPaWSy39LHbuBSNdnhVhqKmZSDqYMMl7pZDCyBY1EfgeIIv+ovHfvBqXVoC6zUWXzmE8iuj7Hx9fFGVP4GfYR8AnwzL44JCquhV4oBSor8fWnkF9EpsXtcyqfp8OFDtAI95YuW+Z7g== 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=KPZaBuDcIYtLD6+R+IwieYzeg8s4mAbBjD7GeyrKfRs=; b=jXqaukkJur8Cntu8s9bhGSk0764TpkmlSWRBV4aIOz6mQbc3Xlb+Qqu8paD82CMVJYbRKQ/ALJCKLRs6GEml6NhUaG+xXaR5jteSFCdpp3hsw4xpnq74lTyWmsn0CeZVtvv3Ny0umagKZeuKo8aODU/rNtmIoWXmlPinvUok0AM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TY3PR01MB10094.jpnprd01.prod.outlook.com (2603:1096:400:1dc::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.10; Tue, 19 Dec 2023 05:10:10 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::6d8e:5f2:f206:6fd4]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::6d8e:5f2:f206:6fd4%7]) with mapi id 15.20.7113.016; Tue, 19 Dec 2023 05:10:10 +0000 Message-ID: <874jge93ri.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 3/5] ASoC: intel: hdaudio.c: use snd_soc_dummy_dlc User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 To: Bard Liao , Brent Lu , Cezary Rojewski , Daniel Baluta , Jaroslav Kysela , Kai Vehmanen , Liam Girdwood , Liam Girdwood , Mark Brown , Peter Ujfalusi , Pierre-Louis Bossart , Ranjani Sridharan , Shengjiu Wang , Sylwester Nawrocki , Takashi Iwai , Xiubo Li Cc: Fabio Estevam , Nicolin Chen , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <878r5q93sq.wl-kuninori.morimoto.gx@renesas.com> References: <878r5q93sq.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 19 Dec 2023 05:10:09 +0000 X-ClientProxiedBy: TYCP301CA0048.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:384::17) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TY3PR01MB10094:EE_ X-MS-Office365-Filtering-Correlation-Id: 113f3fa6-5af8-45f9-4825-08dc0050c60d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Sj4YsUJQu/QRY3sESnr1dfrRv8bA7AKRkWyCbn/hvJJVLbzHtRmJW9/4+aHDeCO6lIVW0/RtwkgYXHBe9yp4CcHUdzUGNdEsmg2JcaiCQTH50/KVWNZTSP71sGIWuHbVW6jtrnPzItRbH/gOotfH+vYiLut1qzEoM+GYiDXHZZk32WrlmTCNOy5Ns7yUFBIr0ZqDCN5wmFZzQXd67b9eP1cFJ9y96ZHidMKGjw84Jxh+uveeYx/ERW2/zWuA5d6tOUSfUgnbc+AJ+glt/zx5z7kTbs1y3n0T0tiVkyG+p7/96QtvZzFzCN5atpo0SP4CPj8BOvUNV2ad3xBg3kO89zGz7J39iW4/htF9OXFk24LC17lxHqVy4m7aKp2nEF7mbBge1aRilhVXwjNsM89nZ/BiQytliwELHJB2gKce3kASy0s07PbLlpUzP0ekzoAEIODX6w1nkmTCvjaNPyL1eXGjJhIMmS2yT1Ic60qeRlO3Y2kOsTJ5MNsq3RmT9jgZPlXIszrucXhk4tzoLtY3Z4i7avDwwFBsqzaSaWWIDly321ADUxv+Z+nJETzXX7/YA7X9a1GeYwO+7VGzZi8064F5VP/oPv5DiYfdOk0z6L+T8XT3ZLklq3oWxA3KrzAT7K2tIvdq/b0JjcKrYmcxoYvMdgu9w0o3i8TrjCO1hSI= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYCPR01MB10914.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(396003)(376002)(39860400002)(346002)(366004)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(66556008)(36756003)(66946007)(110136005)(66476007)(54906003)(316002)(2616005)(26005)(6512007)(6506007)(478600001)(38350700005)(41300700001)(6486002)(921008)(2013699003)(8676002)(7416002)(8936002)(5660300002)(2906002)(4744005)(52116002)(86362001)(38100700002)(4326008)(83380400001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: K4yWsDeE7rrN60lXmiGejR72qDJgvaDdY80h9WdQOLY5XHZDJLq5YY2LwAHcSvbuU2YDDUyco/M2GSHpepL5FTLChjQ4c/LqBfCCnsasoNT239UZgan3j6BiOpf9w5WIV+fATmUec30TN4m+jbA9+gHkU5c4hquKGaM5PsQziMbk2+qQ45PsFGtgyEqh7blXor6HQqeIO3GdR9HEIa3l9KbhGVDqk7FA9nlzcyOylWZUmmVkBpsvYmz9PwEMZTkAknGG5QRFvo8M+NaDAyUklLSZxTBEVHKJC6XJmKVOFA57LynW61xhlrra43ZTcOGmlnSH/BTZnaPJ9IU0Gd6xkRr/VPkOhmDvnIURaYM0TZ0naqG+NUHyl8UGaaslX+mjx9cQZgKFApy9pewsgFIf3QPz3gFFHas2IoeKDpeE+uQzxRtLYTJShcxdfXjvv29NBusXyEsh3A0DGX24H2YM1kin7mdtY3Ou/JRYXui0w8cYptt0ZN+ISdwU9fZZqtKVokCn0fwChY6rSf8yluZbkhf3zh6jLR8b9sp+ZjqWncggTBwstRmAAQbpexW3kZwObnK2zKP7aAS0E03wab6A50PSOzGPmfmWgIqL/RlYZXfseT4xqxGWt9CwyzRGOWtPt/ksGrB8P8MApB/5j8qa1asSddBhTEW7jKQrxrVRq+sFt9mPYhmVZNlydLXLa6Sb3YjRKUtsdHvQlRVd41233OW13fQwgDnzEreU0sChAzkmBPKfpxWIX7gFjv99iQ4wUzC4iHH7Pdf9eqdI4BtlcvREykcgW9MF1+z1xNFlp69U5zqAmSKd+4iNHFPCavhskntDHBGJT1pvfkYnmsjOCeiRw7/9Dccd0Th2jO+S62r2pLTdj1Ql9GnGXUkcNGIcW7S43jFlt5DabkeusstQmP1FYnAbrweoz4SX6ev8C1PG372X+xA5eD/A2x0WVbcHuqdb6xNs/I9dt1nt3kquOMB5zDOk/d1BoTewdVHoQZs1/X8wRsTuxUjr2ox/bSAsPHjRUc7d2/zNsEBI3b3z3CEMZysyjWJr6v/SNqFFO9Qt5se1kJGHBubaXHK7pEATy56nYOKoAIItZSk6jK+6Tb5DKjz21LkVHKipmti5oN7jyvXiFJgHEZMIcQuTOT+beOnrQBHkpojNXv/Vc4adOvpVAsmaMUMQOSh49/XHUJAhLknumGYztTSQnf53mZCnszzOweO/yZWvUce9rWBHskGDcAc4taQHlm5zTr6RTCXEkCWOThE1Osech48ksi1YEqat+AdPdBWF+gePnbeY9LtNiW8ehXadVNq5KBAbcdorYIPF5FCE8Rv8OGWi5F6bmRrVE5UeVNkDULG1O10f2OovoAd/JIhnTDBHiugnVYIbxLYy4z8OdPkjwaqJF18bciCy+WqOCVPdd6/Na+YM+cLt5OSdHSDky6dJnwEU7Br7qWN4jrKJWZFLektshxYdkw6khbZ8YBgcfFLoHNp8Z0Y6Dnvph1ZCTyIRP7l3cNTsz9dn7vIsXszzkYi0oQTsuTAUe1Xth2SSn3blco8+pK/52mNadheWJONTQaBWko69ZoPnj6brMimYFbe6oJjVkLoEYuXnpIqu7PgtsFqb8OoZQ8oeM7BYNtzQZmkKk+E= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 113f3fa6-5af8-45f9-4825-08dc0050c60d X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2023 05:10:10.1080 (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: kGXNqO3KBIs7ay36E99QJEcNainB3j2bTE7ozgSmzXQJoq9DqG/TBEyoMJoAkvwMNEx0SjwnGZQ+FwG/I5FRpRDZywHuc8/HihJuBr7cK+3PzshvkiTz2uRvQR1A+sRL X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB10094 Message-ID-Hash: H67PDWPJTO4UAQH4XRECCO5EB6G6JD4B X-Message-ID-Hash: H67PDWPJTO4UAQH4XRECCO5EB6G6JD4B X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 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: We already have snd_soc_dummy_dlc. Let's use it. Signed-off-by: Kuninori Morimoto --- sound/soc/intel/avs/boards/hdaudio.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/intel/avs/boards/hdaudio.c b/sound/soc/intel/avs/boards/hdaudio.c index 844a918f9a81..79b4aca41333 100644 --- a/sound/soc/intel/avs/boards/hdaudio.c +++ b/sound/soc/intel/avs/boards/hdaudio.c @@ -155,8 +155,6 @@ static int avs_probing_link_init(struct snd_soc_pcm_runtime *rtm) return 0; } -SND_SOC_DAILINK_DEF(dummy, DAILINK_COMP_ARRAY(COMP_DUMMY())); - static struct snd_soc_dai_link probing_link = { .name = "probing-LINK", .id = -1, @@ -164,8 +162,8 @@ static struct snd_soc_dai_link probing_link = { .no_pcm = 1, .dpcm_playback = 1, .dpcm_capture = 1, - .cpus = dummy, - .num_cpus = ARRAY_SIZE(dummy), + .cpus = &snd_soc_dummy_dlc, + .num_cpus = 1, .init = avs_probing_link_init, }; From patchwork Tue Dec 19 05:10:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 756001 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 0DF61C41535 for ; Tue, 19 Dec 2023 05:11:48 +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 34F12E80; Tue, 19 Dec 2023 06:11:36 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 34F12E80 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1702962706; bh=jUhJytz/lXZSkGfyO4JpW6JwgiFLTCxcy5A4SDv6oSY=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=eelcPOl4CiBNewdQeo2JtDIao3vm+EQQ13GaJTOJFqefgf315kn8RJ3snb7tHiQlz DMAEjqZaUAbQgxyDAehaerUJxarzUhmqIQftOYXUcy/6+snQNau0d0bh5J30GiDJC4 e2TRoSklKfZgcTLgA9KPLXXm27oPhlI8aehixBlk= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7D944F8057F; Tue, 19 Dec 2023 06:10:49 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 00F31F80612; Tue, 19 Dec 2023 06:10:48 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 51A54F80431; Tue, 19 Dec 2023 06:10:32 +0100 (CET) Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on20700.outbound.protection.outlook.com [IPv6:2a01:111:f403:2019::700]) (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 E5D38F80557 for ; Tue, 19 Dec 2023 06:10:25 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E5D38F80557 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=EfCUa0db ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CtJcuKnmPMcUt6rASKsjasH+uBOrjHhYnkvTzbtRqTakt37kPwJbSUUD6F8k9zR64F5tNpevjX4yD7lJ4hgkCJMZBK/HZA9/80OhvE5xQl8U0rmw4hC7tQG+2coeuE3xIMSOBisTg9wGjgQuT9KwWfVXN1PuU5HFQi4UwgFa9cn86mbYOvrIxtyr8Zc7I/iuam6wrEf8yP6c951jm/ZA2oT963q6XqZpUYNWmtdSRdALPMxIYbAPTNGbq7QhyY+L23rjsLyInvYwFz/0pwlHaJdRKX4VXzAzfNEhaQVW4nkMxlaURbuaRTuOEPs/CwEVpAp4JAoIo0Gd39N2Ey1HCA== 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=Vj+DW0XzXp4Dy/xTOo3ZJhV5T2Fdf9Fv/aL+EkXVixc=; b=Lui8yIS/rw9vJPTHq57h1TxYPtsgqTn1T0C3cB9s2NAEkFBzcsdsYIb1nhTsfjgp0cqeA5lPYf9V7D5UYpIwznCOLInKy5SRYJoo9ska6tRtV5sBtKixuMVqlIGLHBqhApkHu7AMg7yJDJ4DPRgz9rAaeQ+LfgGawXw2Vn42i3ZJsIQ0exOryF8hwpe3OCyjQk1PZA7rETOPCirocuit4bx9vLOOqJUGxyxNJ84OJRQ3vd5ngx7jKTxfniufnboJq4v1FYGEL+PpnRRYNAD0RPDLauUYd8CJ7M1XokWj0fxyXfIf3MZFY/vKpsQEbwedikVfaYlKqnvFvoZ7mskqIw== 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=Vj+DW0XzXp4Dy/xTOo3ZJhV5T2Fdf9Fv/aL+EkXVixc=; b=EfCUa0dbT33PhjFzdeBGFmaWWszm/GTKqaP5Izi+POUA8i53UGtJOBShdl479iGyGTkCUzERLtzH0R1s/3r6gm/UP4AjYeuAvQMRksUJWVksFDsv6zwJt8qirQSj3v52uUMPH93sjHw5h56AL2P08OqMwJYBbS88qgvA6XpY4SU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYVPR01MB11260.jpnprd01.prod.outlook.com (2603:1096:400:36c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.15; Tue, 19 Dec 2023 05:10:20 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::6d8e:5f2:f206:6fd4]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::6d8e:5f2:f206:6fd4%7]) with mapi id 15.20.7113.016; Tue, 19 Dec 2023 05:10:20 +0000 Message-ID: <8734vy93r8.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 4/5] ASoC: sof: use snd_soc_dummy_dlc User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 To: Bard Liao , Brent Lu , Cezary Rojewski , Daniel Baluta , Jaroslav Kysela , Kai Vehmanen , Liam Girdwood , Liam Girdwood , Mark Brown , Peter Ujfalusi , Pierre-Louis Bossart , Ranjani Sridharan , Shengjiu Wang , Sylwester Nawrocki , Takashi Iwai , Xiubo Li Cc: Fabio Estevam , Nicolin Chen , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <878r5q93sq.wl-kuninori.morimoto.gx@renesas.com> References: <878r5q93sq.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 19 Dec 2023 05:10:19 +0000 X-ClientProxiedBy: TYCP286CA0128.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b6::18) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYVPR01MB11260:EE_ X-MS-Office365-Filtering-Correlation-Id: b0eb7b99-4c57-4c0e-c0f0-08dc0050cc18 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3Kjg5k0IUlgECCdpr5xKpZsIzofs+MqrZ5FpWxOAzyA4DDmUAfwPJM7mR2KK6E2R/Hgvil03fWQIsyLll3tkQQKmNdMwSvgdItu4bA4XMut3YILNmaeYITOVOyOv7A8S4tOmQ+wOBjHGH7CErLWNdn90dhKQ8uHIDXe5FfGmkikgZ6ZxSwtXUzuruy8U6Ha0m++EoMna781GOHo77pl3gXfxl1w7N+z49c1ZfIKW4RK+uUtD6IriHuH2ia4Y2p70BLzJskimMsv5M3QAx+TyH9HUVZC81QXinfM3LtKty63snCyT4P36S06BKL1AmDEdxPvPU1IXMu32qiC3QhL2OyRu4YOKR9MeQWmTvfM0s8YJc28G5I5KEmRVdrRkCTp5i/dyn/KAGBtiwpTxYi4VEniVIgdEVJDJks9jr14IzggvIIHiDPY1DnvlKXf4rubFKE+wh7UNOirSXnAcsZct0uvmBgKck5S2IMTOdvVDpulGiubBCDouYl/MSBp4ruUnYWsrB/1jks8K/NSTYp6Yz4s6AVgvRvbh4+pYt4y/hLq6xa86HCtzSEYZ6yBRiLHAJIxl+JS96/lvzwlWZgVEh+WrQRzynzsNTehPxpvqggKB0m/QlyaE167Yq/Tj225Z X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYCPR01MB10914.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(346002)(376002)(366004)(396003)(136003)(230922051799003)(186009)(64100799003)(1800799012)(451199024)(5660300002)(8936002)(4326008)(8676002)(2906002)(6512007)(52116002)(316002)(83380400001)(66476007)(110136005)(66556008)(54906003)(7416002)(66946007)(41300700001)(6506007)(478600001)(2616005)(6486002)(26005)(38100700002)(86362001)(38350700005)(921008)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HoiKM/XkTrmHXy6AxtXvCr68kkhL3y7Bcym2QoSI+qOolm8XGjHA2fTpznzKllbNM3vOgxW/EBggpuowCJOi5X0hgbGnZx0u4UE7SyJE7TyY0SOhAjCt7SsCJiuhDtzD3XVwzulgpW5gVcOco5rTXyuEYXC+RMWZASULsaMIbxFQ3T+gpWbgczFeXvm7UiEJ0GhcLn+TTMwWVHh7FOY/p+fASgvLgCPVoaXQ6FzLT22hG0soxNnBzWaPTfgVPH0aQ+gTWjpQLqNKagOa9ryviqY8GWJNh/wGqEwOntbOHgsCmOjNFOfKmeon34+lgKkV2haQc68qbEe0rsy/FyLZ2MG3tXiEvg4xgPNkYkKebXgFbGhIaXMAg0aVifN+Qn/uqFspWD5sIZ9p5a0K8P303rB4TnTivcp+mjwKuku2AnHFsYjHAiwnJSPpQn8o9IwNDsVrZEpNHTACSN2XAVOL4ynJUJKbfVVUohfNNa5NMWaPBBrHc7Xp2AhPmdl72P8A9jgfiA55WIPWUMRuLj6zBLPAWrn0nm/oSn1jY2/mgVBNP14YYta+CFKE0uKMu766Y9kKaEqjHpADdDZYpweHdJCyB7SXivS+aN1rc9/rsd7kjXf6zYajPkPJYthMQ8W1HfsD0kEcGI8nCj8OctyNxfLyyGEWfc/38lgSKV2ZKmoSvqXclxit7679v/K17PpGdjXQaXLinbAZ4tXg4OK2JqcLX70yZHMbpntCRGdv5V4eRyU1rKUvxAzjkslaSQ2jshD6OqxAhKJNirVtkxJ6x8JU9Qxy3ALvEXRspxhBi2+INj3NvjdDdpkgLszcPLBlY9dXlCqjIaLVkcykctOi9zmXJLIMMaqY2juG/Bg20Kk7ry61NN79sqGnBNLcT8QZhO2pQkS8ZtNzU7Wv+PMyX6DZvIRhmmSj/H4BGCB71m2W5veT+aR18g8WUySK7s+Ylgz6DIvzhSHDBEh4aOX1JTR72TxQh1MRXPleB7JZHZaUVOc2rykaLtTP0t1iTn3itEKNtAaQhYV6xiP9EWKygONB6zrIqpWin3XNKz4vPAfMIJe1HJp3XPvdZiCBhL0w1XyQkgq1et8hpn2eHFQ0un+Gz3NtlX7JarHZoHZlFgNhCf2UW/6WGMkmuy7Z2SMqqV+AgFh2jW0MNnZQ6qVIuWcv8Rrs45e9eMGxrVn6S+juGWsBsVtItYm2jpMnHjUy9Kyu86qM4f/RWqh7C+qTKsbPHDpLYaNGjE24ocgQMKm2QA7ZN2OfWcsw4X8tQaUg0Q+sqy+MUl4ml8FtiQCiXI/369j20rurnX2upQyGX6eRB5FKKW9C+0q0ot6dgsOEZWa/PLmsdNluXAoYefyCyCXUaxciunB3BKgae4Cn1ZEo1qhF+VbngVgLjI8yh2LOb/1yE5JMjbyRC8o5eAETa1JWtGoceKHykJ8FYG6YiseHPLeyUP5LSWmlG9CNu06pPm1aLy7qj/8OMgWJJoEt1O3USUM3IIC66JO22Vu6PM9vMwN++mWRNg6zU4XmopFmR7s0a+X9q9HfqEIGbwxvI4jdcNGHzzA4Kl4GQv+4jfFk/STt/7EL0WhsGzRTEWjm6I2SuK+i55cFHRYIZb5LLrvE1AS3fvt1tJxUrIrPbw4= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0eb7b99-4c57-4c0e-c0f0-08dc0050cc18 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2023 05:10:20.2456 (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: K0EAfN95kVklVlqNhJszHLbh6W7sSuxjZwRRg1Hfab+xPZJXM71rohKjtA7iz+Yy7XtyUoqb0d+ivyvRoWkZwDcH9i4V+IXLRthGXximcWAFr+YZdLZ9ZatQoqwzxWFk X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYVPR01MB11260 Message-ID-Hash: KJ5VOOHPKZWPMZZRMH6ITWS4GN5MIQFV X-Message-ID-Hash: KJ5VOOHPKZWPMZZRMH6ITWS4GN5MIQFV X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 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: We already have snd_soc_dummy_dlc. Let's use it. Signed-off-by: Kuninori Morimoto --- sound/soc/sof/sof-client-probes.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/sof/sof-client-probes.c b/sound/soc/sof/sof-client-probes.c index 7cc9e8f18de7..30f771ac7bbf 100644 --- a/sound/soc/sof/sof-client-probes.c +++ b/sound/soc/sof/sof-client-probes.c @@ -381,8 +381,6 @@ static const struct snd_soc_component_driver sof_probes_component = { .legacy_dai_naming = 1, }; -SND_SOC_DAILINK_DEF(dummy, DAILINK_COMP_ARRAY(COMP_DUMMY())); - static int sof_probes_client_probe(struct auxiliary_device *auxdev, const struct auxiliary_device_id *id) { @@ -475,7 +473,7 @@ static int sof_probes_client_probe(struct auxiliary_device *auxdev, links[0].cpus = &cpus[0]; links[0].num_cpus = 1; links[0].cpus->dai_name = "Probe Extraction CPU DAI"; - links[0].codecs = dummy; + links[0].codecs = &snd_soc_dummy_dlc; links[0].num_codecs = 1; links[0].platforms = platform_component; links[0].num_platforms = ARRAY_SIZE(platform_component); From patchwork Tue Dec 19 05:10:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 756442 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 72A4EC41535 for ; Tue, 19 Dec 2023 05:12:05 +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 D3D30E87; Tue, 19 Dec 2023 06:11:53 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D3D30E87 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1702962723; bh=RYK3kzypNmsoZpUrVC8QneHyqkwuBEB1ux3ERhAMGoo=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=XzQqSTPtF/E5Uqgy5n3heMFn0sj/z5yWm1NJCRDhVD8CboBa5S7cDT5obma4hxCIE yL3G28ckdx/5JJu4VyEzmBaji/8piVHlO6HlbXl2MwAQsXHNKh6tiawBU3VGNjJhvT 9J7mtATfFA8ddfXsgTnMf34xXGCH3+E59/tHyZWQ= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 733FAF805B3; Tue, 19 Dec 2023 06:11:01 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 2C57DF8060E; Tue, 19 Dec 2023 06:11:01 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 73FF8F8057C; Tue, 19 Dec 2023 06:10:54 +0100 (CET) Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on20700.outbound.protection.outlook.com [IPv6:2a01:111:f403:2019::700]) (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 26558F805B4 for ; Tue, 19 Dec 2023 06:10:39 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 26558F805B4 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=icySnz3O ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZaqLEzKXDEaec0QdZyGUrrZtxXcNTOAga8UDqub8Vx/spds9c1siNp6QHriSsjy0k6yMUpFgRK1RVPszejaNd6+q54nJIv3RKoMoXhpz6+d5l0pl7abkUi5kFoVmyX5wYh0v+SJcLiZVQZcDMF02aHGg3CgF9tXp87epMR7dXYmTnwF5ZecrQwJMBQU4SGNndzonkKxZ+velly1pXLNmm0ac6tyP7+EqB3jtuJ2IR78jTTtDhvte3yqHdvDl0yAfE0l6pGgWbi2ApqgxPlGl7Sdhwkm82KE2eq35CrnijFy1qtjC9Drkn5fPs1LalvTRff1FaGuVISoHEMAT7f/egA== 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=1fH0MleAibr3XRikiAnmDYyZbsqI1mSAuN04fh/k2yQ=; b=Z4ZuLBR8axaYna+gVnRLtm7TcCfv7ohyTBR5Se2zCn3i3XQMGxjyrHzJfNScqGppV0xgFBFajwaQSZdc0SJF0dXIPRC9ndXdll2ns3e4AUBxgEU75vN5Y90I7mUCoC/bdoptbeJZ/Pqi/Xva7ZnFe2NJ7+0v3Rb/njENstmNJx1KRJtwne9FsF/Gsx9OHuKbXIA9mksCaPdIZkV83KUJ1qBWXajUP0vhdLtbHb+m0lHIMU3U5LpfpvXfKA+qlxnmlbiSdAboXLiOenWZqD/ywukId6NBr4zcfc6fUC/Ox4P2pE+tQb333Kr7+q+DjB9uI8PH5AfFuV6lxVh9UH2RBw== 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=1fH0MleAibr3XRikiAnmDYyZbsqI1mSAuN04fh/k2yQ=; b=icySnz3Ohe0XrWatZarmbZZDneb4rTDOvY7xb5yYW24ekbBGhExCztAAGwlMBf77t5T90zqWTykVQi114rPQ/mjuQ0j1YECdAp0MzAMif1gRR3zUH87O++yCNqGNrMs1lfP5W/PyxeEz+A5U8fMhglBxRcYp+oYEc2uIqScdFzI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYVPR01MB11260.jpnprd01.prod.outlook.com (2603:1096:400:36c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.15; Tue, 19 Dec 2023 05:10:34 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::6d8e:5f2:f206:6fd4]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::6d8e:5f2:f206:6fd4%7]) with mapi id 15.20.7113.016; Tue, 19 Dec 2023 05:10:34 +0000 Message-ID: <871qbi93qu.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 5/5] ASoC: soc.h: don't create dummy Component via COMP_DUMMY() User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 To: Bard Liao , Brent Lu , Cezary Rojewski , Daniel Baluta , Jaroslav Kysela , Kai Vehmanen , Liam Girdwood , Liam Girdwood , Mark Brown , Peter Ujfalusi , Pierre-Louis Bossart , Ranjani Sridharan , Shengjiu Wang , Sylwester Nawrocki , Takashi Iwai , Xiubo Li Cc: Fabio Estevam , Nicolin Chen , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <878r5q93sq.wl-kuninori.morimoto.gx@renesas.com> References: <878r5q93sq.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 19 Dec 2023 05:10:33 +0000 X-ClientProxiedBy: TYAPR01CA0171.jpnprd01.prod.outlook.com (2603:1096:404:ba::15) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYVPR01MB11260:EE_ X-MS-Office365-Filtering-Correlation-Id: 1cab6098-6215-4710-1879-08dc0050d45e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dEj8TBEJXF7FnmzJaNIqg1ZlRIM3erm7ZQwt9ToqMkJOIO1XLf2D4NQfwq3pT8hejZEY16QQ3+69mMfjjB1g3t9ufOxDsbdSLmfvFdLNzhnUehBxpqQLvqnrNJAb0LUhhkf+jGpGJqUdjE6O1u57zZ4EO+XIvqdCrHrmug4mU04nWAw6L2M6LeCwFvlgKvfk8Pf5IBOG5QU3cyhUk/oZ3nTwHGVUgtYebX2Fq1cdPZHhQnJTiLOZUGPz4GFLKfCLGJ6ZWMnAH4prQKecSOF3LA95ovcbe5ewgwyciUKQ+XK/UWxgI5zvVw9eyky34HwK4TSkAQzEELF/azntUMaVe9rJi+WaoBZV30W0FigYGnHoHJKjg5ljGTbRzAZ0TKGa/6bsHIde+ftFOr8cLY3BIP85Mapk3ujeRvWGcemQkt8IQ+acz6+r5GsJSxNTuDIsMHUKfJpthe5tiEmvx+2WvmQx23XADHFO6qesGYu5NoQUwv9XLLbubhV6GW7CTFl3HLJQp91geZNSXzJPh8vYu1ruDha1gu7gqyeazy3+XH1odoPe/6OhMxs/V6puY80cStXazEN4PMk1ox9LQvyAOKZvPOuBffEAIeCMj6Qj0RIix7UvGc8p088oW5ulH5VmiCzrEA2ui5470pBl0tiieQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYCPR01MB10914.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(346002)(376002)(366004)(396003)(136003)(230922051799003)(186009)(64100799003)(1800799012)(451199024)(5660300002)(8936002)(4326008)(8676002)(2906002)(6512007)(52116002)(316002)(83380400001)(66476007)(110136005)(66556008)(54906003)(7416002)(66946007)(41300700001)(6506007)(478600001)(2616005)(6486002)(26005)(38100700002)(86362001)(38350700005)(921008)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: r4dsCQ4Rgb3DJCil+JDAyxSt0wMaLfV7wwd2+3U4uIFvTHl4UtHZv9tSNEu3fNnOkjxWAa6oYQOv1Ln6g3LU3g4A2UciazqHPOMuGFMmC1STFwmN4oNVgEXV+LaPzXXSOO3p/njc4QmjghwN7CBDWlOPjCETuYoWzlhjdLfrqA6B+mQIduprfsX6qSBjemdaQcLj3SkQHLk4dBIATK7KLRMXi2WBjz4naacPWNGSZzi3pIkjZSroABHO2ZSZliy3S4ddT9sJ7i+uxlTvwjO5rRjyeXSm3jzP5nM9VJulkZ3Twezjgf0VPvFR9vnbb3nbFSX3aeoSQhJ9nIk9sqjuAHUWPAxUbBUx0/7RqFgry2xpWVRRyeR3X+tAYj1NMbw8ciJVswozpUK/w5bpbv/4tmwGfuockw2uZ656KXwbv0qZ3YVcIBFu6gEYGkgCd9nOTrVNzsWghX3Gcojle/+3abzIg8hcC/G2Cubj9vHR8B+tpvrKQLVjyfJLSTEXmHPoUsi5biCj0Mok+rMH72PYHwtyb2sztcxAyLWwkJNVxUOoTkrnk9yBkL8x054xqFn7rCb6jVSniAGvS9Rvhd5fj6NATZYtqxY/MJjH/zhjnccXgzQFpGO+iF7Ibrauc9Xji5ndia0x1layVLRPS3eU59z265qdDxz+EA/QAcjA9PwJAH+MTAmXfs2KbFwodda224I4ZXef0oC0j3iK3xvKgP8hS45Ph7FN21X3iQoRkEDA4tx4lNIUKcxlL4yhqYpftJxzTgs2h8d2igND33Iy5DvR1kekgynEKXaBSVoISGs0NL5IJoTQ5RPCCRPyKi9lVbv2+tLTxb6kqKmrHIL9COSDJ/buAM6kMy2Xj8MZmNx1WI97k1B8FIC+l42PHkgRbM3CmP+dH0TfobHNMGwjrA16tSSX2B3k+4Inwx4bPw2Gl1yllTux0BTDNvs/MX6HHJto4DqGilXvdekLUmTxqCZV2oer1zqhkzZR5kz8zXx7cMEw9T9nzL7wTZGZ+HNOPi2qvu93gPbpkA3GJR7YIMQpXzqH7BJzBqSmcbcFccdQfuUEdUo+GF92QOdB16rkwL8cikjj2rB9AQ5hpPOIOZuv8bkhXnWif3J3Y54Bj712100r3ISGxtvrJzpOxeaFaiQFObX1DBdK2iR/4V0jsYm3zAMfULxh7bSGKuc+iCUhxEGM/gK6xtrDV4JqPtCcZV5nnP6f5vdjUcxqGXszThG/eiy9ygwg+oy7+/Imb3Lvo9mNJnkB7MUIRiAOnEtGYZ6NNZkiGNJoB8HbDR05k1xLuF0OlGgdGL6uhCDycJwaSzvJJFSAXK5AOc3dt6CMfoWSC6cZ6Lbglane5XgXRgGxzWFGCBY1LTL/sHipsE+4HdK9wkau6N8gP6BLCGi+NFlsDLbTRCtscVd6a3kJEESeSihRB40YZn8WY2eEW0rtb7YDYSCUJgA1acKvOakR0kmWnR3iZ4Y7EYkcSgkUJfzVKagJl/YCAfCLM6cgAKPhtw6G88Fdcrw5j2oNjVWk2e/i1A1ZYVZKZ2e7E2t3RNsS0wa3aQz8u+bWulax3VOnJbQbVZeodj2DQ5BiN+dvA4O8JrFaUmnSk+s9oJY/MK5htqcO7ilqmlYHKeGqeeQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1cab6098-6215-4710-1879-08dc0050d45e X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2023 05:10:34.1236 (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: 7fgzd3ylOaTJsosXhU9FsrQmM6da8c9AV2QdAAWGwrLKZPmPye+jdxnFrZKQ3dPI3aH+kDeDHk5D7dccQKtMlAl0RYwiqZpnGpqPt5QTZQCw6ei2x1EcX0fCSVjjFJ/P X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYVPR01MB11260 Message-ID-Hash: 56DUPXLWMGR2WBAAOXO2H5GKMKHB5GHQ X-Message-ID-Hash: 56DUPXLWMGR2WBAAOXO2H5GKMKHB5GHQ X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 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: Many ASoC drivers define CPU/Codec/Platform dai_link by below macro. SND_SOC_DAILINK_DEFS(link, (A) DAILINK_COMP_ARRAY(COMP_CPU("cpu_dai")), (B) DAILINK_COMP_ARRAY(COMP_CODEC("codec", "dai1"), (B) COMP_CODEC("codec", "dai2")), (C) DAILINK_COMP_ARRAY(COMP_EMPTY())); In this case, this macro will be converted to like below [o] = static struct snd_soc_dai_link_component (A) [o] link_cpus[] = {{ .dai_name = "cpu_dai" }}; (B) [o] link_codecs[] = {{ .dai_name = "dai1", .name = "codec" }, { .dai_name = "dai2", .name = "codec" }} (C) [o] link_platforms[] = {{ }}; CPU and Codec info will be filled by COMP_CPU() / COMP_CODEC (= A,B), and Platform will have empty data by COMP_EMPTY() (= C) in this case. Platform empty info will be filled when driver probe() (most of case, CPU info will be copied to use soc-generic-dmaengine-pcm). For example in case of DPCM FE/BE, it will be like below. Codec will be dummy Component / DAI in this case (X). SND_SOC_DAILINK_DEFS(link, DAILINK_COMP_ARRAY(COMP_CPU(...)), (X) DAILINK_COMP_ARRAY(COMP_DUMMY()), DAILINK_COMP_ARRAY(COMP_EMPTY())); (X) part will converted like below [o] link_codecs[] = {{ .name = "snd-soc-dummy", .dai_name = "snd-soc-dummy-dai", }} Even though we already have common asoc_dummy_dlc for dummy Component / DAI, this macro will re-create new dummy dlc. Some drivers defines many dai_link info via SND_SOC_DAILINK_DEFS(), this means many dummy dlc also will be re-created. This is waste of memory. If we can use existing common asoc_dummy_dlc at (X), we can avoid to re-creating dummy dlc, then, we can save the memory. At that time, we want to keep existing code as much as possible, because too many drivers are using this macro. But because of its original style, using common asoc_dummy_dlc from it is very difficult or impossible. So let's change the mind. The macro is used like below SND_SOC_DAILINK_DEFS(link, DAILINK_COMP_ARRAY(COMP_CPU(...)), (x) DAILINK_COMP_ARRAY(COMP_DUMMY()), DAILINK_COMP_ARRAY(COMP_EMPTY())); static struct snd_soc_dai_link dai_links[] = { { .name = ..., .stream_name = ..., (y) SND_SOC_DAILINK_REG(link), }, (y) part will be like below static struct snd_soc_dai_link dai_links[] = { { .name = ..., .stream_name = ..., ^ ... | .codecs = link_codecs, (y) .num_codecs = ARRAY_SIZE(link_codecs), v ... } This patch try to use trick on COMP_DUMMY() - #define COMP_DUMMY() { .name = "snd-soc-dummy", .dai_name = "snd-soc-dummy-dai", } + #define COMP_DUMMY() By this tric, (x) part will be like below. before [o] link_codecs[] = {{ .name = "snd-soc-dummy", .dai_name = "snd-soc-dummy-dai", }} after [o] link_codecs[] = { }; This is same as below [o] link_codecs[0]; This means it has pointer (link_codecs), but the array size is 0. (y) part will be like below. static struct snd_soc_dai_link dai_links[] = { { ... .codecs = link_codecs, .num_codecs = 0, ... }, This is very special settings that normal use usually not do, but new macro do. We can find this special settings on soc-core.c and fill it as "dummy DAI" (= asoc_dummy_dlc). By this tric, we can avoid to re-create dummy dlc and save the memory. This patch add tric at COMP_DUMMY() and add snd_soc_fill_dummy_dai() to fill dummy DAI. Signed-off-by: Kuninori Morimoto --- include/sound/soc.h | 2 +- sound/soc/soc-core.c | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index f3803c2dc349..7cbe85ca040d 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -938,7 +938,7 @@ snd_soc_link_to_platform(struct snd_soc_dai_link *link, int n) { #define COMP_PLATFORM(_name) { .name = _name } #define COMP_AUX(_name) { .name = _name } #define COMP_CODEC_CONF(_name) { .name = _name } -#define COMP_DUMMY() { .name = "snd-soc-dummy", .dai_name = "snd-soc-dummy-dai", } +#define COMP_DUMMY() /* see snd_soc_fill_dummy_dai() */ extern struct snd_soc_dai_link_component null_dailink_component[0]; extern struct snd_soc_dai_link_component snd_soc_dummy_dlc; diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 132946f82a29..f8524b5bfb33 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -576,6 +576,28 @@ static struct snd_soc_pcm_runtime *soc_new_pcm_runtime( return NULL; } +static void snd_soc_fill_dummy_dai(struct snd_soc_card *card) +{ + struct snd_soc_dai_link *dai_link; + int i; + + /* + * COMP_DUMMY() creates size 0 array on dai_link. + * Fill it as dummy DAI in case of CPU/Codec here. + * Do nothing for Platform. + */ + for_each_card_prelinks(card, i, dai_link) { + if (dai_link->num_cpus == 0 && dai_link->cpus) { + dai_link->num_cpus = 1; + dai_link->cpus = &snd_soc_dummy_dlc; + } + if (dai_link->num_codecs == 0 && dai_link->codecs) { + dai_link->num_codecs = 1; + dai_link->codecs = &snd_soc_dummy_dlc; + } + } +} + static void snd_soc_flush_all_delayed_work(struct snd_soc_card *card) { struct snd_soc_pcm_runtime *rtd; @@ -2131,6 +2153,8 @@ static int snd_soc_bind_card(struct snd_soc_card *card) mutex_lock(&client_mutex); snd_soc_card_mutex_lock_root(card); + snd_soc_fill_dummy_dai(card); + snd_soc_dapm_init(&card->dapm, card, NULL); /* check whether any platform is ignore machine FE and using topology */