platform/x86: x86-android-tablets: Lenovo Yoga Tablet 2 830/1050 sound support
authorHans de Goede <hdegoede@redhat.com>
Wed, 23 Feb 2022 13:31:53 +0000 (14:31 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 2 Mar 2022 10:43:45 +0000 (11:43 +0100)
commitcb18448bbf1c845aecaa09b04cfdcceb070d9236
tree2dc2cf259416add825a8d4588d33b000d6592e22
parentbf8fd1a9736eaff5a5b823415e5a0d165a42e5d6
platform/x86: x86-android-tablets: Lenovo Yoga Tablet 2 830/1050 sound support

The ACPI tables for the codec setup on the Lenovo Yoga Tablet 2 830/1050
miss 2 things compared to their Windows (Lenovo Yoga Tablet 2 1051)
counterparts:

1. There is no CLKE ACPI method to enable output of the 32KHz PMU clock on
   pin 6 of the SUS GPIO controller

2. The GPIOs used by the codec are not listed in the fwnode for the codec

Add pinctrl code to set the SUS6 pin mux manually and a gpio-lookup table
for the GPIOs to work around both issues.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220223133153.730337-6-hdegoede@redhat.com
drivers/platform/x86/x86-android-tablets.c