Skip to contentSkip to conversation

ASoC: rt766: avoid re-initialize the blind write

PATCH Superseded [email protected] 1 participant 1 message Sep 23

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 ASoC: rt766: avoid re-initialize the blind write

From: Shuming Fan <[email protected]>

We only need to check the function_status to determine whether the system has undergone a cold or warm reboot.

---
 sound/soc/codecs/rt766-sdca.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt766-sdca.c +1 -1
index 5a1c1e10e6d7..28b4118e05c9 100644
@@ -1297,7 +1297,7 @@ static int rt766_func_initialize(struct rt766_sdca_priv *rt766, struct sdca_func
 	regmap_read(rt766->regmap, func_status_reg, &func_status);
 	dev_dbg(dev, "%s, %s func_status=0x%x\n", __func__, func_data->desc->name, func_status);
 
-	if ((func_status & SDCA_CTL_ENTITY_0_FUNCTION_NEEDS_INITIALIZATION) || (!rt766->first_hw_init)) {
+	if ((func_status & SDCA_CTL_ENTITY_0_FUNCTION_NEEDS_INITIALIZATION)) {
 		ret = sdca_regmap_write_init(dev, rt766->regmap, func_data);
 		if (ret) {
 			dev_err(dev, "%s initialization table update failed\n", func_data->desc->name);
Signature · 1 line
2.54.0