media: mediatek: vcodec: Avoid unneeded error logging
authorYunfei Dong <yunfei.dong@mediatek.com>
Thu, 25 May 2023 01:40:06 +0000 (02:40 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 26 May 2023 09:54:22 +0000 (10:54 +0100)
commit15ff9e7f49bc107fce067d8b0ea5ebf4bd9fc9cf
treee7bdb3c99a04539b97c16d981258fe52d2d5947c
parent2f16c95e7aa9716f7332b30d578dc496399d7d8f
media: mediatek: vcodec: Avoid unneeded error logging

Since the LAT decoder works faster than its CORE, getting the trans
buffer may be done only after CORE finishes processing: avoid printing
an error if the decode function returns -EAGAIN, as this means that
the buffer from CORE is not yet available, but will be at a later time.

Also change the log level for calls to vdec_msg_queue_dqbuf() in H264
and VP9 LAT decoder drivers to avoid excessive logging.

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/mtk_vcodec_dec_stateless.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_h264_req_multi_if.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_req_lat_if.c