From nobody Thu Apr 9 14:57:54 2026 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9EB4E1F4181 for ; Sun, 8 Mar 2026 15:18:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772983140; cv=none; b=YSm62eUHX/BSgW6LBGxDfBEGuw5YvJLDQKd8++fnKt0NdMWK4NOwo6tZypHhrEyGa5ZDXhWLuTTui83NvNQW7m+uvumHZG4XmwUwm5TcvOgYZlXTxUbWcTEadQ4vHsdOyppHTBDPu7UkgOgakfH6WKOS4BL3TFbufmNKG322vHo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772983140; c=relaxed/simple; bh=9VBUU4KM/vrA1+8L4OfGhv8MK6Shp1YJcKCP/RaBOus=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZESxdQuFWFB8f/gPk86yC8YjhyHuH7gmQdeK8hISA49tHGdAF0fdVXGpU65HRiHQUp3aiTmufnYCZ/ov4HAmJLAcHXaRmEU6W6Y35qj+DgW889HSPowdgnkIX+1T4eHMDIO5ekApK/+8RB6xvezHGcdfRISPKQkG7B4f3lXbxtg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dCQOlsMB; arc=none smtp.client-ip=209.85.210.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dCQOlsMB" Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-8297c035d28so1402047b3a.0 for ; Sun, 08 Mar 2026 08:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772983139; x=1773587939; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GD4NYspNQvZ7Z0XS17j1q6Nl+NkHm2f/v3xkfa00gKY=; b=dCQOlsMB83XFZ8sSFPwQ4fhABH2ZBqp5yNNLKCsvh/Pdjp33yJmEeTlSKYHHg1SpP8 TAerfvXfo2JMJ7Hvww9F8KUCaGUP4AdLSJBbRtAPzD7hQnPwN8PkwmzBUoIx4T13IgbJ H2Gj068UuWKMQH7y/wDcVa8d84Z+r5YUZUlhSLXZFWWfvyi6LzzhyNMkHfVVtXaHFc47 sBa0C/xGJP2wnd+fiAAzXNfCbxEqfsUHZ0GY4faeSTeJy2SuGX6ST2BZdS3ww+Nu40bD hKNChoYIaYZopbSIDbNzxOLb3TDoF/hUZbAv5mlU5als9vLTnUFZLargN+kn8G8iVr0J 6dyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772983139; x=1773587939; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=GD4NYspNQvZ7Z0XS17j1q6Nl+NkHm2f/v3xkfa00gKY=; b=MmPgdD8IeISEoWk3Iq6kwiWJAlIrR4myH74UsKJeInPE6ioz19f63U8Evzb1fhvn+0 f5w/b4DlH6wQu+Zuvqjv8ZrVcwNJ0zV1p8TslI0enaaS+JW2nzyc7UJFosuvmeewbQQh 8XmZcE0vXBuwbK3CN2c2RfQSv7jDVsT2CaMYNTtwiw9WFjMUWmUbrfPGOB3bmj6rjzn2 pR1rI8fXEOnkkPlvN2AWw6pcrWz1HnVISSTnAZwVtaDiS6XkV3c3sFCQKYSLxWh+SZOS FICPDpklk71df/mDvZSPbIdJAmonrE4yYInRtFj+bo7gc5JiZbc06N57PGUq9stKlH/2 kx5w== X-Forwarded-Encrypted: i=1; AJvYcCWCC6KkDhT9/1covCzVWz5f241gEAVsLULtjAB0QiBos4+8ISVmB3tRxlPo0T5QUXgPbxjbgrPjMmQrqjI=@vger.kernel.org X-Gm-Message-State: AOJu0YxF2oQPiCElRJFP/aBMsSf6Yf2RYsVpIb4/FFyNX6vdTxSVc7Fi Iw9MQmqhn8Dg2UPelSfZin0dryq2BWcOzjSfjOCroA4jr8P+ODN5pG43 X-Gm-Gg: ATEYQzzuStyIPr9VsQetvQ5gloyRGEoibYsp/DYI4jH/+CzHYN/AVzxgPvwrR1rc7g9 G7CxZUVRbgEqu+8iuun4LSsjyIr0mp4yYTmfxv+uXWh67rZVkvKmEwjvXt9utVQZ5RcS9SEjq7T 7nfjpy7wgw2f6eOcmXTyCwzYkI/qjBUo159vTSYZ7vLDYQuqwiP/BsbGaHOjBYcJI1eA5q61Uvg Tpp6bX0Fx8wri+JtTj80TdKiHlpVFfm8pBGmdKYHz6Rkh/vrhpOoKkvuFJDoCqty2M6gY7jP1j0 jRGXyy2tNHQ+XjvfaXf6HhJSB42CsdHjh9ohg0CclxkFgWTojgfZD4Rrb8FtSGy4kWQUeWo4Zqa cPfiQDO0rYNwypUP4ebWiMvYKRTcsCqd9Inv9z31RGJq6YWeXsUP9JlKL1uQCK5IrE1s5khIATT /w33/HY3nc/63KKZJYTF8l+BZd X-Received: by 2002:a05:6a00:4505:b0:824:36f8:346f with SMTP id d2e1a72fcca58-829a2e4ba0fmr7035262b3a.25.1772983138964; Sun, 08 Mar 2026 08:18:58 -0700 (PDT) Received: from px13 ([218.155.71.249]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-829a48ddd18sm7432513b3a.56.2026.03.08.08.18.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Mar 2026 08:18:58 -0700 (PDT) From: hasunpark@gmail.com To: linux-sound@vger.kernel.org Cc: Vijendar.Mukunda@amd.com, venkataprasad.potturu@amd.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, linux-kernel@vger.kernel.org, Hasun Park Subject: [PATCH 2/3] ASoC: amd: acp: add PX13 SoundWire machine link for rt721+tas2783x2 Date: Mon, 9 Mar 2026 00:16:53 +0900 Message-ID: <20260308151654.29059-3-hasunpark@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260308151654.29059-1-hasunpark@gmail.com> References: <20260308151654.29059-1-hasunpark@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Hasun Park Add an ACP70 SoundWire machine entry for ASUS PX13 (HN7306EA/HN7306EAC) with rt721 and two TAS2783 amps on link1. Describe rt721 with jack/DMIC endpoints on this platform and add explicit left/right TAS2783 speaker endpoint mapping via name prefixes. Signed-off-by: Hasun Park --- sound/soc/amd/acp/amd-acp70-acpi-match.c | 61 ++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/sound/soc/amd/acp/amd-acp70-acpi-match.c b/sound/soc/amd/acp/a= md-acp70-acpi-match.c index 7a567ba02292..1ae43df5da6c 100644 --- a/sound/soc/amd/acp/amd-acp70-acpi-match.c +++ b/sound/soc/amd/acp/amd-acp70-acpi-match.c @@ -69,6 +69,28 @@ static const struct snd_soc_acpi_endpoint jack_amp_g1_dm= ic_endpoints[] =3D { }, }; =20 +static const struct snd_soc_acpi_endpoint jack_dmic_endpoints[] =3D { + /* Jack Endpoint */ + { + .num =3D 0, + .aggregated =3D 0, + .group_position =3D 0, + .group_id =3D 0, + }, + /* DMIC Endpoint */ + { + /* + * rt721 endpoint #2 maps to AIF3 (internal DMIC capture). + * Endpoint #1 is AIF2 amp path and is handled by external amps + * on this platform. + */ + .num =3D 2, + .aggregated =3D 0, + .group_position =3D 0, + .group_id =3D 0, + }, +}; + static const struct snd_soc_acpi_adr_device rt712_vb_1_group1_adr[] =3D { { .adr =3D 0x000130025D071201ull, @@ -563,6 +585,40 @@ static const struct snd_soc_acpi_link_adr acp70_rt1320= _l0_rt722_l1[] =3D { {} }; =20 +static const struct snd_soc_acpi_adr_device rt721_l1u0_tas2783x2_l1u8b_adr= [] =3D { + { + .adr =3D 0x000130025D072101ull, + /* + * On this platform speakers are provided by two TAS2783 amps. + * Keep rt721 as UAJ + DMIC only. + */ + .num_endpoints =3D ARRAY_SIZE(jack_dmic_endpoints), + .endpoints =3D jack_dmic_endpoints, + .name_prefix =3D "rt721", + }, + { + .adr =3D 0x0001380102000001ull, + .num_endpoints =3D 1, + .endpoints =3D &spk_l_endpoint, + .name_prefix =3D "tas2783-1", + }, + { + .adr =3D 0x00013B0102000001ull, + .num_endpoints =3D 1, + .endpoints =3D &spk_r_endpoint, + .name_prefix =3D "tas2783-2", + }, +}; + +static const struct snd_soc_acpi_link_adr acp70_rt721_l1u0_tas2783x2_l1u8b= [] =3D { + { + .mask =3D BIT(1), + .num_adr =3D ARRAY_SIZE(rt721_l1u0_tas2783x2_l1u8b_adr), + .adr_d =3D rt721_l1u0_tas2783x2_l1u8b_adr, + }, + {} +}; + struct snd_soc_acpi_mach snd_soc_acpi_amd_acp70_sdw_machines[] =3D { { .link_mask =3D BIT(0) | BIT(1), @@ -650,6 +706,11 @@ struct snd_soc_acpi_mach snd_soc_acpi_amd_acp70_sdw_ma= chines[] =3D { .machine_check =3D snd_soc_acpi_amd_sdca_is_device_rt712_vb, .drv_name =3D "amd_sdw", }, + { + .link_mask =3D BIT(1), + .links =3D acp70_rt721_l1u0_tas2783x2_l1u8b, + .drv_name =3D "amd_sdw", + }, {}, }; EXPORT_SYMBOL(snd_soc_acpi_amd_acp70_sdw_machines); --=20 2.53.0