platform_hardware_interfaces/camera
Tang Lee 65382f6a50 Fix external camera HAL crashes
External USB camera hal service crashes when disconnecting the camera.
ExternalCameraDeviceSession's desctructor is called and deletes mLock,
but mBufferRequestThread is still running and waiting on the same
mLock, which causes the "pthread_mutex_lock called on a destroyed
mutex" error.

Fix the issue by stopping the thread in destructor. Also refactors the
functions and remove unused conditions.

Bug: 289741662
Test: Test with USB camera
Change-Id: I06b1ff6e192a4bca16822785d65d68a6aae53414
2023-08-01 10:32:46 +00:00
..
common cleanup camera OWNERS 2023-01-18 21:06:05 +00:00
device Fix external camera HAL crashes 2023-08-01 10:32:46 +00:00
metadata Camera: Add links to mandatory stream combination tables 2023-06-14 21:49:32 +00:00
provider Camera VTS: Properly initialize Stream in various places am: 263e362091 am: 45063e6c9f am: 32b90a4a29 2023-06-29 21:29:01 +00:00
OWNERS cleanup camera OWNERS 2023-01-18 21:06:05 +00:00
README.md Add pointer to default AIDL Camera HAL Implementation in README.md 2022-11-13 04:29:49 +00:00

Camera HALs


Overview:

The camera.* HAL tree is used by the Android camera service to discover and operate camera devices available on the device.

More details and versioning information can be found within each particular HAL.

More complete information about the Android camera HAL and subsystem can be found at source.android.com.

AIDL Camera HAL Interfaces

The AIDL Camera HAL interfaces can be found in the respective /aidl directories.