Commit Graph

6 Commits

Author SHA1 Message Date
John Galt
cff093c1e3 sm6150-common: camera: Cap max_brightness
* Our maximum brightness is 500.
* However, for safety related reason, I have capped this to 255.
* 255 is more than sufficient, and I do not want to be responsible for LED damage.

* Finding the default percentage took some trial and error, in this case, 59% correlated to 75.

Co-authored-by: rahul <rahul@aospa.co>
Change-Id: Ie20969362c531391e4c51b22365b74d62ccb8e5e
Signed-off-by: John Galt <johngaltfirstrun@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
John Galt
1df19d885b sm6150-common: camera: set saner values
80 was default for torch, so set 80 as default.

Change-Id: I6711c8a77ed04f01a9afeff14325e62404f66ff7
Signed-off-by: John Galt <johngaltfirstrun@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
John Galt
e04e71b5a8 sm6150-common: camera: Add enabled bool for finished workarounds
Change-Id: Iede122113f17789cdf88896cb32bc30f574ec54f
Signed-off-by: John Galt <johngaltfirstrun@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
bengris32
1037de338f sm6150-common: camera: Implement setTorchModeExt
Change-Id: Id61420be75b7efd1d13a4b0ee1d103ebd3835516
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
bengris32
a04743d19c sm6150-common: camera: Implement supportsSetTorchModeExt
Change-Id: I2ec2f4a30723763e6123a1b742468752f38e3d2f
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Dhina17
eeaa8481ee sm6150-common: Implement torch light control
[RealJohnGalt:] modify for oneplus usage, add toggle switch
[cyberknight777]: Adapt nodes and SEPolicy for sunny

Change-Id: I8ff5d814-d58d-4ed1-9b42-b025415a5c85
Signed-off-by: Dhina17 <dhinalogu@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:45 +00:00