From patchwork Mon Dec 4 01:31:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13477720 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="hQUN8gc2" Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2127.outbound.protection.outlook.com [40.107.114.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5144FE7 for ; Sun, 3 Dec 2023 17:31:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WfG6JJMV/JkADAI0y0Qjvo04q0iPXz+FvR7qjsxUyY/zM7FHhnhhValMll4zYf5RTX+/rIMnFHRsmD3EPPxXqGOzM/yUZiYnR9MpEuq2PfPJFdIWPkIY1pj64v1VPA77JKvKUINF765dHW1As1hmz8p5yWlzeQPSws2XFA9XyWhzbCkdeh3DZE/gCt/bqLLRc1MVHRtN6MMhFLjbd3smrv8myYwRxWcsVx1Mta80v5tVf93EPwwNH+vMkVOKza8izANEwKlSIhAZMlMfpyhER0ttVNZ7g75DpYlJtLmxSn9RMwH3FF3+RCBhSsPE1TRK3vbT11FEoRBRfk0+Gsoq7w== 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=fSShOnClzJASKDPJ+2oM/0Ael8WuvWmhq3lJDpUjuRVbV1v+x1nqb24AzC6vC8Q4gA9HYJCQa8/patqYOFzPv7m9c9gEPL7gjDBibhn9as8TNn813M5z91n7t/iw5Ajp04Ud6sggggp+A2Z7+YwzPumuMEn0qkRFeHTV57/klDcK6zdeL4U0cr/3zMJz3ytvcUq7K3AEhklxcKQJp9YbucgrM3Ln77EOCiVmm35GWlmJ/dSKahXatDoQBt752cwIKU6O7TTit2OsaVDvgbeTrvrUjq9T6hWWIQqvL5lURjD//7DHEBMehUbq2TCErlPzKQhYsqJSmhv6jw5aYUzZag== 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=hQUN8gc2XykgvPmbGo6XS8C/nWVpxnGK+gXfR5AIwaVVVkyvNgfGxlDwNPxsm1WV/0jU6A8bi7sP9gfe0SqGutlfyhThzPtJ8AfBk95rTvAm3L6kEErHPdrQ7z/F+EdbQcvyRG+EZ+X8wNK2BabB9onuNl+l/rFGQK51bupnR60= 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 TY3PR01MB9747.jpnprd01.prod.outlook.com (2603:1096:400:22c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.33; Mon, 4 Dec 2023 01:31:28 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::5732:673b:846c:ed92]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::5732:673b:846c:ed92%4]) with mapi id 15.20.7046.033; Mon, 4 Dec 2023 01:31:28 +0000 Message-ID: <87h6kybvnz.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Jaroslav Kysela , Liam Girdwood , Mark Brown , Shengjiu Wang , Takashi Iwai , Xiubo Li Cc: Fabio Estevam , Nicolin Chen , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87il5ebvom.wl-kuninori.morimoto.gx@renesas.com> References: <87il5ebvom.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 1/5] ASoC: fsl: fsl-asoc-card: don't need DUMMY Platform User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Mon, 4 Dec 2023 01:31:28 +0000 X-ClientProxiedBy: TYWP286CA0008.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:178::11) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TY3PR01MB9747:EE_ X-MS-Office365-Filtering-Correlation-Id: a8930549-58a3-4eda-8f78-08dbf468bcdb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DY2vE2VcvdzRiQ+4vhu09mnYvAgSoOYx3ZjKG0WwfJ2aeDkDql9vAMTQB4XmhIhCl6eHrbm8rjoc8MhDPNfrL5s7tF+dx0aScixC6Tk+XNc9Brb6+97o/T7Rsg+/IvpIEq2yTIULWibJlQGGFsW9hijm8OakcpfK6dEEiUd6DSniysx/IbudcPXCwk/RahSwEkStC4FodsTDjDaa+JOWMyJe9DAH9MxTYKs2/8/lwFUshM7kHKr0FnJVb+94/UDXnB1/39jipt/ziRxou5nfpoVJrbQPgVKf1xEj62athQF5RTuBGO86NlvBVJwxILZCYd6F469tcC18juhmnNMC50HQ8XPKrDStXaYPYf9SpeJcRWmeKT0LVy3Kllq4kRJ6saahzZgJv51T0c9Rz2IM3OpGrQoA2BRYrhrg7hPepf7UcSSSrqLHC0IuJQD6IHrqMOk/guhEJkkheJ7F7hZND3JSCY1oPTcemtqCWezqgpIIFEDdYZ8EGzIhlZkoz+xF2dWM0YQ+ttztkKh9rEWvzryoBEoYj0At28MXwHE1pl8uAmxyTbqwXmNMP1pOrty0OtobhyYoDo1BE9/TXGaka7u1FwECTQ8U5eXyjYH1+sm8gA9US3PbqQUPCgoR4I9H 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)(366004)(346002)(396003)(376002)(136003)(230922051799003)(186009)(64100799003)(451199024)(1800799012)(52116002)(6506007)(6512007)(478600001)(26005)(83380400001)(2616005)(6486002)(66556008)(66946007)(316002)(66476007)(110136005)(54906003)(41300700001)(86362001)(5660300002)(36756003)(8676002)(8936002)(4326008)(38100700002)(4744005)(38350700005)(2906002)(7416002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Qz+fH5H6r/GYaOcfMw1YIWRKmWSv92sYU4CP7BZNCj/RKBa+5ni1kuawmYHz53FyWpKMa0tmJgkqDSQV4bDJ9NXVqRmio6wIyWAw3vomqsGp0fJcaLdhyAca2Sdgvt2Bh9q6iOGGhsCH+UL6E6R0NZjhnNObKnI52CLroF4u9uBs4MU2LtHHtgDsXC75CN8Ls8Bz8s1ubIxc7W5FvImXMDnXMcvKHGxx5/r3VC0Z5tfxJGjprDa4ihYyaPV6r8jtFT5cqg22VI45kLh3Hxci2BfS1teMDi1XaAEMrJlDdkLUjh0EBPuujZzcQAXV9cn8s8ADe7npEmn8E3yTjnSh78if4K9Afpp0ifMM7849Fniqn4hzBkbGjXsbwEDEG8keRiyUDD0X6xNtXkobL3v2iU52K6OEWcD6blIlS9GEeT/moZzKpPdRFluayRle6GKkulUNzWgEDZ+M2OVvdj80O2Vkwz1Ofb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6aIm2o5Yh0dQfV7LRJYRJd4t2WbN68Hgr0iN/jgb+tBQTz7am9YkKD0D3TLCJhyRZOJaD51WO8/tdFYW/sgLx9sMCM154= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: a8930549-58a3-4eda-8f78-08dbf468bcdb X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2023 01:31:28.6460 (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: 6w/C3lmz7ImVOBc725qZDKkVu42rAMSPQ+aTSMv7nSBzRRN9TPvbIgtAMnHVTfsu/R3wLBZjfeuv6kdOtFH1H0fY4WmC6YOJ2belDgbxes/bfZBGnnwO7nMj/awj8WR0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB9747 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 Mon Dec 4 01:31:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13477721 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="U2Spk+dS" Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2120.outbound.protection.outlook.com [40.107.114.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47E44E4 for ; Sun, 3 Dec 2023 17:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jacFNiPO8pRmtzhcxYuA74aPlLRUgYBlbSh880RwcuEQr1pX9XoYPw6Ypa6YmKlTiJwWxtXA6vY5TqYf/cBBRCLaKSjtgNirMouoo71DgEt4s/K6X97tBWk4T10y62wQ/aOAh7C7xY154LjtydKujzz618TIQ5hZwIkTj2npYCMasRlwBy0MxewEVkfcG7h2ObJJ5/XKU/YsWicDsI1ENxH00e+p6kcHMjcW1dICb3R3PqEWPMmtbWWn27uu0DYbO8uYmBZGoetEpNyqRRFBV6MXOGcwr0GGV4aCWd03wlfZX/EVaf+5jdMF6hQq4Z/wbLvTlV33RWD4ASvRuH9Yeg== 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=ZRm7BayiQ4iT1NVVKBzavVvsJ/CKGiWKRCvyF5R4ryLVdcgqS/okgx1Q3oKdbPOTcrTsppekvyKS+VNGYDi/4fTfnZXuFFKzlhQ+OqjhpMu5/PX3iXdCuwPnR17KCgggsXSy8f+kuvbbxlad2dAHK5LDRhkH0RJAZYOIK34ZpjAn3mt6g+SnusAZjDQAJ6Hl1TMZbZZQs5GCrxnzX08KymGbj9b9TYLKY4pUFEMClnWT3TCkhTGnqarj2zDXYZXA1w2Db4wU/DoHbKne1QL/sjd19YsZxB2f0CZdYZjKo39NHvevUb4oVpqt41m4L/YJIivfwZmawP/TUG8eBlluQQ== 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=U2Spk+dSlREs7VoJYqMHRDar6MXW6yYDHVsFHG5vPdV0tGZx1GwCw7HfMPNlCmmbSOBrWJJ5kHX+8zlYUtGszYELAuptHi9kzVbqloZG+CTbf4WxiWHcuS7Q50BVursS6rKxrDpcl67l7mrn3paxOaRf/pnckNhXmAPYU6oMrWE= 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 TY3PR01MB9747.jpnprd01.prod.outlook.com (2603:1096:400:22c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.33; Mon, 4 Dec 2023 01:31:35 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::5732:673b:846c:ed92]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::5732:673b:846c:ed92%4]) with mapi id 15.20.7046.033; Mon, 4 Dec 2023 01:31:35 +0000 Message-ID: <87fs0ibvns.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Jaroslav Kysela , Liam Girdwood , Mark Brown , Sylwester Nawrocki , Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87il5ebvom.wl-kuninori.morimoto.gx@renesas.com> References: <87il5ebvom.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 2/5] ASoC: samsung: odroid: don't need DUMMY Platform User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Mon, 4 Dec 2023 01:31:35 +0000 X-ClientProxiedBy: TY2PR04CA0004.apcprd04.prod.outlook.com (2603:1096:404:f6::16) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TY3PR01MB9747:EE_ X-MS-Office365-Filtering-Correlation-Id: e5116c4e-93e2-4224-1c75-08dbf468c0eb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: C0Xhg+ja78WocyfWasnr9mN6w1AIr+L962ZSUvHQmAlluNuqaulLdaf5xXcpI8Ft/Dh9/VSjru/fR1zXgwgY2YPGnxvWNTlIaYeSWZ6XP2xOk5BxztdcxkJ2SEUnWD5oiGRCRXtVD/3XGghWQouA5SHiiPc5STJIiVRBDfIniIzH9D6j2Gc6rRm6vP6IzGuTvWXLXSX3UvfjTBEeQX3rRChmSKlOo6QLdZY8vWt9uVCI5GfFbVC0i6Ke1Ddwd+h5ftVX6sCSIlun/nvgqRIQN10whklN+Nbjob6mEAtz1j7Wegs+h/44SGh/QXg+rHAeSLwqQZhtIUBGz/N/eXcRDb6nY4a5IS6ZSQhRpBH29rOtxgbMnfKnzZknKIhHMJzEJoz9HyJ7hpJhjyc+9STqQSUrVi38gTH1ONkGsMyAO4oKzEso5MDZhhM3BRyIKEtwQmhNS2Z8LFAkUlqAD5SlAwEC+lFcUItX2Ndy5a6sN+26I733G7Qsu++mWoWM+ngQKEWsgeltqY0dZeNsHk0XWZvlH8X/w9oSTPcmgYN8/jVLhXL4V4rHKZ+l3tUqpoHtWbcavz3B8GXHfuL1KCyxDcq24tWT2pEU2V3UJe39yuMp/osbMLXVAFY4tS5rfLz2 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)(366004)(346002)(396003)(376002)(136003)(230922051799003)(186009)(64100799003)(451199024)(1800799012)(52116002)(6506007)(6512007)(478600001)(26005)(83380400001)(2616005)(6486002)(66556008)(66946007)(316002)(66476007)(110136005)(41300700001)(86362001)(5660300002)(36756003)(8676002)(8936002)(4326008)(38100700002)(4744005)(38350700005)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: amiCjp73/UUzkw4udXt6xEHH+QDUPBN7fF89cYRWh7f1c+AUJbtnlC9n8ydgsSkYJRZycXVB+KZNIwF+xBaAKJHW7Ack4spMtjmiTybEcbMDD3YkCERxn38aCEDXEAsswi/N0cQRuTHT1PMWnQWuEZXxTBSTKWh9RtypruF/2kdpNyEGR+XiIfjGDuDlonv+KTQyzkGoBR+C7oV/n9JRY0Nw7B75VwR4iwsYL2AeluPe/Fy2LAYwc8oeyD+/MRCK075gox20aeATs+v9ZB/I7OESGRyKIpWhes34/SAwCAY1zERpUU8mZ3eu1svOL/TOFFHFII61MqXO+iLc8nGqh3gf0ywbnlh+9ou0egfk0vOWTEdMXvCYxmF8Rl8axpwbS+HFtkC/uBHnarn/HYUCVO90n7erpdPy4uHZeMqXTnLtAKxIzKTEl36VX6uP5HjGQgLDhky1FXJ7NK+xbsVKyMHUoNhXv2tj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9Bp1g6RpFjEinpkjSRXIe0ccbA0+stgjy/F+YW5bVYFkz7Q1SM17kKgP1Rr7v5Nk6GUKLc2pq4AmwGla/s65I= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: e5116c4e-93e2-4224-1c75-08dbf468c0eb X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2023 01:31:35.4363 (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: Itp1tyILPmDkycnkA53boSSZ0jJ0fExUoSbLzN/N/N3wuNMAenQJT+qXbiXHcgDYooeNXewM6dFi8CRaHUeOKD9GX//F6OZ2UEtQXg6XdurlhlDVG9IT3tkY8Gcpoojb X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB9747 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 Mon Dec 4 01:31:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13477723 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="Y6oLU/Bg" Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2112.outbound.protection.outlook.com [40.107.113.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F4DFE4 for ; Sun, 3 Dec 2023 17:31:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T3TwGLwIWT94ZdNvwGNgTDwU6yMyExzt0m7SGG66a1Ek7DyR8VMznxOen9es9TSexDYvSZCc4i3NYqidv9bfRqGlhze4iOZN5JWFMtB3TS6cZ8k2741fCH9Pml3eKdkTeSuwx6QZzTagE3w9QsBmjwJEXTQT9rB2z11aMneSuKlt3f+4iEvswAgaBHbLV5WmWPB6jZCLB5vJ1qvx7pmOIct8qN4o0xfQvoZr7AYRMB1259ATEpD2rhwmrdI9L8+9Bp6b95453Nx0EjC5GJYYnDAIzPUTWq9Z+1NhTIv9VsWVZ/MdUTZJkqqzwABcYrgJnbNKqD9TDFmaxJZEDx52bg== 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=d+v72T4h7SRxL4XVWOM9hu8WBsZSWcZzTRRdpvCDIgs5jnK20O1nWfUAZsZrQ1QcIZDi4X0Tx0GtpsEIGZ5Woy5mIb6jZl9Fi+rYWvocxfbWz7VNBZYPrCkOSgAPhRK2LTg75Pji2g19vJUjV3QMVjhHR81KdvRcGW9AIetSPpF6/HEeatpqD4xHmMKLm3+NhT4G4xPFlSKEhNXOxIDTVnnlNagBWo1/qfdNzASQpLznVveP7xudF7JfmqHzFUVtBlbEkXVvMFTXh3p8iWxduNaBsCTg2hhXrJdEaHOlAbGk8pAX6+j3guKndHvqMwYpyH7JTKKw2OpIEhUeww1bUQ== 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=Y6oLU/BgYaR1SqXuocnC02wsvynsZ5JqJ57Vd1xu1jUgnoM9ozB20kkth7+Z/rk+U0lEeM7pSS8RLXReJaXPxHTDCnEdeEPzN9XloESGvX/rKYXDV+C4mVJOjI9xnIPOU9xnxNZRCYnwVphs2c26w/HCH54qmCIg43tkb26grIs= 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 TY3PR01MB11282.jpnprd01.prod.outlook.com (2603:1096:400:3d0::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.33; Mon, 4 Dec 2023 01:31:41 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::5732:673b:846c:ed92]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::5732:673b:846c:ed92%4]) with mapi id 15.20.7046.033; Mon, 4 Dec 2023 01:31:41 +0000 Message-ID: <87edg2bvnn.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Bard Liao , Brent Lu , Cezary Rojewski , Jaroslav Kysela , Kai Vehmanen , Liam Girdwood , Mark Brown , Peter Ujfalusi , Pierre-Louis Bossart , Ranjani Sridharan , Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87il5ebvom.wl-kuninori.morimoto.gx@renesas.com> References: <87il5ebvom.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 3/5] ASoC: intel: hdaudio.c: use snd_soc_dummy_dlc User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Mon, 4 Dec 2023 01:31:40 +0000 X-ClientProxiedBy: TYCPR01CA0019.jpnprd01.prod.outlook.com (2603:1096:405::31) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TY3PR01MB11282:EE_ X-MS-Office365-Filtering-Correlation-Id: 868da28b-feb8-4ef1-3981-08dbf468c44a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CDN9mxHoqeuYmyJHWBq/ZWlJrW2DcGzOFp4LS1r5IrOHXf+OCAJc/Y3yGIC1ZhdQJoOB1kwzXsR/JeOZSdMbgRiLqDCFxWzbe2j1sKtHkyql94362ZJY01x+ebv/VqvdzXcHcM6LweO7/KxkEf2VsKbyltAUojFVDVTI9i44UQyhJElQtN8riLGP4olrTytFBUsR2GJdIp7T1J4CzuCKPU45Gec+tGM09OpMyIGz2KeHrKzEmwYGq32gzunxH+EZ9L/hjH5h76kfAgTYM79RM4b+ucw4zUntq8qavUlPmXCYEC43/4zDFwljMP1SekSl1z5H7GzEjqe/RQCZmJQVWHs9DLUEGzEHTnwkj2DpgidM2NTf7kgacBnrJiIwhnN9E3rQbwwnFW5ab0sQV13ea8bLkP18aTgmik5bPInoVwsUhg0nPETrWpjzsMeJC4Q8m6TrseHTToBodJtVJ6NyK6xKvCaEFcaSYMk0Mbx0SgVsuHtSw0t1ma+8hEvSwtUQMndrWe787oTTlqWgDhP2BWJElDgGa8qBcdZbYw8huL4bGUH3asgZ31tKQNDRab89FyAkNEE0mex4CeE67skPbztTJwCA4cVD5IMqmM4WH6+YvLTQj33ayQnULsaaDFHA5SblJtKLYRfAmb23Vl9iDNdxkp9UNO3qxmfPOyMdV5w= 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)(376002)(136003)(366004)(396003)(39860400002)(346002)(230922051799003)(451199024)(64100799003)(186009)(1800799012)(2013699003)(7416002)(2906002)(6506007)(478600001)(4744005)(6486002)(4326008)(8676002)(8936002)(86362001)(5660300002)(66476007)(66556008)(316002)(66946007)(110136005)(83380400001)(26005)(36756003)(41300700001)(38100700002)(2616005)(6512007)(52116002)(921008)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: L9gzy01QqRPyXoBu1O5IKyycflyDIGgDth6g0btd73BFFt4nYjZAN9D7lbA+QI9uJI951BnFmtOq6fbbz3WYVyxkLaor92pyt8Om42LodlnGgLePpjaxDQjPB/o/05+70xpDFBKNtv23GoFvmCCBrghSwPUcMkxk+MVQrzY+OiuUfzSYuhTfMDYbeA24rNqX15bPJoZmP4znwGGPR2/m3WNraUjVZaXK36UAfOrCicM4xsBxGScq/4/OkWCGzsbFlvH5CT8eOGXawqRzsDQw5X4savI8JEyj7S8PvCOV9xYzBJbJUUEdrY4N79LyIjrVmAMiEp4t9tT7cUyyn31bnlLXpO0Bg4zMauGwQ80CzdLQljeuuQhBxzMGNhYSYs7yVYirOXC0Mk2XbAk5CfqXNkvoKtpaGr0zo/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l9DTbjEiFlkaRElWDoGrwrOUtdIWmjCY+5dc/INJGq86fWUUAlCvB+QULIyXJJ+6Rm1kjiMxDJYYzoqbQ1ERXa3g/kWLdvWcQNfUgr8R+9mgTcwjWcoH6B1TBguCyic1Xv0LbMANPhmL/BsI9UaNkSEP0YIP8= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 868da28b-feb8-4ef1-3981-08dbf468c44a X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2023 01:31:41.1253 (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: 28yIGW4Lq55Tj6fNes3347mUmO4yJcelaWvVBC6ZWJlkqg/EUrNOjyRtQneVWXaDjtuTVIYJqh6yr/acXOezSw9chqfC8K1v+BjwIW8VqS74Vujj4eZZ6kkTO+UPxB1H X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB11282 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 Mon Dec 4 01:31:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13477724 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="QJeRlASR" Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2139.outbound.protection.outlook.com [40.107.113.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC368E4 for ; Sun, 3 Dec 2023 17:31:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m+PXCSCRPSpuZMhWLc5km6mF0bmWLMGY8Tei/EkycODURO8U67yGlhXnvOKAEsqT8bpfHLsaYB2qYR/pZvfb8t5z9elaSC+1PeftSn+XI1Fy/sWM8EUBW7GE58+zoTECeY726HHrmCjcgIoZSFg/KPPj2tCmCOTymR2gPyMoK3YV4hlcYhrq3aDLwcyOCoqwCLSdPl+XERXuEuxMiaXdIl28LBgniX8egB8OmaBSZVw+wsrqjQFzcniuAM/3E/X4A89wdsgdVEsngGLOwmdI6CLlt8C9fZQKzi9XjNoj0/ROfCLoAXitPt6goDSN8qHimQ2C5z0fL9uD7JTRigG3pw== 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=ES2CLWLGxW/vC7D6JMUi+AGCdaoGXUdGSoKdKGZuvEkNw8Ztni6lFJ3PlECM+ZE8tLcxXw5igE5FWbJssnevdYwFlNskfiGGEL+/vG5wAr1LD/qpwyYB0ndBB44HwHRRd90+n8P22u+1TZBW/9Eg5WE30gKMtRdS8JyK/z4gBEk6S8WKHA1piGzRjKqKDhEreoEUtuV7LVxGjlJgYFMJLOEtt5ywmain9U770T8Vm7eJH2S5qzGNE2wYnkfABi74JAqz60NV7lck+aQhWPSaBU1nrYWU0NnMkUFqkYZ888OwwaAhU1pH4zwLLCc8HwfEuSVBYBgbHH3aaCtMJxAd6Q== 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=QJeRlASRemFLoD3+/eQAJNCIni8J6ysZQAEpS6jT20XGQ3eqkB9d2JKSYCBINEznstt6H9BpOizHH2+SdWHIiIQIJvKODIXSTdamCABxKFiJSAwY2PbBQzethVOyupj8r2i4atkej9NfyOom1Idvx3KrmHl8WHUaETDHvRQ87yk= 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 TY3PR01MB11282.jpnprd01.prod.outlook.com (2603:1096:400:3d0::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.33; Mon, 4 Dec 2023 01:31:47 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::5732:673b:846c:ed92]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::5732:673b:846c:ed92%4]) with mapi id 15.20.7046.033; Mon, 4 Dec 2023 01:31:47 +0000 Message-ID: <87cyvmbvnh.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Bard Liao , Daniel Baluta , Jaroslav Kysela , Liam Girdwood , Mark Brown , Peter Ujfalusi , Pierre-Louis Bossart , Ranjani Sridharan , Takashi Iwai Cc: Kai Vehmanen , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87il5ebvom.wl-kuninori.morimoto.gx@renesas.com> References: <87il5ebvom.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 4/5] ASoC: sof: use snd_soc_dummy_dlc User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Mon, 4 Dec 2023 01:31:46 +0000 X-ClientProxiedBy: TY2PR02CA0047.apcprd02.prod.outlook.com (2603:1096:404:a6::35) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TY3PR01MB11282:EE_ X-MS-Office365-Filtering-Correlation-Id: 7ee2d4ed-675d-471a-68f2-08dbf468c7db X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UvtRtGbpgPrKE/p3wNwRYawXnXqqxzKTdjttTv8jCtXQdg/0EbwGKPxUbhZDeaV6zbmIaysL9cpSq09OWjQD22dr96tPtRNeAPxE6/LT05axm/Mj3T5g45o4kWg6VfEG8FT44rGf0l9cIoJcleNM1q1+lbfUiRX99QghNvUz6o3+XMdFZQ+dDqixMrGioQZ4+aLA2hVZqP6WLP2nB0PlI7Cjs0L1ru9ThvlBJuF7LLwRDl8u9cq8JtwXQbVcQkUHJLmZ6aIqQs2wQ9mI2ogKJPqvQY9xkqd33hwqU74XfPpgG/cZq/LQLZqhsxa1jpsxjXkZMvumyfJvoV1mB83QFJVf8ZV0Py63iRerpvivgfaWkxtZlIRENmokGizl7QNox6ewJepIm3883gGVScWj0Bz189gyZFWLgDd0BmAaaf6rVsOQOfO6yt7Nyum3YNIhVdmLi1hFn3SiA+0obzC5tkkt2GAiI/mj9LmGBdUTHjFIFeek2JhI1ExK/+rScBZG4hmiFpvkE/C7PmP0PhGIhk+qqK3+GNceyZGGzICsxIHls3zqAiPLJtX6PzgI+xa9b+HH6Oacr6numMmJLg5cFyAIRdyRE+C32FVzt92jIKw= 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)(376002)(136003)(366004)(396003)(39860400002)(346002)(230922051799003)(451199024)(64100799003)(186009)(1800799012)(7416002)(2906002)(6506007)(478600001)(6486002)(4326008)(8676002)(8936002)(86362001)(5660300002)(66476007)(66556008)(316002)(66946007)(110136005)(83380400001)(26005)(36756003)(41300700001)(38100700002)(2616005)(6512007)(52116002)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: D3EaWia0pUw2mr6KbXn/mU0KHLXombscIDbJw17tpqon82moJB836bnS0EbwUS8OiwOSWyOESpHMGIDjpXlgysw7DhDHTSwCq/8aSWKxYcOscCg2Psln0V333dTtumQcUJo1p3DtbPq6I1nSghFK8D+hl6MYAQ2d9ekchInwIyivqwOzHd0vpmSQa6WI2yhzz4KL3gWNUe3BkQdkBcG49GtATYLke3sQkwQbHM2osIeIB9kYOtPryYwSvfzISzuwkswOitol5H6KzyppRTzBsuV49MtI058B42NagF+zfmDdlWrz3nc5BVqlUvpaazbgfjRXvnqU79ycKhVC1CQZWyR01AEQmud3CViHKFm59aUgvsT5H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2X6JBN2Se7J4pLYW96mvtx6OitMj0TPj83sJD0Znz6orI/aUqlTxV+JrD8AHLQm0AzoV3pxcoRtCBd9Ljw331SPBJk1o+D3oYT7z5vLCI797aalRDUfnlI/kkg+xW5X2lmO88SMHc+gadoNbQR8JWN/kTa5Pfim3T9M09fBirIz6CCQQL544UuHQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ee2d4ed-675d-471a-68f2-08dbf468c7db X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2023 01:31:47.1209 (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: IFSfKfesoJuLZAvpADSCB2X/arM5if4sXIP2YAS492ii9BaDRnSI6xcGmQ76BqsHW/GmaFiKBg2vFnhl7+4Tt2asRc/0FsKicQDT2d+30aQQbNnr0qrKBYZZ31yp/Jy1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB11282 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 Mon Dec 4 01:31: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: 13477725 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="Txc/IC54" Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2119.outbound.protection.outlook.com [40.107.113.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3E3DE4 for ; Sun, 3 Dec 2023 17:31:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fEiVFglfomzVwNT24xyWpXWAYeMpCWXadugLOlGiheON0s+GlIc3Ta5RhfnYE+rYezlYwi3MvOoZlfUhzR8CXCYDNkEei5AcRk0CuVQN0L7BtOLHrQdmzz5c0KMqYsVmvJV8/6YKAyHLHY6ojPSuYtIowDYpzWt0GtoUHbtntYM8Rz8FlSOqop4Ug0ZEiqNs5dahrYwsphVaWO2vB/4zAiSkrZ2mCAjk9ZMrsN6920qZwfjngyYT69+5UeJm19UXYa7VqyEQUgmq8LVnmm2/V5Qxa/5zKmws5xBPfwGKCQWDfqZK9iC4rO6UkCpjEFLVkkNtKrnQNq9Y0mdRxdjuRg== 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=oBLZ/+3ugUWdXTtPiy9GPGZP5N+1GyR1QSbAhrKZi3A=; b=gBaCTYhubrJxWS8m1M6jv1nIc6zlbZEyjql45hM0SetdMvH8F0yMakI9rl0f+S1rpQJioxkRZBPJxhPyj/UPLDqdPLJdomHUb6p6knBUtm4KFpASWH0sfevVtqzTw3hOhJDUNlckAxc/gBc5GXDf3WU4Q3AxA/WRnTJpJsqBZfEzOOcLpOy87fIyQrt+ffi9kIQN5PmAb6+14fFu/RyzMSvlfXwrI4AgOOmu6gmme9S7ytkURnMaKAy4JaYiZs+urBxNZrnuGPh+yn1+GDxxF8I4qPFsVzrHfzyhvjgvMBbOb/4jgpNZejNLDPmohh32smwhm2jBNZ83JpzSbXKJHw== 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=oBLZ/+3ugUWdXTtPiy9GPGZP5N+1GyR1QSbAhrKZi3A=; b=Txc/IC54s4AyYpWxdu6+6dI+nqvgpJRjBpUEc/+kAcFTEnRXzKqmGATznUVNarCLU6cFGEBf9mIb042P7kejaNyNwe/ZOt/ZNe/cCMdyyfKn/vuWBFFi/e8cq4/eOGFY21OkF6e7nPQF3cKfGq0PYke3X0Kri2MjclTmOb45lN8= 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 TY3PR01MB11282.jpnprd01.prod.outlook.com (2603:1096:400:3d0::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.33; Mon, 4 Dec 2023 01:31:55 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::5732:673b:846c:ed92]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::5732:673b:846c:ed92%4]) with mapi id 15.20.7046.033; Mon, 4 Dec 2023 01:31:55 +0000 Message-ID: <87bkb6bvn9.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Jaroslav Kysela , Liam Girdwood , Mark Brown , Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87il5ebvom.wl-kuninori.morimoto.gx@renesas.com> References: <87il5ebvom.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 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 Date: Mon, 4 Dec 2023 01:31:55 +0000 X-ClientProxiedBy: TYCPR01CA0026.jpnprd01.prod.outlook.com (2603:1096:405:1::14) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TY3PR01MB11282:EE_ X-MS-Office365-Filtering-Correlation-Id: 4f0939e3-ca56-4dbb-7a1b-08dbf468ccae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5PEyA3FbAalMcaEjVEEUQhdxyY/ID/D3GhKfy9woIz8fDDvR1hRWWBovMNGgVMqapAHlgvbq1Bq3+uZ92pNgKYD6RZocv09sis4MguHl0tPEPBBDRquEGxEWYXbdW179IvgrvEIcgMKP5ezMnQeF8uG88kwLgOEy0XtCYKlydKb5v9LBSEJKetulVKj83+PXABujUsoulsWJoS4u4Wo1XtB8ljtsp+HFMvja1F4Qc4NnlASN7rnftp2cWCgfUt6LUg62N1XFz3pUVsXSUFYZGtakWUJXKTCSsOxAWkL1D4iL0qZeoTVk+vCDa3GWsiNXG+JjTC3GmTOEIeh9F2uf3J4fjFG7ivp4t8w60zOejXrrKXan6puAw7SmINPKQQJkj4i5skfAvRrUO3uOlxIkE7di5R1oH6IMjP7dM/vXZxL0Sxbjqtzw3Df0NBeM7O8+SRurh28wk2+sHwxWjeEw1H7IqEjv7VoJU/oBetmk2OVze/RVsl4K0qydBjcWer2wwvsRaN6kfoQOSkF3m67FUSEzekZ9+Exhb/D8fKZxi038WvmPIV4xGJRCpiFcTrd1IxTlecwZFmfl5CyKVjWBIBhjQuMR/YOE1uzdsyjTmAWpx2oZMXhTL00kyuLXWElU 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)(376002)(136003)(366004)(396003)(39860400002)(346002)(230922051799003)(451199024)(64100799003)(186009)(1800799012)(2906002)(6506007)(478600001)(6486002)(4326008)(8676002)(8936002)(86362001)(5660300002)(66476007)(66556008)(316002)(66946007)(110136005)(83380400001)(26005)(36756003)(41300700001)(38100700002)(2616005)(6512007)(52116002)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: a7qZAgWDwkGnTTFl3CMQwEfS22z4oe5Ah58CIiyXXd/a2js93LILL770dSCQ5WaaOijYCIdAwJF7vhto1IkudDi9RhAIw28bI/crI2fhrqhLJPxnlbZpiOmsabEGSKQwXA4tECm/wettd6o1hF4cVNhic9XEdqouZE6rDFIIHDe3R/Y+l2qA/4XgDKA4q57uKSLiO7mClhhWVOENQPiTKTtIyhHLuX1ngCNkc5BaFlw4cBKu/tR2lsckK37SyngVBiyOTy0uh1VAadYuzee/GE70us/k+Efv9tBdVBvrLXy83+cYOIbXAE6VnpmmH2n7N62ttiYnVlrG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BKVASXm6OB847qVGR7e6ICWArKrMiJzlwGAJASQFg1Qayz22D98D8WeEuW4wOFHCJjnaTRgxLveAP0JEtnDRnMBlm/v/nMjwbui11hqJrZKQpyO7XUmQOQXBiSh4jYq89hw2JZZJj/3dgZF5c9J3wXEmBh/eqxWwZ4I33pxgYraUEqOcUNbf/HInZoFubmKN4rzBGEovMjyAvLIncGfzb71cf2Fvnqe+MuQ3709o= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f0939e3-ca56-4dbb-7a1b-08dbf468ccae X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2023 01:31:55.2059 (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: SnIMJz9jpZ29TrGPjpvjhse/9HEoLP88V8ZVJV+R7W59oSkN+mVYgDJeqrT9igsqY++y/ULPNZ1I7Ox2hD1sxKJy0SipDzr+RAi3f4m6J2l5/SRpMUsonCXWdT1FJZ0q X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB11282 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 | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 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..88de4c5a376f 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -576,6 +576,34 @@ 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 for CPU/Codec on dai_link. + * This function fill it as dummy DAI. + * + * size = 0, but has pointer means created by COMP_DUMMY() + */ + 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; + } + if (dai_link->num_platforms == 0 && dai_link->platforms) { + dev_warn(card->dev, "platform don't need dummy Component/DAI\n"); + dai_link->num_platforms = 0; + dai_link->platforms = NULL; + } + } +} + static void snd_soc_flush_all_delayed_work(struct snd_soc_card *card) { struct snd_soc_pcm_runtime *rtd; @@ -2131,6 +2159,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 */