diff options
| author | Ricardo Ribalda <ribalda@chromium.org> | 2026-03-23 12:53:53 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-05-12 08:30:53 +0300 |
| commit | 2f24ac8dd87983a55f0498898f34a5f2b735b802 (patch) | |
| tree | 0fc0437a3f8b5c8194d82902a7bcef4bfa2f640b /include/linux | |
| parent | f078966ca1fb1b3865d8e6bbe2705cfd277fc637 (diff) | |
| download | linux-2f24ac8dd87983a55f0498898f34a5f2b735b802.tar.xz | |
media: uvcvideo: Fix buffer sequence in frame gaps
In UVC, the FID flips with every frame. For every FID flip, we increase
the stream sequence number.
Now, if a FID flips multiple times and there is no data transferred between
the flips, the buffer sequence number will be set to the value of the
stream sequence number after the first flip.
Userspace uses the buffer sequence number to determine if there have been
missing frames. With the current behaviour, userspace will think that the
gap is in the wrong location.
This patch modifies uvc_video_decode_start() to provide the correct buffer
sequence number and timestamp.
Cc: stable@kernel.org
Fixes: 650b95feee35 ("[media] uvcvideo: Generate discontinuous sequence numbers when frames are lost")
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
