[PATCH v17 03/12] media: mediatek: jpeg: fix buffer structure size and layout

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Tue Sep 22 04:40:07 PDT 2026


On 9/22/26 11:15, Kyrie Wu wrote:
> Updates the `buf_struct_size` in the JPEG driver to use the correct
> structure `mtk_jpeg_src_buf` instead of `v4l2_m2m_buffer`, ensuring
> proper handling of source buffers. The previous buffer size led to
> mismatches and potential issues during video buffer handling.
> 
> Moves `frame_num` in the `mtk_jpeg_src_buf` structure to align with
> other members appropriately. The first field of the driver-specific
> buffer structure must be the subsystem-specificstruct
> (vb2_v4l2_buffer in the case of V4L2).
> 
> Fixes: 5fb1c2361e56 ("mtk-jpegenc: add jpeg encode worker interface")
> Signed-off-by: Kyrie Wu <kyrie.wu at mediatek.com>
> Reviewed-by: Nicolas Dufresne <nicolas.dufresne at collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>




More information about the linux-arm-kernel mailing list