Re: [PATCH] ALSA: 6fire: Fix input volume change detection
From: Takashi Iwai
Date: Fri Apr 17 2026 - 04:00:00 EST
On Thu, 16 Apr 2026 15:24:40 +0200,
Cássio Gabriel wrote:
>
> usb6fire_control_input_vol_put() stores the analog capture volume
> as a signed offset in rt->input_vol[] (-15..+15), but it compares
> the cached value against the user-visible mixer value (0..30)
> before subtracting 15.
>
> This mixes two domains in the change detection path. Since the
> runtime is zero-initialized, the visible default is 15; writing 0
> right after probe is ignored, while writing 15 is reported as a
> change even though the cached value remains 0.
>
> Normalize the user value before comparing it with the cached offset.
>
> Fixes: 06bb4e743501 ("ALSA: snd-usb-6fire: add analog input volume control")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Cássio Gabriel <cassiogabrielcontato@xxxxxxxxx>
Thanks, applied now.
Takashi