-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal DAC audio broke in v4.4 (IDFGH-6715) #8344
Comments
That patch works with pschatzmann/ESP32-A2DP. The A2DP-Sink example is kind of working. It has much louder audio and it's full of static. |
@cfint That may be caused by the input signed value are output in unsigned value, try the following change to see if it can help: void bt_app_a2d_data_cb(const uint8_t *data, uint32_t len)
{
uint8_t *recv_data = malloc(len);
for (int i = 0; i < len; i++) {
recv_data[i] = data[i] + 128;
}
write_ringbuf(recv_data, len);
free(recv_data);
/* log the number every 100 packets */
if (++s_pkt_cnt % 100 == 0) {
ESP_LOGI(BT_AV_TAG, "Audio packet count: %u", s_pkt_cnt);
}
} |
Working with patch https://github.com/espressif/esp-idf/pull/8327/files |
This fix broke the I2S ADC, had to revert the old code back |
Environment
Problem Description
I2S internal DAC produces garbled sound with A2DP-Sink example. I've bisected the problem to commit f7f8c9c. The prior commit (2f1247e) does not compile. The most recent working commit on the
v4.4
branch is 12c76b4.The problem still exists on on current master (a470ae2)
Expected Behavior
Analog sound playback through I2S internal DAC.
Actual Behavior
Internal DAC doesn't play correct sound.
Steps to reproduce
The text was updated successfully, but these errors were encountered: