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: Mattijs Korpershoek mkorpershoek@baylibre.com
Relates to:
Fixes TIAU-406
Edited by Mattijs Korpershoek