We are seeing Camera preview distortion while USB camera is connected and camera setting dialog is in foreground.
1. Connect USB camera.
2. Go to default Google Camera application (GMS) and open USB camera > select camera settings.
3. Some distortion will be seen on the screen and after few minutes preview frames stops due to timeout issue in Camera HAL at select(mCameraHandle+1, &rfds, NULL, NULL, &tv) in UvcDevice.cpp.
This issue is observed with applications using Surface Texture (OpenGL ES texture) instead of Surface Holder for output destination.
Android JB 22.214.171.124.1.0 build
Custom board based on FSL IMX6 Sabresd
Camera: Logitech Webcam C930e and C310
Could you please provide the patches for the above issue for Android 4.2.2?