media: mediatek: vcodec: using decoder status instead of core work count
authorYunfei Dong <yunfei.dong@mediatek.com>
Thu, 25 May 2023 01:40:07 +0000 (02:40 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 26 May 2023 09:54:50 +0000 (10:54 +0100)
commit2864e304faec04c2674328aad0e820a9cd84cdec
tree2c725c56e919e2efc73501a33b378fb61160e770
parent15ff9e7f49bc107fce067d8b0ea5ebf4bd9fc9cf
media: mediatek: vcodec: using decoder status instead of core work count

Adding the definition of decoder status to separate different decoder
period for core hardware.

core_work_cnt is the number of core work queued to work queue, the control
is very complex, leading to some unreasonable test result.

Using parameter status to indicate whether queue core work to work queue.

Fixes: 2e0ef56d81cb ("media: mediatek: vcodec: making sure queue_work successfully")
Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/mediatek/vcodec/vdec_msg_queue.c
drivers/media/platform/mediatek/vcodec/vdec_msg_queue.h