Commit 63b71f31 authored by Yunfei Dong's avatar Yunfei Dong Committed by Mauro Carvalho Chehab

media: mediatek: vcodec: fix unreasonable parameter definition and style

Fix unreasonable coding style.
Fix unreasonable parameter definition.
Signed-off-by: default avatarYunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: default avatarNicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 31272a39
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#define IS_VDEC_INNER_RACING(capability) ((capability) & MTK_VCODEC_INNER_RACING) #define IS_VDEC_INNER_RACING(capability) ((capability) & MTK_VCODEC_INNER_RACING)
/* /*
* struct mtk_vdec_format_types - Structure used to get supported * enum mtk_vdec_format_types - Structure used to get supported
* format types according to decoder capability * format types according to decoder capability
*/ */
enum mtk_vdec_format_types { enum mtk_vdec_format_types {
...@@ -258,7 +258,7 @@ struct mtk_vcodec_dec_dev { ...@@ -258,7 +258,7 @@ struct mtk_vcodec_dec_dev {
struct regmap *vdecsys_regmap; struct regmap *vdecsys_regmap;
struct mtk_vcodec_fw *fw_handler; struct mtk_vcodec_fw *fw_handler;
unsigned long id_counter; u64 id_counter;
/* decoder hardware mutex lock */ /* decoder hardware mutex lock */
struct mutex dec_mutex[MTK_VDEC_HW_MAX]; struct mutex dec_mutex[MTK_VDEC_HW_MAX];
......
...@@ -32,13 +32,13 @@ ...@@ -32,13 +32,13 @@
*/ */
struct mtk_vcodec_enc_pdata { struct mtk_vcodec_enc_pdata {
bool uses_ext; bool uses_ext;
unsigned long min_bitrate; u64 min_bitrate;
unsigned long max_bitrate; u64 max_bitrate;
const struct mtk_video_fmt *capture_formats; const struct mtk_video_fmt *capture_formats;
size_t num_capture_formats; size_t num_capture_formats;
const struct mtk_video_fmt *output_formats; const struct mtk_video_fmt *output_formats;
size_t num_output_formats; size_t num_output_formats;
int core_id; u8 core_id;
bool uses_34bit; bool uses_34bit;
}; };
...@@ -198,7 +198,7 @@ struct mtk_vcodec_enc_dev { ...@@ -198,7 +198,7 @@ struct mtk_vcodec_enc_dev {
const struct mtk_vcodec_enc_pdata *venc_pdata; const struct mtk_vcodec_enc_pdata *venc_pdata;
struct mtk_vcodec_fw *fw_handler; struct mtk_vcodec_fw *fw_handler;
unsigned long id_counter; u64 id_counter;
/* encoder hardware mutex lock */ /* encoder hardware mutex lock */
struct mutex enc_mutex; struct mutex enc_mutex;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment