ALSA: scarlett2: Allow for interfaces without per-channel volume
authorGeoffrey D. Bennett <g@b4.vu>
Sun, 24 Dec 2023 19:30:05 +0000 (06:00 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Dec 2023 14:41:23 +0000 (15:41 +0100)
commit90d8fef837a53e6b5c2c3c14c6063ee8d78277a9
tree429caeb5fe3743367a1ab6b30d0e3322e3ba4c6d
parentc6b3e71e2c0899426dcdc46a778c6bd0c35925d1
ALSA: scarlett2: Allow for interfaces without per-channel volume

Currently-supported interfaces with a mixer have per-channel volume
controls, but this changes in Gen 4. Add a check so that the Playback
Volume and associated controls don't get created unless the
SCARLETT2_CONFIG_LINE_OUT_VOLUME config item is present.

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Link: https://lore.kernel.org/r/30f68cb311e27f2cc1351cb846218f7248a90263.1703444932.git.g@b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_scarlett2.c