From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6B882268691; Tue, 8 Apr 2025 11:07:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744110445; cv=none; b=i/EFlGDcMqCZhULX/4Z8jNtmy/AE61SIx0iHph8NoPJrEGOQJfU+Xq2FxlCi4rIJObeqG3nP7/fSn5yDPoi1OQ8kj+bTkTZGNW/U88aUea/6ZOo+mfkLVyQug2X03yX6Ht5cRl3qi8CVUZA0D9GIT9mNLZUK7eSRQrIzHY+Bp68= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744110445; c=relaxed/simple; bh=3y41mp2ws/CMAEVNWOmY46Nx6xjle9xNdKE1LLFy2hI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PUuHvsqQKhTb6sbZOEWHsFRpvngslPx71MdKhhppd0YQN69cqqI0HWYyfq4mZQNIFbTOVbyaZFVnt7FCqsX7Rx87b2eolnmmtlU7yWg3ozoSYOn76L7zzgHNz0ho2YqQ2N2QjWCdwxFHgrVgza5rSq/QEu6CYFnZhavfspkXdVs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jGHatxS5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jGHatxS5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83936C4CEE5; Tue, 8 Apr 2025 11:07:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744110444; bh=3y41mp2ws/CMAEVNWOmY46Nx6xjle9xNdKE1LLFy2hI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jGHatxS5BEvFM4c2UvLbFlpuYVc0Bs7o5yuGhzTGQ4wbhpIp9qYf3Y4Zy2Uuf2XSQ pE0XpJnY+o7CgcL4DLBNSn1wmXc0yZ+6CLxJ4WJ4osmmgwuJvdwxzgr+HNpyrmcG4L TB+Xumvm2Oa1wkj0V3PlZNkcT4oaszCtyK+0I4Ws= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Venkata Prasad Potturu , Mark Brown , Sasha Levin Subject: [PATCH 6.14 066/731] ASoC: amd: acp: Fix for enabling DMIC on acp platforms via _DSD entry Date: Tue, 8 Apr 2025 12:39:23 +0200 Message-ID: <20250408104915.808113844@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408104914.247897328@linuxfoundation.org> References: <20250408104914.247897328@linuxfoundation.org> User-Agent: quilt/0.68 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-Transfer-Encoding: 8bit 6.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Venkata Prasad Potturu [ Upstream commit 02e1cf7a352a3ba5f768849f2b4fcaaaa19f89e3 ] Add condition check to register ACP PDM sound card by reading _WOV acpi entry. Fixes: 09068d624c49 ("ASoC: amd: acp: fix for acp platform device creation failure") Signed-off-by: Venkata Prasad Potturu Link: https://patch.msgid.link/20250310183201.11979-15-venkataprasad.potturu@amd.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/amd/acp/acp-legacy-common.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sound/soc/amd/acp/acp-legacy-common.c b/sound/soc/amd/acp/acp-legacy-common.c index 7acc7ed2e8cc9..b9f085c560c2d 100644 --- a/sound/soc/amd/acp/acp-legacy-common.c +++ b/sound/soc/amd/acp/acp-legacy-common.c @@ -13,6 +13,7 @@ */ #include "amd.h" +#include #include #include @@ -445,7 +446,9 @@ void check_acp_config(struct pci_dev *pci, struct acp_chip_info *chip) { struct acpi_device *pdm_dev; const union acpi_object *obj; - u32 pdm_addr; + acpi_handle handle; + acpi_integer dmic_status; + u32 pdm_addr, ret; switch (chip->acp_rev) { case ACP_RN_PCI_ID: @@ -477,6 +480,11 @@ void check_acp_config(struct pci_dev *pci, struct acp_chip_info *chip) obj->integer.value == pdm_addr) chip->is_pdm_dev = true; } + + handle = ACPI_HANDLE(&pci->dev); + ret = acpi_evaluate_integer(handle, "_WOV", NULL, &dmic_status); + if (!ACPI_FAILURE(ret)) + chip->is_pdm_dev = dmic_status; } } EXPORT_SYMBOL_NS_GPL(check_acp_config, "SND_SOC_ACP_COMMON"); -- 2.39.5