This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TLV320AIC3106: tlv320aic3106

Part Number: TLV320AIC3106

Tool/software: Linux

Hello Sir,

I am using tlv320aic3106 audio codec ic to play my wav file. The audio which i could able to hear is too fast .can you suggest what changes do i nedd to make either in the alsamixer or in the driver to play the audio at a proper speed.

&am33xx_pinmux {

bone_audio_cape_audio_pins: pinmux_bone_audio_cape_audio_pins {
                pinctrl-single,pins = <
            0x1ac ( PIN_INPUT_PULLDOWN | MUX_MODE0 ) /* (A14) mcasp0_ahclkx.mcasp0_ahclkx */
            0x190 ( PIN_INPUT_PULLDOWN | MUX_MODE0 ) /* (A13) mcasp0_aclkx.mcasp0_aclkx */
            0x194 ( PIN_INPUT_PULLDOWN | MUX_MODE0 ) /* (B13) mcasp0_fsx.mcasp0_fsx */
            0x198 ( PIN_OUTPUT_PULLDOWN | MUX_MODE0 ) /* (D12) mcasp0_axr0.mcasp0_axr0 */
            0x1a8 ( PIN_INPUT_PULLDOWN | MUX_MODE0 ) /* (D13) mcasp0_axr1.mcasp0_axr1 */
        >;

}

}

sound {
                compatible = "ti,da830-evm-audio";
                ti,model = "DA830 EVM";
                ti,audio-codec = <&tlv320aic3x>;
                ti,mcasp-controller = <&mcasp0>;
                ti,codec-clock-rate = <12000000>;
                ti,audio-routing =
                     "Headphone Jack",       "HPLOUT",
                    "Headphone Jack",       "HPROUT",
                    "Line Out",             "LLOUT",
                    "Line Out",             "RLOUT",
                    "LINE1L",               "Line In",
                    "LINE1R",               "Line In";
            };

&i2c0 {
    pinctrl-names = "default";
    pinctrl-0 = <&i2c0_pins>;

    status = "okay";
    clock-frequency = <400000>;

    tlv320aic3x: tlv320aic3x@18 {
    compatible = "ti,tlv320aic3x";
    reg = <0x18>;
    status = "okay";

          ldoin-supply = <&audio_ldoin>;
                iov-supply = <&audio_iov>;
                dv-supply = <&audio_dv>;
                av-supply = <&audio_av>;
    };

&mcasp0 {
            pinctrl-names = "default";
            pinctrl-0 = <&bone_audio_cape_audio_pins>;

            status = "okay";

            op-mode = <0>;          /* MCASP_IIS_MODE */
            tdm-slots = <2>;
            num-serializer = <16>;
            serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
                1 2 0 0
                0 0 0 0
                0 0 0 0
                0 0 0 0
            >;
            tx-num-evt = <1>;
            rx-num-evt = <1>;
};

with regards

prakash

  • Hi, Pranav,

    The issue seems related to the clocking of the device, can you please double check that the clocks used  with the codec are matching the sampling rate configurations of the system?.

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer