[PATCH] ALSA: vmaster: Retry follower initialization on failure

From: Sreeraj S Kurup

Date: Thu Nov 26 2026 - 02:22:58 EST


Reset the follower count when the initial follower update
fails.

This allows follower initialization to be retried on the
next access.

Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@xxxxxxxxx>
---
sound/core/vmaster.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/sound/core/vmaster.c b/sound/core/vmaster.c
index f43144ba2797..d97d7bb33e16 100644
--- a/sound/core/vmaster.c
+++ b/sound/core/vmaster.c
@@ -102,7 +102,14 @@ static int follower_init(struct link_follower *follower)
follower->info.min_val = uinfo->value.integer.min;
follower->info.max_val = uinfo->value.integer.max;

- return follower_update(follower);
+ err = follower_update(follower);
+ if (err < 0) {
+ /* allow initialization to be retried */
+ follower->info.count = 0;
+ return err;
+ }
+
+ return 0;
}

/* initialize master volume */
--
2.55.0