]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ALSA: hda/tas2781: Add tas2781_hda::catlog_id init
authorShenghao Ding <shenghao-ding@ti.com>
Mon, 26 Jan 2026 03:18:16 +0000 (11:18 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 27 Jan 2026 08:58:37 +0000 (09:58 +0100)
The default of tas2781_hda::catlog_id is DELL, which cause calibration
data is not loaded in HP SPI-basded Laptop, because only HP laptop
supports SPI-based TAS2781.

Fixes: 9fa6a693ad8d ("ALSA: hda/tas2781: Remove tas2781_spi_fwlib.c and leverage SND_SOC_TAS2781_FMWLIB")
Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
Link: https://patch.msgid.link/20260126031816.1123-1-shenghao-ding@ti.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/codecs/side-codecs/tas2781_hda_spi.c

index 5454b7ac22c6169b1fcd9a570ae2e1541140bb5d..0c9b57b6ff55bb359257d642096bb8a0c59b7234 100644 (file)
@@ -727,6 +727,9 @@ static int tas2781_hda_bind(struct device *dev, struct device *master,
        if (!ret)
                comp->playback_hook = tas2781_hda_playback_hook;
 
+       /* Only HP Laptop support SPI-based TAS2781 */
+       tas_hda->catlog_id = HP;
+
        return ret;
 }