Fix indentation

This commit is contained in:
Vincent Barrilliot 2023-11-12 13:39:41 +01:00
parent 961a42a1d1
commit b3f6e1e89e

View file

@ -15,14 +15,14 @@ void codec_wait() {
void init_codec() { void init_codec() {
const uint16_t codec_init_data[] = { const uint16_t codec_init_data[] = {
0x2e00, // Master reset 0x2e00, // Master reset
0x1a00, // R13 - Turn On Headphones 0x1a00, // R13 - Turn On Headphones
0x2a1f, // R21 - Enable All the Analog In 0x2a1f, // R21 - Enable All the Analog In
0x2301, // R17 - Auto-level control: WM8776_R17_ADC_ANALOG_AUTO_LEVEL_CONTROL | LCEN_ENABLED | HLD_MASK, 0x2301, // R17 - Auto-level control: WM8776_R17_ADC_ANALOG_AUTO_LEVEL_CONTROL | LCEN_ENABLED | HLD_MASK,
0x2c07, // R22 - Enable all output sources 0x2c07, // R22 - Enable all output sources
0x1402, // R10 - DAC interface control 0x1402, // R10 - DAC interface control
0x1602, // R11 - ADC inteface control 0x1602, // R11 - ADC inteface control
0x1845 // R12 - ADC rate 768, DAC rate 512 0x1845 // R12 - ADC rate 768, DAC rate 512
}; };
for (int i = 0; i<sizeof(codec_init_data)/sizeof(uint16_t); i++) { for (int i = 0; i<sizeof(codec_init_data)/sizeof(uint16_t); i++) {