platform/surface: aggregator_tabletsw: Add support for book mode in POS subsystem
authorMaximilian Luz <luzmaximilian@gmail.com>
Thu, 25 May 2023 21:32:18 +0000 (23:32 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 30 May 2023 09:20:30 +0000 (11:20 +0200)
commit061c228967f0e3f7aecdd32ee370ee745d96168d
tree7508339f07a81a936197752164fffd2e2b190c2b
parent9bed667033e66083d363a11e9414ad401ecc242c
platform/surface: aggregator_tabletsw: Add support for book mode in POS subsystem

Devices with a type-cover have an additional "book" mode, deactivating
type-cover input and turning off its backlight. This is currently
unsupported, leading to the warning

  surface_aggregator_tablet_mode_switch 01:26:01:00:01: unknown device posture for type-cover: 6

Therefore, add support for this state and map it to enable tablet-mode.

Fixes: 37ff64cd81ff ("platform/surface: aggregator_tabletsw: Add support for Type-Cover posture source")
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20230525213218.2797480-3-luzmaximilian@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/surface/surface_aggregator_tabletsw.c