ALSA: hda/tas2781: Add speaker id check for ASUS projects
authorBaojun Xu <baojun.xu@ti.com>
Sat, 23 Nov 2024 07:37:18 +0000 (15:37 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 26 Nov 2024 07:54:08 +0000 (08:54 +0100)
commit4e7035a75da9371c93dabcb789883e31d2765dcf
tree958466374541d0c418ca9a86b70bd933fb38bbde
parent1fd50509fe14a9adc9329e0454b986157a4c155a
ALSA: hda/tas2781: Add speaker id check for ASUS projects

Add speaker id check by gpio in ACPI for ASUS projects.
In other vendors, speaker id was checked by BIOS, and was applied in
last bit of subsys id, so we can load corresponding firmware binary file
for its speaker by subsys id.
But in ASUS project, the firmware binary name will be appended an extra
number to tell the speakers from different vendors. And this single digit
come from gpio level of speaker id in BIOS.

Signed-off-by: Baojun Xu <baojun.xu@ti.com>
Link: https://patch.msgid.link/20241123073718.475-1-baojun.xu@ti.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/tas2781.h
sound/pci/hda/tas2781_hda_i2c.c