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.

tlv320aic3106 : how to select one audio signal input at a time using ALSA?

Hello,

I am using TLV320AIC3106 . It is interfaced via I2S with am335x. I am using SITARA sdk.

The  LINE1LP , LINE1RP, LINE 2LP, LINE2RP are connected to different audio signals(single ended). I wants to enable one input at a time (eg. If I2S input enabled then all other input signals should be disable. same as, if LINE 1L enabled then all other inputs should be disable). I wants to do this using ALSA. I tried some of the commands of amixer which are mentioned bellow but not working for me.

amixer sset 'Left PGA Mixer Line1L' on
amixer sset 'Left PGA Mixer Line2L' off"
amixer sset 'Left PGA Mixer Line1R' off"
amixer sset 'Right PGA Mixer Line1R' off"
amixer sset 'Right PGA Mixer Line1L' off"
amixer sset 'Right PGA Mixer Line2R' off"

please, can anyone help me to resolve this problem?

thanks in advance

Rajesh

  • Hi Rajesh,

    Welcome to E2E, thanks for your interest in our products!

    Could you please describe how are you configuring the device (register settings, signal routing), so we can get a better approach on how to help you?

    Thanks and Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer

  • Hi Diego,

    I am not able to use i2c bus directly to write the registers of codec. I am trying to write in codec registers by using command snd_soc_write().

    I am using readily available tlv320aic3x.c device driver file. signal routing is line input -> L/R mixer -> PGA -> ADC -> volume control -> L/R DAC -> output mixer -> output I need at HPLOUT, HPROUT, LEFT_LOP and RIGHT_LOP.

    Actually I am connecting FM to line input 1, Bluetooth audio output at line input 2, and mic at line input 3. when one of the input line is enabled other two should get disabled. But I couldn't find any proper solution.

    I am new in this field, so I am finding difficulties. Please, I am looking for the help regarding to the issue.

    Thank you