[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <15267045-045d-484a-b645-3c485a89bf12@collabora.com>
Date: Mon, 11 Mar 2024 11:35:17 +0100
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
To: Sebastian Fricke <sebastian.fricke@...labora.com>,
Tiffany Lin <tiffany.lin@...iatek.com>,
Andrew-CT Chen <andrew-ct.chen@...iatek.com>,
Yunfei Dong <yunfei.dong@...iatek.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-mediatek@...ts.infradead.org,
kernel@...labora.com
Subject: Re: [PATCH 3/3] media: mediatek: vcodec: Replace false function
description
Il 09/03/24 16:08, Sebastian Fricke ha scritto:
> The function descriptions where falsely copy pasted from another entry,
> write more fitting descriptions for the functions.
>
> Signed-off-by: Sebastian Fricke <sebastian.fricke@...labora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
> ---
> .../platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_common.h | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_common.h b/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_common.h
> index 6f624c266246..2d845b1307b6 100644
> --- a/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_common.h
> +++ b/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_common.h
> @@ -185,7 +185,7 @@ void mtk_vdec_h264_get_ref_list(u8 *ref_list,
> void *mtk_vdec_h264_get_ctrl_ptr(struct mtk_vcodec_dec_ctx *ctx, int id);
>
> /**
> - * mtk_vdec_h264_fill_dpb_info - get each CID contrl address.
> + * mtk_vdec_h264_fill_dpb_info - Fill the decoded picture buffer info
> *
> * @ctx: v4l2 ctx
> * @decode_params: slice decode params
> @@ -225,7 +225,9 @@ void mtk_vdec_h264_copy_slice_hd_params(struct mtk_h264_slice_hd_param *dst_para
> const struct v4l2_ctrl_h264_decode_params *dec_param);
>
> /**
> - * mtk_vdec_h264_copy_scaling_matrix - get each CID contrl address.
> + * mtk_vdec_h264_copy_scaling_matrix - Copy the scaling matrix from a source to
> + * a destination.
> + * (for example into the slice parameters)
That should be a short description; the "for example into the slice parameters"
along with a longer description go in the long description part of the doc.
/*
* mtk_vdec_h264_copy_scaling_matrix - Copy scaling matrix from HW to driver
* @dst_matrix: .....
* @src_matrix: ....
*
* This function copies the scaling matrix from the hardware decoder (format?
* structs? registers? what?) to the driver's scaling matrix structure, because
* this that and the other tell me why we would ever need to do this, as this
* is a long description of what this function does.
* If a long description is not needed, just avoid it, of course.
*
* Return: some value for something, some other for something else
*
* This return value, as described, is so useful! :-)
*/
Cheers,
Angelo
Powered by blists - more mailing lists