mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
Revert "usb: gadget: uvc: fix bFrameIndex of streaming interface descriptor"
This reverts commit 154e7b74ec.
Change-Id: I5f9835e4bcd716ee2bc938937accebb3cdfc71fd
Signed-off-by: William Wu <william.wu@rock-chips.com>
This commit is contained in:
@@ -1840,7 +1840,6 @@ static int __uvcg_iter_strm_cls(struct uvcg_streaming_header *h,
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
j = 0;
|
||||
}
|
||||
|
||||
return ret;
|
||||
@@ -1975,15 +1974,12 @@ static int __uvcg_fill_strm(void *priv1, void *priv2, void *priv3, int n,
|
||||
sizeof(*frm->dw_frame_interval);
|
||||
memcpy(*dest, frm->dw_frame_interval, sz);
|
||||
*dest += sz;
|
||||
if (frm->fmt_type == UVCG_UNCOMPRESSED) {
|
||||
if (frm->fmt_type == UVCG_UNCOMPRESSED)
|
||||
h->bLength = UVC_DT_FRAME_UNCOMPRESSED_SIZE(
|
||||
frm->frame.b_frame_interval_type);
|
||||
frm->frame.b_frame_index = n + 1;
|
||||
} else if (frm->fmt_type == UVCG_MJPEG) {
|
||||
else if (frm->fmt_type == UVCG_MJPEG)
|
||||
h->bLength = UVC_DT_FRAME_MJPEG_SIZE(
|
||||
frm->frame.b_frame_interval_type);
|
||||
frm->frame.b_frame_index = n + 1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user