Lines Matching refs:cs_desc
2148 uint8_t *cs_desc; in snd_usbmidi_detect_yamaha() local
2162 for (cs_desc = hostif->extra; in snd_usbmidi_detect_yamaha()
2163 cs_desc < hostif->extra + hostif->extralen && cs_desc[0] >= 2; in snd_usbmidi_detect_yamaha()
2164 cs_desc += cs_desc[0]) { in snd_usbmidi_detect_yamaha()
2165 if (cs_desc[1] == USB_DT_CS_INTERFACE) { in snd_usbmidi_detect_yamaha()
2166 if (cs_desc[2] == UAC_MIDI_IN_JACK) in snd_usbmidi_detect_yamaha()
2169 else if (cs_desc[2] == UAC_MIDI_OUT_JACK) in snd_usbmidi_detect_yamaha()
2188 u8 *cs_desc; in snd_usbmidi_detect_roland() local
2198 for (cs_desc = hostif->extra; in snd_usbmidi_detect_roland()
2199 cs_desc < hostif->extra + hostif->extralen && cs_desc[0] >= 2; in snd_usbmidi_detect_roland()
2200 cs_desc += cs_desc[0]) { in snd_usbmidi_detect_roland()
2201 if (cs_desc[0] >= 6 && in snd_usbmidi_detect_roland()
2202 cs_desc[1] == USB_DT_CS_INTERFACE && in snd_usbmidi_detect_roland()
2203 cs_desc[2] == 0xf1 && in snd_usbmidi_detect_roland()
2204 cs_desc[3] == 0x02) { in snd_usbmidi_detect_roland()
2205 if (cs_desc[4] > 0x10 || cs_desc[5] > 0x10) in snd_usbmidi_detect_roland()
2207 endpoint->in_cables = (1 << cs_desc[4]) - 1; in snd_usbmidi_detect_roland()
2208 endpoint->out_cables = (1 << cs_desc[5]) - 1; in snd_usbmidi_detect_roland()
2210 } else if (cs_desc[0] >= 7 && in snd_usbmidi_detect_roland()
2211 cs_desc[1] == USB_DT_CS_INTERFACE && in snd_usbmidi_detect_roland()
2212 cs_desc[2] == UAC_HEADER) { in snd_usbmidi_detect_roland()