media: rockchip: isp: fix link setup error

Change-Id: Ie357ae811627f861ba002d1de82adfe61d45b42f
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2020-06-02 15:21:19 +08:00
committed by Tao Huang
parent 5dedb0163a
commit eebf9acd6d

View File

@@ -1582,7 +1582,8 @@ static int rkisp_subdev_link_setup(struct media_entity *entity,
struct rkisp_stream *stream = NULL;
u8 rawrd = INP_RAWRD0 | INP_RAWRD1 | INP_RAWRD2;
if (local->index != RKISP_ISP_PAD_SINK)
if (local->index != RKISP_ISP_PAD_SINK &&
local->index != RKISP_ISP_PAD_SOURCE_PATH)
return 0;
if (!sd)
return -ENODEV;