author | Ting Wang <ting.wang@amlogic.com> | 2018-08-20 02:14:10 (GMT) |
---|---|---|
committer | Jie Yuan <jie.yuan@amlogic.com> | 2018-10-16 02:55:19 (GMT) |
commit | 5bcfa550a7a038de140c0c876d5e678bdb7ecff7 (patch) | |
tree | f5f93c718875b58ccdddcb3bb57d9bc3c652795f | |
parent | fb464e5bf0fc083e6c22199e380590662b1611c6 (diff) | |
download | common-5bcfa550a7a038de140c0c876d5e678bdb7ecff7.zip common-5bcfa550a7a038de140c0c876d5e678bdb7ecff7.tar.gz common-5bcfa550a7a038de140c0c876d5e678bdb7ecff7.tar.bz2 |
clk: mpll: fix audio not sound issue
PD#170386: clk: fix audio not sound
Change-Id: I0396c6e2447162995964914fa7adb9f35ff651f0
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
-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); |