ALSA: usb-audio: Add snd_usb_get_endpoint() helper
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 08:53:11 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 14:11:56 +0000 (15:11 +0100)
commitc7474d09777c3d321f9f7f6a416f276204926c54
treeb9785328f98b046dcdf5c214e513e60fd106e64d
parent2e43aae2bf5a4ede98cbe0c85ad104dd7ba5dfd2
ALSA: usb-audio: Add snd_usb_get_endpoint() helper

Factor out the code to obtain snd_usb_endpoint object matching with
the given endpoint.  It'll be used in the later patch to add the
implicit feedback hw-constraint.

No functional change by this patch itself.

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