From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 2046C361972; Thu, 20 Aug 2026 15:23:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787239398; cv=none; b=llq2atCH0cP9S50/ZdGbzhBYbqQFDddDoLTXI72TDLxiVDkKIEQUjMngUnak6rR0nDARwZMq+C7wyI25AqASZbp+NqrLY0qRQDNidMDUGMxZGmNNb4yd+GF4/+Xy0Jl3UvCMS28PdcrLFy7Y/eb5p6K341hCBedUlmTVHIvtTuw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787239398; c=relaxed/simple; bh=oFrmG6iHJ9b8is34BEqtiwCFlUWeOJGsOl7HKoUGqOw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ccT8FOoDhcRfs3W1kJfdatMS2G4g30M6hD/jgAPBzMC+rpnKsVMA8ji4vy/EAXU+ze55vV8wvy60uOQve5vbaLBP0LBuys9bpmVz23sFvYDavUZWIxZU7qtvtKeFsFtKqM7t9hoBq6/vfZZbom6Afw9yKjnAINukJZKf4TSgGQI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RVX4f4tx; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RVX4f4tx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A10F1F000E9; Thu, 20 Aug 2026 15:23:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787239397; bh=9TJlPjQi1EAf4bBVWVox+ryy3o+qVjaclENB16pow1g=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=RVX4f4tx3R0TQgG/npvLy8QbkuwqrcE8Q+WBDPx0aU+ivpXREMxiWIdDTYCYxyUOv M69jxjlS9xeST7zpyDn9J5wIBuBW3QAhEcDbmEjDezVpbZuEgkZYF1DNvBXUgb9w2j Y6Mz8hOp0a+KFCyf/ovRA8GCagjL9r6vMDzT4tKo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Bard Liao , =?UTF-8?q?P=C3=A9ter=20Ujfalusi?= , Ranjani Sridharan , Mark Brown Subject: [PATCH 6.12 035/220] ASoC: SOF: topology: Use acpi mach from the machine driver Date: Thu, 20 Aug 2026 16:53:45 +0200 Message-ID: <20260820145224.554805941@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260820145223.480031205@linuxfoundation.org> References: <20260820145223.480031205@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bard Liao commit ae63720dd7c3647d64f7a85e5e1870f90eb569d6 upstream. The parameters may be changed by the sof_sdw machine driver is the SOC_SDW_PCH_DMIC quirk is set. Use the mach_params from the machine driver to ensure the sof_sdw_get_tplg_files() function select the right function topologies. Fixes: 2fbeff33381c ("ASoC: Intel: add sof_sdw_get_tplg_files ops") Cc: stable@vger.kernel.org Signed-off-by: Bard Liao Reviewed-by: Péter Ujfalusi Reviewed-by: Ranjani Sridharan Signed-off-by: Peter Ujfalusi Link: https://patch.msgid.link/20260730071724.22296-1-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- sound/soc/intel/common/sof-function-topology-lib.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- a/sound/soc/intel/common/sof-function-topology-lib.c +++ b/sound/soc/intel/common/sof-function-topology-lib.c @@ -30,7 +30,12 @@ enum tplg_device_id { int sof_sdw_get_tplg_files(struct snd_soc_card *card, const struct snd_soc_acpi_mach *mach, const char *prefix, const char ***tplg_files) { - struct snd_soc_acpi_mach_params mach_params = mach->mach_params; + struct snd_soc_acpi_mach *card_mach = dev_get_platdata(card->dev); + /* + * Use the acpi mach from the machine driver because the machine driver + * may change the dmic_num based on the machine driver quirk. + */ + struct snd_soc_acpi_mach_params mach_params = card_mach->mach_params; struct snd_soc_dai_link *dai_link; const struct firmware *fw; char platform[SOF_INTEL_PLATFORM_NAME_MAX];