Hi,
Developing h/w using the TAD5112 to drive headphones. I have the h/w working and am sending audio to a 3.5mm jack. Sometimes when I insert the headphone plug, the audio is muted and remains muted until I "restart" the TAD5112.
Is there a register setting that can disable this "auto-mute"?
thanks
Here is my code current configuration code:
class TAD5112_DAC(object):
def configure(self):
self.tad5112_write(TAD5112_REG.PAGE_CFG, 0x00) # select page 0
self.tad5112_write(TAD5112_REG.SW_RESET, 0x01) # s/w reset
time.sleep(0.01) #10ms
self.tad5112_write(TAD5112_REG.DEV_MISC_CFG, 0x09) # exit sleep mode
time.sleep(0.01) # 10ms - allow device to wake up
self.tad5112_write(TAD5112_REG.PASI_CFG0, 0b00110100) # TDM, 32bits, BCLK inverted=AKM, Cirrus
# OUT1 - DAC is source, Pseudo differential with OUT1M as VCOM and OUT2M for external sensing
self.tad5112_write(TAD5112_REG.OUT1X_CFG0, 0b001_101_00)
self.tad5112_write(TAD5112_REG.OUT1X_CFG1, 0b01_100_000) # OUT1P Headphone drive, 0dB gain.
self.tad5112_write(TAD5112_REG.OUT1X_CFG2, 0b01_100_000) # OUT1M Headphone drive.
# OUT2 - DAC is source, Pseudo differential with OUT2M as VCOM
self.tad5112_write(TAD5112_REG.OUT2X_CFG0, 0b001_100_00)
self.tad5112_write(TAD5112_REG.OUT2X_CFG1, 0b01_100_000) # OUT2P Headphone drive, 0dB gain.
self.tad5112_write(TAD5112_REG.OUT2X_CFG2, 0b01_100_000) # OUT2M Headphone drive.
self.output_gain_db = -20 # default output gain in dB
self.tad5112_write(TAD5112_REG.DAC_CH1A_CFG0, 201+self.output_gain_db*2) # Out1 gain in 0.5dB increments)
self.tad5112_write(TAD5112_REG.DAC_CH2A_CFG0, 201+self.output_gain_db*2) # Out2 gain in 0.5dB increments)
# default to TDM slots 0 and 1 for left and right
self.tad5112_write(TAD5112_REG.PASI_RX_CH1_CFG, 0x20) # TDM slot 0 -> left
self.tad5112_write(TAD5112_REG.PASI_RX_CH2_CFG, 0x21) # TDM slot 1 -> right
self.tad5112_write(TAD5112_REG.CH_EN, 0b00001100) # Enable Ch1, 2
self.tad5112_write(TAD5112_REG.PWR_CFG, 0b01000000) # power DAC up
return 0 # no error
