diff mbox series

ALSA: hda/tas2781: configure the amp after firmware load

Message ID 7f2f65d9212aa16edd4db8725489ae59dbe74c66.1703895108.git.soyer@irl.hu (mailing list archive)
State Accepted
Commit 68f7f3ff6c2a0998be9dc07622bd0d16fd1fda20
Headers show
Series ALSA: hda/tas2781: configure the amp after firmware load | expand

Commit Message

Gergo Koteles Dec. 30, 2023, 12:13 a.m. UTC
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>
---
 sound/pci/hda/tas2781_hda_i2c.c | 2 ++
 1 file changed, 2 insertions(+)


base-commit: 64bf8dec54cfe57f416884a6b3d54c7f4259e93f

Comments

Takashi Iwai Dec. 30, 2023, 9:51 a.m. UTC | #1
On Sat, 30 Dec 2023 01:13:41 +0100,
Gergo Koteles wrote:
> 
> 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>

Applied to for-next branch now.  Thanks.


Takashi
diff mbox series

Patch

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)