projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9bd22a
)
camera: when camera close, mclk can close
author
oyyf
<oyyf@rock-chips.com>
Wed, 14 Aug 2013 07:00:59 +0000
(15:00 +0800)
committer
oyyf
<oyyf@rock-chips.com>
Wed, 14 Aug 2013 07:00:59 +0000
(15:00 +0800)
drivers/media/video/rk30_camera_oneframe.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/rk30_camera_oneframe.c
b/drivers/media/video/rk30_camera_oneframe.c
index c5597ec7c9a68735664511ae084cdb079fba7fd1..7571cb4eecbb90de1dd6b50a127c8e20c49dc0e0 100755
(executable)
--- 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: