version 1.165.4.1, 2021/01/03 16:35:02 |
version 1.165.4.2, 2021/04/03 22:28:50 |
Line 1546 uaudio_process_as(struct uaudio_softc *s |
|
Line 1546 uaudio_process_as(struct uaudio_softc *s |
|
if (asid->bDescriptorType != UDESC_CS_INTERFACE || |
if (asid->bDescriptorType != UDESC_CS_INTERFACE || |
asid->bDescriptorSubtype != AS_GENERAL) |
asid->bDescriptorSubtype != AS_GENERAL) |
return USBD_INVAL; |
return USBD_INVAL; |
DPRINTF("asid: bTerminakLink=%d wFormatTag=%d\n", |
DPRINTF("asid: bTerminalLink=%d wFormatTag=%d\n", |
asid->bTerminalLink, UGETW(asid->wFormatTag)); |
asid->bTerminalLink, UGETW(asid->wFormatTag)); |
offs += asid->bLength; |
offs += asid->bLength; |
if (offs > size) |
if (offs > size) |
Line 1786 uaudio_identify_as(struct uaudio_softc * |
|
Line 1786 uaudio_identify_as(struct uaudio_softc * |
|
id->bNumEndpoints); |
id->bNumEndpoints); |
break; |
break; |
} |
} |
id = uaudio_find_iface(tbuf, size, &offs,UISUBCLASS_AUDIOSTREAM); |
id = uaudio_find_iface(tbuf, size, &offs, UISUBCLASS_AUDIOSTREAM); |
if (id == NULL) |
if (id == NULL) |
break; |
break; |
} |
} |
Line 3020 uaudio_set_format(void *addr, int setmod |
|
Line 3020 uaudio_set_format(void *addr, int setmod |
|
raltidx = audio_indexof_format(sc->sc_formats, sc->sc_nformats, |
raltidx = audio_indexof_format(sc->sc_formats, sc->sc_nformats, |
AUMODE_RECORD, rec); |
AUMODE_RECORD, rec); |
/* Transfer should have halted */ |
/* Transfer should have halted */ |
uaudio_chan_init(&sc->sc_recchan, raltidx, rec, 0); |
uaudio_chan_init(&sc->sc_recchan, raltidx, rec, |
|
UGETW(sc->sc_alts[raltidx].edesc->wMaxPacketSize)); |
} |
} |
|
|
if ((setmode & AUMODE_PLAY) && sc->sc_playchan.altidx != -1) { |
if ((setmode & AUMODE_PLAY) && sc->sc_playchan.altidx != -1) { |