diff options
author | Gergo Koteles <soyer@irl.hu> | 2023-12-30 03:13:41 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-12-30 12:50:55 +0300 |
commit | 68f7f3ff6c2a0998be9dc07622bd0d16fd1fda20 (patch) | |
tree | 8c61849bf513ad7866a6b07fba0ccf055120e2e0 /sound | |
parent | 66e82d219924f6112509f7e8f8e687fcc81a16e3 (diff) | |
download | linux-68f7f3ff6c2a0998be9dc07622bd0d16fd1fda20.tar.xz |
ALSA: hda/tas2781: configure the amp after firmware load
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/tas2781_hda_i2c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c index dfe281b57aa6..c8523df4105f 100644 --- a/sound/pci/hda/tas2781_hda_i2c.c +++ b/sound/pci/hda/tas2781_hda_i2c.c @@ -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) |