MCLK1 pin has no output

    xiaoxiao2021-03-26  6

    麻烦扫码添加微信公众号:Android技术与情感分享,关注本博客动态,提升访客技术与情感。

    i  used imx6ul with24MHZ Crystal,the pin 37(MCLK1) work as SOC_MCLK to output.But however itried to change my codes,it never output any clock,could you tell me how to setit,thanks!

     

    my devices tree is this:

     

    sound { compatible = "fsl,imx6ul-evk-wm8978", "fsl,imx-audio-wm8978"; model = "wm8978-audio"; cpu-dai = <&sai2>; audio-codec = <&codec>; asrc-controller = <&asrc>; codec-master; gpr = <&gpr>; /* * hp-det = <hp-det-pin hp-det-polarity>; * hp-det-pin: JD1 JD2 or JD3 * hp-det-polarity = 0: hp detect high for headphone * hp-det-polarity = 1: hp detect high for speaker */ hp-det = <3 0>; hp-det-gpios = <&gpio5 4 0>;

    widgets = "Microphone", "Mic Jack", "Line", "Line In", "Line", "Line Out", "Speaker", "Speaker", "Headphone", "Headphone Jack"; audio-routing =

     

    ...

     

    &sai2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai2>;

    assigned-clocks = <&clksIMX6UL_CLK_SAI2_SEL>, <&clks IMX6UL_CLK_SAI2>; assigned-clock-parents = <&clks IMX6UL_CLK_PLL4_AUDIO_DIV>; assigned-clock-rates = <0>, <12288000>; fsl,mode = "i2s-master"; status = "okay"; };

     

    even if i edit it like this:

    assigned-clock-rates =<12288000>;

     

    it doesn't work as well.

    My codec is slave.Do i haveto set anything more

     

     

    please checkLinux/Documentation/..bindings/sound/fsl-sai.txt

    seems there should be property : clock-names = "mclk";

     

    i dont know much about that & inever edit this file.Mine is in my addition,could you help to change it?

     

     

    And is this file matters much?

     

     

     

     

    转载请注明原文地址: https://ju.6miu.com/read-500154.html

    最新回复(0)