Commit b3cd2902 authored by AKASH KUMAR's avatar AKASH KUMAR
Browse files

usb: gadget: f_uac2: avoid waiting for free operation of sound card



* snd_card_free_when_closed - Disconnect the card, free it later eventually

* Unlike snd_card_free(), this function doesn't try to release the card
* resource immediately, but tries to disconnect at first.  When the card
* is still in use, the function returns before freeing the resources.
* The card resources will be freed when the refcount gets to zero.

This change helps avoid waiting for userspace dependency to close
pcm nodes, which cause adb daemon to get killed and failing in
writing configurations to trigger configfs bind.

Change-Id: I826f57082b5593a5ac2c2f903104ce15d2fd8b69
Signed-off-by: default avatarAKASH KUMAR <quic_akakum@quicinc.com>
parent 2bd9e093
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment