The values are based on most efficient frequencies from EM default
profile.
Bug: 289083704
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: Iab3f17c9f32e0ea01e1a8f414373aac0fece8b46
This reverts commit 253d3d48fa.
Reason for revert: Scheduling while atomic b/301031609
Bug: 301031609
Change-Id: I8179a926315da55ede03653a1517f13f61f3fdeb
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: Ifda2322747fced10c164afa98420fd35b17dbdd1
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>
Indicate to the kernel that the usb gadget is pulled up
by writing to `update_sdp_enum_timeout` sysfs node. Write
to this node will inform the kernel that it can lower the SDP
timeout alarm value which is used to detect an SDP port
vs a DCP.
(ported from c5c5b127a7ed0db559d286284fe77b656bef6945)
Bug:275687235
Test: Check `update_sdp_enum_timeout` is written into after usb
gadget is pulled up. Verify that the alarm timeout lowers.
Change-Id: Id3ae7e7a20b236cec6604414a7f81860e868bdd0
Signed-off-by: Amit Sunil Dhamne <amitsd@google.com>
If Usb.cpp cannot write a zero value to the USB_DATA_PATH file, display
the message of "Not able to turn off usb connection notification".
Test: refactoring CL. Existing tests still pass.
Bug: 301016122
Change-Id: I5d2c24154bd1d2c20810bcb4db0a3b2cc575fcfe
We'll rerun the review to use READ_PRIVILEGED_PHONE_STATE in QPR2
instead
Bug: 293811206
TESTED=Manual
Change-Id: I71bc67b102f5c7f021d774c5c505e0a8713f36e6
Temporarily reset the max page size on zuma devices to 4096 to avoid
extra gap VMAs in P23 devices for qpr1.
Bug: 300942232
Test: readelf -Wl /system/bin/init
Change-Id: I1fda0599a21c633292062db1278df0fed50de23e
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
Move sysprop for enabling DP to device level makefiles so DP
configuration can be controlled at a device level.
Test: manual (check /sys/module/exynos_drm/parameters/dp_enabled)
Bug: 300167292
Change-Id: Ic2ee2bba8960fe0960ac8acf03eaa2ac4b9b74e6
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.
Bug: 242344221
Test: Manually tested that UVC is correctly set up on boot.
Merged-In: I71cf4727fb23744c5aef368c1750784a19ba8c5d
Change-Id: I71cf4727fb23744c5aef368c1750784a19ba8c5d
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
UVC is a new USB function supported in Android. This CL adds UVC as a
valid function and gives it a new pid of 0x4ee[de]. UVC function is
guarded by the property `ro.usb.uvc.enabled`. When this property is set
to false, UVC won't be considered as a valid gadget function.
Bug: 242344221
Test: Manually tested that the UVC function is successfully configured
Merged-In: I5c2040a84ee8360b16c955403478d908fe109121
Change-Id: I5c2040a84ee8360b16c955403478d908fe109121
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
Populates AltModeData within PortStatus with DisplayPort
Alt Mode statuses for pin assignment, hpd, link training
status, and port partner capability.
Test: manual test on device
Bug: 277466852
Change-Id: I52a56f7090ed6dbef6211f19d6350cecac58e4fa
Merged-In: I52a56f7090ed6dbef6211f19d6350cecac58e4fa