]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: amd: yc: Fix the wrong return value
authorVenkata Prasad Potturu <venkataprasad.potturu@amd.com>
Tue, 10 Dec 2024 09:10:25 +0000 (14:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:08:56 +0000 (18:08 +0100)
commita52ac1d88355c21b4069b79ebb2fc20cadfd0796
treeb0724a99855c056535ab9021952b75121f4ff77a
parent9721c398c8519e237820befa47c6a4ff338969a9
ASoC: amd: yc: Fix the wrong return value

[ Upstream commit 984795e76def5c903724b8d6a8228e356bbdf2af ]

With the current implementation, when ACP driver fails to read
ACPI _WOV entry then the DMI overrides code won't invoke,
may cause regressions for some BIOS versions.

Add a condition check to jump to check the DMI entries incase of
ACP driver fail to read ACPI _WOV method.

Fixes: 4095cf872084 (ASoC: amd: yc: Fix for enabling DMIC on acp6x via _DSD entry)
Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
Link: https://patch.msgid.link/20241210091026.996860-1-venkataprasad.potturu@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/amd/yc/acp6x-mach.c