[media] smiapp: Update PLL when setting format
authorSakari Ailus <sakari.ailus@iki.fi>
Tue, 16 Sep 2014 20:19:04 +0000 (17:19 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Oct 2014 15:44:34 +0000 (13:44 -0200)
The media bus format BPP does affect PLL. Recalculate PLL if the format
changes.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/smiapp/smiapp-core.c

index f1a9f82dd44acd3dc623ef712c276f655eaaff93..bcc5866175b7f2a7a94134b8f503d0cd6118af1b 100644 (file)
@@ -1780,7 +1780,7 @@ static int smiapp_set_format_source(struct v4l2_subdev *subdev,
                __fls(*valid_link_freqs), ~*valid_link_freqs,
                __ffs(*valid_link_freqs));
 
-       return 0;
+       return smiapp_pll_update(sensor);
 }
 
 static int smiapp_set_format(struct v4l2_subdev *subdev,