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

Skip to content
Commit 263b1c1e authored by jiabin's avatar jiabin Committed by Android Build Coastguard Worker
Browse files

USB: update logic for reporting playback and capture capability of USB devices.

Report USB devices support audio capture when there is a terminal whose
subtype is ACI_OUTPUT_TERMINAL and terminal type is USB streaming and
there is another terminal whose subtype is ACI_INPUT_TERMINAL and
terminal type is not USB streaming.

Report USB devices support audio playback when there is a terminal whose
subtype is ACI_INPUT_TERMINAL and terminal type is USB streaming and
there is another terminal whose subtype is ACI_OUTPUT_TERMINAL and
terminal type is not USB streaming.

Bug: 279151646
Bug: 278603582
Test: connect usb headset, dumpsys audio policy
(cherry picked from commit 9a5cab13)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e8e0134c04822f8f08a6dfad1a0cb9441c95c361)
Merged-In: If1c14cc0a4e3fbdfbed2c105d37ece9a866f18ed
Change-Id: If1c14cc0a4e3fbdfbed2c105d37ece9a866f18ed
parent 05c52fc5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment