Skip to content

Fix capture and playback concurrency issue - #19

Merged
quic-aditrath merged 1 commit into
AudioReach:masterfrom
RaviHothi:master
Nov 20, 2025
Merged

quic-aditrath merged 1 commit into
AudioReach:masterfrom
RaviHothi:master

Conversation

@RaviHothi

Copy link
Copy Markdown
Contributor

The existing implementation lacks proper handling for concurrent enablement of capture and playback. This update introduces a new implementation to address and resolve the concurrency issue.

Comment thread audioreach-driver/q6apm_audio_pkt.c Outdated
Comment thread audioreach-driver/q6apm_audio_pkt.c Outdated
Comment thread audioreach-driver/q6apm_audio_pkt.c Outdated
Comment thread audioreach-driver/q6apm_audio_pkt.c Outdated
@RaviHothi
RaviHothi force-pushed the master branch 2 times, most recently from 8a44b03 to e77b615 Compare November 6, 2025 07:09
Comment thread audioreach-driver/q6apm_audio_pkt.c Outdated
Comment thread audioreach-driver/q6apm_audio_pkt.c Outdated
The existing implementation lacks proper handling for concurrent
enablement of capture and playback. Replace FIFO-based port backup
with idr-based mapping. This change introduces a new implementation
for backing up src/dst ports using idr_alloc() to associate the mapping
with a unique token. The previous FIFO-based mechanism has been removed
to simplify the logic and avoid race conditions during port restoration.
The callback now retrieves the port mapping via idr_find() and restores
the ports accordingly.

Signed-off-by: Ravi Hothi <ravi.hothi@oss.qualcomm.com>
@quic-aditrath
quic-aditrath merged commit 8d81c33 into AudioReach:master Nov 20, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants