[osal]: Fix encoder not working problem at vepu2

For vepu2, kernel 4.4 and previous version, '/dev/vepu' should be used
rather than '/dev/vpu_service'.

Change-Id: I2efd4a219bbd7dd3cebf226c8ebcede9bcff9823
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
This commit is contained in:
Johnson Ding
2020-12-23 10:02:59 +08:00
parent b1963d2087
commit 873f509da9

View File

@@ -442,6 +442,8 @@ MPP_RET vcodec_service_init(void *ctx, MppClientType type)
reg_size = VEPU1_REGISTERS;
} break;
case VPU_CLIENT_VEPU2 : {
name = mpp_find_device(mpp_vepu_dev);
if (NULL == name)
name = mpp_find_device(mpp_vpu_dev);
client_type = VPU_ENC;
reg_size = VEPU2_REGISTERS;