Message ID | 1410986741-6801-17-git-send-email-sakari.ailus@iki.fi (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index 798c129..537ca92 100644 --- a/drivers/media/i2c/smiapp/smiapp-core.c +++ b/drivers/media/i2c/smiapp/smiapp-core.c @@ -1758,8 +1758,18 @@ static int smiapp_set_format(struct v4l2_subdev *subdev, if (fmt->which == V4L2_SUBDEV_FORMAT_ACTIVE) { if (csi_format->width != - sensor->csi_format->width) + sensor->csi_format->width) { + int rval; + + rval = smiapp_pll_update(sensor); + if (rval) { + mutex_unlock(&sensor->mutex); + return rval; + } + range_changed = true; + } + sensor->csi_format = csi_format; }
The media bus format BPP does affect PLL. Recalculate PLL if the format changes. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> --- drivers/media/i2c/smiapp/smiapp-core.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)