]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a56ce05447cd8a655c3a2e1e02eccfd47cbf0ef
tree026ff7427535388baf0850e848991c535c3bb0a1
parentd8c013378449b2ab0b27604021a08bfd707bff20
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