File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -413,12 +413,13 @@ error_t es8388_set_voice_volume(int volume) {
413
413
else if (volume > 100 )
414
414
volume = 100 ;
415
415
volume /= 3 ;
416
+ // DAC LDACVOL RDACVOL default 0 = 0DB; Default value 192 = – -96 dB
416
417
res = es_write_reg (ES8388_ADDR , ES8388_DACCONTROL4 , 0 );
417
418
res |= es_write_reg (ES8388_ADDR , ES8388_DACCONTROL5 , 0 );
418
419
// LOUT1 RLOUT1 volume: dataheet says only 6 bits
419
420
res |= es_write_reg (ES8388_ADDR , ES8388_DACCONTROL24 , volume );
420
421
res |= es_write_reg (ES8388_ADDR , ES8388_DACCONTROL25 , volume );
421
- // DAC LDACVOL RDACVOL default 0 = 0DB; Default value 192 = – -96 dB
422
+ // LOUT2 ROUT2 volume: datasheet says only 6 bits
422
423
res |= es_write_reg (ES8388_ADDR , ES8388_DACCONTROL26 , volume );
423
424
res |= es_write_reg (ES8388_ADDR , ES8388_DACCONTROL27 , volume );
424
425
return res ;
You can’t perform that action at this time.
0 commit comments