]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4aed6461ce4b72c8d9a167ae57e2aa1271d779a
tree2dc2cf259416add825a8d4588d33b000d6592e22
parent3857d16307609c4c662a039b7524f0f55ded462d
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