ALSA: usb-audio: Drop unneeded snd_usb_substream fields
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 08:53:36 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 14:16:04 +0000 (15:16 +0100)
commit6aa719d15a1903eb3fd0e052ae53f3b024ad4d05
tree026ff7427535388baf0850e848991c535c3bb0a1
parentd0f09d1e4a88647695739d2ff4268e9fdcf5b35d
ALSA: usb-audio: Drop unneeded snd_usb_substream fields

Some fields like interface and alt_idx in snd_usb_substream are mostly
useless now as they can be referred via either cur_audiofmt or
data_endpoint assigned to the substream.  Drop those, and also assure
the concurrency about the access of cur_audiofmt field.

Tested-by: Keith Milner <kamilner@superlative.org>
Tested-by: Dylan Robinson <dylan_robinson@motu.com>
Link: https://lore.kernel.org/r/20201123085347.19667-31-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c
sound/usb/card.h
sound/usb/pcm.c
sound/usb/proc.c
sound/usb/quirks.c