From: oyyf Date: Wed, 14 Aug 2013 07:00:59 +0000 (+0800) Subject: camera: when camera close, mclk can close X-Git-Tag: firefly_0821_release~6726^2~7 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2be870c46403ef1a8f9e275e77b91dd132129d75;p=firefly-linux-kernel-4.4.55.git camera: when camera close, mclk can close --- diff --git a/drivers/media/video/rk30_camera_oneframe.c b/drivers/media/video/rk30_camera_oneframe.c index c5597ec7c9a6..7571cb4eecbb 100755 --- a/drivers/media/video/rk30_camera_oneframe.c +++ b/drivers/media/video/rk30_camera_oneframe.c @@ -1473,6 +1473,11 @@ static int rk_camera_mclk_ctrl(int cif_idx, int on, int clk_rate) clk_disable(clk->cif_clk_out); clk_disable(clk->pd_cif); clk->on = false; + if(cif){ + err = clk_set_parent(clk->cif_clk_out, clk_get(NULL, "cif1_out_div")); + }else{ + err = clk_set_parent(clk->cif_clk_out, clk_get(NULL, "cif0_out_div")); + } } spin_unlock(&clk->lock); rk_camera_clk_ctrl_end: