ALSA: scarlett2: Add additional input configuration parameters
authorGeoffrey D. Bennett <g@b4.vu>
Tue, 12 Mar 2024 18:35:47 +0000 (05:05 +1030)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Apr 2024 06:31:13 +0000 (08:31 +0200)
commit1e48ddb7d71f6a48f5d871864046e33fd94deb99
tree8a380c3abcb2c93becfdc6b6d04afa19778e2c75
parentb1b3b258242c4e7c70b8da09904a8c5e2aadaa3a
ALSA: scarlett2: Add additional input configuration parameters

The 4th Gen Scarlett interfaces added software-controllable input gain
along with channel select, channel link, auto-gain, and "safe" mode.
Vocaster has software-controllable input gain and auto-gain but not
channel select, channel link, or safe mode.

Add a device info field safe_input_count to indicate how many channels
have a safe mode control, and use the presence of the input select and
input link switch configuration parameters to determine if those
controls should be created.

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Message-ID: <167f04a37d0fb23f3077705df835adbc4f2b6a8e.1710264833.git.g@b4.vu>
sound/usb/mixer_scarlett2.c