diff options
Diffstat (limited to 'drivers/media/video/mx2_camera.c')
-rw-r--r-- | drivers/media/video/mx2_camera.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/mx2_camera.c b/drivers/media/video/mx2_camera.c index 026bef0ba403..66ff174151b5 100644 --- a/drivers/media/video/mx2_camera.c +++ b/drivers/media/video/mx2_camera.c | |||
@@ -785,6 +785,8 @@ static int mx2_camera_set_bus_param(struct soc_camera_device *icd, | |||
785 | if (ret < 0) | 785 | if (ret < 0) |
786 | return ret; | 786 | return ret; |
787 | 787 | ||
788 | if (common_flags & SOCAM_PCLK_SAMPLE_RISING) | ||
789 | csicr1 |= CSICR1_REDGE; | ||
788 | if (common_flags & SOCAM_PCLK_SAMPLE_FALLING) | 790 | if (common_flags & SOCAM_PCLK_SAMPLE_FALLING) |
789 | csicr1 |= CSICR1_INV_PCLK; | 791 | csicr1 |= CSICR1_INV_PCLK; |
790 | if (common_flags & SOCAM_VSYNC_ACTIVE_HIGH) | 792 | if (common_flags & SOCAM_VSYNC_ACTIVE_HIGH) |
@@ -1201,7 +1203,7 @@ static void mx27_camera_frame_done_emma(struct mx2_camera_dev *pcdev, | |||
1201 | buf = list_entry(pcdev->capture.next, | 1203 | buf = list_entry(pcdev->capture.next, |
1202 | struct mx2_buffer, vb.queue); | 1204 | struct mx2_buffer, vb.queue); |
1203 | 1205 | ||
1204 | buf->bufnum = bufnum; | 1206 | buf->bufnum = !bufnum; |
1205 | 1207 | ||
1206 | list_move_tail(pcdev->capture.next, &pcdev->active_bufs); | 1208 | list_move_tail(pcdev->capture.next, &pcdev->active_bufs); |
1207 | 1209 | ||