why sound card is not detected

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

why sound card is not detected

1,281件の閲覧回数
dhanushvenugopa
Contributor I

Im using phytec segin board in that by default  tlv320 codec is present ,im disabling that codec and integrating wm8960 codec and i did the necessary changes in the dts files as shown below.But i could see that in " i2cdetect -y 0 " command i found at address "1a" its "UU" which means the wm8960 driver is probed.But why sound card is not detected

Is there any other place where i need to update.

Modified dtsi:

Imx6ul-phytec-segin.dtsi

----------------------------------------

sound: sound {

                compatible = "fsl,imx6ul-evk-wm8960",

                           "fsl,imx-audio-wm8960";

                model = "wm8960-audio";

                cpu-dai = <&sai2>;

                audio-codec = <&codec>;

                asrc-controller = <&asrc>;

                codec-master;

                gpr = <&gpr 4 0x100000 0x100000>;

                /*

                 * 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>;

                mic-det-gpios = <&gpio5 4 0>;

                audio-routing =

                        "Headphone Jack", "HP_L",

                        "Headphone Jack", "HP_R",

                        "Ext Spk", "SPK_LP",

                        "Ext Spk", "SPK_LN",

                        "Ext Spk", "SPK_RP",

                        "Ext Spk", "SPK_RN",

                        "LINPUT2", "Mic Jack",

                        "LINPUT3", "Mic Jack",

                        "RINPUT1", "Main MIC",

                        "RINPUT2", "Main MIC",

                        "Mic Jack", "MICB",

                        "Main MIC", "MICB",

                        "CPU-Playback", "ASRC-Playback",

                        "Playback", "CPU-Playback",

                        "ASRC-Capture", "CPU-Capture",

                        "CPU-Capture", "Capture";

        };

};

 codec: wm8960@1a {

                compatible = "wlf,wm8960";

                reg = <0x1a>;

                clocks = <&clks IMX6UL_CLK_SAI2>;

                clock-names = "mclk";

                wlf,shared-lrclk;

        };

&sai2 {

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_sai2>;

        assigned-clocks = <&clks IMX6UL_CLK_SAI2_SEL>,

                          <&clks IMX6UL_CLK_SAI2>;

        assigned-clock-parents = <&clks IMX6UL_CLK_PLL4_AUDIO_DIV>;

        assigned-clock-rates = <0>, <12288000>;

        fsl,sai-mclk-direction-output;

        status = "okay";

};

 pinctrl_sai2: sai2grp {

                fsl,pins = <

                        MX6UL_PAD_JTAG_TDI__SAI2_TX_BCLK        0x17088

                        MX6UL_PAD_JTAG_TDO__SAI2_TX_SYNC        0x17088

                        MX6UL_PAD_JTAG_TRST_B__SAI2_TX_DATA     0x11088

                        MX6UL_PAD_JTAG_TCK__SAI2_RX_DATA        0x11088

                        MX6UL_PAD_JTAG_TMS__SAI2_MCLK           0x17088

                >;

        };

0 件の賞賛
返信
1 返信

1,174件の閲覧回数
diegoadrian
NXP Employee
NXP Employee

Hello,

Could you please try to add the configuration to the I2C port in the device tree.

&i2c2 {
 clock_frequency = <100000>;
 pinctrl-names = "default";
 pinctrl-0 = <&pinctrl_i2c2>;
 status = "okay";

 codec: wm8960@1a {
  compatible = "wlf,wm8960";
  reg = <0x1a>;
  clocks = <&clks IMX6UL_CLK_SAI2>;
  clock-names = "mclk";
  wlf,shared-lrclk;
 };

Furthermore, make sure that you have added correctly the driver to the kernel.

Unfortunately, the board that you are using is not an official NXP board. What we could help you is with the configuration that we have for our boards. I apologize for the inconvenience this could give you.

Best regards,

Diego.

0 件の賞賛
返信