| .. | .. |
|---|
| 1240 | 1240 | data++; |
|---|
| 1241 | 1241 | } |
|---|
| 1242 | 1242 | if (!ns) |
|---|
| 1243 | | - ns = ktime_get_ns(); |
|---|
| 1243 | + ns = rkisp_time_get_ns(dev); |
|---|
| 1244 | 1244 | stream->curr_buf->vb.vb2_buf.timestamp = ns; |
|---|
| 1245 | 1245 | stream->curr_buf->vb.sequence = seq; |
|---|
| 1246 | 1246 | vb2_set_plane_payload(&stream->curr_buf->vb.vb2_buf, 0, val * 4); |
|---|
| .. | .. |
|---|
| 1455 | 1455 | |
|---|
| 1456 | 1456 | rkisp_dmarx_get_frame(dev, &i, NULL, &ns, true); |
|---|
| 1457 | 1457 | if (!ns) |
|---|
| 1458 | | - ns = ktime_get_ns(); |
|---|
| 1458 | + ns = rkisp_time_get_ns(dev); |
|---|
| 1459 | 1459 | buf->vb.sequence = i; |
|---|
| 1460 | 1460 | buf->vb.vb2_buf.timestamp = ns; |
|---|
| 1461 | | - ns = ktime_get_ns(); |
|---|
| 1461 | + ns = rkisp_time_get_ns(dev); |
|---|
| 1462 | 1462 | stream->dbg.interval = ns - stream->dbg.timestamp; |
|---|
| 1463 | 1463 | stream->dbg.delay = ns - dev->isp_sdev.frm_timestamp; |
|---|
| 1464 | 1464 | stream->dbg.timestamp = ns; |
|---|
| .. | .. |
|---|
| 2325 | 2325 | wake_up(&stream->done); |
|---|
| 2326 | 2326 | } |
|---|
| 2327 | 2327 | } else if (stream->id == RKISP_STREAM_MP && dev->cap_dev.wrap_line) { |
|---|
| 2328 | | - ns = ktime_get_ns(); |
|---|
| 2328 | + ns = rkisp_time_get_ns(dev); |
|---|
| 2329 | 2329 | rkisp_dmarx_get_frame(dev, &seq, NULL, NULL, true); |
|---|
| 2330 | 2330 | stream->dbg.interval = ns - stream->dbg.timestamp; |
|---|
| 2331 | 2331 | stream->dbg.delay = ns - dev->isp_sdev.frm_timestamp; |
|---|