]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: sun8i: a33: Drop audio codec oversampling rate to 128 fs
authorChen-Yu Tsai <wens@csie.org>
Wed, 5 Dec 2018 10:11:52 +0000 (18:11 +0800)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 5 Dec 2018 11:08:30 +0000 (12:08 +0100)
The current oversampling rate of 512 means that for 48 kHz 16 bit
stereo, the MCLK is running at the same rate as the module clock,
so there is no head room to support higher sampling rates. The codec
however supports up to 192 kHz for playback.

This patch drops the oversampling rate from 512 to 128, so that 192 kHz
audio can be played back directly without downsampling. Ideally we
should be using different oversampling rates for different sampling
rates, but that's not possible without a platform-specific machine
driver.

Fixes: 870f1bd1f5e9 ("ARM: dts: sun8i: Add audio codec, dai and card for A33")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
arch/arm/boot/dts/sun8i-a33.dtsi

index 9ac4fae6c10d1c06581c2dfefab4a4f6b24d3618..626152c30f50b33f788267417320a41bb052638c 100644 (file)
@@ -192,7 +192,7 @@ sound: sound {
                simple-audio-card,format = "i2s";
                simple-audio-card,frame-master = <&link_codec>;
                simple-audio-card,bitclock-master = <&link_codec>;
-               simple-audio-card,mclk-fs = <512>;
+               simple-audio-card,mclk-fs = <128>;
                simple-audio-card,aux-devs = <&codec_analog>;
                simple-audio-card,routing =
                        "Left DAC", "AIF1 Slot 0 Left",