imx6q codec / esai, clock issues

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6q codec / esai, clock issues

ソリューションへジャンプ
1,487件の閲覧回数
angelo_d
Senior Contributor I

Hi,

upgrading from kernel 3.10.17 to 3.14.28 on similar sabreauto borard, i get this warning for the audio codec cs42888 / esai interface

fsl-esai-dai 2024000.esai: failed to derive required HCKT rate

fsl-esai-dai 2024000.esai: the ratio is out of range, 0 (2 ~ 65536)

fsl-esai-dai 2024000.esai: ASoC: 2024000.esai hw params failed: -22

Is there any main difference on clocks in the new kernel that i have to take in account ?


Thanks

angelo

ラベル(2)
0 件の賞賛
1 解決策
806件の閲覧回数
angelo_d
Senior Contributor I

I solved.

my issues was related to a devicetree node name different from sabreauto devicetree:

clocks {

        codec_osc: anaclk2 {

            compatible = "fixed-clock";

            #clock-cells = <0>;

            clock-frequency = <24576000>;

        };

    };

Note, the naming must repsect "anaclk2" or there is no link with anaclk2 clock.

元の投稿で解決策を見る

0 件の賞賛
3 返答(返信)
808件の閲覧回数
angelo_d
Senior Contributor I

Thanks,

changes are many.

I am looking into the 3.14.28 sabreauto dtsi, that have same cs42888 to imx6q wirings as in my board, and there are changes inside the &esai { } section,

but if i reflect them on my board i still have similar issues:

fsl_esai_set_dai_sysclk clk_rate 30000000

changes to

fsl_esai_set_dai_sysclk clk_rate 24000000

About this error:

fsl-esai-dai 2024000.esai: failed to derive required HCKT rate

It is not clear why HCKT have to be set internally. I am in slave mode, since external master clock (24576000) is provided to cs42888 and it should act as master.

0 件の賞賛
807件の閲覧回数
angelo_d
Senior Contributor I

I solved.

my issues was related to a devicetree node name different from sabreauto devicetree:

clocks {

        codec_osc: anaclk2 {

            compatible = "fixed-clock";

            #clock-cells = <0>;

            clock-frequency = <24576000>;

        };

    };

Note, the naming must repsect "anaclk2" or there is no link with anaclk2 clock.

0 件の賞賛