]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Add snd_usb_get_host_interface() helper
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 08:53:22 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 14:13:47 +0000 (15:13 +0100)
commitef88db119b4c600dba9e2516de3fccd1d06158cf
treeea21c41927922dbf767558e1dfb8a2a6883aa787
parenta5962c3d74b385ff3ec6a6792b23b1265644c828
ALSA: usb-audio: Add snd_usb_get_host_interface() helper

Add a helper function to retrieve the usb_host_interface object from
the given interface and altsetting number pair, which is a commonly
used procedure in the driver code.

No functional changes, just minor code refactoring.

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