pschatzmann / arduino-audiokit

Arduino ADF/Audiokit HAL (support for ESP32-A1S, AI-Thinker, LyraT for ES7148, ES7210, ES7243, ES8311, ES8347, ES8388, TAS5805M, AC101 audio chips)
GNU General Public License v3.0
157 stars 42 forks source link

ES7243 erroneous value for 22.5dB volume #115

Open Xevel opened 6 months ago

Xevel commented 6 months ago

Problem Description

Value sent to the device for volume +22.5dB is wrong. Code sends 0x06 when it should be 0x05. Result is that the device goes mute (as 0x06 is an invalid value). Valid volume values are (badly) described in the User manual of the chip.

Fix is in src/audio_driver/es7243/es7243.c , l.171 ret |= es7243_write_reg(0x08, 0x06); //22.5db becomes ret |= es7243_write_reg(0x08, 0x05); //22.5db

Device Description

Custom

Sketch

-

Other Steps to Reproduce

Setting the volume on ES7243 with es7243_adc_set_voice_volume(60) will result in no sound instead of sound with gain of 22.5dB.

Provide your Version of the EP32 Arduino Core

nothing to do with Arduino Core

I have checked existing issues, discussions and online documentation