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.

TLV320AIC31XXSW-LINUX: Noise generated while playing audio

Part Number: TLV320AIC31XXSW-LINUX
Other Parts Discussed in Thread: TLV320AIC3100

I have integrated tlv320aic3100 audio codec with imx6s processor.

When I play audio file using "aplay" utility, then I heard some noise after completed audio and even if I set audio volume 0% then heard same noise. So I can't able to find out issue in Drvier level or .dts configuartion file or hardware.

Please looking the following line is wrritten in .dts file.

sound {
compatible = "fsl,imx-audio-tlv320aic31xx";
model = "imx-maxt-tlv320aic3100";
ssi-controller = <&ssi1>;
audio-codec = <&codec>;
audio-routing =
"MIC1LP", "MICBIAS",
"MIC1LM", "MICBIAS",
"MIC1RP", "MICBIAS",
"Speaker", "SPK";
mux-int-port = <1>;
mux-ext-port = <4>;
};


codec: tlv320aic3100@18 {
compatible = "ti,tlv320aic3100" ;
reg = <0x18>;
gpio-reset = <&gpio2 31 GPIO_ACTIVE_HIGH>;
ai31xx-micbias-vg = <1>;
clocks = <&clks 200>;
};

If any configuration missing in .dts file, please give me your suggestion.

  • Hello Pratik,

    We are unable to support driver problems. I can help you with device configuration but the drivers were written ages ago, and have not been updated in years.

    we are currently working on updating them and may be able to offer some support for drivers in the future, but at this point we cannot.

    best regards,
    -Steve wilson
  • Hello Steve,

    Thank you for your quick response!

    Yes, I agree with your point that driver code has not been updated till now, so there is no issue in driver level.

    But, what configuration am I missing in my device?

    Please share your suggestion with me so that I can progress on my work.

    Thanks,

    Pratik Gajera

  • Pratik,

    please provide me the register configuration. 

    are you running the device as an Audio master or slave?  are you using the PLL?  what are your clock frequencies, word length etc...

    -steve

  • Dear Steve,

    I am connected audio slave device (tlv320aic3100) with imx6s via I2C and device slave address is 0x18.

    No, I am not used PLL.

    I am using following configuration related to Audio codec.

    Audio data word length: 16 bits
    Audio data format: MSB first, twos comlement
    Clock frequency: 100 kHz

    Please find attached document which contains audio related register configuration details.

    4075.Tlv320aic3100_register_configurations.txt
    Simple mixer control 'Speaker',0
      Capabilities: pswitch pswitch-joined
      Playback channels: Mono
      Mono: Playback [on]
    Simple mixer control 'Speaker Analog',0
      Capabilities: pvolume pvolume-joined
      Playback channels: Mono
      Limits: Playback 0 - 127
      Mono: Playback 107 [84%] [-10.00dB]
    Simple mixer control 'Speaker Driver',0
      Capabilities: pvolume pvolume-joined pswitch pswitch-joined
      Playback channels: Mono
      Limits: Playback 0 - 3
      Mono: Playback 2 [67%] [18.00dB] [on]
    Simple mixer control 'Mic PGA',0
      Capabilities: cvolume cvolume-joined
      Capture channels: Mono
      Limits: Capture 0 - 119
      Mono: Capture 75 [63%] [37.50dB]
    Simple mixer control 'ADC',0
      Capabilities: cvolume cvolume-joined cswitch cswitch-joined
      Capture channels: Mono
      Limits: Capture 0 - 64
      Mono: Capture 28 [44%] [-6.00dB] [on]
    Simple mixer control 'ADC Fine',0
      Capabilities: cvolume cvolume-joined
      Capture channels: Mono
      Limits: Capture 0 - 4
      Mono: Capture 4 [100%] [0.40dB]
    Simple mixer control 'DAC',0
      Capabilities: pvolume
      Playback channels: Front Left - Front Right
      Limits: Playback 0 - 175
      Mono:
      Front Left: Playback 133 [76%] [3.00dB]
      Front Right: Playback 133 [76%] [3.00dB]
    Simple mixer control 'DAC Left Input',0
      Capabilities: enum
      Items: 'Off' 'Left Data' 'Right Data' 'Mono'
      Item0: 'Left Data'
    Simple mixer control 'DAC Right Input',0
      Capabilities: enum
      Items: 'Off' 'Right Data' 'Left Data' 'Mono'
      Item0: 'Right Data'
    Simple mixer control 'HP Analog',0
      Capabilities: pvolume
      Playback channels: Front Left - Front Right
      Limits: Playback 0 - 127
      Mono:
      Front Left: Playback 0 [0%] [-63.50dB]
      Front Right: Playback 0 [0%] [-63.50dB]
    Simple mixer control 'HP Driver',0
      Capabilities: pvolume pswitch
      Playback channels: Front Left - Front Right
      Limits: Playback 0 - 9
      Mono:
      Front Left: Playback 0 [0%] [0.00dB] [off]
      Front Right: Playback 0 [0%] [0.00dB] [off]
    Simple mixer control 'HP Left',0
      Capabilities: pswitch pswitch-joined
      Playback channels: Mono
      Mono: Playback [off]
    Simple mixer control 'HP Right',0
      Capabilities: pswitch pswitch-joined
      Playback channels: Mono
      Mono: Playback [off]
    Simple mixer control 'MIC1LM M-Terminal',0
      Capabilities: enum
      Items: 'Off' 'FFR 10 Ohm' 'FFR 20 Ohm' 'FFR 40 Ohm'
      Item0: 'FFR 10 Ohm'
    Simple mixer control 'MIC1LM P-Terminal',0
      Capabilities: enum
      Items: 'Off' 'FFR 10 Ohm' 'FFR 20 Ohm' 'FFR 40 Ohm'
      Item0: 'FFR 10 Ohm'
    Simple mixer control 'MIC1LP P-Terminal',0
      Capabilities: enum
      Items: 'Off' 'FFR 10 Ohm' 'FFR 20 Ohm' 'FFR 40 Ohm'
      Item0: 'FFR 10 Ohm'
    Simple mixer control 'MIC1RP P-Terminal',0
      Capabilities: enum
      Items: 'Off' 'FFR 10 Ohm' 'FFR 20 Ohm' 'FFR 40 Ohm'
      Item0: 'Off'
    Simple mixer control 'Output Left From Left DAC',0
      Capabilities: pswitch pswitch-joined
      Playback channels: Mono
      Mono: Playback [on]
    Simple mixer control 'Output Left From MIC1LP',0
      Capabilities: pswitch pswitch-joined
      Playback channels: Mono
      Mono: Playback [off]
    Simple mixer control 'Output Left From MIC1RP',0
      Capabilities: pswitch pswitch-joined
      Playback channels: Mono
      Mono: Playback [off]
    Simple mixer control 'Output Right From MIC1RP',0
      Capabilities: pswitch pswitch-joined
      Playback channels: Mono
      Mono: Playback [off]
    Simple mixer control 'Output Right From Right DAC',0
      Capabilities: pswitch pswitch-joined
      Playback channels: Mono
      Mono: Playback [off]
    

    Here, If any information miss from my side, please contact me.

    Thanks,

    Pratik Gajera

  • Steve,

    Any further inforamtion required from my side, because I am not much aware about audio configuration register.

    This issue is very critical for me. Kindly help me!

    Thanks,

    Pratik

  • Dear Steve,

    Kindly help me on above issue.

    Thanks,

    Pratik