When the camera previews, it shows portrait, how to change portrait to landscape, when the camera previews
what board and bsp do you use? do you use yocto or android?
android p
adb shell settings put system accelerometer_rotation 0 #disable auto-rotate
adb shell settings put system user_rotation 3 #270° clockwise
the commands below are for portraid, you can change the rotation number for landscape mode
thanks