/* Helper function for getting the device streaming direction  */
static enum usb_audio_direction get_fu_dir(const struct feature_unit_descriptor *fu)
/* Helper function for getting the device streaming direction  */
static enum usb_audio_direction get_fu_dir(const struct feature_unit_descriptor *fu)
{
	const struct output_terminal_descriptor *ot =
		(struct output_terminal_descriptor *)
		((uint8_t *)fu + fu->bLength);
	enum usb_audio_direction dir;
	if (ot->wTerminalType == USB_AUDIO_USB_STREAMING) {
		dir = USB_AUDIO_IN;
	} else {
		dir = USB_AUDIO_OUT;
	}
	return dir;
}