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.

TLV320AIC3107: How to get Passive Analog Bypass Mode (pass throught) using the linux driver

Part Number: TLV320AIC3107


I'm not able to get the device in pass through mode.

According to the datasheet is should: "connecting LINE2LP input signal to the LEFT_LOP internal signal is done by closing SW-L2 and opening SW-L0"


What commands do I need to give to get the right switches to open/close?


My amixer controls list:

numid=11,iface=MIXER,name='PCM Playback Volume'
numid=25,iface=MIXER,name='Line DAC Playback Volume'
numid=7,iface=MIXER,name='Line Line2 Bypass Volume'
numid=24,iface=MIXER,name='Line PGA Bypass Volume'
numid=31,iface=MIXER,name='Line Playback Switch'
numid=30,iface=MIXER,name='Line Playback Volume'
numid=46,iface=MIXER,name='ADC HPF Cut-off'
numid=36,iface=MIXER,name='AGC Switch'
numid=10,iface=MIXER,name='Class-D Playback Volume'
numid=43,iface=MIXER,name='De-emphasis Switch'
numid=27,iface=MIXER,name='HP DAC Playback Volume'
numid=8,iface=MIXER,name='HP Line2 Bypass Volume'
numid=26,iface=MIXER,name='HP PGA Bypass Volume'
numid=33,iface=MIXER,name='HP Playback Switch'
numid=32,iface=MIXER,name='HP Playback Volume'
numid=29,iface=MIXER,name='HPCOM DAC Playback Volume'
numid=9,iface=MIXER,name='HPCOM Line2 Bypass Volume'
numid=28,iface=MIXER,name='HPCOM PGA Bypass Volume'
numid=35,iface=MIXER,name='HPCOM Playback Switch'
numid=34,iface=MIXER,name='HPCOM Playback Volume'
numid=39,iface=MIXER,name='Left AGC Attack time'
numid=41,iface=MIXER,name='Left AGC Decay time'
numid=37,iface=MIXER,name='Left AGC Target level'
numid=49,iface=MIXER,name='Left DAC Mux'
numid=82,iface=MIXER,name='Left HP Mixer DACL1 Switch'
numid=17,iface=MIXER,name='Left HP Mixer DACR1 Playback Volume'
numid=84,iface=MIXER,name='Left HP Mixer DACR1 Switch'
numid=85,iface=MIXER,name='Left HP Mixer Line2L Bypass Switch'
numid=86,iface=MIXER,name='Left HP Mixer Line2R Bypass Switch'
numid=3,iface=MIXER,name='Left HP Mixer Line2R Bypass Volume'
numid=81,iface=MIXER,name='Left HP Mixer PGAL Bypass Switch'
numid=83,iface=MIXER,name='Left HP Mixer PGAR Bypass Switch'
numid=16,iface=MIXER,name='Left HP Mixer PGAR Bypass Volume'
numid=94,iface=MIXER,name='Left HPCOM Mixer DACL1 Switch'
numid=21,iface=MIXER,name='Left HPCOM Mixer DACR1 Playback Volume'
numid=96,iface=MIXER,name='Left HPCOM Mixer DACR1 Switch'
numid=97,iface=MIXER,name='Left HPCOM Mixer Line2L Bypass Switch'
numid=98,iface=MIXER,name='Left HPCOM Mixer Line2R Bypass Switch'
numid=5,iface=MIXER,name='Left HPCOM Mixer Line2R Bypass Volume'
numid=93,iface=MIXER,name='Left HPCOM Mixer PGAL Bypass Switch'
numid=95,iface=MIXER,name='Left HPCOM Mixer PGAR Bypass Switch'
numid=20,iface=MIXER,name='Left HPCOM Mixer PGAR Bypass Volume'
numid=50,iface=MIXER,name='Left HPCOM Mux'
numid=70,iface=MIXER,name='Left Line Mixer DACL1 Switch'
numid=13,iface=MIXER,name='Left Line Mixer DACR1 Playback Volume'
numid=72,iface=MIXER,name='Left Line Mixer DACR1 Switch'
numid=73,iface=MIXER,name='Left Line Mixer Line2L Bypass Switch'
numid=74,iface=MIXER,name='Left Line Mixer Line2R Bypass Switch'
numid=1,iface=MIXER,name='Left Line Mixer Line2R Bypass Volume'
numid=69,iface=MIXER,name='Left Line Mixer PGAL Bypass Switch'
numid=71,iface=MIXER,name='Left Line Mixer PGAR Bypass Switch'
numid=12,iface=MIXER,name='Left Line Mixer PGAR Bypass Volume'
numid=53,iface=MIXER,name='Left Line1L Mux'
numid=54,iface=MIXER,name='Left Line1R Mux'
numid=62,iface=MIXER,name='Left Line2L Mux'
numid=57,iface=MIXER,name='Left PGA Mixer Line1L Switch'
numid=58,iface=MIXER,name='Left PGA Mixer Line1R Switch'
numid=59,iface=MIXER,name='Left PGA Mixer Line2L Switch'
numid=60,iface=MIXER,name='Left PGA Mixer Mic3L Switch'
numid=61,iface=MIXER,name='Left PGA Mixer Mic3R Switch'
numid=47,iface=MIXER,name='Output Driver Power-On time'
numid=48,iface=MIXER,name='Output Driver Ramp-up step'
numid=45,iface=MIXER,name='PGA Capture Switch'
numid=44,iface=MIXER,name='PGA Capture Volume'
numid=40,iface=MIXER,name='Right AGC Attack time'
numid=42,iface=MIXER,name='Right AGC Decay time'
numid=38,iface=MIXER,name='Right AGC Target level'
numid=51,iface=MIXER,name='Right DAC Mux'
numid=19,iface=MIXER,name='Right HP Mixer DACL1 Playback Volume'
numid=88,iface=MIXER,name='Right HP Mixer DACL1 Switch'
numid=90,iface=MIXER,name='Right HP Mixer DACR1 Switch'
numid=91,iface=MIXER,name='Right HP Mixer Line2L Bypass Switch'
numid=4,iface=MIXER,name='Right HP Mixer Line2L Bypass Volume'
numid=92,iface=MIXER,name='Right HP Mixer Line2R Bypass Switch'
numid=87,iface=MIXER,name='Right HP Mixer PGAL Bypass Switch'
numid=18,iface=MIXER,name='Right HP Mixer PGAL Bypass Volume'
numid=89,iface=MIXER,name='Right HP Mixer PGAR Bypass Switch'
numid=23,iface=MIXER,name='Right HPCOM Mixer DACL1 Playback Volume'
numid=100,iface=MIXER,name='Right HPCOM Mixer DACL1 Switch'
numid=102,iface=MIXER,name='Right HPCOM Mixer DACR1 Switch'
numid=103,iface=MIXER,name='Right HPCOM Mixer Line2L Bypass Switch'
numid=6,iface=MIXER,name='Right HPCOM Mixer Line2L Bypass Volume'
numid=104,iface=MIXER,name='Right HPCOM Mixer Line2R Bypass Switch'
numid=99,iface=MIXER,name='Right HPCOM Mixer PGAL Bypass Switch'
numid=22,iface=MIXER,name='Right HPCOM Mixer PGAL Bypass Volume'
numid=101,iface=MIXER,name='Right HPCOM Mixer PGAR Bypass Switch'
numid=52,iface=MIXER,name='Right HPCOM Mux'
numid=15,iface=MIXER,name='Right Line Mixer DACL1 Playback Volume'
numid=76,iface=MIXER,name='Right Line Mixer DACL1 Switch'
numid=78,iface=MIXER,name='Right Line Mixer DACR1 Switch'
numid=79,iface=MIXER,name='Right Line Mixer Line2L Bypass Switch'
numid=2,iface=MIXER,name='Right Line Mixer Line2L Bypass Volume'
numid=80,iface=MIXER,name='Right Line Mixer Line2R Bypass Switch'
numid=75,iface=MIXER,name='Right Line Mixer PGAL Bypass Switch'
numid=14,iface=MIXER,name='Right Line Mixer PGAL Bypass Volume'
numid=77,iface=MIXER,name='Right Line Mixer PGAR Bypass Switch'
numid=55,iface=MIXER,name='Right Line1L Mux'
numid=56,iface=MIXER,name='Right Line1R Mux'
numid=68,iface=MIXER,name='Right Line2R Mux'
numid=64,iface=MIXER,name='Right PGA Mixer Line1L Switch'
numid=63,iface=MIXER,name='Right PGA Mixer Line1R Switch'
numid=65,iface=MIXER,name='Right PGA Mixer Line2R Switch'
numid=66,iface=MIXER,name='Right PGA Mixer Mic3L Switch'
numid=67,iface=MIXER,name='Right PGA Mixer Mic3R Switch'

 

  • Hello Duke,

    The driver does not program the bypass path register so to get this passive bypass path configured, you will need to manually configure the device via I2C. You may use the following command:

    I2cset -f -y i2c_bus  i2c_address  i2c_register  i2c_value

    The register information can be seen here. 

    By setting the register to 0x04, this will close SW-L2 and close SW-L0.

    Regards,

    Aaron

  • The I2C bus is busy in my configuration.

    I was able to toggle the SW-L2 on by switching: Left Line Mixer Line2L Bypass Switch to on.

    Not sure why you would think that this isn't possible.

    BTW for pass through it is closing SW-L2 en opening SW-L0