diff mbox series

ASoC: amd: yc: Add ASUS UM5302TA into DMI table

Message ID 20220917070847.14346-1-lxy.lixiaoyan@gmail.com
State Accepted
Commit 4df5b13dec9e1b5a12db47ee92eb3f7da5c3deb5
Headers show
Series ASoC: amd: yc: Add ASUS UM5302TA into DMI table | expand

Commit Message

Xiaoyan Li Sept. 17, 2022, 7:08 a.m. UTC
ASUS Zenbook S 13 OLED (UM5302TA) needs this quirk to get the built-in
microphone working properly.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=216270
Signed-off-by: Xiaoyan Li <lxy.lixiaoyan@gmail.com>
---
 sound/soc/amd/yc/acp6x-mach.c | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Mario Limonciello Sept. 17, 2022, 1:29 p.m. UTC | #1
On 9/17/22 02:08, Xiaoyan Li wrote:
> ASUS Zenbook S 13 OLED (UM5302TA) needs this quirk to get the built-in
> microphone working properly.
> 
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=216270
> Signed-off-by: Xiaoyan Li <lxy.lixiaoyan@gmail.com>

Suggested-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>

> ---
>   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 e0b24e1daef3..5eab3baf3573 100644
> --- a/sound/soc/amd/yc/acp6x-mach.c
> +++ b/sound/soc/amd/yc/acp6x-mach.c
> @@ -171,6 +171,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
>   			DMI_MATCH(DMI_PRODUCT_NAME, "21J6"),
>   		}
>   	},
> +	{
> +		.driver_data = &acp6x_card,
> +		.matches = {
> +			DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK COMPUTER INC."),
> +			DMI_MATCH(DMI_PRODUCT_NAME, "UM5302TA"),
> +		}
> +	},
>   	{}
>   };
>
diff mbox series

Patch

diff --git a/sound/soc/amd/yc/acp6x-mach.c b/sound/soc/amd/yc/acp6x-mach.c
index e0b24e1daef3..5eab3baf3573 100644
--- a/sound/soc/amd/yc/acp6x-mach.c
+++ b/sound/soc/amd/yc/acp6x-mach.c
@@ -171,6 +171,13 @@  static const struct dmi_system_id yc_acp_quirk_table[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "21J6"),
 		}
 	},
+	{
+		.driver_data = &acp6x_card,
+		.matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "UM5302TA"),
+		}
+	},
 	{}
 };