mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda/tas2781: configure the amp after firmware load
@ 2023-12-30  0:13 Gergo Koteles
  2023-12-30  9:51 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Gergo Koteles @ 2023-12-30  0:13 UTC (permalink / raw)
  To: Shenghao Ding, Kevin Lu, Baojun Xu, Jaroslav Kysela, Takashi Iwai
  Cc: linux-sound, linux-kernel, alsa-devel, Gergo Koteles

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(+)

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)

base-commit: 64bf8dec54cfe57f416884a6b3d54c7f4259e93f
-- 
2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ALSA: hda/tas2781: configure the amp after firmware load
  2023-12-30  0:13 [PATCH] ALSA: hda/tas2781: configure the amp after firmware load Gergo Koteles
@ 2023-12-30  9:51 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2023-12-30  9:51 UTC (permalink / raw)
  To: Gergo Koteles
  Cc: Shenghao Ding, Kevin Lu, Baojun Xu, Jaroslav Kysela,
	Takashi Iwai, linux-sound, linux-kernel, alsa-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-30  9:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-30  0:13 [PATCH] ALSA: hda/tas2781: configure the amp after firmware load Gergo Koteles
2023-12-30  9:51 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®