[media] smiapp: Use actual pixel rate calculated by the PLL calculator
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 8 Apr 2014 21:38:17 +0000 (18:38 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Oct 2014 15:39:43 +0000 (13:39 -0200)
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 d0ea7a3bfc0a786c4b81892baee191f3185ed341..861312e1a48a5c5401ad4968acf104bb7e3edbb1 100644 (file)
@@ -289,7 +289,7 @@ static int smiapp_pll_update(struct smiapp_sensor *sensor)
                return rval;
 
        __v4l2_ctrl_s_ctrl_int64(sensor->pixel_rate_parray,
-                                pll->vt.pix_clk_freq_hz);
+                                pll->pixel_rate_pixel_array);
        __v4l2_ctrl_s_ctrl_int64(sensor->pixel_rate_csi, pll->pixel_rate_csi);
 
        return 0;
@@ -894,7 +894,7 @@ static int smiapp_update_mode(struct smiapp_sensor *sensor)
        dev_dbg(&client->dev, "hblank\t\t%d\n", sensor->hblank->val);
 
        dev_dbg(&client->dev, "real timeperframe\t100/%d\n",
-               sensor->pll.vt.pix_clk_freq_hz /
+               sensor->pll.pixel_rate_pixel_array /
                ((sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].width
                  + sensor->hblank->val) *
                 (sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].height