android_kernel_oneplus_msm8998/drivers/media
Mauro Carvalho Chehab 78ef81f6ea [media] tda18271-common: hold the I2C adapter during write transfers
The tda18271 datasheet says:
	"The image rejection calibration and RF tracking filter
	 calibration must be launched exactly as described in the
	 flowchart, otherwise bad calibration or even blocking of the
	 TDA18211HD can result making it impossible to communicate
	 via the I2C-bus."
(yeah, tda18271 refers there to tda18211 - likely a typo at their
 datasheets)
That likely explains why sometimes tda18271 stops answering. That
is now happening more often on designs with drx-k chips, as the
firmware is now loaded asyncrousnly there.
While the above text doesn't explicitly tell that the I2C bus
couldn't be used by other devices during such initialization,
that seems to be a requirement there.
So, let's explicitly use the I2C lock there, avoiding I2C bus
share during those critical moments.
Compile-tested only. Please test.

Acked-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-10-07 09:43:01 -03:00
..
common [media] v4l2: make vidioc_s_fbuf const 2012-09-26 10:42:36 -03:00
dvb-core [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
dvb-frontends [media] ds3000: add module parameter to force firmware upload 2012-10-07 09:31:37 -03:00
firewire [media] Fix some Makefile rules 2012-08-16 19:55:03 -03:00
i2c [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
mmc [media] Fix some Makefile rules 2012-08-16 19:55:03 -03:00
parport [media] Add missing help for some menuconfig items 2012-08-21 08:17:37 -03:00
pci [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
platform [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
radio [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
rc [media] winbond: remove space from driver name 2012-10-07 09:04:18 -03:00
tuners [media] tda18271-common: hold the I2C adapter during write transfers 2012-10-07 09:43:01 -03:00
usb [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
v4l2-core [media] v4l: Add control definitions for new H264 encoder features 2012-10-05 22:42:17 -03:00
Kconfig [media] Kconfig: merge all customise options into just one 2012-08-21 08:05:06 -03:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c [media] media: fix MEDIA_IOC_DEVICE_INFO return code 2012-08-12 07:57:57 -03:00
media-devnode.c [media] media-devnode: Replace printk with pr_* 2012-09-27 14:19:23 -03:00
media-entity.c [media] media: Add link_validate() op to check links to the sink pad 2012-05-14 08:44:11 -03:00