9 static const uint8_t ES7210_RESET_REG00 = 0x00;
10 static const uint8_t ES7210_CLOCK_OFF_REG01 = 0x01;
11 static const uint8_t ES7210_MAINCLK_REG02 = 0x02;
13 static const uint8_t ES7210_MASTER_CLK_REG03 = 0x03;
14 static const uint8_t ES7210_LRCK_DIVH_REG04 = 0x04;
15 static const uint8_t ES7210_LRCK_DIVL_REG05 = 0x05;
16 static const uint8_t ES7210_POWER_DOWN_REG06 = 0x06;
17 static const uint8_t ES7210_OSR_REG07 = 0x07;
18 static const uint8_t ES7210_MODE_CONFIG_REG08 = 0x08;
19 static const uint8_t ES7210_TIME_CONTROL0_REG09 = 0x09;
20 static const uint8_t ES7210_TIME_CONTROL1_REG0A = 0x0A;
21 static const uint8_t ES7210_SDP_INTERFACE1_REG11 = 0x11;
22 static const uint8_t ES7210_SDP_INTERFACE2_REG12 = 0x12;
23 static const uint8_t ES7210_ADC_AUTOMUTE_REG13 = 0x13;
24 static const uint8_t ES7210_ADC34_MUTERANGE_REG14 = 0x14;
25 static const uint8_t ES7210_ADC12_MUTERANGE_REG15 = 0x15;
26 static const uint8_t ES7210_ADC34_HPF2_REG20 = 0x20;
27 static const uint8_t ES7210_ADC34_HPF1_REG21 = 0x21;
28 static const uint8_t ES7210_ADC12_HPF1_REG22 = 0x22;
29 static const uint8_t ES7210_ADC12_HPF2_REG23 = 0x23;
30 static const uint8_t ES7210_ANALOG_REG40 = 0x40;
31 static const uint8_t ES7210_MIC12_BIAS_REG41 = 0x41;
32 static const uint8_t ES7210_MIC34_BIAS_REG42 = 0x42;
33 static const uint8_t ES7210_MIC1_GAIN_REG43 = 0x43;
34 static const uint8_t ES7210_MIC2_GAIN_REG44 = 0x44;
35 static const uint8_t ES7210_MIC3_GAIN_REG45 = 0x45;
36 static const uint8_t ES7210_MIC4_GAIN_REG46 = 0x46;
37 static const uint8_t ES7210_MIC1_POWER_REG47 = 0x47;
38 static const uint8_t ES7210_MIC2_POWER_REG48 = 0x48;
39 static const uint8_t ES7210_MIC3_POWER_REG49 = 0x49;
40 static const uint8_t ES7210_MIC4_POWER_REG4A = 0x4A;
41 static const uint8_t ES7210_MIC12_POWER_REG4B = 0x4B;
42 static const uint8_t ES7210_MIC34_POWER_REG4C = 0x4C;
76 {12288000, 8000, 0x00, 0x03, 0x01, 0x00, 0x20, 0x00, 0x06, 0x00},
77 {16384000, 8000, 0x00, 0x04, 0x01, 0x00, 0x20, 0x00, 0x08, 0x00},
78 {19200000, 8000, 0x00, 0x1e, 0x00, 0x01, 0x28, 0x00, 0x09, 0x60},
79 {4096000, 8000, 0x00, 0x01, 0x01, 0x00, 0x20, 0x00, 0x02, 0x00},
82 {11289600, 11025, 0x00, 0x02, 0x01, 0x00, 0x20, 0x00, 0x01, 0x00},
85 {12288000, 12000, 0x00, 0x02, 0x01, 0x00, 0x20, 0x00, 0x04, 0x00},
86 {19200000, 12000, 0x00, 0x14, 0x00, 0x01, 0x28, 0x00, 0x06, 0x40},
89 {4096000, 16000, 0x00, 0x01, 0x01, 0x01, 0x20, 0x00, 0x01, 0x00},
90 {19200000, 16000, 0x00, 0x0a, 0x00, 0x00, 0x1e, 0x00, 0x04, 0x80},
91 {16384000, 16000, 0x00, 0x02, 0x01, 0x00, 0x20, 0x00, 0x04, 0x00},
92 {12288000, 16000, 0x00, 0x03, 0x01, 0x01, 0x20, 0x00, 0x03, 0x00},
95 {11289600, 22050, 0x00, 0x01, 0x01, 0x00, 0x20, 0x00, 0x02, 0x00},
98 {12288000, 24000, 0x00, 0x01, 0x01, 0x00, 0x20, 0x00, 0x02, 0x00},
99 {19200000, 24000, 0x00, 0x0a, 0x00, 0x01, 0x28, 0x00, 0x03, 0x20},
102 {12288000, 32000, 0x00, 0x03, 0x00, 0x00, 0x20, 0x00, 0x01, 0x80},
103 {16384000, 32000, 0x00, 0x01, 0x01, 0x00, 0x20, 0x00, 0x02, 0x00},
104 {19200000, 32000, 0x00, 0x05, 0x00, 0x00, 0x1e, 0x00, 0x02, 0x58},
107 {11289600, 44100, 0x00, 0x01, 0x01, 0x01, 0x20, 0x00, 0x01, 0x00},
110 {12288000, 48000, 0x00, 0x01, 0x01, 0x01, 0x20, 0x00, 0x01, 0x00},
111 {19200000, 48000, 0x00, 0x05, 0x00, 0x01, 0x28, 0x00, 0x01, 0x90},
114 {16384000, 64000, 0x01, 0x01, 0x01, 0x00, 0x20, 0x00, 0x01, 0x00},
115 {19200000, 64000, 0x00, 0x05, 0x00, 0x01, 0x1e, 0x00, 0x01, 0x2c},
118 {11289600, 88200, 0x01, 0x01, 0x01, 0x01, 0x20, 0x00, 0x00, 0x80},
121 {12288000, 96000, 0x01, 0x01, 0x01, 0x01, 0x20, 0x00, 0x00, 0x80},
122 {19200000, 96000, 0x01, 0x05, 0x00, 0x01, 0x28, 0x00, 0x00, 0xc8},
125 static const float ES7210_MIC_GAIN_MIN = 0.0;
126 static const float ES7210_MIC_GAIN_MAX = 37.5;
Implementation of SPI Controller mode.