OSDN Git Service

[media] tvp5150: Fix breakage for serial usage
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 25 Jan 2016 16:39:34 +0000 (14:39 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 25 Jan 2016 17:15:26 +0000 (15:15 -0200)
commit47de9bf8931e6bf9c92fdba9867925d1ce482ab1
treed5f34e0e9fa798ae409da999a982e1e85d5a6754
parent27524ff8cd6c28ea3735f80f0374e0fc5494768f
[media] tvp5150: Fix breakage for serial usage

changeset 460b6c0831cb ("tvp5150: Add s_stream subdev operation
support") broke for em28xx-based devices with uses tvp5150. On those
devices, touching the TVP5150_MISC_CTL register causes em28xx to stop
streaming.

I suspect that it uses the 27 MHz clock provided by tvp5150 to feed
em28xx. So, change the logic to do nothing on s_stream if the tvp5150 is
not set up to work with V4L2_MBUS_PARALLEL.

Tested with Hauppauge WinTV USB 2 model 42012 Rev. C186
(USB ID: 2040:4200).

Cc: Javier Martinez Canillas <javier@osg.samsung.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/tvp5150.c