diff options
author | Baojun Xu <baojun.xu@ti.com> | 2024-11-23 08:37:18 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-11-26 08:54:08 +0100 |
commit | 4e7035a75da9371c93dabcb789883e31d2765dcf (patch) | |
tree | 958466374541d0c418ca9a86b70bd933fb38bbde /include/sound | |
parent | ALSA: hda/realtek: Update ALC225 depop procedure (diff) | |
download | linux-4e7035a75da9371c93dabcb789883e31d2765dcf.tar.xz linux-4e7035a75da9371c93dabcb789883e31d2765dcf.zip |
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>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/tas2781.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/tas2781.h b/include/sound/tas2781.h index 8cd6da0480b7..72d2060904f6 100644 --- a/include/sound/tas2781.h +++ b/include/sound/tas2781.h @@ -156,6 +156,7 @@ struct tasdevice_priv { struct tasdevice_rca rcabin; struct calidata cali_data; struct tasdevice_fw *fmw; + struct gpio_desc *speaker_id; struct gpio_desc *reset; struct mutex codec_lock; struct regmap *regmap; |