1. 31 8月, 2018 2 次提交
  2. 28 7月, 2018 3 次提交
  3. 25 7月, 2018 2 次提交
  4. 04 7月, 2018 1 次提交
    • B
      media: ak7375: Add ak7375 lens voice coil driver · 90ee26fb
      Bingbu Cao 提交于
      Add a v4l2 sub-device driver for the ak7375 lens voice coil.
      This is a voice coil module using the i2c bus to control the
      focus position.
      
      ak7375 can write multiple bytes of data at a time. If more
      data is received instead of the stop condition after receiving
      one byte of data, the address inside the chip is automatically
      incremented and the data is written into the next address.
      
      The ak7375 can control the position with 12 bits value and
      consists of two 8 bit registers show as below:
      register 0x00(AK7375_REG_POSITION):
          +---+---+---+---+---+---+---+---+
          |D11|D10|D09|D08|D07|D06|D05|D04|
          +---+---+---+---+---+---+---+---+
      register 0x01:
          +---+---+---+---+---+---+---+---+
          |D03|D02|D01|D00|---|---|---|---|
          +---+---+---+---+---+---+---+---+
      
      This driver support :
          - set ak7375 to standby mode once suspend and
            turn it back to active if resume
          - set the position via V4L2_CID_FOCUS_ABSOLUTE ctrl
      
      [Sakari Ailus: Rename val as ret in probe, drop redundant error message]
      Signed-off-by: NTianshu Qiu <tian.shu.qiu@intel.com>
      Signed-off-by: NBingbu Cao <bingbu.cao@intel.com>
      Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      90ee26fb
  5. 28 6月, 2018 2 次提交
  6. 29 5月, 2018 1 次提交
  7. 17 5月, 2018 1 次提交
  8. 04 5月, 2018 1 次提交
  9. 22 3月, 2018 1 次提交
  10. 26 2月, 2018 3 次提交
  11. 23 2月, 2018 4 次提交
  12. 06 1月, 2018 1 次提交
  13. 05 1月, 2018 1 次提交
  14. 29 12月, 2017 1 次提交
  15. 30 11月, 2017 1 次提交
  16. 27 10月, 2017 1 次提交
  17. 23 9月, 2017 1 次提交
  18. 08 8月, 2017 1 次提交
    • A
      media: i2c: add KConfig dependencies · fa31c117
      Arnd Bergmann 提交于
      The new ov5670 driver fails to build when VIDEO_V4L2_SUBDEV_API
      or MEDIA_CONTROLLER are disabled:
      
      drivers/media/i2c/ov5670.c: In function 'ov5670_open':
      drivers/media/i2c/ov5670.c:1917:5: error: implicit declaration of function 'v4l2_subdev_get_try_format'; did you mean 'v4l2_subdev_notify_event'? [-Werror=implicit-function-declaration]
           v4l2_subdev_get_try_format(sd, fh->pad, 0);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~
           v4l2_subdev_notify_event
      drivers/media/i2c/ov5670.c:1917:38: error: 'struct v4l2_subdev_fh' has no member named 'pad'
           v4l2_subdev_get_try_format(sd, fh->pad, 0);
                                            ^~
      drivers/media/i2c/ov5670.c: In function 'ov5670_do_get_pad_format':
      drivers/media/i2c/ov5670.c:2198:17: error: invalid type argument of unary '*' (have 'int')
         fmt->format = *v4l2_subdev_get_try_format(&ov5670->sd, cfg,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                fmt->pad);
                ~~~~~~~~~
      drivers/media/i2c/ov5670.c: At top level:
      drivers/media/i2c/ov5670.c:2444:19: error: 'v4l2_subdev_link_validate' undeclared here (not in a function); did you mean 'v4l2_subdev_init'?
        .link_validate = v4l2_subdev_link_validate,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~
                         v4l2_subdev_init
      drivers/media/i2c/ov5670.c: In function 'ov5670_probe':
      drivers/media/i2c/ov5670.c:2492:12: error: 'struct v4l2_subdev' has no member named 'entity'
      
      This adds both to the Kconfig entry.
      
      Fixes: 5de35c9b ("media: i2c: Add Omnivision OV5670 5M sensor support")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      fa31c117
  19. 20 7月, 2017 2 次提交
  20. 18 7月, 2017 1 次提交
    • J
      media: ov6650: convert to standalone v4l2 subdevice · 23a52386
      Janusz Krzysztofik 提交于
      Remove the soc_camera dependencies and move the diver to i2c
      
      Lost features, fortunately not used or not critical on test platform:
      - soc_camera power on/off callback - replaced with clock enable/disable
        only, no support for platform provided regulators nor power callback,
      - soc_camera sense request - replaced with arbitrarily selected default
        master clock rate and pixel clock limit, no support for platform
        requested values,
      - soc_camera board flags - no support for platform requested mbus config
        tweaks.
      
      Tested on Amstrad Delta with now out of tree but still locally
      maintained omap1_camera host driver.
      Signed-off-by: NJanusz Krzysztofik <jmkrzyszt@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      23a52386
  21. 20 6月, 2017 4 次提交
  22. 06 6月, 2017 1 次提交
  23. 05 6月, 2017 1 次提交
  24. 19 4月, 2017 2 次提交
    • M
      [media] ov2640: make GPIOLIB an optional dependency · a463ea99
      Mauro Carvalho Chehab 提交于
      As warned by kbuild test robot:
      	warning: (VIDEO_EM28XX_V4L2) selects VIDEO_OV2640 which has unmet direct dependencies (MEDIA_SUPPORT && VIDEO_V4L2 && I2C && GPIOLIB && MEDIA_CAMERA_SUPPORT)
      
      The em28xx driver can use ov2640, but it doesn't depend
      (or use) the GPIOLIB in order to power off/on the sensor.
      
      So, as we want to allow both usages with and without
      GPIOLIB, make its dependency optional.
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      a463ea99
    • H
      [media] cec: Kconfig cleanup · 56a263aa
      Hans Verkuil 提交于
      The Kconfig options for the CEC subsystem were a bit messy. In
      addition there were two cec sources (cec-edid.c and cec-notifier.c)
      that were outside of the media/cec directory, which was weird.
      
      Move those sources to media/cec as well.
      
      The cec-edid and cec-notifier functionality is now part of the cec
      module and these are no longer separate modules.
      
      Also remove the MEDIA_CEC_EDID config option and include it with the
      main CEC config option (which defined CEC_EDID anyway).
      
      Added static inlines to cec-edid.h for dummy functions when CEC_CORE
      isn't defined.
      
      CEC drivers should now depend on CEC_CORE.
      
      CEC drivers that need the cec-notifier functionality must explicitly
      select CEC_NOTIFIER.
      
      The s5p-cec and stih-cec drivers depended on VIDEO_DEV instead of
      CEC_CORE, fix that as well.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Acked-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      56a263aa
  25. 15 4月, 2017 1 次提交