1. 19 Nov, 2012 3 commits
  2. 06 Nov, 2012 2 commits
  3. 23 Oct, 2012 4 commits
  4. 19 Oct, 2012 1 commit
  5. 17 Oct, 2012 2 commits
  6. 16 Oct, 2012 2 commits
  7. 15 Oct, 2012 1 commit
    • Sheng Nan's avatar
      ENGR00211376 Capture: ov5640_mipi: the QVGA is brighter · bb71ae44
      Sheng Nan authored
      change ov5640_init_mode sequence according to ov's suggestion
      
      ov5640 support two method of size switching, scaling and subsampling
      exposure calculation when change size between scaling and subsampling
      - scaling: image size bigger than 1280*960
      - subsampling: image size smaller than 1280*960
      
      This patch changes the sequence of ov5640_init_mode()
      1. setting mipi csi2 (no change).
      2. check mode
      - if it is in INIT_MODE, go throught initial procedure
      - if sensor changes between scaling and subsampling,
        go through exposure calcualtion
      - otherwise, configure mode directly.
      3. other procedures keep the same.
      Signed-off-by: default avatarSheng Nan <b38800@freescale.com>
      bb71ae44
  8. 13 Oct, 2012 3 commits
  9. 11 Oct, 2012 2 commits
    • Liu Ying's avatar
      ENGR00227472 MXC V4L2 capture:Improve resource lock · 020ad348
      Liu Ying authored
      1) We get busy_lock semaphore before we get a dqueue event, so, when user
      is blocked at DQBUF ioctrl, the user will also be blocked at QBUF ioctrl,
      then the video performance will drop. This patch changes to get busy_lock
      semaphore to protect DQBUF ioctrl until we successfully get a dqueue event.
      2) Use queue_int_lock and dqueue_int_lock spinlocks to protect working_q/
      ready_q/done_q in the end of frame interrupt handler camera_callback(), in
      case, the handler and VIDIOC_QBUF/VIDIOC_DQBUF ioctrls are called on diff-
      erent cores at the same time.
      3) Protect ready_q with queue_int_lock spinlock in mxc_streamon(), in case,
      VIDIOC_STREAMON and VIDIOC_QBUF ioctrls are called on different cores at
      the same time.
      Signed-off-by: default avatarLiu Ying <Ying.Liu@freescale.com>
      (cherry picked from commit e92c2307)
      020ad348
    • Liu Ying's avatar
      ENGR00224912 mxc v4l2 capture:Correct mclk enable/disable · f9877d97
      Liu Ying authored
      1) Change to enable/disable mclk only in open, release,
      suspend and resume functions, since we may simply think that
      sensor or mclk will be used soon after cam->open_count is non-zero.
      2) Fix a bug when calling ipu_csi_enable_mclk_if() with wrong
      parameter(cam->csi should be cam->mclk_source) in mxc_v4l2_close()
      and in mxc_v4l2_s_ctrl() with V4L2_CID_MXC_SWITCH_CAM control id.
      Signed-off-by: default avatarLiu Ying <Ying.Liu@freescale.com>
      (cherry picked from commit be689b81)
      f9877d97
  10. 10 Oct, 2012 1 commit
  11. 09 Oct, 2012 1 commit
    • Robby Cai's avatar
      ENGR00227502-1 csi/v4l2: Implement probe and remove function for csi v4l2 driver · 67b160dd
      Robby Cai authored
      Because csi_v4l2 driver will only be loaded when needed(by assign 'csi' in
      kernel cmdline), we use standard driver framework to easily bind the device and
      driver. Otherwise, we will meet the problem like the crash as below when do
      suspend/resume due to the resource of csi not assigned at all if 'csi' not
      passed in cmdline.
      
      root@freescale ~$ echo mem > /sys/power/state
      PM: Syncing filesystems ... done.
      Freezing user space processes ... (elapsed 0.01 seconds) done.
      Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
      Unable to handle kernel NULL pointer dereference at virtual address 00000000
      pgd = 9a8ac000
      [00000000] *pgd=9a783831, *pte=00000000, *ppte=00000000
      Internal error: Oops: 17 [#1] PREEMPT
      Modules linked in:
      CPU: 0    Not tainted  (3.0.35-02115-g08f4436 #233)
      PC is at csi_enable_mclk+0x40/0x68
      LR is at camera_power+0x1c/0x5c
      pc : [<80357f08>]    lr : [<80358154>]    psr: 60000013
      sp : 9a8ebe30  ip : 00000009  fp : 00000006
      r10: 1c6bddf7  r9 : 00000000  r8 : 00000000
      r7 : 00000002  r6 : 804fd0ac  r5 : 9a013000  r4 : 00000000
      r3 : 80aa8bbc  r2 : 00000000  r1 : 00000000  r0 : 00000008
      ...
      Signed-off-by: default avatarRobby Cai <R63905@freescale.com>
      67b160dd
  12. 29 Sep, 2012 3 commits
  13. 26 Sep, 2012 1 commit
  14. 19 Sep, 2012 1 commit
  15. 27 Aug, 2012 1 commit
  16. 24 Aug, 2012 1 commit
  17. 18 Aug, 2012 1 commit
  18. 15 Aug, 2012 1 commit
    • Liu Ying's avatar
      ENGR00219859 MXC V4L2 capture:Pwr down/on opened cam · b0af671c
      Liu Ying authored
      Currently, we support 2 cameras, which are relevant to
      2 video devices respectively. This patch checks if video
      device is opened to determine whether we need to power
      down/on relevant camera when doing suspend/resume.
      Also, this patch protects capture resources with busy
      lock semaphore.
      Signed-off-by: default avatarLiu Ying <Ying.Liu@freescale.com>
      (cherry picked from commit 874198b89a89aa6e792754a0a51c46084ed93d1a)
      b0af671c
  19. 13 Aug, 2012 2 commits
  20. 10 Aug, 2012 3 commits
  21. 27 Jul, 2012 3 commits
  22. 25 Jul, 2012 1 commit