]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: mediatek: vcodec: add description for vsi struct
authorYunfei Dong <yunfei.dong@mediatek.com>
Sat, 8 Mar 2025 07:47:57 +0000 (15:47 +0800)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 11 Apr 2025 11:21:14 +0000 (13:21 +0200)
The vsi (video shared information) struct needs to be synchronized
between firmware and host, as a change that is only done in the host
version of the struct but isn't synchronized to the firmware. This can
lead to decoding issues with H264 bitstreams. Highlight this requirement
within the struct descriptions.

Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_multi_if.c

index 13d14187e4f5ef0209745383bb5d723080f0ab7e..5b25e1679b512cb39de0c0da2f7b2fb5adc46a94 100644 (file)
@@ -30,6 +30,7 @@ enum vdec_h264_core_dec_err_type {
 
 /**
  * struct vdec_h264_slice_lat_dec_param  - parameters for decode current frame
+ *     (shared data between host and firmware)
  *
  * @sps:               h264 sps syntax parameters
  * @pps:               h264 pps syntax parameters
@@ -48,7 +49,7 @@ struct vdec_h264_slice_lat_dec_param {
 };
 
 /**
- * struct vdec_h264_slice_info - decode information
+ * struct vdec_h264_slice_info - decode information (shared data between host and firmware)
  *
  * @nal_info:          nal info of current picture
  * @timeout:           Decode timeout: 1 timeout, 0 no timeout
@@ -72,7 +73,7 @@ struct vdec_h264_slice_info {
 
 /**
  * struct vdec_h264_slice_vsi - shared memory for decode information exchange
- *        between SCP and Host.
+ *        between SCP and Host (shared data between host and firmware).
  *
  * @wdma_err_addr:        wdma error dma address
  * @wdma_start_addr:      wdma start dma address