.. | .. |
---|
193 | 193 | |
---|
194 | 194 | struct rkcif_tools_buffer { |
---|
195 | 195 | struct vb2_v4l2_buffer *vb; |
---|
| 196 | + struct rkisp_rx_buf *dbufs; |
---|
196 | 197 | struct list_head list; |
---|
197 | 198 | u32 frame_idx; |
---|
198 | 199 | u64 timestamp; |
---|
.. | .. |
---|
279 | 280 | unsigned int width; |
---|
280 | 281 | unsigned int height; |
---|
281 | 282 | unsigned int virtual_width; |
---|
| 283 | + unsigned int left_virtual_width; |
---|
282 | 284 | unsigned int crop_st_x; |
---|
283 | 285 | unsigned int crop_st_y; |
---|
284 | 286 | unsigned int dsi_input; |
---|
285 | 287 | struct rkmodule_lvds_cfg lvds_cfg; |
---|
| 288 | + struct rkmodule_capture_info capture_info; |
---|
286 | 289 | }; |
---|
287 | 290 | |
---|
288 | 291 | struct rkcif_vdev_node { |
---|
.. | .. |
---|
526 | 529 | unsigned int cur_stream_mode; |
---|
527 | 530 | struct rkcif_rx_buffer rx_buf[RKISP_VICAP_BUF_CNT_MAX]; |
---|
528 | 531 | struct list_head rx_buf_head; |
---|
529 | | - int buf_num_toisp; |
---|
| 532 | + int total_buf_num; |
---|
530 | 533 | u64 line_int_cnt; |
---|
531 | 534 | int lack_buf_cnt; |
---|
532 | 535 | unsigned int buf_wake_up_cnt; |
---|
.. | .. |
---|
536 | 539 | int last_rx_buf_idx; |
---|
537 | 540 | int last_frame_idx; |
---|
538 | 541 | int new_fource_idx; |
---|
| 542 | + atomic_t buf_cnt; |
---|
539 | 543 | bool stopping; |
---|
540 | 544 | bool crop_enable; |
---|
541 | 545 | bool crop_dyn_en; |
---|
.. | .. |
---|
552 | 556 | bool is_in_vblank; |
---|
553 | 557 | bool is_change_toisp; |
---|
554 | 558 | bool is_stop_capture; |
---|
| 559 | + bool is_wait_dma_stop; |
---|
555 | 560 | }; |
---|
556 | 561 | |
---|
557 | 562 | struct rkcif_lvds_subdev { |
---|
.. | .. |
---|
841 | 846 | struct rkcif_work_struct reset_work; |
---|
842 | 847 | int id_use_cnt; |
---|
843 | 848 | unsigned int csi_host_idx; |
---|
| 849 | + unsigned int csi_host_idx_def; |
---|
844 | 850 | unsigned int dvp_sof_in_oneframe; |
---|
845 | 851 | unsigned int wait_line; |
---|
846 | 852 | unsigned int wait_line_bak; |
---|
.. | .. |
---|
883 | 889 | int rkcif_scale_start(struct rkcif_scale_vdev *scale_vdev); |
---|
884 | 890 | |
---|
885 | 891 | const struct |
---|
886 | | -cif_input_fmt *get_input_fmt(struct v4l2_subdev *sd, |
---|
| 892 | +cif_input_fmt *rkcif_get_input_fmt(struct rkcif_device *dev, |
---|
887 | 893 | struct v4l2_rect *rect, |
---|
888 | 894 | u32 pad_id, struct csi_channel_info *csi_info); |
---|
889 | 895 | |
---|