ALSA: usb-audio: scarlett2: Read mux at init time
authorGeoffrey D. Bennett <g@b4.vu>
Mon, 7 Jun 2021 19:13:51 +0000 (04:43 +0930)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Jun 2021 12:02:43 +0000 (14:02 +0200)
commitd6f9afe9475fdb0b79e3baf58dabfaf547e5d1a7
treef48482988cc0c86665bf967eabda14ad4f8e5daf
parent2661f033c40236aa9d470eccdee35e7a04fc8d1a
ALSA: usb-audio: scarlett2: Read mux at init time

Add support for retrieving the mux configuration from the hardware
when the driver is initialising. Previously the ALSA controls were
initialised to a default hard-coded state 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/15b17c60a2bca174bcddcec41c9419b746f21c1d.1623091570.git.g@b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_scarlett_gen2.c