5d4294b8ddf92092ffad61fe552adeeabb4242bd |
|
12-Dec-2011 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] m5mols: Don't ignore v4l2_ctrl_handler_setup() return value v4l2_ctrl_handler_setup() may fail so check its return value when restoring controls after device is powered on. While at it simplify the m5mols_restore_function() a bit. Acked-by: HeungJun Kim <riverful.kim@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/m5mols/m5mols.h
|
0f2ee1dd4907e1daae3c4bf00467417aba04c53e |
|
03-Dec-2011 |
HeungJun Kim <riverful.kim@samsung.com> |
[media] m5mols: Add support for the system initialization interrupt The M-5MOLS internal controller's initialization time depends on the hardware and firmware revision. Currently the driver just waits for worst case time period, after applying the voltage supplies, for the device to be ready. The M-5MOLS supports "System initialization" interrupt which is triggered after the controller finished booting. So use this interrupt to optimize the initialization sequence. After the voltage supplies are applied the I2C communication will fail, until the internal controller initializes to Flash Writer state. For the period when the I2C is not accessible use the isp_ready flag to suppress the error logs. Signed-off-by: HeungJun Kim <riverful.kim@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/m5mols/m5mols.h
|
630caa23b75ca5d399791fa5a4d8d5f4adf81489 |
|
03-Dec-2011 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] m5mols: Remove mode_save field from struct m5mols_info There is no need to keep this in the drivers' private data structure, an on the stack variable is enough. Also simplify a bit the ISP state switching function. Acked-by: HeungJun Kim <riverful.kim@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/m5mols/m5mols.h
|
ce808a478ae5b79e52ea170b35c459829296330f |
|
03-Dec-2011 |
HeungJun Kim <riverful.kim@samsung.com> |
[media] m5mols: Improve the interrupt handling routines The work struct based interrupt handling is not flexible enough as the M-5MOLS control sequence involves I2C access sequences before and after an interrupt is generated. A single waitqueue is enough for the job so remove the work struct based code. Signed-off-by: HeungJun Kim <riverful.kim@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/m5mols/m5mols.h
|
575d6252a715c599964ec6ec06428e6362c0633e |
|
12-Dec-2011 |
HeungJun Kim <riverful.kim@samsung.com> |
[media] m5mols: Extend the busy wait helper Make m5mols_busy_wait function jiffies based rather than relying on some fixed number of I2C read iterations while busy waiting for the device to execute a request. With fixed number of iterations we may be getting different wait times, depending on the I2C speed. In some conditions we have to wait even if the I2C communications fails, in those cases M5MOLS_I2C_RDY_WAIT_MASK should be passed as the mask argument to m5mols_busy_wait(). Signed-off-by: HeungJun Kim <riverful.kim@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/m5mols/m5mols.h
|
69eb18032017082bb1c54236290c7e3578e0a3d3 |
|
26-Nov-2011 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] m5mols: Simplify the I2C registers definition The redundant definitions of the m5mols I2C register addresses within the pages (categories) are removed. In place of symbolic definitions plain numbers are used which simplifies the code and eases identifying the registers in the documentation. Also make the m5mols_busy() function accept I2C_REG() value as a register address, like all other functions, rather than using the category and command values. Acked-by: HeungJun Kim <riverful.kim@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/m5mols/m5mols.h
|
fbe78ddde1f217044ed854eff92e4d22112871cb |
|
16-Nov-2011 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] m5mols: Fix set_fmt to return proper pixel format code In case pixel format is modified in set_fmt by the driver, the changes are not propagated back to the caller. Fix this by adjusting passed data for TRY and ACTIVE format. Also remove redundant pixel format code information from struct m5mols_info, it's already available in 'ffmt' array. Remove pad number validation in set/get_fmt, this is already done in the core. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Acked-by: HeungJun Kim <riverful.kim@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/m5mols/m5mols.h
|
c30701130cf7bff4f97a148b1bc96f878c046a40 |
|
07-Jun-2011 |
HeungJun, Kim <riverful.kim@samsung.com> |
[media] m5mols: Use proper email address format Signed-off-by: HeungJun, Kim <riverful.kim@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/m5mols/m5mols.h
|
a6354d2e5da646926ce492b66b527a1efc39cd27 |
|
07-Jun-2011 |
HeungJun, Kim <riverful.kim@samsung.com> |
[media] m5mols: remove union in the m5mols_get_version(), and VERSION_SIZE Remove union version in the m5mols_get_version(), and read version information directly. Also remove VERSION_SIZE. Signed-off-by: HeungJun, Kim <riverful.kim@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/m5mols/m5mols.h
|
57644f56234a154afffd0f4d53becf8ff4a55b41 |
|
31-May-2011 |
HeungJun, Kim <riverful.kim@samsung.com> |
[media] m5mols: add m5mols_read_u8/u16/u32() according to I2C byte width For now, the m5mols_read() share in case of I2C packet 1, 2, 4 byte(s) width. So, this commit adds 3 functions - m5mols_read_u8/u16/u32() according to byte width of I2C packet. And, the u32 variables in spite of u8 or u16 for fitting to m5mols_read() having no choice, is replaced to have original byte width like u8, u16, u32 as same reason. Signed-off-by: HeungJun, Kim <riverful.kim@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/m5mols/m5mols.h
|
bc125106f8afe15ffb0aae70d9b72bebec46e519 |
|
20-May-2011 |
HeungJun, Kim <riverful.kim@samsung.com> |
[media] Add support for M-5MOLS 8 Mega Pixel camera ISP Add I2C/V4L2 subdev driver for M-5MOLS integrated image signal processor with 8 Mega Pixel sensor. Signed-off-by: HeungJun, Kim <riverful.kim@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/m5mols/m5mols.h
|