]> git.baikalelectronics.ru Git - kernel.git/commit
media: mediatek: vcodec: Add vdec enable/disable hardware helpers
authorYunfei Dong <yunfei.dong@mediatek.com>
Thu, 12 May 2022 02:19:34 +0000 (04:19 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 12:40:09 +0000 (14:40 +0200)
commite0fb0d2b798c0149d1a98dcfcd97436f615cb613
treeaeb4d9fd839af841a6566f8b020ecf145fe649e5
parenta6daf468094325286f52de3b3b505f5809cc0651
media: mediatek: vcodec: Add vdec enable/disable hardware helpers

Lock, power and clock are highly coupled operations. Adds vdec
enable/disable hardware helpers and uses them.

Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: Tzung-Bi Shih<tzungbi@google.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: NĂ­colas F. R. A. Prado <nfraprado@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/mtk_vcodec_dec_drv.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_pm.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_pm.h
drivers/media/platform/mediatek/vcodec/vdec_drv_if.c
drivers/media/platform/mediatek/vcodec/vdec_msg_queue.c