ALSA: usb: mixer: make string parsing independent of mixer_build state
authorRuslan Bilovol <ruslan.bilovol@gmail.com>
Fri, 4 May 2018 01:24:02 +0000 (04:24 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 4 May 2018 07:39:38 +0000 (09:39 +0200)
commiteccfc1b868a9902bbfa2315a7c5385dbbf822dc4
treef0932790793c8f2cfcac22572aa6fbac1a7f4262
parent3763f6186703d9939913996da1c71d8f8ddb035c
ALSA: usb: mixer: make string parsing independent of mixer_build state

Functions like snd_usb_copy_string_desc() or
get_term_name() don't actually need mixer_build
state but can use snd_usb_audio structure instead
to get usb device.

This patch has no functional change but prepares
to future UAC3 BADD profiles support which don't
have class-specific descriptors so won't have
mixer_build state.

Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c