]> git.baikalelectronics.ru Git - kernel.git/commit
media: amphion: sync buffer status with firmware during abort
authorMing Qian <ming.qian@nxp.com>
Fri, 1 Jul 2022 05:50:04 +0000 (06:50 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 17:17:06 +0000 (18:17 +0100)
commit091a240bd664293fae09057f4212f510f292bc76
treeaca5be595819cb7f49a2c151a8bcd5302fd7d08d
parentb0271a8d14579d90dcd85b4ca803fdbbce010a3b
media: amphion: sync buffer status with firmware during abort

1. prevent to allocate buffer to firmware during abort
2. release buffer when clear the slots

Fixes: 60bbaa0b159d2 ("media: amphion: add v4l2 m2m vpu decoder stateful driver")
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/amphion/vdec.c