mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
rk30: vpu_service: extend encoder buffer size for rk30
This commit is contained in:
@@ -39,8 +39,13 @@
|
||||
#define VPU_REG_NUM_PP (41)
|
||||
// client type: decoder plus post-process<73><73>101 registers, size 404B
|
||||
#define VPU_REG_NUM_DEC_PP (VPU_REG_NUM_DEC+VPU_REG_NUM_PP)
|
||||
// client type: encoder only<6C><79>96 registers, size 384B
|
||||
#if defined(CONFIG_ARCH_RK29)
|
||||
// client type: encoder only: 96 registers, size 384B for rk29
|
||||
#define VPU_REG_NUM_ENC (96)
|
||||
#elif defined(CONFIG_ARCH_RK30)
|
||||
// client type: encoder only: 164 registers, size 384B for rk30
|
||||
#define VPU_REG_NUM_ENC (164)
|
||||
#endif
|
||||
|
||||
typedef enum VPU_CLIENT_TYPE {
|
||||
VPU_ENC = 0x0,
|
||||
|
||||
@@ -57,12 +57,21 @@
|
||||
|
||||
#define REG_NUM_DEC (60)
|
||||
#define REG_NUM_PP (41)
|
||||
#if defined(CONFIG_ARCH_RK29)
|
||||
#define REG_NUM_ENC (96)
|
||||
#elif defined(CONFIG_ARCH_RK30)
|
||||
#define REG_NUM_ENC (164)
|
||||
#endif
|
||||
#define REG_NUM_DEC_PP (REG_NUM_DEC+REG_NUM_PP)
|
||||
#define SIZE_REG(reg) ((reg)*4)
|
||||
|
||||
#define DEC_IO_SIZE ((100 + 1) * 4) /* bytes */
|
||||
#if defined(CONFIG_ARCH_RK29)
|
||||
#define ENC_IO_SIZE (96 * 4) /* bytes */
|
||||
#elif defined(CONFIG_ARCH_RK30)
|
||||
#define ENC_IO_SIZE (164 * 4) /* bytes */
|
||||
#endif
|
||||
#define REG_NUM_DEC_PP (REG_NUM_DEC+REG_NUM_PP)
|
||||
static const u16 dec_hw_ids[] = { 0x8190, 0x8170, 0x9170, 0x9190, 0x6731 };
|
||||
#if defined(CONFIG_ARCH_RK29)
|
||||
static const u16 enc_hw_ids[] = { 0x6280, 0x7280, 0x8270 };
|
||||
|
||||
Reference in New Issue
Block a user