Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp250720rdh; Mon, 18 Dec 2023 19:08:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYV71/EULtYxJXaHxBiQOXpldEopsb21UrsQhJtSMHFhKVtTtQycOCYrPGmzbzwJtoEQ8L X-Received: by 2002:ac8:5f8f:0:b0:423:b118:100a with SMTP id j15-20020ac85f8f000000b00423b118100amr21209450qta.1.1702955291361; Mon, 18 Dec 2023 19:08:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702955291; cv=none; d=google.com; s=arc-20160816; b=xsxZ8J2vYJHaydtn+UnSghJi3fReLXzJnu/inwmtDJQaVsh4Ms9/09w9dPLIpW3QUZ TJmYLhFqpFtldmj0ZLjQF5zYl1RcYIFM9i696ED52YFGDhforchhj70te5VwogqhAGAI YhOnFm39S4cQrpPt7iDF+w606/QkNS0XCJWxmKNZqUBqtmOXFIvpiF/WgkHielxAvT7M o2ONEPBkJBzNAxY6R6wSRIUlBNIo+0aKUfCHg/MhW6rgptLAoTU7PUsUw2Vl7+8RsCxS 0vALp+W2+muXbBA2f9OTQSUKgSvdXTzJwbU41n45CfwXYmH+eOXq0/l4m4Neh8nMVveu P1MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xQZUm2MuodCB/qO3Vw8df89R7bfF9IUhMGhhUEvfGqw=; fh=h70dJO8c/kQzBx5G08DNBGLpC0OGfeXZuzZObLFqbr4=; b=O4nPc6GqOv36A9L/R4b0irgZ17GbjFFAkJNHXK1TY5Z4u/E4AnLCDlgAaVtYL5mNSw 97oa2m0HOugxgumuhGTUPXW7lMix4z+ds7pN2TpcQHQinfzUUq8f2Nzoa4Et7utEen5O cHlRi+++Aoq+thwwjZLJQ3cIwyUgYgYogIkrSvxHobmIeCE3XJpWofG+ytCv22POadD2 H0L5gnvhjSTCG0n05youxpIrwt5Fv5tQ/s1ez8RGM4p4zordgMp9XsmpDI6gBS6mclFo HHtp8m/X2D66+OqyOFsi8tL/5pFB/ppHgaYpFwINw6VYMa6s7B7N4RrQiQXUWJlGGvWZ kKBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=OBRqJFWE; spf=pass (google.com: domain of linux-kernel+bounces-4624-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4624-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o20-20020ac85a54000000b00426055863a5si11616053qta.683.2023.12.18.19.08.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 19:08:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4624-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=OBRqJFWE; spf=pass (google.com: domain of linux-kernel+bounces-4624-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4624-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E7E091C230B4 for ; Tue, 19 Dec 2023 03:08:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0ADA2747E; Tue, 19 Dec 2023 03:07:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="OBRqJFWE" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 EC8A9468A; Tue, 19 Dec 2023 03:07:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1702955263; bh=FnwOT4udSoOtLQKVV79JIZooVh5Oz2VNKMvuC2X9zEk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OBRqJFWEEjuqBEjc/VsK7Ntf04jlW273Ux4ldBhmu8DI+lo3rx6nx1cDqAmMLtVpA 3/oTLCQkMsRQP9ibTTehvGful48NN5S9gCL4cAxF6rUFYdSJy+EhDTfesMxlSh3n0o pZfzZ9jBBj/z6DSb5tV8EoTS2i/2AqNZnfybrAfUlAoHC32h8KzgQyzN+G3x4IRU8H wvrM5ytKJ2ChEMAW0T/jEaMHgakjdvxn1OuNQ2xF3jz4xp3wheh3VfXIgS2JbeISAH u7TWgHkRlIXFqpHCxkD0sJ6N5Rth8+c2eEQNRqMV4QPWiDK72vUbUuk+2WbsywjlGm y1cXxj+tDdzDA== Received: from localhost (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id EFA123781495; Tue, 19 Dec 2023 03:07:42 +0000 (UTC) From: Cristian Ciocaltea To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Pierre-Louis Bossart , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Daniel Baluta , Kai Vehmanen , Venkata Prasad Potturu , Emil Velikov , Syed Saba Kareem , Kuninori Morimoto , Alper Nebi Yasak , Vijendar Mukunda , V sujith kumar Reddy , Mastan Katragadda , Ajit Kumar Pandey Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, sound-open-firmware@alsa-project.org, kernel@collabora.com Subject: [PATCH v2 2/8] ASoC: amd: acp: Make use of existing *_CODEC_DAI macros Date: Tue, 19 Dec 2023 05:07:20 +0200 Message-ID: <20231219030728.2431640-3-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231219030728.2431640-1-cristian.ciocaltea@collabora.com> References: <20231219030728.2431640-1-cristian.ciocaltea@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The generic ACP machine driver provides macros for NAU88221 and MAX98388 codec DAI names, but in places it is still using directly the related strings. For consistency, replace all strings with the equivalent macros. Signed-off-by: Cristian Ciocaltea Reviewed-by: Emil Velikov --- sound/soc/amd/acp/acp-mach-common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/amd/acp/acp-mach-common.c b/sound/soc/amd/acp/acp-mach-common.c index c90ec3419247..346f7514c81a 100644 --- a/sound/soc/amd/acp/acp-mach-common.c +++ b/sound/soc/amd/acp/acp-mach-common.c @@ -821,8 +821,8 @@ static const struct snd_soc_ops acp_card_maxim_ops = { }; SND_SOC_DAILINK_DEF(max98388, - DAILINK_COMP_ARRAY(COMP_CODEC("i2c-ADS8388:00", "max98388-aif1"), - COMP_CODEC("i2c-ADS8388:01", "max98388-aif1"))); + DAILINK_COMP_ARRAY(COMP_CODEC("i2c-ADS8388:00", MAX98388_CODEC_DAI), + COMP_CODEC("i2c-ADS8388:01", MAX98388_CODEC_DAI))); static const struct snd_kcontrol_new max98388_controls[] = { SOC_DAPM_PIN_SWITCH("Left Spk"), @@ -1273,7 +1273,7 @@ static const struct snd_soc_ops acp_8821_ops = { SND_SOC_DAILINK_DEF(nau8821, DAILINK_COMP_ARRAY(COMP_CODEC("i2c-NVTN2020:00", - "nau8821-hifi"))); + NAU8821_CODEC_DAI))); /* Declare DMIC codec components */ SND_SOC_DAILINK_DEF(dmic_codec, -- 2.43.0