[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e8d1ba79b6135d6f19441d461ec62add302a6b36.1701906455.git.soyer@irl.hu>
Date: Thu, 7 Dec 2023 01:04:31 +0100
From: Gergo Koteles <soyer@....hu>
To: Shenghao Ding <shenghao-ding@...com>, Kevin Lu <kevin-lu@...com>,
Baojun Xu <baojun.xu@...com>, Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>
Cc: linux-kernel@...r.kernel.org, alsa-devel@...a-project.org,
Gergo Koteles <soyer@....hu>
Subject: [PATCH 15/16] ALSA: hda/tas2781: reset the amp before component_add
Prevent race to make the init reliable.
Signed-off-by: Gergo Koteles <soyer@....hu>
---
sound/pci/hda/tas2781_hda_i2c.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c
index cb8872e15bb0..f72e0beab1fb 100644
--- a/sound/pci/hda/tas2781_hda_i2c.c
+++ b/sound/pci/hda/tas2781_hda_i2c.c
@@ -800,14 +800,14 @@ static int tas2781_hda_i2c_probe(struct i2c_client *clt)
pm_runtime_put_autosuspend(tas_hda->dev);
+ tas2781_reset(tas_hda->priv);
+
ret = component_add(tas_hda->dev, &tas2781_hda_comp_ops);
if (ret) {
dev_err(tas_hda->dev, "Register component failed: %d\n", ret);
pm_runtime_disable(tas_hda->dev);
goto err;
}
-
- tas2781_reset(tas_hda->priv);
err:
if (ret)
tas2781_hda_remove(&clt->dev);
--
2.43.0
Powered by blists - more mailing lists