ALSA: scarlett2: Fix line out/speaker switching notifications
authorGeoffrey D. Bennett <g@b4.vu>
Thu, 22 Jul 2021 20:13:26 +0000 (05:43 +0930)
committerTakashi Iwai <tiwai@suse.de>
Sat, 24 Jul 2021 08:05:30 +0000 (10:05 +0200)
commit2b8b12be9b9752c36efda38b7dd5d83d790d01d8
treea2dda2423529c90425710feb33989d88590632ce
parent9ee0fc8366ddce380547878640708f1bd7dd2ead
ALSA: scarlett2: Fix line out/speaker switching notifications

The values of the line output controls can change when the SW/HW
switches are set to HW, and also when speaker switching is enabled.
These notifications were sent with a mask of only
SNDRV_CTL_EVENT_MASK_INFO. Change the notifications to set the
SNDRV_CTL_EVENT_MASK_VALUE mask bit as well.

When the mute control is updated, the notification was sent with a
mask of SNDRV_CTL_EVENT_MASK_INFO. Change the mask to the correct
value of SNDRV_CTL_EVENT_MASK_VALUE.

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Link: https://lore.kernel.org/r/8192e15ba62fa4bc90425c005f265c0de530be20.1626959758.git.g@b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_scarlett_gen2.c