mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
media: rockchip: isp: clear csi rdbk fifo when first open
Change-Id: Ib6ccf4656d1ce4926364736bdba9f7c03aab8141 Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
@@ -1614,11 +1614,13 @@ static int rkisp_isp_sd_s_power(struct v4l2_subdev *sd, int on)
|
||||
v4l2_dbg(1, rkisp_debug, &isp_dev->v4l2_dev,
|
||||
"%s on:%d\n", __func__, on);
|
||||
|
||||
if (on)
|
||||
if (on) {
|
||||
if (isp_dev->isp_ver == ISP_V20)
|
||||
kfifo_reset(&isp_dev->csi_dev.rdbk_kfifo);
|
||||
ret = pm_runtime_get_sync(isp_dev->dev);
|
||||
else
|
||||
} else {
|
||||
ret = pm_runtime_put(isp_dev->dev);
|
||||
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user