cron job: media_tree daily build: OK

2018-09-23 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Mon Sep 24 04:00:16 CEST 2018 media-tree git hash:985cdcb08a0488558d1005139596b64d73bee267 media_build

Re: [PATCH v2 2/6] media: video-i2c: use i2c regmap

2018-09-23 Thread Matt Ranostay
On Mon, Sep 24, 2018 at 12:35 AM Akinobu Mita wrote: > > Use regmap for i2c register access. This simplifies register accesses and > chooses suitable access commands based on the functionality that the > adapter supports. > > Cc: Matt Ranostay > Cc: Sakari Ailus > Cc: Hans Verkuil > Cc: Mauro

[PATCH v2 1/6] media: video-i2c: avoid accessing released memory area when removing driver

2018-09-23 Thread Akinobu Mita
The video_i2c_data is allocated by kzalloc and released by the video device's release callback. The release callback is called when video_unregister_device() is called, but it will still be accessed after calling video_unregister_device(). Fix the use after free by allocating video_i2c_data by

[PATCH v2 0/6] media: video-i2c: support changing frame interval and runtime PM

2018-09-23 Thread Akinobu Mita
This patchset adds support for changing frame interval and runtime PM for video-i2c driver. This also adds an helper macro to v4l2 common internal API that is used to to find a suitable frame interval. There are a couple of unrelated changes that are included for simplifying driver

[PATCH v2 3/6] media: v4l2-common: add V4L2_FRACT_COMPARE

2018-09-23 Thread Akinobu Mita
Add macro to compare two v4l2_fract values in v4l2 common internal API. The same macro FRACT_CMP() is used by vivid and bcm2835-camera. This just renames it to V4L2_FRACT_COMPARE in order to avoid namespace collision. Cc: Matt Ranostay Cc: Sakari Ailus Cc: Hans Verkuil Cc: Mauro Carvalho

[PATCH v2 6/6] media: video-i2c: support runtime PM

2018-09-23 Thread Akinobu Mita
AMG88xx has a register for setting operating mode. This adds support runtime PM by changing the operating mode. The instruction for changing sleep mode to normal mode is from the reference specifications. https://docid81hrs3j1.cloudfront.net/medialibrary/2017/11/PANA-S-A0002141979-1.pdf Cc:

[PATCH v2 5/6] media: video-i2c: support changing frame interval

2018-09-23 Thread Akinobu Mita
AMG88xx has a register for setting frame rate 1 or 10 FPS. This adds support changing frame interval. Reference specifications: https://docid81hrs3j1.cloudfront.net/medialibrary/2017/11/PANA-S-A0002141979-1.pdf Cc: Matt Ranostay Cc: Sakari Ailus Cc: Hans Verkuil Cc: Mauro Carvalho Chehab

[PATCH v2 4/6] media: vivid: use V4L2_FRACT_COMPARE

2018-09-23 Thread Akinobu Mita
Now the equivalent of FRACT_CMP() is added in v4l2 common internal API header. Cc: Matt Ranostay Cc: Sakari Ailus Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- * v2 - New patch drivers/media/platform/vivid/vivid-vid-cap.c | 9 +++-- 1 file changed, 3

[PATCH v2 2/6] media: video-i2c: use i2c regmap

2018-09-23 Thread Akinobu Mita
Use regmap for i2c register access. This simplifies register accesses and chooses suitable access commands based on the functionality that the adapter supports. Cc: Matt Ranostay Cc: Sakari Ailus Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- * v2 - Add

Re: [PATCH v2] libv4l: Add support for BAYER10P format conversion

2018-09-23 Thread Hans de Goede
Hi, On 21-09-18 11:04, Ricardo Ribalda Delgado wrote: Add support for 10 bit packet Bayer formats: -V4L2_PIX_FMT_SBGGR10P -V4L2_PIX_FMT_SGBRG10P -V4L2_PIX_FMT_SGRBG10P -V4L2_PIX_FMT_SRGGB10P These formats pack the 2 LSBs for every 4 pixels in an indeppendent byte. Signed-off-by: Ricardo