mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
rk3188: Priority setting i2s under cpll to fix i2s frac div do not effect, let axi_cpu's pll different with i2s's
This commit is contained in:
@@ -3413,10 +3413,14 @@ void rk30_clock_common_i2s_init(void)
|
||||
i2s_rate = 49152000;
|
||||
}
|
||||
|
||||
if(((i2s_rate * 20) <= general_pll_clk.rate) || !(general_pll_clk.rate % i2s_rate)) {
|
||||
clk_set_parent_nolock(&clk_i2s_pll, &general_pll_clk);
|
||||
} else if(((i2s_rate * 20) <= codec_pll_clk.rate) || !(codec_pll_clk.rate % i2s_rate)) {
|
||||
/*
|
||||
* Priority setting i2s under cpll to fix i2s frac div do not effect, let
|
||||
* axi_cpu's pll different with i2s's
|
||||
* */
|
||||
if(((i2s_rate * 20) <= codec_pll_clk.rate) || !(codec_pll_clk.rate % i2s_rate)) {
|
||||
clk_set_parent_nolock(&clk_i2s_pll, &codec_pll_clk);
|
||||
} else if(((i2s_rate * 20) <= general_pll_clk.rate) || !(general_pll_clk.rate % i2s_rate)) {
|
||||
clk_set_parent_nolock(&clk_i2s_pll, &general_pll_clk);
|
||||
} else {
|
||||
if(general_pll_clk.rate > codec_pll_clk.rate)
|
||||
clk_set_parent_nolock(&clk_i2s_pll, &general_pll_clk);
|
||||
|
||||
Reference in New Issue
Block a user