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: 13497855 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2104.outbound.protection.outlook.com [40.107.114.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DED55393 for ; Tue, 19 Dec 2023 05:10:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com 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) 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_|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+fATmUec30TN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HskGDcAc4taQHlm5zTr6RTCXEkCWOThE1Osech48ksi1YEqat+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 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, };