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.

Audio codec tlv320aic3106 going into mute

Hi,

I am working on one audio application. In that I am trying to route Line_3L and Line_3R through DACL1/DACR1 path to the output. 

I am using following amixer command sequence  to configure codec, but audio signal is not coming at output of codec. I tried in many ways but no success yet. 

Its working fine when bypassing the input signal from PGA. May be I am missing some commands in between or command sequence is not proper.

Can somebody help me to resolve this?

amixer sset 'Right PGA Mixer Mic3R' on
amixer sset 'Left PGA Mixer Mic3L' on
amixer sset 'Right PGA Mixer Mic3L' on
amixer sset 'Left PGA Mixer Mic3R' on
amixer sset 'PGA' 60 on
amixer cset name='ADC HPF Cut-off' 2
amixer cset name='Left DAC Mux' 0
amixer cset name='Right DAC Mux' 0
amixer sset 'Left HP Mixer DACL1' unmute
amixer sset 'Left HP Mixer DACR1' 110 on
amixer sset 'Right HP Mixer DACL1' 110 on
amixer sset 'Right HP Mixer DACR1' on
amixer sset 'Left HPCOM Mixer DACL1' on
amixer sset 'Left HPCOM Mixer DACR1' 110 on
amixer sset 'Right HPCOM Mixer DACL1' 110 on
amixer sset 'Right HPCOM Mixer DACR1' on
amixer cset name='Left HPCOM Mux' 2
amixer cset name='Right HPCOM Mux' 2
amixer sset 'Left Line Mixer DACL1' on
amixer sset 'Left Line Mixer DACR1' 110 on
amixer sset 'Right Line Mixer DACL1' 110 on
amixer sset 'Right Line Mixer DACR1' on

root@am335x-evm:~/test# amixer sset 'Left PGA Mixer Mic3L' on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Left PGA Mixer Mic3L',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
root@am335x-evm:~/test# amixer sset 'Right PGA Mixer Mic3L' on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Right PGA Mixer Mic3L',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
root@am335x-evm:~/test# amixer sset 'Left PGA Mixer Mic3R' on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Left PGA Mixer Mic3R',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
root@am335x-evm:~/test# amixer sset 'PGA' 60 on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'PGA',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 119
  Front Left: Capture 60 [50%] [30.00dB] [on]
  Front Right: Capture 60 [50%] [30.00dB] [on]
root@am335x-evm:~/test# amixer cset name='ADC HPF Cut-off' 2
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
numid=46,iface=MIXER,name='ADC HPF Cut-off'
  ; type=ENUMERATED,access=rw------,values=2,items=4
  ; Item #0 'Disabled'
  ; Item #1 '0.0045xFs'
  ; Item #2 '0.0125xFs'
  ; Item #3 '0.025xFs'
  : values=2,2
root@am335x-evm:~/test# amixer cset name='Left DAC Mux' 0
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
numid=108,iface=MIXER,name='Left DAC Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'DAC_L1'
  ; Item #1 'DAC_L3'
  ; Item #2 'DAC_L2'
  : values=0
root@am335x-evm:~/test# amixer cset name='Right DAC Mux' 0
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
numid=106,iface=MIXER,name='Right DAC Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'DAC_R1'
  ; Item #1 'DAC_R3'
  ; Item #2 'DAC_R2'
  : values=0
root@am335x-evm:~/test# amixer sset 'Left HP Mixer DACL1' unmute
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Left HP Mixer DACL1',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
root@am335x-evm:~/test# amixer sset 'Left HP Mixer DACR1' 110 on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Left HP Mixer DACR1',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 118
  Mono: Playback 110 [93%] [-4.00dB] [on]
root@am335x-evm:~/test# amixer sset 'Right HP Mixer DACL1' 110 on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Right HP Mixer DACL1',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 118
  Mono: Playback 110 [93%] [-4.00dB] [on]
root@am335x-evm:~/test# amixer sset 'Right HP Mixer DACR1' on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Right HP Mixer DACR1',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
root@am335x-evm:~/test# amixer sset 'Left HPCOM Mixer DACL1' on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Left HPCOM Mixer DACL1',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
root@am335x-evm:~/test# amixer sset 'Left HPCOM Mixer DACR1' 110 on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Left HPCOM Mixer DACR1',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 118
  Mono: Playback 110 [93%] [-4.00dB] [on]
root@am335x-evm:~/test# amixer sset 'Right HPCOM Mixer DACL1' 110 on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Right HPCOM Mixer DACL1',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 118
  Mono: Playback 110 [93%] [-4.00dB] [on]
root@am335x-evm:~/test# amixer sset 'Right HPCOM Mixer DACR1' on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Right HPCOM Mixer DACR1',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
root@am335x-evm:~/test# amixer cset name='Left HPCOM Mux' 2
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
numid=107,iface=MIXER,name='Left HPCOM Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'differential of HPLOUT'
  ; Item #1 'constant VCM'
  ; Item #2 'single-ended'
  : values=2
root@am335x-evm:~/test# amixer cset name='Right HPCOM Mux' 2
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
numid=105,iface=MIXER,name='Right HPCOM Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=5
  ; Item #0 'differential of HPROUT'
  ; Item #1 'constant VCM'
  ; Item #2 'single-ended'
  ; Item #3 'differential of HPLCOM'
  ; Item #4 'external feedback'
  : values=2
root@am335x-evm:~/test# amixer sset 'Left Line Mixer DACL1' on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Left Line Mixer DACL1',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
root@am335x-evm:~/test# amixer sset 'Left Line Mixer DACR1' 110 on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Left Line Mixer DACR1',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 118
  Mono: Playback 110 [93%] [-4.00dB] [on]
root@am335x-evm:~/test# amixer sset 'Right Line Mixer DACL1' 110 on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Right Line Mixer DACL1',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 118
  Mono: Playback 110 [93%] [-4.00dB] [on]
root@am335x-evm:~/test# amixer sset 'Right Line Mixer DACR1' on
amixer: /usr/lib/libasound.so.2: no version information available (required by amixer)
Simple mixer control 'Right Line Mixer DACR1',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Thank you!

Rajesh

  • Hi, Rajesh,

    If my understanding is correct, the following picture describes the signal path that you're trying to use.

    For this case, it is necessary to configure the codec as master (BCLK and WCLK as outputs). Also, the DIN and DOUT pins must be connected externally.

    Please let me know if you have more questions or comments.

    Best regards,
    Luis Fernando Rodríguez S.