Patch "arm64: dts: rockchip: Assign ES8316 MCLK rate on rk3588-rock-5b" has been added to the 6.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    arm64: dts: rockchip: Assign ES8316 MCLK rate on rk3588-rock-5b

to the 6.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     arm64-dts-rockchip-assign-es8316-mclk-rate-on-rk3588.patch
and it can be found in the queue-6.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit ac099c760a905cff327b6363bfbd24ff71606a69
Author: Cristian Ciocaltea <cristian.ciocaltea@xxxxxxxxxxxxx>
Date:   Tue May 30 21:11:40 2023 +0300

    arm64: dts: rockchip: Assign ES8316 MCLK rate on rk3588-rock-5b
    
    [ Upstream commit 28ee08cef4f838c343013330a3cd12674c4dd113 ]
    
    The I2S0_8CH_MCLKOUT clock rate on Rock 5B board defaults to 12 MHz and
    it is used to provide the master clock (MCLK) for the ES8316 audio
    codec.
    
    On sound card initialization, this limits the allowed sample rates
    according to the MCLK/LRCK ratios supported by the codec, which results
    in the following non-standard rates: 15625, 30000, 31250, 46875.
    
    Hence, the very first access of the sound card fails:
    
      Broken configuration for playback: no configurations available: Invalid argument
      Setting of hwparams failed: Invalid argument
    
    However, all subsequent attempts will succeed, as the audio graph card
    will request a correct clock frequency, based on the stream sample rate
    and the multiplication factor.
    
    Assign MCLK to 12.288 MHz, which allows the codec to advertise most of
    the standard sample rates.
    
    Fixes: 55529fe3f32d ("arm64: dts: rockchip: Add rk3588-rock-5b analog audio")
    Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@xxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230530181140.483936-4-cristian.ciocaltea@xxxxxxxxxxxxx
    Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
index 3e4aee8f70c1b..30cdd366813fb 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
@@ -133,6 +133,8 @@ es8316: audio-codec@11 {
 		reg = <0x11>;
 		clocks = <&cru I2S0_8CH_MCLKOUT>;
 		clock-names = "mclk";
+		assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
+		assigned-clock-rates = <12288000>;
 		#sound-dai-cells = <0>;
 
 		port {



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux