media: amphion: Abort vpu parsing directly in seek
authorMing Qian <ming.qian@nxp.com>
Mon, 5 Feb 2024 08:17:58 +0000 (17:17 +0900)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 16 Feb 2024 10:46:32 +0000 (11:46 +0100)
commit8cda891db3948ef311594270b663bbad2475f790
tree060a54c54cd4f70973e3c0590fa3eb7a139a93c6
parentc8027d79e0ab37ae7751e2e974ec06016cf9f56c
media: amphion: Abort vpu parsing directly in seek

Driver abort vpu decoding when both output and capture queues are off,
but if seek in parsing the sequence header, driver may miss aborting the
parsing. so just abort the vpu parsing directly in seek.

Meanwhile if capture is off unexpectedly, we still need to abort the
decoding and return capture buffers.

Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/amphion/vdec.c