mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ALSA: vmaster: Retry follower initialization on failure
@ 2026-11-26  7:22 Sreeraj S Kurup
  2026-12-01  8:01 ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Sreeraj S Kurup @ 2026-11-26  7:22 UTC (permalink / raw)
  To: perex, tiwai; +Cc: linux-kernel, linux-sound, Sreeraj S Kurup

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@gmail.com>
---
 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


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

* Re: [PATCH] ALSA: vmaster: Retry follower initialization on failure
  2026-11-26  7:22 [PATCH] ALSA: vmaster: Retry follower initialization on failure Sreeraj S Kurup
@ 2026-12-01  8:01 ` Takashi Iwai
  2026-12-01 12:51   ` Sreeraj S Kurup
  0 siblings, 1 reply; 3+ messages in thread
From: Takashi Iwai @ 2026-12-01  8:01 UTC (permalink / raw)
  To: Sreeraj S Kurup; +Cc: perex, tiwai, linux-kernel, linux-sound

On Thu, 26 Nov 2026 08:22:20 +0100,
Sreeraj S Kurup wrote:
> 
> 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@gmail.com>

Applied to for-next branch.  Thanks.


Takashi

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

* Re: [PATCH] ALSA: vmaster: Retry follower initialization on failure
  2026-12-01  8:01 ` Takashi Iwai
@ 2026-12-01 12:51   ` Sreeraj S Kurup
  0 siblings, 0 replies; 3+ messages in thread
From: Sreeraj S Kurup @ 2026-12-01 12:51 UTC (permalink / raw)
  To: tiwai; +Cc: linux-kernel, linux-sound, perex, sreekuttan2156239

Hi,

Thanks for applying the patch!

Best regards,
Sreeraj

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

end of thread, other threads:[~2026-12-01 12:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26  7:22 [PATCH] ALSA: vmaster: Retry follower initialization on failure Sreeraj S Kurup
2026-12-01  8:01 ` Takashi Iwai
2026-12-01 12:51   ` Sreeraj S Kurup

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®