#Audio Codec (TLV320AIC3120) Register Configuration #-------------------------------------------------- #w 30 XX YY ==> write to I2C address 0x30, to register 0xXX, data 0xYY # ==> comment delimiter #Set register page to 0 w 30 00 00 #Initiate SW reset > 01 #Program PLL clock dividers P, J, D, R (if PLL is used) #PLL_clkin = MCLK,codec_clkin = PLL_CLK w 30 04 03 w 30 06 08 > 00 > 00 #Power up PLL (if PLL is used) #PLL Power up, P = 1, R = 1 w 30 05 91 #NDAC is powered up and set to 8 w 30 0b 88 #MDAC is powered up and set to 2 w 30 0c 82 #Program OSR value #DOSR = 128, DOSR(9:8) = 0, DOSR(7:0) = 128 w 30 0d 00 > 80 #Program I2S word length if required (16, 20, 24, 32 bits) and master mode (BCLK and WCLK are outputs) #mode is i2s, wordlength is 16, slave mode w 30 1b 00 #select DAC DSP Processing Block PRB_P16 w 30 3c 10 w 30 00 08 w 30 01 04 w 30 00 00 #Set register page to 1 w 30 00 01 #Program common-mode voltage (defalut = 1.35 V) w 30 1f 04 #Program headphone-specific depop settings (in case headphone driver is used) #De-pop, Power on = 800 ms, Step time = 4 ms w 30 21 4e #Program routing of DAC output to the output amplifier (headphone/lineout or speaker) #DAC routed to HPOUT w 30 23 40 #Unmute and set gain of output driver #Unmute HPOUT, set gain = 0 db w 30 28 06 #Unmute Class-D, set gain = 18 dB w 30 2a 1c #Power up output drivers #HPOUT powered up w 30 1f 82 #Power-up Class-D drivers w 30 20 c6 #Enable HPOUT output analog volume, set = -9 dB w 30 24 92 #Enable Class-D output analog volume, set = -9 dB w 30 26 92 #Set register page to 0 w 30 00 00 #Powerup DAC (soft step enabled) w 30 3f 94 #DAC gain = -22 dB w 30 41 d4 #Unmute DAC and Volume Control w 30 40 04