Hi,
I'm trying to bring up Bluetooth audio playback in my iMX8 board.
I've successfully connected the board with my phone via Bluetooth.
However, while playing music on the phone, the audio through the speaker or earphones connected to the board is clipping.
Interestingly, there is no clipping issue while the music file is directly played from the hardware using gstremer plugins.
I tried the solutions mentioned below, but nothing changed:
1. Moved the WiFi network to 5GHz so that there will be no interference.
2. Changed the fragment size and the latency on PulseAudio output port, trying to compensate interference.
Before changing latency(output from :~# pactl list):
Profiles:
a2dp_source: High Fidelity Capture (A2DP Source) (sinks: 0, sources: 1, priority: 20, available: yes)
headset_audio_gateway: Headset Audio Gateway (HSP) (sinks: 1, sources: 1, priority: 10, available: no)
handsfree_audio_gateway: Handsfree Audio Gateway (HFP) (sinks: 1, sources: 1, priority: 10, available: yes)
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
Active Profile: off
Ports:
phone-output: Phone (type: Phone, priority: 0, latency offset: 0 usec, availability unknown)
Part of profile(s): headset_audio_gateway, handsfree_audio_gateway
phone-input: Phone (type: Phone, priority: 0, latency offset: 0 usec, availability unknown)
Part of profile(s): a2dp_source, headset_audio_gateway, handsfree_audio_gateway
After changing latency:
Profiles:
a2dp_source: High Fidelity Capture (A2DP Source) (sinks: 0, sources: 1, priority: 20, available: yes)
headset_audio_gateway: Headset Audio Gateway (HSP) (sinks: 1, sources: 1, priority: 10, available: no)
handsfree_audio_gateway: Handsfree Audio Gateway (HFP) (sinks: 1, sources: 1, priority: 10, available: yes)
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
Active Profile: a2dp_source
Ports:
phone-output: Phone (type: Phone, priority: 0, latency offset: 50000 usec, availability unknown)
Part of profile(s): headset_audio_gateway, handsfree_audio_gateway
phone-input: Phone (type: Phone, priority: 0, latency offset: 0 usec, available)
Part of profile(s): a2dp_source, headset_audio_gateway, handsfree_audio_gateway
3. Tried setting ignore_dB=1 in /etc/pulse/default.pa:
/etc/pulse/default.pa
load-module module-udev-detect ignore_dB=1
4. Set the profile to a2dp
How can I tackle the issue.
Thank you.