diff options
| author | Xu Yang <xu.yang_2@nxp.com> | 2026-01-13 17:53:08 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-01-23 11:21:27 +0100 |
| commit | aee473246134b33dbb5e2b58926b59632a84a223 (patch) | |
| tree | 14a5e94442b5623206ead390486b94beae55d8df /tools/perf/scripts/python | |
| parent | 34f6634dba87ef72b3c3a3a524be663adef7ab42 (diff) | |
| download | kernel-aee473246134b33dbb5e2b58926b59632a84a223.tar.gz | |
usb: gadget: uvc: fix interval_duration calculation
commit 010dc57cb5163e5f4a32430dd5091cc29efd0471 upstream.
According to USB specification:
For full-/high-speed isochronous endpoints, the bInterval value is
used as the exponent for a 2^(bInterval-1) value.
To correctly convert bInterval as interval_duration:
interval_duration = 2^(bInterval-1) * frame_interval
Because the unit of video->interval is 100ns, add a comment info to
make it clear.
Fixes: 48dbe731171e ("usb: gadget: uvc: set req_size and n_requests based on the frame interval")
Cc: stable@vger.kernel.org
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://patch.msgid.link/20260113-uvc-gadget-fix-patch-v2-2-62950ef5bcb5@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
