ALSA: hda/tas2781: configure the amp after firmware load
authorGergo Koteles <soyer@irl.hu>
Sat, 30 Dec 2023 00:13:41 +0000 (01:13 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 30 Dec 2023 09:50:55 +0000 (10:50 +0100)
Make the amp available immediately after a module
load to avoid having to wait for a PCM hook action.
(eg. unloading & loading the module while listening
music)

Signed-off-by: Gergo Koteles <soyer@irl.hu>
Link: https://lore.kernel.org/r/7f2f65d9212aa16edd4db8725489ae59dbe74c66.1703895108.git.soyer@irl.hu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/tas2781_hda_i2c.c

index dfe281b57aa64e383e172e5d4c85091919e4403d..c8523df4105f31d0ef3ad4cc0bbc91bf49dd0580 100644 (file)
@@ -584,6 +584,8 @@ static void tasdev_fw_ready(const struct firmware *fmw, void *context)
         */
        tas2781_save_calibration(tas_priv);
 
+       tasdevice_tuning_switch(tas_hda->priv, 0);
+
 out:
        mutex_unlock(&tas_hda->priv->codec_lock);
        if (fmw)