Many host applications expect and ask for lower resolution streams when
streaming from a USB webcam. To support those applications, this CL
adds support for 640x480 and 640x360 streams.
Bug: 301170431
Test: Manually tested that the resolution is advertised and streamed.
Change-Id: I78e9f97575784996aac94e576c7f23b0874a8d09
Write to /sys/class/typec/port<...>/device/update_sdp_enum_timeout
to reduce SDP enumeration timeout value when device is in charger
mode. This will enable faster detection of a DCP port.
ported from 6710e31a629f81cf308e1099f75a01c82db6d006
Test: Validate (in charger mode) that the sysfs attribute is 1
(meaning lower sdp timeout value is being used). Read dmesg to
see print showing timeout value is 5000ms.
Bug: 275687235
Change-Id: I1bc872911d7f1eab26e62fe6f12fba05608e0f83
Signed-off-by: Amit Sunil Dhamne <amitsd@google.com>
Files created by the uvc driver gives write permissions to 'other' by
default. This permission is not needed at runtime. To minimize write
privileges, this CL removes other's write permission from all uvc config
files that had it.
Bug: 242344229
Test: Manually verified that no files have other-write permissions
Change-Id: I67d504fa924f90f3a54dab5264ab1609050f5dd5
The UVC gadget requires some setup in configfs before it can be used by
the gadget HAL. This CL adds that setup to usb specific init.rc file.
Currently, UVC is setup to advertise mjpeg streams at 720p and 1080p at
60, 30, 24, and 15 fps each.
Bug: 242344221
Test: Manually tested that UVC is correctly set up on boot.
Change-Id: Ic597e5a1ec1bd31d73899e5a885f8cb0d0753bd5
Since the dwc3 irq is moved by USB gadget hal now, the
script is not needed.
Bug: 194346886
Test: build pass
Change-Id: Iea0aed110183d9583db00d9b182d351de41573cd
Since permission change in hal rc may be late, gadget
hal would enable USB function failed. The solution will
change the permission before USB gadget hal starts.
Bug: 206902205
Test: build pass and verified pass
Change-Id: I45c1318f647220480fa03ba3b813a81b21393d71
(cherry picked from commit b30924e3599f2e92aeae498a6ae15d3b9a397930)
In previous we created a new bootmode "uwb" which will enable
the ACM port, but the name was wrong. Rename it as "usbuwb"
Bug: 187877902
Test: ACM port can be enabled
Signed-off-by: Puma Hsu <pumahsu@google.com>
Change-Id: Id27930c4c34e7272cebf1825b6aa68f526e84112
uwb needs ACM port, create this function combination.
Bug: 187877902
Test: ACM port can be enabled.
Signed-off-by: Puma Hsu <pumahsu@google.com>
Change-Id: I14c6af95bbd5e9e0b2c4a17a1fffb6e04def2c9b
init.usb.configfs.rc has the same trigger condition of midi function.
Rename the config name to "charger" to avoid triggerring twice of the
midi function.
Bug: 188744218
Test: USB enumerated in charger mode
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: Ica112fb4be66356901f6d5f21b79b9e648d49f35
This among other things greatly increases tethering performance.
Bug: 185092876
Test: TreeHugger, built and booted on an oriole, enabled tethering
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ic9f0b4bef05250bb38c91dc1e046366098d98dc0
It needs a USB function in charger mode to set the charging current to
500mA/900mA.
Bug: 188744218
Test: charging at 900mA in charger mode
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I95c98ecec30dd4394228f7290412c303771a3158
The cancelling behavior in MTP has two behaviors.
1. cancel requests one by one
2. batch cancel all requests
This patch will set the property to true to enable
batch cancel all requests.
Bug: 181729410
Test: build pass
Change-Id: I8d92cc676ff7be8fd22a574b32653bafc028b801
The cancelling behavior in MTP has two behaviors.
1. cancel requests one by one
2. batch cancel all requests
This patch will set the property to true to enable
batch cancel all requests.
Bug: 181729410
Test: build pass
Change-Id: Iad744e27e6f843ae22fc499efbb803be51e1b820
Bug: 172793258
Test: built and booted on oriole, tethering still works
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Iff304938e57e28b3a62784fbd0b226a20e0f53cc