summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* AudioPolicyManager: Use "safe" speaker for notifications if availableJon Eklund2014-09-101-0/+21
| | | | | | | | | | | | | | | On particularly loud devices, unexpected audio bursts can be harmful. For longer audio events, the conventional mitigation strategy is to somehow soft-start (ramp) the loudspeaker volume, but this strategy can severely impact the audibility of short audio events. Use of the "safe" speaker path hints to AudioHAL to immediately output at best allowable level for transient audio events. SPEAKER_SAFE is aliased to SPEAKER for purposes of volume control. Bug: 17319721 Change-Id: I75187c23f3d1f18e9f638c5d14e7b0bf805a67bc
* Merge "camera2: Fix video snapshot for HAL 2.* devices." into lmp-devRuben Brunk2014-09-106-2/+53
|\
| * camera2: Fix video snapshot for HAL 2.* devices.Ruben Brunk2014-09-096-2/+53
| | | | | | | | | | | | | | | | | | | | | | Bug: 15408128 - Lazily destroy ZSL stream when ZslProcessor is updated, or when the camera client is disconnected, allowing HAL 2.* devices that rely on the ZSL stream to capture video snapshots to function correctly. Change-Id: Ia5cf14c62acda4d9c640440dc5b8e0796dc0b3fa
* | audioflinger: fix audio patch releaseEric Laurent2014-09-091-3/+3
| | | | | | | | | | | | | | | | Fix error in PatchPanel:releaseAudioPatch() causing the wrong patch handle to be passed to the audio HAL. Bug: 17368621. Change-Id: I037fd2e6273508c830414b5900d07c0178b96dae
* | Merge "audio policy: fix output stream selection" into lmp-devEric Laurent2014-09-092-6/+27
|\ \
| * | audio policy: fix output stream selectionEric Laurent2014-09-082-6/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that all outputs considered by selectOutput() when called from AudioPolicyManager::getOutputForDevice() support the requested audio format. Bug: 17340382. Change-Id: I76520ce60e9a8fe4d2d23125d6143bb016522754
* | | Merge "Camera2: reconfigure video snapshot size if needed" into lmp-devYin-Chia Yeh2014-09-085-4/+93
|\ \ \
| * | | Camera2: reconfigure video snapshot size if neededYin-Chia Yeh2014-09-085-4/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When recording fails to start due to stream configuration failed, try configure stream again by setting jpeg stream to video size. Bug: 16162133 Change-Id: Ib20271e787ae07719ce419f0b15c7f86434f7ebb
* | | | Merge "Make IPowerManager native conform to .aidl for oneway" into lmp-devGlenn Kasten2014-09-081-4/+8
|\ \ \ \ | |_|/ / |/| | |
| * | | Make IPowerManager native conform to .aidl for onewayGlenn Kasten2014-09-051-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | But provide a temporary escape hatch for AudioFlinger. This oneway option will be removed as soon as possible. Bug: 16408906 Change-Id: I058a50906af810787e444a96819cb781b7f639ad
* | | | Merge "audiopolicy: fix direct output profile probing" into lmp-devEric Laurent2014-09-081-7/+39
|\ \ \ \
| * | | | audiopolicy: fix direct output profile probingEric Laurent2014-09-071-7/+39
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not select maximum sampling rate and channel count when opening a direct output for the first time to make sure that the combination of sampling rate and channel count is supported by the connected sink. Bug: 17047809. Change-Id: I077a3c1436158378f2762343469ceb39fab9775e
* | | | Merge "Fix "invalid device combination" in system audio mode." into lmp-devJungshik Jang2014-09-061-0/+7
|\ \ \ \ | |/ / / |/| | |
| * | | Fix "invalid device combination" in system audio mode.Jungshik Jang2014-09-051-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HDMI-CEC system audio mode removes speaker from output list. It also has multiple outputs by connected outputs. However, getDeviceForVolume() doesn't cover multiple output with no speaker or bluetooth case. This change picks one of system audio outputs in order. Bug: 17400026 Change-Id: I102fd0052c9c4c9543f9e8f3b16ec6815d7485d8
* | | | Merge "Camera API1: fix AE state check in precapture state" into lmp-devZhijun He2014-09-051-5/+12
|\ \ \ \ | |_|_|/ |/| | |
| * | | Camera API1: fix AE state check in precapture stateZhijun He2014-09-031-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It is legal to transit to CONVERGED or FLASH_REQUIRED after a AE precapture trigger. Bug: 17365185 Change-Id: Id041eff5eac564c32d09b547a0139d24807336f4
* | | | Merge "audio policy service: filter out delayed audio patch commands if ↵Eric Laurent2014-09-051-1/+35
|\ \ \ \ | |_|/ / |/| | | | | | | needed." into lmp-dev
| * | | audio policy service: filter out delayed audio patch commands if needed.Eric Laurent2014-09-051-1/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As for set parameters commands, create or release audio patch commands modifying the same patch handle should be filtered by the audio policy service command thread so that an immediate command is not overridden by a pending delayed command. Bug: 17379728. Change-Id: I6aa4652b4bfec59eebd3c3cb7d1d9ac1bc1d6e49
* | | | Merge "Restore the ability to build tee sink for debugging" into lmp-devGlenn Kasten2014-09-033-12/+16
|\ \ \ \
| * | | | Restore the ability to build tee sink for debuggingGlenn Kasten2014-09-023-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changelist does not enable tee sink, but makes it possible to do so. Tee sink had suffered some bit rot since it is not built by default. Also fixes a crash for > 2 byte per sample or > 2 channels. Still does not write correct header for floating-point; that will be best solved by moving to libsndfile. Bug: 16990102 Change-Id: I8e92c588ccc513d7802d696fcfb324e815772df6
* | | | | audio flinger: fix use of global effect bufferEric Laurent2014-09-021-0/+4
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When float mixing format is enabled, audio effects use a specific buffer in 16 bit format. This buffer was not enabled when only global effects were present resulting in the mixer accumulating directly to the output sink buffer. Bug: 16202259. Change-Id: I3537d36c63196d97772f0ab22dd31d04dfa7fdd6
* | | | Merge "camera1: Ensure MemoryHeap buffers are mmapped before copying." into ↵Ruben Brunk2014-09-021-1/+14
|\ \ \ \ | |_|_|/ |/| | | | | | | lmp-dev
| * | | camera1: Ensure MemoryHeap buffers are mmapped before copying.Ruben Brunk2014-08-291-1/+14
| | | | | | | | | | | | | | | | | | | | Bug: 16986293 Change-Id: Icb68254d7ed1812fa9e60342749a2746d6fcfb17
* | | | Merge "sound trigger: fix cross deadlock between service and client" into ↵Eric Laurent2014-08-291-20/+38
|\ \ \ \ | | | | | | | | | | | | | | | lmp-dev
| * | | | sound trigger: fix cross deadlock between service and clientEric Laurent2014-08-281-20/+38
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not call callback methods on ISoundTriggerClient with the service mutex locked: the client implementation will lock its mutex to process the callback and if a request from the same client with client mutex locked was waiting for the service mutex a deadlock occurs. Bug: 16873049. Change-Id: Ifc3b31fdfaed525981fa59876c041478f38b42e8
* | | | Merge "audio policy: fix input source passed to openInput()" into lmp-devEric Laurent2014-08-291-2/+4
|\ \ \ \
| * | | | audio policy: fix input source passed to openInput()Eric Laurent2014-08-281-2/+4
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The input source passed to openInput() must be modified from HOTWORD to VOICE_RECOGNITION if the capture does not correspond to a sound trigger session. Bug: 16731718. Change-Id: I48aa4180e75dd5335cd096b48da1c15f2236e6ed
* | | | audiopolicy: Indicate output device change to all input threads for ↵bryant_liu2014-08-281-0/+14
|/ / / | | | | | | | | | | | | | | | | | | | | | pre-processing Bug: 17129715 Change-Id: I1fd938cce0b85241c80ea00f3d013a98948d3975
* | | frameworks: av: AudioPolicyEffect: Add refCount for each sessionbryant_liu2014-08-282-11/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Audio framework stops and restarts AudioTracks on same audio session. Sometimes the AudioTrack start() comes before a stop(). As effects are linked to the session, they should only be created on the last stop() related to that session. Bug: 17201117 Change-Id: I19343e293d6b7b6b794fe05ebd0dd239ed3b075c
* | | Merge "CameraService: Create a dummy stream when 0 streams are requested." ↵Eino-Ville Talvala2014-08-285-1/+286
|\ \ \ | | | | | | | | | | | | into lmp-dev
| * | | CameraService: Create a dummy stream when 0 streams are requested.Eino-Ville Talvala2014-08-285-1/+286
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A workaround for a camera device HAL v3.2 or older specification hole - it's not acceptable to configure_streams with 0 output streams. However, we allow for this at the public API level, to allow an application to release all output streams. So in this case, create a dummy stream that doesn't actually do anything as a placeholder. Bug: 17220694 Change-Id: Ib25242ffc2c9f2b2f619fd5fe6d652266579da85
* | | | Merge "Fix audio dropouts with multiple playback streams." into lmp-devPaul McLean2014-08-281-1/+16
|\ \ \ \
| * | | | Fix audio dropouts with multiple playback streams.Paul McLean2014-08-271-1/+16
| |/ / / | | | | | | | | | | | | | | | | | | | | Bug 17136569 Change-Id: I7f69cb24168c7d27ce28679735f53c1ece4014c1
* | | | Merge "audio policy: remove audio patch when closing input or output" into ↵Eric Laurent2014-08-282-3/+51
|\ \ \ \ | | | | | | | | | | | | | | | lmp-dev
| * | | | audio policy: remove audio patch when closing input or outputEric Laurent2014-08-272-3/+51
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that an audio patch having an output as source or input as sink is removed when this input or output is closed. Bug: 17303725. Change-Id: I234d54a25ce0b579eeeafdcfda3a0594f048768c
* | | | Merge "cameraservice: decrease zsl metadata queue size by 1" into lmp-devYin-Chia Yeh2014-08-271-2/+6
|\ \ \ \
| * | | | cameraservice: decrease zsl metadata queue size by 1Yin-Chia Yeh2014-08-271-2/+6
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Zsl buffer needs to be longer than metadata queue to ensure that oldest metadata can always find a match in buffer queue. Since we don't want to add memory overhead, decrease metadata queue size by one serves the same purpose. bug 17264283 Change-Id: Ic53441cc29c98e57d3345f5845d92839d0ce6faf
* | | | Merge "Camera API1: Fix ZSLProcessor3 deadlock" into lmp-devZhijun He2014-08-271-1/+3
|\ \ \ \ | |_|/ / |/| | |
| * | | Camera API1: Fix ZSLProcessor3 deadlockZhijun He2014-08-271-1/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ZSLProcessor3 shouldn't acquire mInputMutex in onBufferReleased call for output buffers, because the caller (Camera3Stream::returnBuffer) holds the camera3 stream lock already. This could cause deadlock for ZSL reprocess request as it holds the ZSLProcessor3 input lock and try to acquire camera3 stream lock to submit the request. Bug: 17299038 Change-Id: I6a7bf8ebd7c2064852358c655f3a3e9a67769213
* | | CameraService: Correct API2 error handlingEino-Ville Talvala2014-08-275-82/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add more error codes to the binder camera2 callbacks - Translate HAL errors to callback errors - When flushing, report failures for queued requests - Treat stream config failure as nonfatal - Send request errors when buffers aren't available for captures Bug: 15524101 Bug: 14448494 Bug: 11272459 Bug: 17160301 Change-Id: I81aa54e805a9cce1cb8a6a9374549daa7666deb2
* | | Merge "Fix memory leak in getConnectionState" into lmp-devMarco Nelissen2014-08-272-10/+11
|\ \ \ | |/ / |/| |
| * | Fix memory leak in getConnectionStateMarco Nelissen2014-08-262-10/+11
| |/ | | | | | | | | | | | | | | Turns out having an sp<> point at the containing object doesn't really work so well. Bug: 17210991 Change-Id: I4bcb0c38adffc574d661f0772583357868f6c5b4
* | Merge "Fix AudioMixer MONO muted track handling" into lmp-devAndy Hung2014-08-271-5/+21
|\ \ | |/ |/|
| * Fix AudioMixer MONO muted track handlingAndy Hung2014-08-251-5/+21
| | | | | | | | | | | | | | | | Incorrect handling caused "stereo" mode to be used. Augmented error handling to print more debug info. Bug: 17208475 Change-Id: I5bcaf0ba5bd5a4f7d4885f8cce43bbf42e5f1e6b
* | Camera API1: remove unnecessary buffer count checkZhijun He2014-08-221-9/+0
| | | | | | | | | | | | | | | | | | | | This check doesn't work with ZSL use case. Since the ZSL is both an input and output stream, When an input buffer is acquired, checking the handout buffer count for that stream could trigger false alarm when all the output buffers are sent to hal, instead, we should wait for an output buffer to return. Bug: 17188380 Change-Id: I7eb166eb49d2f063189d993195ef389d2cf4f2b4
* | Merge "Camera: fix triggerId logic" into lmp-devYin-Chia Yeh2014-08-222-2/+13
|\ \
| * | Camera: fix triggerId logicYin-Chia Yeh2014-08-212-2/+13
| |/ | | | | | | | | | | | | | | | | Fix missing triggerId introduced by previous cleanup change. bug 17108154 bug 17053130 Change-Id: Ifda55d5fbe992d98f335a8427aa256d78a856586
* | Merge "camera: Configure streams immediately when API2 does configuration" ↵Igor Murashkin2014-08-216-3/+49
|\ \ | | | | | | | | | into lmp-dev
| * | camera: Configure streams immediately when API2 does configurationIgor Murashkin2014-08-206-3/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the configuration more eager (no more waiting until the first request) and also allows any errors to immediately be sent back to the client. Bug: 16629195 Change-Id: I0c365bc8f760466916dcc089217a43c43f9f4c9d
* | | Merge "camera: zsl: remove AF check if no focser presents" into lmp-devYin-Chia Yeh2014-08-212-15/+26
|\ \ \ | |/ / |/| |