/* 512fs, system clock 24,576 MHz, sampling clock 48 KHz, TDM8 I2S audio format */ uint8_t codec_set_array[31] = { 0xC1, // 64 dac_resets_sampling // MRST(7) - 1 - normal operation (default) // SRST(6) - 1 - system reset ADC, DAC - normal operation (default) // SRDA[1:0] - 01 - DAC sampling mode select - single rate 0x86, // 65 dac_ms_interf // PCMDA(7) - 1 - DAC power save mode select (disable) // MSDA[2:0] - 000 - DAC master/slave mode (slave - default) // FMTDA[3:0] - 0110 - DAC audio interface format (24 bit I2S TDM) 0x0F, // 66 dac_disable_rolloff // OPEGS[3:0] - 0000 - DAC operation control (normal operation) // FLT[3:0] - 1111 - DAC digital filter roll-off (sharp roll-off - default) 0x00, // 67 dac_phase // REVDA[7:0] - 00000000 - DAC output phase (normal output) 0x00, // 68 dac_soft_mute // MUTDA[7:0] - 00000000 - DAC soft mute control (disabled) 0x00, // 69 dac_zflag - read only 0x00, // 70 dac_att_mode_speed_deemph // ATMDDA(7) - 0 - DAC attenuation mode (each channel with independent data) // ATSPDA(6) - 0 - DAC attenuation speed (Nx2048/fs) // DEMP[1:0] (5,4) - 00 - DAC digital de-emphasis function (disable) // AZR[2:0] (3..1) - 000 - DAC zero flag function select // ZREV (0) - 0 - DAC zero flag polarity (default) 0x00, // r71 dac_att_common (n/a) 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, // 72_79 dac_att[8] - 0xFF - default; 0x00, // 80 adc_sampling // SRAD[1:0] (1,0) - 00 - ADC sampling mode (auto - default) 0x06, // 81 adc_ms_interface // MSAD[2:0] (6..4) - 000 - ADC master/slave select (slave) // FMTAD[2:0] (2..0) - 110 - ADC audio interface format (24-bit I2S TDM) 0x00, // 82 psave_hpf - hpf enabled // PSVAD[2:0] (6..4) - 000 - ADC power save (normal operation - default) // BYP[2:0] (2..0) - 000 - ADC hpf bypass (hpf enabled, normal output) 0x00, // 83 adc_in_config // SEAD[6:1] (5..0) - 0x00 - ADC input configuration (differential) 0x00, // 84 adc_phase; // REVAD[6:1] (5..0) - 0x00 - ADC input phase (normal) 0x00, // 85 adc_soft_mute // MUTAD[5:0] (5..0) - 000000 - ADC soft mute enable (init disabled, set by profile) 0x00, // 86 adc_ovf_flag; // read only 0x00, // 87 adc_att_mode_speed; // ATMAD (7) - 0 - ADC attennuation mode (each channel independent data) // ATSPAD (6) - 0 - ADC attenuation speed (Nx2048/fs - default) // OVFR (0) - 0 - ADC overflow flag polarity (default) 0x00, // r88 adc_att_common 215,215,215,215,215,215 //* 89_94_adc_att[6]; };