summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/s5p-mfc/s5p_mfc_enc.c
diff options
context:
space:
mode:
authorKamil Debski2012-06-26 09:44:40 +0200
committerMauro Carvalho Chehab2012-07-07 00:36:29 +0200
commita65c3262a766311d4704a9ea29354480c5e8590d (patch)
tree8aefe44bfa843962450629111dd1d4a572a5ebff /drivers/media/video/s5p-mfc/s5p_mfc_enc.c
parent[media] cx231xx: don't DMA to random addresses (diff)
downloadkernel-qcow2-linux-a65c3262a766311d4704a9ea29354480c5e8590d.tar.gz
kernel-qcow2-linux-a65c3262a766311d4704a9ea29354480c5e8590d.tar.xz
kernel-qcow2-linux-a65c3262a766311d4704a9ea29354480c5e8590d.zip
[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>
Diffstat (limited to 'drivers/media/video/s5p-mfc/s5p_mfc_enc.c')
-rw-r--r--drivers/media/video/s5p-mfc/s5p_mfc_enc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/s5p-mfc/s5p_mfc_enc.c b/drivers/media/video/s5p-mfc/s5p_mfc_enc.c
index 03d83340e7fb..158b78989b89 100644
--- a/drivers/media/video/s5p-mfc/s5p_mfc_enc.c
+++ b/drivers/media/video/s5p-mfc/s5p_mfc_enc.c
@@ -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;