Skip to content
Snippets Groups Projects
Commit 8674604b authored by Mattijs Korpershoek's avatar Mattijs Korpershoek Committed by Vishal Mahaveer
Browse files

TI: v4l2_codec2: Add retry mechanism for streamon()

Since commit [1], bitstream header sequence parsing has been moved earlier. It's
now done before setting up the capture queue.

With this change, STREAMON on the OUTPUT queue now fails, returning EIO:
V4L2Device: (OUTPUT_MPLANE)VIDIOC_STREAMON failed

The driver can return EIO on STREAMON whenever the wave5 firmware is not
finished parsing the bitstream header. In that case, userspace shall retry to
call STREAMON.

Add a retry mechanism in V4L2Device so that the wave5 firmware has time enough
to finish the bitstream analysis.

[1] https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/drivers/media/platform/chips-media/wave5?h=ti-linux-6.6.y&id=98ed806c90ff15caae4585bc985b4b2db8cbeca9


Signed-off-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
Signed-off-by: default avatarGuillaume La Roque <glaroque@baylibre.com>
parent d3d9ceb5
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment