mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-07 03:18:31 +00:00
ALSA: hda - add a new condition to check if it is thinkpad
Latest Thinkpad laptops use the HKEY_HID LEN0268 instead of the LEN0068, as a result neither audio mute led nor mic mute led can work any more. After adding the new HKEY_HID into the is_thinkpad(), both of them works well as before. Cc: <stable@vger.kernel.org> Signed-off-by: Hui Wang <hui.wang@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
6809cd682b
commit
2ecb704a12
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@ static void (*old_vmaster_hook)(void *, int);
|
||||||
static bool is_thinkpad(struct hda_codec *codec)
|
static bool is_thinkpad(struct hda_codec *codec)
|
||||||
{
|
{
|
||||||
return (codec->core.subsystem_id >> 16 == 0x17aa) &&
|
return (codec->core.subsystem_id >> 16 == 0x17aa) &&
|
||||||
(acpi_dev_found("LEN0068") || acpi_dev_found("IBM0068"));
|
(acpi_dev_found("LEN0068") || acpi_dev_found("LEN0268") ||
|
||||||
|
acpi_dev_found("IBM0068"));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void update_tpacpi_mute_led(void *private_data, int enabled)
|
static void update_tpacpi_mute_led(void *private_data, int enabled)
|
||||||
|
|
Loading…
Reference in a new issue