This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TAS5806M: TAS5806M HFP Profile with ESP32

Part Number: TAS5806M

Hi everyone I have created an a2dp project using an esp32 and the TAS5806M. The bluetooth audio is fine and I have no problems. Now I am trying to integrate the HFP profile to be able to make hands-free calls. I set the sample rate to 16Khz 16 bit and 1 channel but the audio in call feels really bad. I also enabled wide band speech on the esp32 for better quality but nothing. Advice? Thanks.

  • Hello Francesco,

    Can you provide a schematic and register configuration.

    Best Regards,

    Luis

  • Hello Luis,

    This is a register configuration for TAS5806M:

    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x03, 0x02 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x01, 0x11 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x03, 0x02 ));
    vTaskDelay(100 / portTICK_RATE_MS);
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x03, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x46, 0x11 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x03, 0x02 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x78, 0x80 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0x0b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x01 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7d, 0x11 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7e, 0xff ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x01 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0x05 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x02, 0x01 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0x86 )); // EQReg
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x8c ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x2a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x24, 0x00 )); // Volume Left = 0 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x25, 0x80 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x26, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x27, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x28, 0x00 )); // Volume Right = 0 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x29, 0x80 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x29 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x18, 0x00 )); // Input Mixer Left to left = 0 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x19, 0x80 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1c, 0x00 )); // Input Mixer Right to left = -110 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x20, 0x00 )); // Input Mixer Left to right = -110 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x21, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x22, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x23, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x24, 0x00 )); // Input Mixer Right to right = 0 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x25, 0x80 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x26, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x27, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x2a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x30, 0x00 )); // Volume Alpha = 3 ms
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x31, 0xe2 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x32, 0xc4 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x33, 0x6b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x2c ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0c, 0x00 )); // Left Input to Left Level Meter = -110 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x10, 0x00 )); // Right Input to Left Level Meter = -110 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x11, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x12, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x13, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x14, 0x00 )); // Left Output to Left Level Meter = 0 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x15, 0x80 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x16, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x17, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x18, 0x00 )); // Right Output to Left Level Meter = -110 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x19, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1c, 0x00 )); // Output Crossbar Left to Amp Left = 0 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1d, 0x80 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x20, 0x00 )); // Output Crossbar Right to Amp Left = -110 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x21, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x22, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x23, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x28, 0x00 )); // Output Crossbar Left to Amp Right = -110 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x29, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2c, 0x00 )); // Output Crossbar Right to Amp Right = 0 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2d, 0x80 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x34, 0x00 )); // Output Crossbar Left to I2S Left = 0 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x35, 0x80 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x36, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x37, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x38, 0x00 )); // Output Crossbar Right to I2S Left = -110 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x39, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0x00 )); // Output Crossbar Left to I2S Right = -110 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0x00 )); // Output Crossbar Right to I2S Right = 0 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0x80 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5c, 0x00 )); // AGL Release Rate: 0.001
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5e, 0xae ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5f, 0xc3 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x01 )); // AGL Attack Rate: 0.2
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0x12 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x62, 0x6e ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x63, 0x98 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x64, 0x04 )); // AGL Threshold: 0 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x65, 0x8a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0xa7 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x67, 0x0b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x68, 0xc0 )); // AGL OnOff: 0
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x69, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6c, 0x04 )); // AGL Softening Alpha: 0.55 ms
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6d, 0xc1 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6e, 0xff ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6f, 0x93 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x2d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x18, 0x7b )); // AGL Softening Omega: 0.55 ms
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x19, 0x3e ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1b, 0x6d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1c, 0x00 )); // Level Meter Time Constant = 1000 ms
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1e, 0xae ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1f, 0xc3 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x20, 0x00 )); // Left Input to Right Level Meter = -110 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x21, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x22, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x23, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x24, 0x00 )); // Right Input to Right Level Meter = -110 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x25, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x26, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x27, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x28, 0x00 )); // Left Output to Right Level Meter = -110 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x29, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2c, 0x00 )); // Right Output to Right Level Meter = 0 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2d, 0x80 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x31 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0x40 )); // FIR Data
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x50, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x52, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x55, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x56, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x57, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x58, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x59, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x62, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x63, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x64, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x65, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x67, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x68, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x69, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x70, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x71, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x72, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x73, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x74, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x75, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x76, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x77, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x78, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x79, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x32 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x08, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x09, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x10, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x11, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x12, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x13, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x14, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x15, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x16, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x17, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x18, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x19, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x20, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x21, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x22, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x23, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x24, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x25, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x26, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x27, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x28, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x29, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x30, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x31, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x32, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x33, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x34, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x35, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x36, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x37, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x38, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x39, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x40, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x41, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x42, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x43, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x44, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x45, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x46, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x47, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x50, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x52, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x55, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x56, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x57, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x58, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x59, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x62, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x63, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x64, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x65, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x67, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x68, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x69, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x70, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x71, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x72, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x73, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x74, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x75, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x76, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x77, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x78, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x79, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x33 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x08, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x09, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x10, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x11, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x12, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x13, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x14, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x15, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x16, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x17, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x18, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x19, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x20, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x21, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x22, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x23, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x24, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x25, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x26, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x27, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x28, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x29, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x30, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x31, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x32, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x33, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x34, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x35, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x36, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x37, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x38, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x39, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x40, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x41, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x42, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x43, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x44, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x45, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x46, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x47, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x50, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x52, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x55, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x56, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x57, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x58, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x59, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x62, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x63, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x64, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x65, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x67, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x68, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x69, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x70, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x71, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x72, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x73, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x74, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x75, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x76, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x77, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x78, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x79, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x34 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x08, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x09, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x10, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x11, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x12, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x13, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x14, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x15, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x16, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x17, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x18, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x19, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x20, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x21, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x22, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x23, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x24, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x25, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x26, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x27, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x28, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x29, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x30, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x31, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x32, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x33, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x34, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x35, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x36, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x37, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x38, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x39, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x40, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x41, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x42, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x43, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x44, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x45, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x46, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x47, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x50, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x52, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x55, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x56, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x57, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x58, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x59, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x62, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x63, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x64, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x65, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x67, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x68, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x69, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x70, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x71, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x72, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x73, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x74, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x75, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x76, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x77, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x78, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x79, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x35 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x08, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x09, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x10, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x11, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x12, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x13, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x14, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x15, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x16, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x17, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x18, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x19, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x20, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x21, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x22, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x23, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x24, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x25, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x26, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x27, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x28, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x29, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x30, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x31, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x32, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x33, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x34, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x35, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x36, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x37, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x38, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x39, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x40, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x41, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x42, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x43, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x44, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x45, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x46, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x47, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x50, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x52, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x55, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x56, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x57, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x58, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x59, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x62, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x63, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x64, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x65, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x67, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0xaa ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x24 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x18, 0x08 )); // Biquad - BQ1 Left - Filter: All Pass Frequency: 20.609043823243237 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x19, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x20, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x21, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x22, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x23, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x24, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x25, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x26, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x27, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x28, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x29, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2c, 0x08 )); // Biquad - BQ2 Left - Filter: Equalizer (Q Factor) Frequency: 84 Hz QVal: 2.75 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x30, 0xf0 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x31, 0x08 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x32, 0x6b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x33, 0x63 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x34, 0x07 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x35, 0xf7 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x36, 0xd3 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x37, 0xe0 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x38, 0x0f ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x39, 0xf7 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3a, 0x94 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3b, 0x9d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3c, 0xf8 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3d, 0x08 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3e, 0x2c ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3f, 0x20 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x40, 0x08 )); // Biquad - BQ3 Left - Filter: Equalizer (Q Factor) Frequency: 170 Hz QVal: 2.75 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x41, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x42, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x43, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x44, 0xf0 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x45, 0x11 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x46, 0x84 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x47, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0x07 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0xef ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0x7e ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0x91 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0x0f ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0xee ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0x7c ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x50, 0xf8 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0x10 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x52, 0x81 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0x6f ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x08 )); // Biquad - BQ4 Left - Filter: Equalizer (Q Factor) Frequency: 1200 Hz QVal: 2.7489 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x55, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x56, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x57, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x58, 0xf0 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x59, 0xa2 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5a, 0xce ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5b, 0x27 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5c, 0x07 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5d, 0x8e ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5e, 0x38 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5f, 0xf4 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x0f ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0x5d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x62, 0x31 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x63, 0xd9 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x64, 0xf8 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x65, 0x71 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0xc7 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x67, 0x0c ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x68, 0x08 )); // Biquad - BQ5 Left - Filter: Equalizer (Q Factor) Frequency: 8000 Hz QVal: 2.75 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x69, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6c, 0xf9 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6d, 0x47 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6e, 0x91 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6f, 0xba ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x70, 0x05 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x71, 0x70 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x72, 0xdc ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x73, 0x8b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x74, 0x06 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x75, 0xb8 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x76, 0x6e ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x77, 0x46 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x78, 0xfa ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x79, 0x8f ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7a, 0x23 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7b, 0x75 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7c, 0x08 )); // Biquad - BQ6 Left - Filter: Equalizer (Q Factor) Frequency: 12000 Hz QVal: 2.75 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x25 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x08, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x09, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0c, 0x04 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0d, 0x72 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0e, 0x10 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0f, 0x09 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x10, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x11, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x12, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x13, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x14, 0xfb ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x15, 0x8d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x16, 0xef ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x17, 0xf7 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x18, 0x08 )); // Biquad - BQ7 Left - Filter: All Pass Frequency: 12000 Hz QVal: 2.75 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x19, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x20, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x21, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x22, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x23, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x24, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x25, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x26, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x27, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x28, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x29, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2c, 0x08 )); // Biquad - BQ8 Left - Filter: All Pass Frequency: 12000 Hz QVal: 2.75 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x30, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x31, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x32, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x33, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x34, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x35, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x36, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x37, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x38, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x39, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x40, 0x08 )); // Biquad - BQ9 Left - Filter: All Pass Frequency: 19615.00277270495 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x41, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x42, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x43, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x44, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x45, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x46, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x47, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x50, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x52, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x08 )); // Biquad - BQ10 Left - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x55, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x56, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x57, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x58, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x59, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x62, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x63, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x64, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x65, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x67, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x68, 0x08 )); // Biquad - BQ11 Left - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x69, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x70, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x71, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x72, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x73, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x74, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x75, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x76, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x77, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x78, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x79, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7c, 0x08 )); // Biquad - BQ12 Left - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x26 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x08, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x09, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x10, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x11, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x12, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x13, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x14, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x15, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x16, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x17, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x18, 0x08 )); // Biquad - BQ13 Left - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x19, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x20, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x21, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x22, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x23, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x24, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x25, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x26, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x27, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x28, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x29, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2c, 0x08 )); // Biquad - BQ14 Left - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x30, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x31, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x32, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x33, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x34, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x35, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x36, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x37, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x38, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x39, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x40, 0x08 )); // Biquad - BQ15 Left - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x41, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x42, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x43, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x44, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x45, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x46, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x47, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x50, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x52, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x08 )); // Biquad - BQ1 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x55, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x56, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x57, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x58, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x59, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x62, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x63, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x64, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x65, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x67, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x68, 0x08 )); // Biquad - BQ2 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x69, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x70, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x71, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x72, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x73, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x74, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x75, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x76, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x77, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x78, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x79, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7c, 0x08 )); // Biquad - BQ3 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x27 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x08, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x09, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x10, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x11, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x12, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x13, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x14, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x15, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x16, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x17, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x18, 0x08 )); // Biquad - BQ4 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x19, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x20, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x21, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x22, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x23, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x24, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x25, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x26, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x27, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x28, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x29, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2c, 0x08 )); // Biquad - BQ5 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x30, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x31, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x32, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x33, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x34, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x35, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x36, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x37, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x38, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x39, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x40, 0x08 )); // Biquad - BQ6 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x41, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x42, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x43, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x44, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x45, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x46, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x47, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x50, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x52, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x08 )); // Biquad - BQ7 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x55, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x56, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x57, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x58, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x59, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x62, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x63, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x64, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x65, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x67, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x68, 0x08 )); // Biquad - BQ8 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x69, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x70, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x71, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x72, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x73, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x74, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x75, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x76, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x77, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x78, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x79, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7c, 0x08 )); // Biquad - BQ9 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x28 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x08, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x09, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x10, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x11, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x12, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x13, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x14, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x15, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x16, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x17, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x18, 0x08 )); // Biquad - BQ10 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x19, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x20, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x21, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x22, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x23, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x24, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x25, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x26, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x27, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x28, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x29, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2c, 0x08 )); // Biquad - BQ11 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x30, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x31, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x32, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x33, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x34, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x35, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x36, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x37, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x38, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x39, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x40, 0x08 )); // Biquad - BQ12 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x41, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x42, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x43, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x44, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x45, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x46, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x47, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x50, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x52, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x08 )); // Biquad - BQ13 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x55, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x56, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x57, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x58, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x59, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x62, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x63, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x64, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x65, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x67, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x68, 0x08 )); // Biquad - BQ14 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x69, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x70, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x71, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x72, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x73, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x74, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x75, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x76, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x77, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x78, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x79, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7c, 0x08 )); // Biquad - BQ15 Right - Filter: All Pass Frequency: 1000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x29 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x08, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x09, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x10, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x11, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x12, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x13, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x14, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x15, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x16, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x17, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x8c ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x2e ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x08, 0x00 )); // DRC Band1 Mixer Gain: 1
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x09, 0x80 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0c, 0x00 )); // DRC Band2 Mixer Gain: 1
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0d, 0x80 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x10, 0x00 )); // DRC Band3 Mixer Gain: 1
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x11, 0x80 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x12, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x13, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0xaa ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x2a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0x00 )); // Low F2 BQ2 - Filter: Low Pass-ButterWorth 2 Frequency: 200 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0x05 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0x83 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0x2a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0x05 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0x83 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0x2a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x50, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0x05 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x52, 0x83 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0x2a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x7d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x55, 0xa1 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x56, 0x77 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x57, 0x3d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x58, 0x84 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x59, 0xa7 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5a, 0x04 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5b, 0xdf ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x8c ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x2d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x58, 0x02 )); // DRC Settings of band3: attack: 1 ms, release: 10 ms, energy: 1 ms, Region1 - Threshold: -124 dB, Offset: 0 dB, Ratio: 1 Region2 - Threshold: -60 dB, Offset: 0 dB, Ratio: 1 Region3 - Threshold: 0 dB, Offset: 0 dB, Ratio: 100
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x59, 0xa3 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5a, 0x9a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5b, 0xcc ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5c, 0x02 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5d, 0xa3 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5e, 0x9a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5f, 0xcc ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0x44 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x62, 0x32 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x63, 0x13 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x64, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x65, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x67, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x68, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x69, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6c, 0xff ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6d, 0x81 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6e, 0x47 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6f, 0xae ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x70, 0xf9 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x71, 0x06 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x72, 0x21 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x73, 0xa9 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x74, 0xfe ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x75, 0x01 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x76, 0xc0 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x77, 0x79 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x78, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x79, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x2b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x34, 0x00 )); // DRC Settings of band1: attack: 25 ms, release: 50 ms, energy: 25 ms, Region1 - Threshold: -124 dB, Offset: 0 dB, Ratio: 1 Region2 - Threshold: -60 dB, Offset: 0 dB, Ratio: 1 Region3 - Threshold: 0 dB, Offset: 0 dB, Ratio: 100
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x35, 0x1b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x36, 0x4b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x37, 0x98 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x38, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x39, 0x1b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3a, 0x4b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3b, 0x98 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3d, 0x0d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3e, 0xa6 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3f, 0x86 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x40, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x41, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x42, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x43, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x44, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x45, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x46, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x47, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0xff ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0x81 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0x47 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0xae ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0xf9 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0x06 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0x21 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0xa9 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x50, 0xfe ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0x01 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x52, 0xc0 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0x79 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x55, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x56, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x57, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x58, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x59, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5a, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5b, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0xaa ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x2a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x34, 0x00 )); // Low F1 BQ1 - Filter: Low Pass-ButterWorth 2 Frequency: 200 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x35, 0x05 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x36, 0x83 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x37, 0x2a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x38, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x39, 0x05 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3a, 0x83 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3b, 0x2a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3d, 0x05 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3e, 0x83 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3f, 0x2a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x40, 0x7d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x41, 0xa1 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x42, 0x77 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x43, 0x3d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x44, 0x84 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x45, 0xa7 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x46, 0x04 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x47, 0xdf ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x8c ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x2d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x30, 0x02 )); // DRC Settings of band2: attack: 1 ms, release: 100 ms, energy: 1 ms, Region1 - Threshold: -124 dB, Offset: 0 dB, Ratio: 1 Region2 - Threshold: -60 dB, Offset: 0 dB, Ratio: 1 Region3 - Threshold: 0 dB, Offset: 0 dB, Ratio: 100
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x31, 0xa3 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x32, 0x9a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x33, 0xcc ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x34, 0x02 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x35, 0xa3 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x36, 0x9a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x37, 0xcc ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x38, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x39, 0x06 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3a, 0xd3 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3b, 0x72 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3c, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3d, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3e, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x3f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x40, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x41, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x42, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x43, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x44, 0xff ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x45, 0x81 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x46, 0x47 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x47, 0xae ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0xf9 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0x06 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0x21 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0xa9 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0xfe ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0x01 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0xc0 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0x79 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x50, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x52, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x55, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x56, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x57, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0xaa ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x2a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5c, 0x7d )); // Mid F1 BQ1 - Filter: High Pass-ButterWorth 2 Frequency: 200 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5d, 0xa6 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5e, 0xfa ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5f, 0x66 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x82 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0x59 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x62, 0x05 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x63, 0x9a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x64, 0x7d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x65, 0xa6 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0xfa ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x67, 0x66 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x68, 0x7d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x69, 0xa1 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6a, 0x77 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6b, 0x3d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6c, 0x84 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6d, 0xa7 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6e, 0x04 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x6f, 0xdf ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x70, 0x7d )); // Mid F2 BQ2 - Filter: High Pass-ButterWorth 2 Frequency: 200 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x71, 0xa6 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x72, 0xfa ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x73, 0x66 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x74, 0x82 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x75, 0x59 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x76, 0x05 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x77, 0x9a ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x78, 0x7d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x79, 0xa6 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7a, 0xfa ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7b, 0x66 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7c, 0x7d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7d, 0xa1 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7e, 0x77 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x3d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x2b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x08, 0x84 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x09, 0xa7 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0a, 0x04 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0b, 0xdf ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0c, 0x58 )); // High F1 BQ1 - Filter: High Pass-ButterWorth 2 Frequency: 4000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0d, 0x3b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0e, 0x2f ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x0f, 0x3d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x10, 0xa7 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x11, 0xc4 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x12, 0xd0 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x13, 0xc3 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x14, 0x58 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x15, 0x3b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x16, 0x2f ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x17, 0x3d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x18, 0x51 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x19, 0xe5 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1a, 0x7f ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1b, 0x65 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1c, 0xc2 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1d, 0xde ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1e, 0x41 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1f, 0xd5 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x20, 0x58 )); // High F2 BQ2 - Filter: High Pass-ButterWorth 2 Frequency: 4000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x21, 0x3b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x22, 0x2f ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x23, 0x3d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x24, 0xa7 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x25, 0xc4 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x26, 0xd0 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x27, 0xc3 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x28, 0x58 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x29, 0x3b ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2a, 0x2f ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2b, 0x3d ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2c, 0x51 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2d, 0xe5 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2e, 0x7f ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x2f, 0x65 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x30, 0xc2 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x31, 0xde ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x32, 0x41 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x33, 0xd5 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x2e ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x40, 0x06 )); // Mid F3 BQ3 - Filter: Low Pass-ButterWorth 2 Frequency: 4000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x41, 0x55 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x42, 0xaf ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x43, 0xd8 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x44, 0x06 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x45, 0x55 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x46, 0xaf ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x47, 0xd8 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x48, 0x06 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x49, 0x55 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4a, 0xaf ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4b, 0xd8 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0x51 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4d, 0xe5 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4e, 0x7f ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4f, 0x65 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x50, 0xc2 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x51, 0xde ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x52, 0x41 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x53, 0xd5 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x54, 0x06 )); // Mid F4 BQ4 - Filter: Low Pass-ButterWorth 2 Frequency: 4000 Hz QVal: 0.71 Bandwidth: 1000 Hz
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x55, 0x55 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x56, 0xaf ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x57, 0xd8 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x58, 0x06 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x59, 0x55 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5a, 0xaf ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5b, 0xd8 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5c, 0x06 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5d, 0x55 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5e, 0xaf ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x5f, 0xd8 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x60, 0x51 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x61, 0xe5 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x62, 0x7f ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x63, 0x65 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x64, 0xc2 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x65, 0xde ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x66, 0x41 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x67, 0xd5 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x8c ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x2e ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x18, 0x07 )); // THD Clipper: 0 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x19, 0xec ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1a, 0xa9 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1b, 0xcd ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1c, 0x04 )); // THD Finevolume Left: 0 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1d, 0x09 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1e, 0xc2 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x1f, 0xb1 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x20, 0x04 )); // THD Finevolume Right: 0 dB
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x21, 0x09 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x22, 0xc2 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x23, 0xb1 )); //Register Tuning
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x30, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x4c, 0x30 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x77, 0x00 )); // Headphone
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x03, 0x03 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x00, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x7f, 0x00 ));
    ESP_ERROR_CHECK(tas5806m_write_byte( 0x78, 0x80 ));

  • Hello Francesco,

    The TAS5806 supports 32, 44.1, 48, 88.2, 96 kHz sample rates. 16kHz sample rate is not supported for this device. This is probably why you are noticing issues with the audio.

    best regards,

    Luis

  • Hello Luis,

    Thanks,
    I had already thought it was for this, now I have confirmed.
    Thank you very much for your time.