| .. | .. |
|---|
| 669 | 669 | struct rkisp_hw_dev *hw = ispdev->hw_dev; |
|---|
| 670 | 670 | struct v4l2_subdev *sd = v4l2_get_subdev_hostdata(&dev->sd); |
|---|
| 671 | 671 | unsigned long lock_flags = 0; |
|---|
| 672 | | - u64 ns = ktime_get_ns(); |
|---|
| 672 | + u64 ns = rkisp_time_get_ns(ispdev); |
|---|
| 673 | 673 | struct rkisp_bridge_buf *buf; |
|---|
| 674 | 674 | u32 val; |
|---|
| 675 | 675 | |
|---|
| .. | .. |
|---|
| 711 | 711 | if (!sof_ns) |
|---|
| 712 | 712 | sof_ns = 0; |
|---|
| 713 | 713 | if (!ns) |
|---|
| 714 | | - ns = ktime_get_ns(); |
|---|
| 714 | + ns = rkisp_time_get_ns(ispdev); |
|---|
| 715 | 715 | hw->cur_buf->frame_timestamp = ns; |
|---|
| 716 | 716 | hw->cur_buf->index = ispdev->dev_id; |
|---|
| 717 | 717 | v4l2_subdev_call(sd, core, ioctl, RKISP_ISPP_CMD_REQUEST_REGBUF, |
|---|
| .. | .. |
|---|
| 744 | 744 | buf = to_bridge_buf(hw->cur_buf); |
|---|
| 745 | 745 | vaddr = buf->dummy[GROUP_BUF_PIC].vaddr; |
|---|
| 746 | 746 | size = buf->dummy[GROUP_BUF_PIC].size; |
|---|
| 747 | | - *(u64 *)(vaddr + size / 4 - 2) = ktime_get_ns(); |
|---|
| 747 | + *(u64 *)(vaddr + size / 4 - 2) = rkisp_time_get_ns(ispdev); |
|---|
| 748 | 748 | |
|---|
| 749 | 749 | vaddr = buf->dummy[GROUP_BUF_GAIN].vaddr; |
|---|
| 750 | 750 | size = buf->dummy[GROUP_BUF_GAIN].size; |
|---|
| 751 | | - *(u64 *)(vaddr + size / 4 - 2) = ktime_get_ns(); |
|---|
| 751 | + *(u64 *)(vaddr + size / 4 - 2) = rkisp_time_get_ns(ispdev); |
|---|
| 752 | 752 | hw->cur_buf->mfbc_dmaidx = hw->cur_buf->didx[GROUP_BUF_PIC]; |
|---|
| 753 | 753 | hw->cur_buf->gain_dmaidx = hw->cur_buf->didx[GROUP_BUF_GAIN]; |
|---|
| 754 | 754 | hw->cur_buf->is_move_judge = true; |
|---|