Commit 1c61231
committed
audio: replace es7210_adc_set_gain
Apparently the ESP32-S3-BOX-Lite uses different audio chips than the
other ESP32-S3-BOX variants. We unconditionally call
es7210_adc_set_gain() to set the MIC gain, and with ESP-ADF 2.7 and
ESP-IDF 5.3, using the new I2C driver, this causes a crash due to the
es7210 i2c_handle being NULL.
Fix this by using audio_codec_set_volume on the ADC audio handle.
Fixes: #4371 parent d456530 commit 1c61231
2 files changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
1023 | 1022 | | |
1024 | 1023 | | |
1025 | 1024 | | |
1026 | | - | |
| 1025 | + | |
1027 | 1026 | | |
1028 | 1027 | | |
1029 | 1028 | | |
| |||
1052 | 1051 | | |
1053 | 1052 | | |
1054 | 1053 | | |
1055 | | - | |
| 1054 | + | |
1056 | 1055 | | |
1057 | 1056 | | |
1058 | 1057 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
0 commit comments