]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86: lg-laptop: Add support for the HDAP opregion field
authorArmin Wolf <W_Armin@gmx.de>
Wed, 8 Oct 2025 06:41:12 +0000 (08:41 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 15 Oct 2025 08:39:37 +0000 (11:39 +0300)
commit644004565d4cda479995fa9e72c00d62ca084e08
tree3e775ab20c8ceeec31ab62037ffd1d126fce7c3c
parent0254329897495c42646144376230add710078937
platform/x86: lg-laptop: Add support for the HDAP opregion field

Various LG notebooks have a special field called "HDAP" inside
the ACPI operation region handled by the lg-laptop driver:

Field (XIN1, AnyAcc, Lock, Preserve)
{
DMSG,   8,
HDAP,   8,
Offset (0x10),
P80B,   8,
P81B,   8,
P82B,   8,
P83B,   8,
P84B,   8,
P85B,   8,
P86B,   8,
P87B,   8,
Offset (0x3E8),
PMSG,   1600
}

This field is set to 1/0 when the HD audio device is enabled/disabled
using the _PS0/_PS3 ACPI control methods. Add support for this field
to avoid printing warning messages when AML bytecode writes data
into it.

Reported-by: Peter Chubb <peter@chubb.wattle.id.au>
Tested-by: Peter Chubb <peter@chubb.wattle.id.au>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://patch.msgid.link/20251008064112.5981-1-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/lg-laptop.c