20 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG02_SCLK_MODE, 0x04));
21 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG20_ANALOG_SYS1, 0x2A));
22 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG21_ANALOG_SYS2, 0x3C));
23 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG22_ANALOG_SYS3, 0x00));
24 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG24_ANALOG_LP, 0x07));
25 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG23_ANALOG_SYS4, 0x00));
27 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG0A_TIME_CONTROL1, 0x01));
28 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG0B_TIME_CONTROL2, 0x01));
29 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG11_DAC_SDP, 0x00));
30 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG19_EQ_CONTROL1, 0x20));
32 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG0D_P2S_CONTROL, 0x14));
33 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG09_MISC_CONTROL2, 0x00));
34 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG18_MISC_CONTROL3, 0x00));
35 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG08_CLOCK_ON_OFF, 0x3F));
36 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG00_RESET, 0x02));
37 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG00_RESET, 0x03));
38 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG25_ANALOG_SYS5, 0x20));
68 if (!this->
read_byte(ES8156_REG13_DAC_MUTE, ®13)) {
72 ESP_LOGV(TAG,
"Read ES8156_REG13_DAC_MUTE: %u", reg13);
75 reg13 |= BIT(1) | BIT(2);
77 reg13 &= ~(BIT(1) | BIT(2));
80 ESP_LOGV(TAG,
"Setting ES8156_REG13_DAC_MUTE to %u (muted: %s)", reg13, YESNO(mute_state));
81 return this->
write_byte(ES8156_REG13_DAC_MUTE, reg13);