feat&fix: 小智云聊增加蓝牙功能 (#1732)

This commit is contained in:
zczc365
2026-02-07 11:02:03 +08:00
committed by GitHub
parent 49cd6625f4
commit b4eada876a
6 changed files with 104 additions and 17 deletions

View File

@ -186,9 +186,6 @@ void Es8388AudioCodec::EnableOutput(bool enable) {
// Set analog output volume to 0dB, default is -45dB
uint8_t reg_val = 30; // 0dB
if(input_reference_){
reg_val = 27;
}
uint8_t regs[] = { 46, 47, 48, 49 }; // HP_LVOL, HP_RVOL, SPK_LVOL, SPK_RVOL
for (uint8_t reg : regs) {
ctrl_if_->write_reg(ctrl_if_, reg, 1, &reg_val, 1);