ALSA: usb-audio: scarlett2: Read mixer volumes at init time
authorGeoffrey D. Bennett <g@b4.vu>
Mon, 7 Jun 2021 19:13:25 +0000 (04:43 +0930)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Jun 2021 12:02:35 +0000 (14:02 +0200)
commit2661f033c40236aa9d470eccdee35e7a04fc8d1a
tree5e03fb26a4787356116dabd235f9e1fcd059866d
parent0280e07bbd6efa691daa7356b6bb05514cdcab68
ALSA: usb-audio: scarlett2: Read mixer volumes at init time

Add support for reading the mixer volumes from the hardware when the
driver is initialising. Previously these ALSA volume controls were
initialised to zero instead of being initialised to match the hardware
state.

Fixes: 9e4d5c1be21f ("ALSA: usb-audio: Scarlett Gen 2 mixer interface")
Suggested-by: Vladimir Sadovnikov <sadko4u@gmail.com>
Tested-by: Markus Schroetter <project.m.schroetter@gmail.com>
Tested-by: Alex Fellows <alex.fellows@gmail.com>
Tested-by: Daniel Sales <daniel.sales.z@gmail.com>
Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Link: https://lore.kernel.org/r/bb33fa9b79efc6f7a0f0e6fb7018cc8d4d59b3ba.1623091570.git.g@b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_scarlett_gen2.c