video: rockchip: rkvdec: add a new device id
authorRandy Li <randy.li@rock-chips.com>
Mon, 17 Apr 2017 02:25:49 +0000 (10:25 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 24 Apr 2017 02:42:38 +0000 (10:42 +0800)
RKVDEC second generation uses a new device id.
It is the new generation of the RKV decoder found on
the RK3328 platform.

Change-Id: I63891b7f774e68d8820f1a9c88052795af37f99d
Signed-off-by: Randy Li <randy.li@rock-chips.com>
drivers/video/rockchip/vcodec/vcodec_hw_info.h
drivers/video/rockchip/vcodec/vcodec_service.c

index c9102c6beae090c03ccf488e2079fc8213a9b16e..a394650a653fe00c83023cd5fed8a58707e00172 100644 (file)
@@ -28,6 +28,7 @@ enum VPU_HW_ID {
        VPU_ID_4831             = 0x4831,
        HEVC_ID                 = 0x6867,
        RKV_DEC_ID              = 0x6876,
+       RKV_DEC_ID2             = 0x3410,
        VPU2_ID                 = 0x0000,
 };
 
index 5fba743e63b4775eccaf60b0c79029def6ed35f8..f8b6760e1de9ea306e3d4cfaad9fa13ccf289623 100644 (file)
@@ -175,6 +175,12 @@ static const struct vcodec_info vcodec_info_set[] = {
                .task_info      = task_vpu2,
                .trans_info     = trans_vpu2,
        },
+       {
+               .hw_id          = RKV_DEC_ID2,
+               .hw_info        = &hw_rkvdec,
+               .task_info      = task_rkv,
+               .trans_info     = trans_rkv,
+       },
 };
 
 /* Both VPU1 and VPU2 */
@@ -2411,7 +2417,7 @@ static int vcodec_subdev_probe(struct platform_device *pdev,
        }
 
        data->child_dev = device_create(data->cls, dev,
-               data->dev_t, "%s", name);
+               data->dev_t, NULL, "%s", name);
 
        platform_set_drvdata(pdev, data);