22 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG02_SCLK_MODE, 0x04));
26 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG20_ANALOG_SYS1, 0x2A));
29 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG21_ANALOG_SYS2, 0x3C));
32 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG22_ANALOG_SYS3, 0x00));
36 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG24_ANALOG_LP, 0x07));
39 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG23_ANALOG_SYS4, 0x00));
43 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG0A_TIME_CONTROL1, 0x01));
44 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG0B_TIME_CONTROL2, 0x01));
47 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG11_DAC_SDP, 0x00));
50 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG19_EQ_CONTROL1, 0x20));
53 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG0D_P2S_CONTROL, 0x14));
56 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG09_MISC_CONTROL2, 0x00));
61 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG18_MISC_CONTROL3, 0x00));
64 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG08_CLOCK_ON_OFF, 0x3F));
68 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG00_RESET, 0x02));
70 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG00_RESET, 0x03));
75 ES8156_ERROR_FAILED(this->
write_byte(ES8156_REG25_ANALOG_SYS5, 0x20));
105 if (!this->
read_byte(ES8156_REG13_DAC_MUTE, ®13)) {
109 ESP_LOGV(TAG,
"Read ES8156_REG13_DAC_MUTE: %u", reg13);
112 reg13 |= BIT(1) | BIT(2);
114 reg13 &= ~(BIT(1) | BIT(2));
117 ESP_LOGV(TAG,
"Setting ES8156_REG13_DAC_MUTE to %u (muted: %s)", reg13, YESNO(mute_state));
118 return this->
write_byte(ES8156_REG13_DAC_MUTE, reg13);