sonyxperiadev / bug_tracker

Empty repository that is used as a bugtracker for Open Devices project
52 stars 13 forks source link

[LENA][11][4.19] cannot switch between different cameras as intended #732

Open sledges opened 2 years ago

sledges commented 2 years ago

Platform: lena Device: pdx213 xqbt52 (Xperia 10 III) Kernel version: 4.19.188-gc7505f2d6045-dirty (due to wlan-qc submodules) Android version: AOSP11 android-11.0.0_r46 Software binaries version: SW_binaries_for_Xperia_Android_11_4.19_v8a_lena.img

Previously working on stock Sony Android 62.0.A.3.70 (also when reflashed via Emma to 62.0.A.3.109)

Description Camera app can't switch to front-facing cam in photo mode, and switches between other front cam lenses in video mode.

Symptoms Tapping on "front camera" icon and subsequently the "rear camera" one, does not switch the viewfinder between the front and rear cameras.

How to reproduce

  1. Open Camera app, it starts in 1.0 front lens photo mode
  2. Tap on front cam icon (outcome: viewfinder reinitialises to the same 1.0 lens on rear cam instead)
  3. Tap on now rear cam icon (same outcome)
  4. Switch to video recording (same 1.0 lens mode shown)
  5. Switch to front cam mode (outcome: switches to 0.6 wide lens mode)
  6. Tap on now rear icon (outcome: goes back to 1.0 lens mode)

Additional context AOSP from fresh built on 2021-12-09 Relevant logcat sections are marked with steps above in the file starting with ***: logcat.log

sraase commented 2 years ago

The switching behaviour is not even consistent. OpenCamera also shows very strange behaviour when set to "Original camera API", but works correctly when set to "Camera2 API".

As a workaround, you can set "multiCameraEnable=FALSE" in /vendor/etc/camera/camxoverridesettings.txt. But this will also disable the tele/uwide sensors.

Thaodan commented 2 years ago

As a workaround, you can set "multiCameraEnable=FALSE" in /vendor/etc/camera/camxoverridesettings.txt. But this will also disable the tele/uwide sensors.

Thank you that works.