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

Commit 998fc295 authored by Jeremy Wu's avatar Jeremy Wu
Browse files

UsbAlsaManager: wait for device address on usb added

Currently, when a USB audio device is attached, the framework scans all
available cards in `/proc/asound/cards` and uses this information to
further query and determine if the corresponding device is registered in
`/dev/snd/`.

However, there is some delay in the update of available cards, so in
this CL we wait until the scan results actually include some card that
has the corresponding address.

Bug: 378826805
Flag: com.android.server.usb.flags.wait_for_alsa_scan_results_if_has_audio_interface
Test: plug usb audio device multiple times
Change-Id: I718e5f7874856f0e0037459b29ebe1238e129c46
parent 40af2bbb
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