From 094d9a9146c39dc2ec68c21362da85113342f605 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=99=88=E6=81=92=E6=98=8E?= Date: Tue, 10 Apr 2012 10:13:45 +0800 Subject: [PATCH] rk30: vpu_service: move reset before set the codec register --- arch/arm/plat-rk/vpu_service.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/plat-rk/vpu_service.c b/arch/arm/plat-rk/vpu_service.c index e9aa4937ea3d..74d4cbb82b7f 100644 --- a/arch/arm/plat-rk/vpu_service.c +++ b/arch/arm/plat-rk/vpu_service.c @@ -448,11 +448,10 @@ void reg_copy_to_hw(vpu_reg *reg) switch (reg->type) { case VPU_ENC : { u32 *dst = (u32 *)enc_dev.hwregs; - service.reg_codec = reg; - #if defined(CONFIG_ARCH_RK30) vpu_reset(); #endif + service.reg_codec = reg; dst[VPU_REG_EN_ENC] = src[VPU_REG_EN_ENC] & 0x6; -- 2.34.1