[media] s5p-mfc: Fixed setup of custom controls in decoder and encoder
Fixed bugs in functions that initialize custom controls. Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
a7deca6fa7
commit
a65c3262a7
@ -996,6 +996,7 @@ int s5p_mfc_dec_ctrls_setup(struct s5p_mfc_ctx *ctx)
|
||||
|
||||
for (i = 0; i < NUM_CTRLS; i++) {
|
||||
if (IS_MFC51_PRIV(controls[i].id)) {
|
||||
memset(&cfg, 0, sizeof(struct v4l2_ctrl_config));
|
||||
cfg.ops = &s5p_mfc_dec_ctrl_ops;
|
||||
cfg.id = controls[i].id;
|
||||
cfg.min = controls[i].minimum;
|
||||
|
@ -1773,6 +1773,7 @@ int s5p_mfc_enc_ctrls_setup(struct s5p_mfc_ctx *ctx)
|
||||
}
|
||||
for (i = 0; i < NUM_CTRLS; i++) {
|
||||
if (IS_MFC51_PRIV(controls[i].id)) {
|
||||
memset(&cfg, 0, sizeof(struct v4l2_ctrl_config));
|
||||
cfg.ops = &s5p_mfc_enc_ctrl_ops;
|
||||
cfg.id = controls[i].id;
|
||||
cfg.min = controls[i].minimum;
|
||||
|
Loading…
Reference in New Issue
Block a user