summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* camera_common: change torch status callback APIChien-Yu Chen2015-03-171-28/+31
| | | | | | | | | | | | | | | | | | Update the torch status callback API so that HAL must invoke the torch status callback whenever the torch status changes including changes by set_torch_mode(). The problem of the previous approach was camera service needed to invoke the callback after calling set_torch_mode() and two sources of the torch status changes (HAL and camera service) caused a race condition. Add STATUS_ON and remove STATUS_AVAILABLE which isn't useful because STATUS_OFF means torch is off and available. STATUS_ON means torch is on and available. Bug: 2682206 Change-Id: Ide5d289c5f485404a3ba46e6cb359fa8a52da0bb
* camera_common: add -EUSERS to set_torch_modeChien-Yu Chen2015-03-171-4/+6
| | | | | | | | To match the public API, seperate camera device in use and other resources in use errors. Bug: 2682206 Change-Id: Ie0451931f0c84fc65f3f6294a9f44bec10627afe
* camera3: update reprocessing specZhijun He2015-03-172-4/+161
| | | | | | Also bump the HAL version to 3.3 for reprocessing spec update Change-Id: I37eda90970eace23c42ba9106d4db1587df8d1b4
* camera_common: add TORCH_MODE_STATUS_OFFChien-Yu Chen2015-03-171-2/+20
| | | | | | | | | | Add TORCH_MODE_STATUS_OFF for the case when HAL has to turn off the torch mode that was turned on by a previous set_torch_mode() call in order to turn on the torch mode for the current set_torch_mode() call. Bug: 2682206 Change-Id: Ia2f717ffaca8c4346ec5fcdf73895160f700f067
* camera HAL: Update camera_info with simultaneous access information.Ruben Brunk2015-03-171-0/+80
| | | | | | | | | - Add necessary metadata to the camera_info structure to allow the camera service to determine which devices can be safely opened and used simultaneously without attempting to open camera devices. Change-Id: I4250b4c7e1296ebf4cab07355d6d3be01f17ba1e
* camera: update HAL module API for external cameraZhijun He2015-03-171-28/+101
| | | | | | Update camera module API 2.4 for usb camera support. Change-Id: Id8329e31ad0622bdc06c60e87e97c742a9719b3b
* camera_common: add torch mode APIs for flashlightChien-Yu Chen2015-03-173-6/+169
| | | | | | | | Add torch mode APIs to support flashlight without opening any camera devices. Bug: 2682206 Change-Id: Ida46bb878962caf305f3e97051b15e0465fe8c02
* Merge "gralloc: clarify lock_ycbcr in light of multimedia codec usage" into ↵Lajos Molnar2015-02-041-2/+11
|\ | | | | | | lmp-mr1-dev
| * gralloc: clarify lock_ycbcr in light of multimedia codec usageLajos Molnar2015-01-301-2/+11
| | | | | | | | | | Bug: 19179927 Change-Id: I53886f8d1a3a998b958f031b04ddd4cbf19aad2c
* | audio: Add audio parameter key for device connectHaynes Mathew George2015-01-311-0/+1
|/ | | | | | | | | Add audio parameter key for device connect. Bug: 17785277 Bug: 19214836 Change-Id: Icd81702634e0bd83645d89c2d65e2b303fc11f8c (cherry picked from commit 55c07c3418a3bc19a72c4935d8ed57a57074c49a)
* camera3: update ZSL specZhijun He2015-01-291-31/+2
| | | | | | | | INPUT stream is not used by framework-implemented ZSL (HAL3.2), the sample use case description is incorrect. Bug: 19197776 Change-Id: I247ad8755b2197c2a62cc109c151749b42a4bd49
* CEC: Add a new flag for set_optionJinsuk Kim2015-01-191-0/+9
| | | | | | | | | Added a flag to pass system language information to HAL so that it can respond to <Get Menu Language> in standby mode. Bug: 19054079 Change-Id: Iada00307202f5c9429944184b62b6456b624125a
* usb audio: Fix incorrect bytes returned for recordingPavan Chikkala2015-01-091-1/+5
| | | | | | | | | | | | | In a recording session , the number of bytes read is not updated when pcm_read() fails. This results in silence/invalid data being added during a device switch from USB headset to handset. Fix is to reset the number of bytes read if pcm_read() returns an error indicating removal of USB headset. Bug: 18611518 Change-Id: I10d578c3cf1037c90a891e63be2bd1c2b7e6126b
* DO NOT MERGE - fix: memory leaksoon1.choi2014-12-181-0/+2
| | | | | | | | | | free momory for str_parms to prevent memory leak. cherry-pcik from aosp c357157e28dc0ffd069b80aeba9bf8b9eed72c9a Bug: 18798194. Change-Id: I7df5567d665554dbd4646c881f0f48b0c568c5fe
* CEC: Add a parameter port ID to set_audio_return_channelJinsuk Kim2014-12-171-1/+1
| | | | | | | | | This CL addresses the cases where TV has more than one ARC-supported HDMI ports. Bug: 18781204 Change-Id: I4eaeb755caf2552b826a7322d19ee671407ee43f
* usbaudio: reset profile on device disconnectHaynes Mathew George2014-12-111-3/+8
| | | | | | | | | | Reset ALSA device profile on disconnect event. Entries like supported sample rates, channel counts, formats will be repopulated on next connect. CRs-Fixed: 765434 Change-Id: I27d3b7fd7ff22646996f58c53de08547b1a1fb6a Bug: 18606219
* Reroute submix HAL: fix race condition on output stateJean-Michel Trivi2014-12-091-3/+4
| | | | | | | | | | | | | | When reading from a pipe, the output may have been previously closed, therefore the output state should only be read if it is still available. This fixes a race condition observed between in_read() (which accesses the output stream) and adev_close_output_stream() (which sets the output reference to NULL). No issue with out_write() which checks the input reference. Bug 16009464 Change-Id: I979bc12c8fe91fad9b6f6c9e0be107c1bacae360
* Add server-side callback for change in MTU (1/4)Andre Eisenbach2014-11-261-0/+4
| | | | | | | | | When a client requests to update the LE transport MTU, the server currently does not get notified and can therefor not properly size notifications appropriate to the current MTU. Bug: 18388114 Change-Id: I136f32cba48da3302e13fb9a9ec81b8e01712138
* Support multiple pipes for reroutingJean-Michel Trivi2014-11-171-140/+295
| | | | | | | | | | | | | | | | The implementation for "remote submix" supported only one pipe to capture the output of a mix. This CL adds support for multiple pipes to support capturing multiple audio routes. The structure for the r_submix audio device holds an array of route configurations (route_config), each referencing the input and output of the pipe dedicated to this route. Each route is associated to a unique address. Standby status is maintained per stream. Bug 16009464 Change-Id: Ie164c4ad2a6d8138f825484e7faf29a974ccf82e
* Merge "Add a BufferItem parameter to onFrameAvailable" into lmp-mr1-devDan Stoza2014-11-073-3/+3
|\
| * Add a BufferItem parameter to onFrameAvailableDan Stoza2014-11-043-3/+3
| | | | | | | | | | | | | | | | Passes the BufferItem for the queued buffer to the onFrameAvailable callback so the consumer can track the BufferQueue's contents. Bug: 18111837 Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0
* | Merge "Camera2/3 HAL test: cleanup deprecated keys" into lmp-mr1-devYin-Chia Yeh2014-11-076-103/+273
|\ \
| * | Camera2/3 HAL test: cleanup deprecated keysYin-Chia Yeh2014-11-066-103/+273
| | | | | | | | | | | | | | | Bug:16877860 Change-Id: I1eddec02cefa39692f63cc54cc40b75f449516a7
* | | Merge "Fix typo and add more detailed comments on what we expect from GPS ↵Daniel Estrada Alva2014-11-061-7/+38
|\ \ \ | |_|/ |/| | | | | HAL. b/16727892" into lmp-mr1-dev
| * | Fix typo and add more detailed comments on what we expect from GPS HAL.Tsuwei Chen2014-10-311-7/+38
| |/ | | | | | | | | | | b/16727892 Change-Id: I73d3ea3e743846b9e579c78b80d7a393319c09f1
* | Merge "power: Adds setFeature functionality for the power module" into ↵Ruchi Kandoi2014-10-311-0/+20
|\ \ | |/ |/| | | lmp-mr1-dev
| * power: Adds setFeature functionality for the power moduleRuchi Kandoi2014-10-311-0/+20
| | | | | | | | | | | | | | | | | | | | | | Adds the setFeature callback which could be used to enable/disable power as well as performance specific features. POWER_FEATURE_DOUBLE_TAP_WAKE is added which uses the setFeature callback to enable/disable the double-tap feature. Bug: 16875464 Change-Id: I5ed9b5be8fddedf9861eedd962def421d9fac5bf
* | Merge "tv_input: more documentation to events" into lmp-mr1-devWonsik Kim2014-10-231-0/+49
|\ \
| * | tv_input: more documentation to eventsWonsik Kim2014-10-231-0/+49
| | | | | | | | | | | | | | | Bug: 18047715 Change-Id: I63fd594d3380f92fce3224a258060ca2bf37e79b
* | | audio: new parameter key for HW A/V sync ID allocationEric Laurent2014-10-201-3/+5
|/ / | | | | | | | | | | | | | | | | | | | | The HW A/V sync ID is retrieved from the HAL by calling global get_parameters() with key AUDIO_PARAMETER_HW_AV_SYNC. After the output stream is opened, the HW A/V sync ID is communicated by stream set_parameters() with key AUDIO_PARAMETER_STREAM_HW_AV_SYNC. Bug: 17112525. Change-Id: Id1e3a3aa1e88d15461a609b381ca8c1902735a29
* | am 5ff76cb5: am 793a854e: Fix remote submix crash on null sinkJean-Michel Trivi2014-10-161-12/+30
|\ \ | |/ |/| | | | | * commit '5ff76cb59a892a856fa2476bd5bf7c41537b78e1': Fix remote submix crash on null sink
| * am 793a854e: Fix remote submix crash on null sinkJean-Michel Trivi2014-10-151-12/+30
| |\ | | | | | | | | | | | | * commit '793a854e4547fa43632907a987684cadc93eb5e2': Fix remote submix crash on null sink
| | * Fix remote submix crash on null sinkJean-Michel Trivi2014-10-151-12/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "remote submix" HAL uses a MonoPipe instance to "pipe" audio from the sink of this virtual device HAL to its source. The life-cycle of this pipe is: - creation when either the input or output stream is open - destruction when both input and output are closed. Changes are: Fix test for pipe destruction: destroy pipe when both input and output streams are NULL. Count how many read errors went into the logs and cap them so as not to spam the logs when the pipe is not properly set up. Less 'I' logs, 'D' logs instead. When opening input stream, check for non-null sink before checking if it's shutdown. Bug 16653334 Bug 17111907 Change-Id: I634b4192b00f9b74a5109f42242423e9c8cb4c7c
* | | am e914d696: Report multihal is SENSORS_DEVICE_API_VERSION_1_3 compliantNick Vaccaro2014-10-111-9/+49
|\ \ \ | |/ / | | | | | | | | | * commit 'e914d696a95a799bbcca221238a1874f995871ca': Report multihal is SENSORS_DEVICE_API_VERSION_1_3 compliant
| * | Report multihal is SENSORS_DEVICE_API_VERSION_1_3 compliantNick Vaccaro2014-10-101-9/+49
| |/ | | | | | | | | | | | | | | Ignore calls to any HALs that are not 1_0 or 1_3 compliant. Fix an unused parameter compiler warning. Bug: 17645248 Change-Id: Ia50f7512dfe35f37973440bba84e1b1b177a7bd3
* | Merge "Support MONO and STERO USB inputs. Allow "dynamic" flag in ↵Paul McLean2014-09-232-46/+34
|\ \ | |/ |/| | | audio_policy.conf." into lmp-mr1-dev
| * Support MONO and STERO USB inputs. Allow "dynamic" flag in audio_policy.conf.Paul McLean2014-09-172-46/+34
| | | | | | | | | | | | Bug 17526569 Change-Id: I64b00fd338eb937303b41608728a18341ee78820
* | Remove MHL hal definition.Jungshik Jang2014-09-180-0/+0
|/ | | | | Bug: 17479050 Change-Id: I7e238e09e253d46a552b775b0483215f8f1ae512
* usb audio: implement microphone mute.Eric Laurent2014-09-141-0/+10
| | | | | Bug: 17321604. Change-Id: I8e3daf2636dfd5f85d990c0093c52c908064afac
* Camera HALs: Promote device HAL v3.2Eino-Ville Talvala2014-09-104-7/+13
| | | | | | | And deprecate older HALs. Bug: 17445920 Change-Id: I37a5e53fda3c93080e37ec848f84c702a2c9120b
* sensors.h documentation change.Aravind Akella2014-09-051-8/+13
| | | | | | | | i) on-change sensors should set maxDelay. ii) Drivers should hold a wake_lock till poll() is called the next time when delivering events from wake-up sensors. Change-Id: I4b137843d5c857f04601618548306a710fbfbe5c
* Merge "Creates interface to dynamically configure GPS. Bug: 17110478 ↵Tsuwei Chen2014-09-021-2/+30
|\ | | | | | | Change-Id: I2a053d02e3c198d519d6306809f81ff601169151" into lmp-dev
| * Creates interface to dynamically configure GPS.Tsuwei Chen2014-08-301-2/+30
| | | | | | | | Bug: 17110478 Change-Id: I2a053d02e3c198d519d6306809f81ff601169151
* | Merge commit '38014a7c' into lmp-devGriff Hazen2014-08-281-3/+5
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: include/hardware/sensors.h Change-Id: I21517f717761af7f52c003d535e86059ebb75f05
| * \ am 74279e3c: Adding information about the first activationVinod Krishnan2014-08-281-3/+5
| |\ \ | | | | | | | | | | | | | | | | * commit '74279e3c23bd62c70d53098be91db85df5a68ece': Adding information about the first activation
| | * | Adding information about the first activationVinod Krishnan2014-08-281-3/+5
| | | | | | | | | | | | | | | | Change-Id: If5759749c5e6a88dcaf5ab600c9086b056c3908a
* | | | Merge "Fix problem with dropouts with multiple USB audio streams." into lmp-devPaul McLean2014-08-285-23/+60
|\ \ \ \
| * | | | Fix problem with dropouts with multiple USB audio streams.Paul McLean2014-08-285-24/+60
| | |_|/ | |/| | | | | | | | | | | | | | | | | | Bug 17136569 Change-Id: I94bdbe037533a3fd77f249fdd42f4d828d3bf87f
* | | | Fixing non-playback on USB devices with support for MONO playback.Paul McLean2014-08-282-6/+14
|/ / / | | | | | | | | | | | | | | | Bug 17136854 Change-Id: Ia0136fa8f9b4789d538b2dccb3f6071ae5062010
* | | Merge "Sensor HAL documentation fix." into lmp-devAravind Akella2014-08-221-0/+2
|\ \ \