Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1c7d369 authored by Tarun Gupta's avatar Tarun Gupta Committed by Gerrit - the friendly Code Review server
Browse files

usb: gadget: audio: Prevent opening playback and capture stream twice



Voice over USB mode, playback and capture streams are opened twice from
two threads at the same time, when playback and capture devices are
selected together in host PC. This would cause memory map failure with AFE.
Fix this by splitting the gaudio_open_streams() function into
gaudio_open_playback_streams() and gaudio_open_capture_streams().

CRs-Fixed: 883629
Change-Id: I388b13558c3445c3d7e4694b9e4ed6fdd33596a1
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
Signed-off-by: default avatarTarun Gupta <tarung@codeaurora.org>
parent 50e0173f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment