Commit graph

12 commits

Author SHA1 Message Date
Oleg Blinnikov
3248117d06 persist.sys.hdcp_checking controls max hdcp
Change-Id: Ibe2554019449b6f958fc6e0168ae0deccc9f589d
Bug: 321344894
Test: set persist.sys.hdcp_checking, check the file is updated
2024-03-20 11:10:41 +00:00
Kuen-Han Tsai
559da7282a usb: enable media-presence polling for SD cards
After USB enumeration, some SD card readers do not send signals to the
device when the SD card is inserted or removed.

To support SD card hotplugging, this patch enables in-kernel
media-presence polling, which will check the SD card status every 2
seconds after a SD card reader is attached.

Bug: 186479576
Test: SD card insertion/removal and data copy (see b/301566595)
Change-Id: I044aeffd9386c0bee6138402e5130c39e1adbc9f
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2023-12-12 14:11:31 +08:00
Avichal Rakesh
429d54af35 usb.rc: Advertise 360p and 480p support through UVC
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
2023-09-20 10:20:55 -07:00
Amit Sunil Dhamne
e97fc75c92 usb: Modify sdp enumeration timeout value in charger mode
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>
2023-09-19 13:58:20 -07:00
Avichal Rakesh
9f58739630 usb gadget: Add config for UVC in init
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>
2023-09-06 20:53:58 +00:00
Petri Gynther
c8abdf6bb7 usb: dp: add exynos_drm:dp_enabled toggling
Bug: 286459987
Change-Id: If4a6e71bc3ce342af8a0201b4727bdc4666cf8f0
2023-06-08 18:02:44 -07:00
Jimmy Hu
3d72a5b29f Disable USB contaminant detection when the disable flag is true
(ported from 6b1106498e1164f46b9a895ed2258a20a0c7a7b5)

Bug: 263916675
Bug: 264231895
Test: setprop vendor.usb.contaminantdisable true
Change-Id: I57ea8280e4af3720dce9d9174b1cc24066c5324e
Signed-off-by: Jimmy Hu <hhhuuu@google.com>
2023-05-23 07:01:33 +00:00
Ray Chi
8ee17b3a8f usb: modify the initial_descriptor_timeout to 500ms
If the enumeration is too long, it may trigger the watchdog mechanism
to cause device reset. Therefore, this patch will modify the timeout.

Bug: 282876796
Test: build pass and the value is set to 500.
Change-Id: Ib54d8ff5a1e680fc86f2b89ee0d02d63ee5741d8
2023-05-16 14:44:57 +08:00
Badhri Jagan Sridharan
2173dc37da usb: Expose persistent vendor property for USB-C Dp Alt Mode
The change exposes persist.vendor.usb.displayport.enabled
to enable/disable USB-C Dp Alt Mode i.e. DisplayPort over USB-C.

By default persist.vendor.usb.displayport.enabled is to 0 in
user builds and 1 in all other build variants.

Bug: 277107943
Change-Id: I596d3af52f2a813f5f78c4f9b77b6ae3dd8a161b
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
2023-04-08 01:01:12 +00:00
Ray Chi
c730457151 conf: remove the bcdDevice control
bcdDevice will use the kernel version as default, so this patch will
remove it.

Bug: 260539020
Test: build pass
Change-Id: I2f51533e76775707b96cc13a6b29e5500b2ce4dd
2022-11-28 15:03:42 +08:00
Kyle Tso
0524f3112d usb: Modify the controller name
The name is 11210000.dwc3.

Bug: 242013445
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I49809ebfc6027b650fbea0df643ab1900a538d17
2022-08-10 16:42:16 +08:00
Aaron Ding
66befd88e3 Create device Ripcurrent on Zuma platform
s/cloudripper/ripcurrent
s/gs201/zuma
s/pantah/ripcurrent

Bug: 229340586
Change-Id: Ic5dffbbfadbb1eb8479587b95222801426bba35e
Signed-off-by: Aaron Ding <aaronding@google.com>
2022-04-19 12:55:56 +08:00
Renamed from conf/init.gs201.usb.rc (Browse further)