ALSA: usb-audio: scarlett2: Remove redundant info->button_count
authorGeoffrey D. Bennett <g@b4.vu>
Sun, 20 Jun 2021 16:46:34 +0000 (02:16 +0930)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Jun 2021 06:37:07 +0000 (08:37 +0200)
commit03bdbcf08a8cb7ba69a67115d33a85e6bc6e7481
treec67ce6d7968da1a2cd54e72315541a146b32e542
parent411b22ed67c9ee11680a3fae96c7fd6477814274
ALSA: usb-audio: scarlett2: Remove redundant info->button_count

The per-model button_count value was used to determine whether
dim/mute controls should be added, but these are present iff
line_out_hw_vol is true. Remove button_count and replace with
SCARLETT2_BUTTON_MAX and a check for line_out_hw_vol true.

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