-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
USB: HAL: enable auto suspend for USB headsets
Adds a thread that handles add uevents of USB devices, and enables auto suspend on that USB device (i.e. set power/control to auto) if the device idProduct/idVendor is whitelisted. The android kernel will already autosuspend audio devices, however this enables autosuspend for the Google USB-C to 3.5mm adapter, which presents an HID-only interface when no 3.5mm headset is connected. Test: with the selinux and .rc changes for access permission - MIR without headset: power/control set to auto - MIR with headset: power/control set to auto - regular mouse: power/control set to on Bug: 38352281 Change-Id: I81572584ea02f6bdc814e70ab3439ab86c34a50a
- Loading branch information
Showing
1 changed file
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters