]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: chips-media: wave5: Fix conditional in start_streaming
authorBrandon Brnich <b-brnich@ti.com>
Tue, 21 Oct 2025 20:46:17 +0000 (15:46 -0500)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 5 Jan 2026 14:56:31 +0000 (15:56 +0100)
commitb4e26c6fc1b3c225caf80d4a95c6f9fcbe959e17
tree97b8b8a7a6299f03c4a4c5d110fac7e7bbd45499
parent241e75fe6b9db206e8df14d305ea7e42fd3a2846
media: chips-media: wave5: Fix conditional in start_streaming

When STREAMON(CAP) is called after STREAMON(OUT), the driver was failing to
switch states from VPU_INST_STATE_OPEN to VPU_INST_STATE_INIT_SEQ and
VPU_INST_STATE_PIC_RUN because the capture queue streaming boolean had not
yet been set to true. This led to a hang in the encoder since the state
was stuck in VPU_INST_STATE_OPEN. During the second call to
start_streaming, the sequence initialization and frame buffer allocation
should occur.

Signed-off-by: Brandon Brnich <b-brnich@ti.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c