[PATCH] ASoC: amd: yc: Add DMI quirk for Acer Nitro AN16-41

From: Viacheslav-Illia Detsyk

Date: Thu Nov 05 2026 - 10:28:48 EST


The built-in digital microphone on the Acer Nitro AN16-41 does not work
with the stock driver on the tested system. Adding a DMI override enables
the ACP6x microphone card and allows recording.

Add the board vendor and product name to yc_acp_quirk_table so the existing
ACP6x driver can register the microphone card on this model.

Signed-off-by: Viacheslav-Illia Detsyk <detsykvyacheslav@xxxxxxxxx>
---
Tested on Acer Nitro AN16-41 using upstream machine-driver sources built
against Ubuntu 7.0.0-38-generic headers, retaining Ubuntu PCI/DMA drivers.
Without the entry, the card is absent; with it, the card registers and a
ten-second PipeWire recording captures clear speech, verified by listening.
Native x86-32 driver objects and minimal x86-64 vmlinux/modules also built
with W=1 without compiler warnings or errors.

With the installed Ubuntu driver and the same quirk, recording passed after
suspend/resume, and the microphone also worked after shutdown/startup.
A full upstream kernel was not booted; boot and suspend/resume were not
tested with the newly built module.

AI assistance: Codex helped prepare the patch and message and validate the
results. I performed the hardware tests and listening review.

sound/soc/amd/yc/acp6x-mach.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/sound/soc/amd/yc/acp6x-mach.c b/sound/soc/amd/yc/acp6x-mach.c
index 4908f4cc1..c1fdda668 100644
--- a/sound/soc/amd/yc/acp6x-mach.c
+++ b/sound/soc/amd/yc/acp6x-mach.c
@@ -416,6 +416,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "Nitro ANV15-41"),
}
},
+ {
+ .driver_data = &acp6x_card,
+ .matches = {
+ DMI_MATCH(DMI_BOARD_VENDOR, "RB"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "Nitro AN16-41"),
+ }
+ },
{
.driver_data = &acp6x_card,
.matches = {

base-commit: 68e9934bd17af558b62cac8a444de28d4d5cdb9f
--
2.43.0