]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
clk: sunxi-ng: sun8i: h3: Use sigma-delta modulation for audio PLL
authorChen-Yu Tsai <wens@csie.org>
Thu, 12 Oct 2017 08:37:01 +0000 (16:37 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 13 Oct 2017 07:27:18 +0000 (09:27 +0200)
commita5e3e2b2ef85efe213c19b4911042bc2937a1aa6
treed94b1c66055f6f2979575a1a51c9d894df38b660
parent392ba5fafcdf1969d1abd9a637cc40c45f4781bc
clk: sunxi-ng: sun8i: h3: Use sigma-delta modulation for audio PLL

The audio blocks require specific clock rates. Until now we were using
the closest clock rate possible with integer N-M factors. This resulted
in audio playback being slightly slower than it should be.

The vendor kernel gets around this (for newer SoCs) by using sigma-delta
modulation to generate a fractional-N factor. This patch copies the
parameters for the H3.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi-ng/ccu-sun8i-h3.c