clk: tegra210: Fix default rates for HDA clocks
Subsystems (3)
Jon Hunter
maintainerPATCH 1/1 clk: tegra210: Fix default rates for HDA clocks
Currently the default clock rates for the HDA and HDA2CODEC_2X clocks are both 19.2MHz. However, the default rates for these clocks should actually be 51MHz and 48MHz, respectively. Correct the default clock rates for these clocks by specifying them in the clock init table for Tegra210.
--- drivers/clk/tegra/clk-tegra210.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/clk/tegra/clk-tegra210.c +2 -0
@@ -3377,6 +3377,8 @@ static struct tegra_clk_init_table init_table[] __initdata = { { TEGRA210_CLK_I2S3_SYNC, TEGRA210_CLK_CLK_MAX, 24576000, 0 }, { TEGRA210_CLK_I2S4_SYNC, TEGRA210_CLK_CLK_MAX, 24576000, 0 }, { TEGRA210_CLK_VIMCLK_SYNC, TEGRA210_CLK_CLK_MAX, 24576000, 0 }, + { TEGRA210_CLK_HDA, TEGRA210_CLK_PLL_P, 51000000, 0 }, + { TEGRA210_CLK_HDA2CODEC_2X, TEGRA210_CLK_PLL_P, 48000000, 0 },/* This MUST be the last entry. */ { TEGRA210_CLK_CLK_MAX, TEGRA210_CLK_CLK_MAX, 0, 0 }, };
Signature · 1 line
2.7.4
Quoted 10 lines · Jon Hunter
Currently the default clock rates for the HDA and
HDA2CODEC_2Xclocks are both 19.2MHz. However, the default rates for these clocks should actually be 51MHz and 48MHz, respectively. Correct the default clock rates for these clocks by specifying them in the clock init table for Tegra210.Signed-off-by Jon Hunter <[email protected]>--- drivers/clk/tegra/clk-tegra210.c | 2 ++ 1 file changed, 2 insertions(+)
Does this fix anything? Should this be backported to stable releases?
Jon Hunter
maintainerQuoted 7 lines · Thierry Reding
Quoted 6 lines · Jon Hunter
Currently the default clock rates for the HDA and
HDA2CODEC_2Xclocks are both 19.2MHz. However, the default rates for these clocks should actually be 51MHz and 48MHz, respectively. Correct the default clock rates for these clocks by specifying them in the clock init table for Tegra210.
Quoted 6 lines
Quoted 4 lines
Signed-off-by Jon Hunter <[email protected]>--- drivers/clk/tegra/clk-tegra210.c | 2 ++ 1 file changed, 2 insertions(+)Does this fix anything? Should this be backported to stable releases?
Good point. We are aligning the clock configuration with what we ship. So I thought for completeness it would be good to test HDA playback across the various sample-rates we support (32kHz to 192kHz) but with or without this patch I am not hearing anything. Let me check on this with Sameer as I would like to see if we need to mark this for stable or not.
Quoted 1 line
Acked-by Thierry Reding <[email protected]>
Thanks
Jon
Signature · 1 line
nvpublic
Jon Hunter
maintainerQuoted 14 lines · Jon Hunter
Quoted 12 lines · Thierry Reding
Quoted 10 lines · Jon Hunter
Currently the default clock rates for the HDA and
HDA2CODEC_2Xclocks are both 19.2MHz. However, the default rates for these clocks should actually be 51MHz and 48MHz, respectively. Correct the default clock rates for these clocks by specifying them in the clock init table for Tegra210.Signed-off-by Jon Hunter <[email protected]>--- drivers/clk/tegra/clk-tegra210.c | 2 ++ 1 file changed, 2 insertions(+)
Quoted 9 lines
Quoted 1 line
Does this fix anything? Should this be backported to stable releases?
Good point. We are aligning the clock configuration with what we ship. So I thought for completeness it would be good to test HDA playback across the various sample-rates we support (32kHz to 192kHz) but with or without this patch I am not hearing anything. Let me check on this with Sameer as I would like to see if we need to mark this for stable or not.
Quoted 1 line
Acked-by Thierry Reding <[email protected]>
I have confirmed that this does fix HDA playback on Tegra210. Without this fix, I am seeing the following messages during playback and playback is distorted ...
Write error: -32,Broken pipe
[ 15.069335] tegra-mc 70019000.memory-controller: hdar: read @0x0000000000000000: EMEM address decode error (EMEM decode error) Write error: -32,Broken pipe [ 15.465362] tegra-mc 70019000.memory-controller: hdar: read @0x0000000000000000: EMEM address decode error (EMEM decode error) Write error: -32,Broken pipe [ 15.858615] tegra-mc 70019000.memory-controller: hdar: read
@0x0000000000000000: EMEM address decode error (EMEM decode error) W
Do you want me to update the change and resend?
Jon
Signature · 1 line
nvpublic
Quoted 38 lines · Jon Hunter
Quoted 14 lines · Jon Hunter
Quoted 12 lines · Thierry Reding
Quoted 10 lines · Jon Hunter
Currently the default clock rates for the HDA and
HDA2CODEC_2Xclocks are both 19.2MHz. However, the default rates for these clocks should actually be 51MHz and 48MHz, respectively. Correct the default clock rates for these clocks by specifying them in the clock init table for Tegra210.Signed-off-by Jon Hunter <[email protected]>--- drivers/clk/tegra/clk-tegra210.c | 2 ++ 1 file changed, 2 insertions(+)Quoted 9 lines
Quoted 1 line
Does this fix anything? Should this be backported to stable releases?
Good point. We are aligning the clock configuration with what we ship. So I thought for completeness it would be good to test HDA playback across the various sample-rates we support (32kHz to 192kHz) but with or without this patch I am not hearing anything. Let me check on this with Sameer as I would like to see if we need to mark this for stable or not.
Quoted 1 line
Acked-by Thierry Reding <[email protected]>I have confirmed that this does fix HDA playback on Tegra210. Without this fix, I am seeing the following messages during playback and playback is distorted ...
Write error: -32,Broken pipe
[ 15.069335] tegra-mc 70019000.memory-controller: hdar: read @0x0000000000000000: EMEM address decode error (EMEM decode error) Write error: -32,Broken pipe [ 15.465362] tegra-mc 70019000.memory-controller: hdar: read @0x0000000000000000: EMEM address decode error (EMEM decode error) Write error: -32,Broken pipe [ 15.858615] tegra-mc 70019000.memory-controller: hdar: read
Quoted 4 lines
@0x0000000000000000: EMEM address decode error (EMEM decode error) W
Do you want me to update the change and resend?
Honestly I'm not sure if it's worth it. I haven't seen any bug reports for this and we haven't had audio over HDMI support for very long, so a backport may not be necessary.
I guess there'd be some use to backport this so that our stable kernel testing passes these. So it's really up to you. I have a slight tendency towards backporting, because it's really tiny and then we just have it out of the way and it's not going to haunt us.
Thierry