author | Xiaoliang Wang <xiaoliang.wang@amlogic.com> | 2018-10-19 03:24:23 (GMT) |
---|---|---|
committer | Gerrit Code Review <gituser@droid04> | 2018-10-19 03:24:23 (GMT) |
commit | 851e85bd590f92ef160db75cd286cdac12b9d166 (patch) | |
tree | dfc9df97997d9cff60bb06bc5cbb59390e35082b | |
parent | 8d856ee04e7fcc5719bfaf078d0b3bb788827c90 (diff) | |
parent | 5bcfa550a7a038de140c0c876d5e678bdb7ecff7 (diff) | |
download | common-851e85bd590f92ef160db75cd286cdac12b9d166.zip common-851e85bd590f92ef160db75cd286cdac12b9d166.tar.gz common-851e85bd590f92ef160db75cd286cdac12b9d166.tar.bz2 |
Merge "clk: mpll: fix audio not sound issue" into p-amlogic
-rw-r--r-- | drivers/amlogic/clk/clk-mpll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/amlogic/clk/clk-mpll.c b/drivers/amlogic/clk/clk-mpll.c index de5946b..435055b 100644 --- a/drivers/amlogic/clk/clk-mpll.c +++ b/drivers/amlogic/clk/clk-mpll.c @@ -121,7 +121,7 @@ static int mpll_set_rate(struct clk_hw *hw, unsigned long rate, do_div(rate64, rate); n2 = rate64; - rate64 = (parent_rate - n2 * rate) * SDM_MAX; + rate64 = (parent_rate - n2 * rate) * SDM_MAX + rate - 1; do_div(rate64, rate); sdm = rate64; pr_debug("%s: sdm: %lu n2: %lu rate: %lu\n", __func__, sdm, n2, rate); |