dipper: Fix front portrait mode on single front camera
- Dipper has a single 20MP front camera sensor (s5k3t1 + IR), not a dual-camera front bokeh pipeline like perseus. - In Dipper.smali, set OOOoO0() to false so Camera2Module requests standard single-camera portrait operating mode rather than SESSION_OPERATION_MODE_FRONT_PORTRAIT (0x80f1) with 4 dual-snapshot streams. - Fixes Chi HAL QuadCFA usecase rejecting front portrait stream configuration with max_buffer count: 0 (INVALID_OPERATION / 'Can\'t connect to camera'). Change-Id: I8d7c4a1234567890abcdef1234567890abcdef12
This commit is contained in:
2 files changed
+36
-2
No files matched your search
Binary file not shown.
@@ -0,0 +1,34 @@
|
|||||||
|
From a1b2c3d4e5f678901234567890abcdef12345678 Mon Sep 17 00:00:00 2001
|
||||||
|
From: buxx <buxx@localhost>
|
||||||
|
Date: Mon, 5 Oct 2026 11:58:00 +0000
|
||||||
|
Subject: [PATCH] Fix front portrait mode for single front camera
|
||||||
|
|
||||||
|
Dipper has a single front camera sensor (s5k3t1 + IR), not a dual-camera
|
||||||
|
front bokeh pipeline. Returning true in OOOoO0() causes Camera2Module
|
||||||
|
to request SESSION_OPERATION_MODE_FRONT_PORTRAIT (0x80f1) and configure
|
||||||
|
4 dual-snapshot streams, which the Chi HAL QuadCFA usecase rejects with
|
||||||
|
max_buffer count: 0 (INVALID_OPERATION / Can't connect to camera).
|
||||||
|
|
||||||
|
Returning false ensures standard single-camera portrait mode stream
|
||||||
|
configuration is used.
|
||||||
|
|
||||||
|
Change-Id: I8d7c4a1234567890abcdef1234567890abcdef12
|
||||||
|
---
|
||||||
|
smali_classes6/com/mi/device/Dipper.smali | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/smali_classes6/com/mi/device/Dipper.smali b/smali_classes6/com/mi/device/Dipper.smali
|
||||||
|
index 4104512..7affd4d 100644
|
||||||
|
--- a/smali_classes6/com/mi/device/Dipper.smali
|
||||||
|
+++ b/smali_classes6/com/mi/device/Dipper.smali
|
||||||
|
@@ -114,7 +114,7 @@
|
||||||
|
.method public OOOoO0()Z
|
||||||
|
.locals 0
|
||||||
|
|
||||||
|
- const/4 p0, 0x1
|
||||||
|
+ const/4 p0, 0x0
|
||||||
|
|
||||||
|
return p0
|
||||||
|
.end method
|
||||||
|
--
|
||||||
|
2.34.1
|
||||||
Reference in new issue
Block a user