ALSA: usb-audio: scarlett2: Remove hard-coded USB #defines
authorGeoffrey D. Bennett <g@b4.vu>
Sun, 20 Jun 2021 16:46:52 +0000 (02:16 +0930)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Jun 2021 06:38:11 +0000 (08:38 +0200)
commit6c0a2078134aba6a77291554035304df9e16b85c
tree610bd27874cc89ef9f29e6a854cda45d1d779bed
parent296726319289f0d5ff9b6d1cc039fbab4d413b98
ALSA: usb-audio: scarlett2: Remove hard-coded USB #defines

Remove the hard-coded interface number and related constants for the
vendor-specific interface and look them up from the USB endpoint
descriptor.

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