############################################### # Software Reset ############################################### # # Select Page 0 w 30 00 00 # # Initialize the device through software reset w 30 01 01 # ############################################### ############################################### # Clock Settings # --------------------------------------------- # The codec receives: MCLK = 12.288 (48k) ~ 49.152 (192k) MHz ############################################### # # Select Page 0 w 30 00 00 # # NDAC = 1, MDAC = 2 w 30 0b 81 88 # ############################################### ############################################### # Program the OSR of DAC to 32 ############################################### # # w 30 0d 00 w 30 0e 20 # w 30 0e 80 # ############################################### ############################################### # Set the word length of Audio Interface to # 32bits PTM_P4 ############################################### # # w 30 1b 30 # ############################################### ############################################### # Set the DAC Mode to PRB_P18 (filter type-C) # (up to 192khz) ############################################### # # w 30 3c 12 # ############################################### ############################################### # Initialize Codec ############################################### # # Select Page 1 w 30 00 01 # # Disable weak AVDD in presence of external # AVDD supply w 30 01 08 # # Enable Master Analog Power Control w 30 02 00 # # Set the REF charging time to 40ms w 30 7b 01 # ############################################### ############################################### # I2S to analog Setup ############################################### # De-pop w 30 14 25 # # Set the Input Common Mode to 0.9V and Output # Common Mode for Headphone to Input Common Mode w 30 0a 00 # # Route LDAC/RDAC to HPL/HPR w 30 0c 08 08 # # Route LDAC/RDAC to LOL/LOR w 30 0e 08 08 # # Set the DAC PTM mode to PTM_P3/4 w 30 03 00 00 # # Set the HPL/HPR gain to 0dB w 30 10 00 00 # # Set the LOL/LOR gain to 0dB w 30 12 00 00 # # Power up HPL/HPR and LOL/LOR drivers w 30 09 3C # # Select Page 0 w 30 00 00 # # Power up LDAC/RDAC w 30 3f d6 # # Unmute LDAC/RDAC w 30 40 00 # # power up DAC w 30 3f d6 # ###############################################