Skip to content
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

A2DP Sink example exhibits pops and clicks for a sine wave input. (IDFGH-8124) #9622

Closed
3 tasks done
mark-farrugia-fiberdyne opened this issue Aug 24, 2022 · 0 comments
Closed
3 tasks done
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@mark-farrugia-fiberdyne

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v4.4.2

Operating System used.

Windows

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

PowerShell

Development Kit.

ESP32 FireBeetle | ESP32 Custom Board

Power Supply used.

External 5V

What is the expected behavior?

When running the A2DP Sink example project, I should not be able to hear clicks and pops, ever.

What is the actual behavior?

When running the A2DP Sink example project, audio is fine, except when a pure sine wave is input.
For some reason, clicks and pops are exhibited, but strangely, only for pure sine waves (of any frequency).
This is evident for both the internal DAC output, and for external DAC via I2S.

Steps to reproduce.

  1. Build and run A2DP Sink example in either internal DAC output, or external I2S mode (it should not make a difference).
  2. Input a clean sine wave via Bluetooth A2DP, of any frequency. The important part is that it is a single frequency. If the signal has more than one spectral component, the issue cannot be reproduced.
  3. Listen to the signal, and hear consistent pops and clicks on playing, and then random thereafter.
    ...

Debug Logs.

No response

More Information.

This has been verified on both a devkit FireBeetle ESP32, and a custom board.

@espressif-bot espressif-bot added the Status: Opened Issue is new label Aug 24, 2022
@github-actions github-actions bot changed the title A2DP Sink example exhibits pops and clicks for a sine wave input. A2DP Sink example exhibits pops and clicks for a sine wave input. (IDFGH-8124) Aug 24, 2022
mark-farrugia-fiberdyne added a commit to fiberdyne/esp-idf that referenced this issue Aug 24, 2022
This change fd83938 seems to have
caused some breakage in the A2DP sink dequeue loop.
@espressif-bot espressif-bot added Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new Resolution: NA Issue resolution is unavailable labels Oct 18, 2022
espressif-bot pushed a commit that referenced this issue Nov 25, 2022
1. removed audio cache in BTC layer of Bluedroid
2. added flow control for audio data in application layer

Closes #9622
espressif-bot pushed a commit that referenced this issue Nov 29, 2022
1. removed audio cache in BTC layer of Bluedroid
2. added flow control for audio data in application layer

Closes #9622
espressif-bot pushed a commit that referenced this issue Dec 4, 2022
1. removed audio cache in BTC layer of Bluedroid
2. added flow control for audio data in application layer

Closes #9622
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

3 participants