Re: [PATCH] ALSA: dummy: Report a change when one capture switch channel moves
From: Takashi Iwai
Date: Tue Sep 01 2026 - 12:39:06 EST
On Tue, 01 Sep 2026 17:39:21 +0200,
HyeongJun An wrote:
>
> The snd_dummy_capsrc_put() builds its change flag with &&, so it reports
> a change only when both channels move at once. Writing a single channel
> stores the new value and returns 0, the control core then sends no
> SNDRV_CTL_EVENT_MASK_VALUE, and a second reader keeps showing the old
> setting until it polls again.
>
> The volume put a few lines above compares the same pair of channels with
> ||.
>
> The mixer selftest already reports this. With snd-dummy loaded it fails
> event_missing on all five capture switches:
>
> # CD Capture Switch.1 orig 0 read 1, is_volatile 0
> not ok 13 event_missing.Dummy.9
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Assisted-by: Claude:claude-opus-5
> Signed-off-by: HyeongJun An <sammiee5311@xxxxxxxxx>
Applied now. Thanks.
Takashi