From 561ef31407eb66cf50baebbc27edbcc2a9db4c5b Mon Sep 17 00:00:00 2001 From: Alexander Koskovich Date: Fri, 25 Apr 2025 22:55:54 -0400 Subject: [PATCH] sm6150-common: Opt out of VIDEO_ENCODE flag for DeviceAsWebcam DeviceAsWebcam is using USAGE_VIDEO_ENCODE [1] for buffers and this results in combined usage: (VIDEO_ENCODER | CAMERA_OUTPUT). On Qcom devices DeviceAsWebcam has red & blue colors swapped. Originally we tried swapping HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS with HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS in libgrallocutils, however that inverted regular camera recording colors in some cases. [1] https://android.googlesource.com/platform/packages/services/DeviceAsWebcam/+/d079a82ba4f773210c01d488d2dfa1d4d25be8e2 Change-Id: I6c5f03fe7016f687855351c7ba15270050ea02e2 Signed-off-by: therealmharc --- vendor.prop | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor.prop b/vendor.prop index e3e7f2d..580af7f 100644 --- a/vendor.prop +++ b/vendor.prop @@ -242,6 +242,7 @@ suspend.short_suspend_backoff_enabled=true persist.rcs.supported=1 # USB +ro.usb.uvc.disable_video_encode_flag=true ro.usb.uvc.enabled=true sys.usb.mtp.batchcancel=1 vendor.usb.controller=a600000.dwc3