[media] coda: fix encoder rate control parameter masks
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 23 Jan 2015 16:51:15 +0000 (13:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Feb 2015 11:58:49 +0000 (09:58 -0200)
This patch fixes the ENC_SEQ_RC_PARA initial delay and bitrate masks.
These bit fields are 15 bit wide, not 7 bit.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/coda/coda_regs.h

index 8e015b8aa8fa01df3459837e06076bb8c295f813..7d026241171bc539aff9320c221c81365ca83b6d 100644 (file)
 #define                CODA_RATECONTROL_AUTOSKIP_OFFSET                31
 #define                CODA_RATECONTROL_AUTOSKIP_MASK                  0x01
 #define                CODA_RATECONTROL_INITIALDELAY_OFFSET            16
-#define                CODA_RATECONTROL_INITIALDELAY_MASK              0x7f
+#define                CODA_RATECONTROL_INITIALDELAY_MASK              0x7fff
 #define                CODA_RATECONTROL_BITRATE_OFFSET         1
-#define                CODA_RATECONTROL_BITRATE_MASK                   0x7f
+#define                CODA_RATECONTROL_BITRATE_MASK                   0x7fff
 #define                CODA_RATECONTROL_ENABLE_OFFSET                  0
 #define                CODA_RATECONTROL_ENABLE_MASK                    0x01
 #define CODA_CMD_ENC_SEQ_RC_BUF_SIZE                           0x1b0