clk: sunxi-ng: sun4i: Set VCO and PLL bias current to lowest setting
authorChen-Yu Tsai <wens@csie.org>
Thu, 6 Sep 2018 13:25:37 +0000 (21:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Nov 2018 15:49:45 +0000 (07:49 -0800)
commite65c5ffc44adf6218dbd2b818257a8faf166a345
tree8356fd7af42958283e0acd3ccb1a9e8599062e1f
parentcfb0622c2d958d6b04e093147cf6a2303a827627
clk: sunxi-ng: sun4i: Set VCO and PLL bias current to lowest setting

commit 80a6ec7d5e1653208eb53f6738620dab98f6f50e upstream.

The default mid-level PLL bias current setting interferes with sigma
delta modulation. This manifests as decreased audio quality at lower
sampling rates, which sounds like radio broadcast quality, and
distortion noises at sampling rates at 48 kHz or above.

Changing the bias current settings to the lowest gets rid of the
noise.

Fixes: de3448519194 ("clk: sunxi-ng: sun4i: Use sigma-delta modulation
      for audio PLL")
Cc: <stable@vger.kernel.org> # 4.15.x
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/sunxi-ng/ccu-sun4i-a10.c