*
* @author ChenHengming (2011-5-4)
*/
+#define VPU_REG_NUM_MAX (((VPU_REG_NUM_ENC)>(VPU_REG_NUM_DEC_PP))?(VPU_REG_NUM_ENC):(VPU_REG_NUM_DEC_PP))
typedef struct vpu_reg {
VPU_CLIENT_TYPE type;
vpu_session *session;
struct list_head session_link; /* link to vpu service session */
struct list_head status_link; /* link to register set list */
unsigned long size;
- unsigned long reg[VPU_REG_NUM_DEC_PP];
+ unsigned long reg[VPU_REG_NUM_MAX];
} vpu_reg;
typedef struct vpu_device {
u32 *dst = (u32 *)enc_dev.hwregs;
service.reg_codec = reg;
+ vpu_reset();
+
dst[VPU_REG_EN_ENC] = src[VPU_REG_EN_ENC] & 0x6;
for (i = 0; i < VPU_REG_EN_ENC; i++)