media: mediatek: vcodec: remove the dependency of vcodec debug log
authorYunfei Dong <yunfei.dong@mediatek.com>
Sat, 29 Jul 2023 02:55:08 +0000 (10:55 +0800)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Aug 2023 05:58:33 +0000 (07:58 +0200)
commit0db2fc4eec23e4c92abee357e98d9f97998098b4
tree9a09f0c483efcd96a4e58bc1db3a48fd597cbe69
parent17834e0a4db51a01a374f5fad70c8a3d2773644c
media: mediatek: vcodec: remove the dependency of vcodec debug log

'mtk_vcodec_debug' and 'mtk_vcodec_err' depends on 'mtk_vcodec_ctx'
to get the index of each instance. Define two different macro
mtk_vdec_debug and mtk_venc_debug for decoder and encoder, and re-write
macro mtk_vcodec_debug as the common interface which is called
by mtk_vdec_debug and mtk_venc_debug. The vcodec debug log can be
separeated by encoder and decoder.

Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
14 files changed:
drivers/media/platform/mediatek/vcodec/mtk_vcodec_util.h
drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_h264_if.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_h264_req_if.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_h264_req_multi_if.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_hevc_req_multi_if.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_vp8_if.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_vp8_req_if.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_req_lat_if.c
drivers/media/platform/mediatek/vcodec/vdec_vpu_if.c
drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c
drivers/media/platform/mediatek/vcodec/venc/venc_vp8_if.c
drivers/media/platform/mediatek/vcodec/venc_vpu_if.c