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

Commit 6020b7ad authored by Azhar Shaikh's avatar Azhar Shaikh
Browse files

usb: android: Fix multiple issues seen with audio_source



Crash is seen when performing USB composition switch or USB cable
disconnect from audio source USB composition. Usage of
usb_remove_function() with audio_source_function_unbind_config()
results into deletion of audio source function from function list
in addition to unbind_config(). Fix this issue by removing
audio_source_function_unbind_config().

snd pcm device is also not created using snd_card_setup(). Hence
fix this issue by creating snd pcm device with audio_bind() and
removing same with audio_unbind().

Change-Id: Ia96da8b33b924952a962a7170e3604af37020931
Signed-off-by: default avatarAzhar Shaikh <azhars@codeaurora.org>
parent 40b49a34
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