summaryrefslogtreecommitdiff
path: root/usb/Usb.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use -Werror in device/google/marlin/usb am: acc2586400 am: 75aa28bd2dChih-Hung Hsieh2017-11-071-2/+0
|\ | | | | | | | | | | am: d08adb4958 Change-Id: Ie23813da56fdcd47e2e3fe80944c02e8202403f9
| * Use -Werror in device/google/marlin/usbChih-Hung Hsieh2017-11-071-2/+0
| | | | | | | | | | | | | | | | * Remove unused local variables. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ide7ab73dc874d48fc88e3ff573f953ae2d62eddb
* | usb hal: reword log tagBadhri Jagan Sridharan2017-08-081-1/+1
|/ | | | | | Fixes: 64477786 Test: Verified log messages. Change-Id: I742bd4e841a064c2e645acfbaec7df2507ec5ad0
* HAL: usb: rename accessory strings.Badhri Jagan Sridharan2017-06-131-2/+2
| | | | | | | | | With the update in kernel interface the audio accessory and the debug accessory strings are renamed. Bug: 62272992 Test: Test analog audio notification Change-Id: Ic4caea054a01d5b8ebff1794da7bb8d7dbdb1dec
* HAL: usb: remove double declaration of current port statusBadhri Jagan Sridharan2017-06-131-1/+0
| | | | | | Bug: 62272992 Test: Manually test whether port_type is updated on unplug. Change-Id: I53da42b1dc8ec40b2b8a252a27719276fe63107c
* USB: HAL: update marlin hal to V1_1Badhri Jagan Sridharan2017-06-121-81/+144
| | | | | | | | | This CL adds support to notify frameworks when an audio or debug accessory is attached. Bug: 36604276 Test: Manually test inserting an Audio accessory. Change-Id: I9ec0f88ed85ed593b31132ba58bfedb51a435cd8
* USB HAL: enable non-pd role swapBadhri Jagan Sridharan2017-06-121-28/+136
| | | | | | | | | | | | | | | This CL enables non-pd role swap by switching preferred role from userspace and then subsequently writing into data_role node. This causes the port to disconnect and reconnect making the state machine to spin up and re-resolve the ports. The preferred_role falls back to "sink" either when the role swap fails or when the cable is disconnected Bug: 37094615 Test: Verified that non-pd role swaps were done through data_role node. Change-Id: I04981398ac04651b07246379acdabe2eee54fa49
* Usb hal for marlinBadhri Jagan Sridharan2017-02-241-0/+526
Test: Triggered role swaps through UI and validated correctness of USB dialog Change-Id: Ib946b0ecc4e823d5f99dfb34f8d5070b7404f4ab