Commit bf75a05
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 9a5cab1)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e8e0134c04822f8f08a6dfad1a0cb9441c95c361)
Merged-In: If1c14cc0a4e3fbdfbed2c105d37ece9a866f18ed
Change-Id: If1c14cc0a4e3fbdfbed2c105d37ece9a866f18ed1 parent 15c5788 commit bf75a05
1 file changed
Lines changed: 34 additions & 8 deletions
Lines changed: 34 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
| 587 | + | |
| 588 | + | |
587 | 589 | | |
588 | 590 | | |
589 | | - | |
| 591 | + | |
590 | 592 | | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
596 | 615 | | |
597 | 616 | | |
598 | 617 | | |
| |||
604 | 623 | | |
605 | 624 | | |
606 | 625 | | |
607 | | - | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
608 | 630 | | |
609 | 631 | | |
610 | 632 | | |
611 | 633 | | |
612 | 634 | | |
613 | 635 | | |
614 | | - | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
615 | 641 | | |
616 | 642 | | |
617 | 643 | | |
| |||
0 commit comments