[PATCH] ASoC: aw88166: fix backup restoring the RE value instead of saving it
From: Marco Giunta
Date: Mon Nov 23 2026 - 12:56:30 EST
aw_dev_backup_sec_record() saves the VCALB and RE values so that
aw_dev_backup_sec_recovery() can restore them later. However, it passes
AW88166_RECOVERY_SEC_DATA for RE, so instead of reading ACR1/ACR2 it
writes the stored value back to them.
Pass AW88166_RECORD_SEC_DATA instead, as the vendor aw883xx driver does.
Fixes: 94e412c28e61 ("ASoC: codecs: Add aw88166 amplifier driver")
Signed-off-by: Marco Giunta <marco_giunta@xxxxxxxxxx>
---
sound/soc/codecs/aw88166.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/aw88166.c b/sound/soc/codecs/aw88166.c
index a520c9089425..19436c001a80 100644
--- a/sound/soc/codecs/aw88166.c
+++ b/sound/soc/codecs/aw88166.c
@@ -404,7 +404,7 @@ static int aw_dev_init_re_update(struct aw88166 *aw88166, int flag)
static void aw_dev_backup_sec_record(struct aw88166 *aw88166)
{
aw_dev_init_vcalb_update(aw88166, AW88166_RECORD_SEC_DATA);
- aw_dev_init_re_update(aw88166, AW88166_RECOVERY_SEC_DATA);
+ aw_dev_init_re_update(aw88166, AW88166_RECORD_SEC_DATA);
}
static void aw_dev_backup_sec_recovery(struct aw88166 *aw88166)
base-commit: 42795082e2dd5691eda4bc1a27fcecff8ee623b7
--
2.56.1