Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c2459849 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera: Fix test pattern data propagation

For sensor muting, the original test pattern data needs to be kept
with the capture request, in case it is overridden by sensor muting mode.

Unfortunately, the copy used the wrong source data entry
(the test pattern mode), resulting in corrupted test pattern data.

Fix that, and also skip the test pattern override entirely when
sensor mute isn't supported. And clean up some unnecessary cast for
clarity.

Test:
  - TestingCamera2 with test patch shows correct color
    for TEST_PATTERN_MODE_SOLID_COLOR,
  - atest CtsCameraTestCases passes
Bug: 173154486
Change-Id: Ib266440eb97476d52a1a48f135464da6cd827004
parent 74dcdac0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment