]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: Intel: bytcr_wm5102: Add support for Lenovo Yoga Tab 3 Pro YT3-X90
authorHans de Goede <hdegoede@redhat.com>
Sat, 21 Oct 2023 21:15:29 +0000 (23:15 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 24 Oct 2023 17:03:12 +0000 (18:03 +0100)
commit109cb2160128211ca7b17bad79cb0441f1440bc9
tree28397ccac6bf79ba242668533c5da70c75054b7a
parent2cb54788393134d8174ee594002baae3ce52c61e
ASoC: Intel: bytcr_wm5102: Add support for Lenovo Yoga Tab 3 Pro YT3-X90

The Lenovo Yoga Tab 3 Pro YT3-X90 x86 tablet, which ships with Android
with a custom kernel as factory OS, does not list the used WM5102 codec
inside its DSDT.

So acpi_dev_get_first_match_dev() is going to fail on this board.
Fallback to using "spi-$(mach->id)" as codec device name in this case
to allow bytcr_wm5102 to work on these tablets.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20231021211534.114991-2-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_wm5102.c