summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Camera: fix focusArea wrong indexing issueZhijun He2014-01-291-14/+14
| |_|_|/ |/| | | | | | | | | | | | | | | Bug: 12304559 Change-Id: Id28b35fdd9697c1ec3365f617996801965de8bd0
* | | | camera3: Delete output stream of bi-directional streamZhijun He2014-01-271-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bi-directional stream (like Zsl stream) is both input and output streams. When deleted, both streams need to be deleted. Change-Id: I8b6bb9054fec264cc03754003797de0bae10cb20
* | | | Merge "Camera: delete preview callback when preview size is changed"Zhijun He2014-01-271-0/+16
|\ \ \ \
| * | | | Camera: delete preview callback when preview size is changedZhijun He2014-01-241-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Preview callback stream is left configured even the preview size is changed. This makes the callback stream unnecessarily configured even in recording mode, which could cause distorted preview for some devices. Bug: 12210027 Bug: 12591410 Change-Id: If50cddfe5562e91aec1feb1760eccb82ddb21730
* | | | | Merge "Camera3: Flush device before ZSL reprocess"Zhijun He2014-01-272-1/+17
|\ \ \ \ \ | |/ / / /
| * | | | Camera3: Flush device before ZSL reprocessZhijun He2014-01-232-1/+17
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Call flush before sending ZSL reprocess request. This not only ensures no in-flight requests pending in the HAL before ZSL reprocess request, but also makes reprocess request to be processed by the HAL sooner. Bug: 12230973 Change-Id: I4c9e5a0fb75ccdc1e8861262c08d599d04170b7f
* | | | Merge "Camera: delete zsl stream for video mode"Zhijun He2014-01-241-0/+2
|\ \ \ \
| * | | | Camera: delete zsl stream for video modeZhijun He2013-11-011-0/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I9ebfe0cb7376092c6ecd71e5c1c5058947282a5f
* | | | | Merge "Replace control block frameCount_ by explicit in/out parameter"Glenn Kasten2014-01-245-11/+16
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Replace control block frameCount_ by explicit in/out parameterGlenn Kasten2013-12-205-11/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in IAudioFlinger::createTrack and IAudioFlinger::openRecord Change-Id: I09c644c80e92c8e744b1b99055988a2588b2a83d
* | | | | camera3: Update sceneMode tag spec.Ruben Brunk2014-01-172-10/+10
| | | | | | | | | | | | | | | | | | | | Change-Id: I495435397086a295280c556d94fe8efd442a12c3
* | | | | Merge "Cleanup createTrack error handling"Glenn Kasten2014-01-172-0/+2
|\ \ \ \ \
| * | | | | Cleanup createTrack error handlingGlenn Kasten2014-01-162-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to cleanup done earlier for openRecord in this CL: > Change-Id: I84897dd7d30b370640b54e928f230604b873cb68 Bug: 10888816 Change-Id: I804a47f898e0319a60a9bd58906bbb037e45cc25
* | | | | | Merge "AudioRecord::getInputFramesLost() cleanup"Glenn Kasten2014-01-174-4/+4
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | AudioRecord::getInputFramesLost() cleanupGlenn Kasten2014-01-144-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed bug that if the binder call failed (for example if the IAudioFlinger binder is dead), then getInputFramesLost was returning garbage. Now it correctly returns zero, which is the error value for this method. The type declarations for getInputFramesLost were inconsistent: a mixture of unsigned int, size_t, and uint32_t. Now it returns uint32_t everywhere, which is what the underlying HAL API returns. Added a FIXME about the side effect behavior. This will need review for multi-client. Change-Id: Ifa2e117a87dbd0c1f2c892a31d1c3dd919bf1a0a
* | | | | | am a2949165: am 3eccdde9: am c7614eb7: Merge "libcameraservice: Fix build in ↵Eino-Ville Talvala2014-01-151-5/+5
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | ISO C++11 mode" * commit 'a2949165680158db31dc1fce32f62bbe70c31820': libcameraservice: Fix build in ISO C++11 mode
| * | | | | Merge "libcameraservice: Fix build in ISO C++11 mode"Eino-Ville Talvala2014-01-151-5/+5
| |\ \ \ \ \
| | * | | | | libcameraservice: Fix build in ISO C++11 modeBernhard Rosenkraenzer2013-07-301-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change log macro define so it can't be confused for a C++11 string literal Change-Id: Idcc8085735177aa3313fdea66dc0736cca749f9b Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
* | | | | | | Merge "Fix error handling in AudioSystem::getOutputForEffect"Glenn Kasten2014-01-151-1/+2
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | |
| * | | | | | Fix error handling in AudioSystem::getOutputForEffectGlenn Kasten2014-01-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and AudioPolicyService::getOutputForEffect. The conventional error value for audio_io_handle_t is 0, not a status_t cast to audio_io_handle_t. Change-Id: I34b3fd1a50f3fa1cbf39f32eea1911112a4e094a
* | | | | | | Merge "Use AUDIO_SESSION_ALLOCATE instead of 0"Glenn Kasten2014-01-151-2/+2
|\ \ \ \ \ \ \
| * | | | | | | Use AUDIO_SESSION_ALLOCATE instead of 0Glenn Kasten2013-12-201-2/+2
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix a couple of places where we were using AUDIO_SESSION_OUTPUT_MIX, which happens to also be equal to 0, but has a different meaning. Change-Id: I90e39be3b89f5021a96d9e3b8d10929013ca977f
* | | | | | | Merge "Improve dynamic audio resampler filter generation"Andy Hung2014-01-104-90/+586
|\ \ \ \ \ \ \
| * | | | | | | Improve dynamic audio resampler filter generationAndy Hung2014-01-084-90/+586
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve dynamic audio resampler filter generation speed by 2x. The resulting filters should be the same (excepting roundoff). Also added check for upsampling sample rate changes to share previously generated filters. Modify the profiling to improve output format and sampling result reliability. Change-Id: I9aa6b914fd552a63f79dd4a95945df2f8275772a Signed-off-by: Andy Hung <hunga@google.com>
* | | | | | | | am 0ba9f9b0: am d8d45edf: am 61540b5f: Merge "Frameworks: AudioFlinger: Fix ↵Glenn Kasten2014-01-101-0/+8
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | / / / / | | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | effects memory leak" * commit '0ba9f9b07d47e9e6b374798f397fe961256a6029': Frameworks: AudioFlinger: Fix effects memory leak
| * | | | | | Merge "Frameworks: AudioFlinger: Fix effects memory leak"Glenn Kasten2014-01-101-0/+8
| |\ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | |
| | * | | | | Frameworks: AudioFlinger: Fix effects memory leakYu Yezhong2013-10-151-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch by: csheng@marvell.com Change-Id: I4e3032fb34643902f98e8fd7c8e894b6452324c9 Signed-off-by: Yu Yezhong <yuyezhong@gmail.com>
| * | | | | | audioflinger: check for condition before waitingHaynes Mathew George2013-12-171-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AsyncCallbackThread must check for any condition that has already been satisfied before waiting. Bug: 11824817 Change-Id: Ic8c2090d521ecd6a30b76ee75635258d35eb1eff
* | | | | | | audioflinger: update track ready conditionHaynes Mathew George2014-01-081-1/+1
| |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signal track ready if the track isStopping(). Bug: 12423190 Change-Id: Ie279995d5f90fa8211a20dfbeacc1cf9b921d0bf
* | | | | | Merge "audioflinger: fix static track end detection"Eric Laurent2014-01-071-9/+2
|\ \ \ \ \ \
| * | | | | | audioflinger: fix static track end detectionEric Laurent2013-12-201-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a static track is not a fast track, prepareTracks_l() must rely on framesReady() to detect end of buffer and remove the track from the active track list. Failing to do so results in the track staying active but not processed by the mixer because in underrun. This leaves the mix buffer content uninitialized and causes the effect process function to accumulate its output onto undefined data. Bug: 12013676. Change-Id: Iad72c921fa18d34811abf7d1073890c093a27725
* | | | | | | Merge "Audio resampler update to add S16 filters"Andy Hung2013-12-3010-34/+2604
|\ \ \ \ \ \ \
| * | | | | | | Audio resampler update to add S16 filtersAndy Hung2013-12-2710-34/+2604
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This does not affect the existing resamplers. New resampler accessed through additional quality settings: DYN_LOW_QUALITY = 5 DYN_MED_QUALITY = 6 DYN_HIGH_QUALITY = 7 Change-Id: Iebbd31871e808a4a6dee3f3abfd7e9dcf77c48e1 Signed-off-by: Andy Hung <hunga@google.com>
* | | | | | | Camera2 API: fix front facing camera flip issueZhijun He2013-12-261-17/+47
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Camera stream transform calculation should take camera facing into account. For example, front facing camera preview stream should be horizontally or vertically flipped. Bug: 12300670 Change-Id: Ib497f0b8c3e65974de05d4f0aca3c51e99717c3d
* | | | | | Fix bug in test-resample's AudioBufferProviderGlenn Kasten2013-12-171-0/+2
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The contract for AudioBufferProvider::releaseBuffer() was missing. Bug: 12194314 Change-Id: I2fcf75e7b8eaf6db34f360206d79457a04a73565
* | | | | Add ability to read .wav files to test-resampleGlenn Kasten2013-12-171-19/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously test-resample could only read .raw files, and the input sample rate had to be specified. Now the input sample rate is derived from the input file. This also allows us to read 8-bit PCM files, and other formats such as floating-point in the future. However, the ability to read raw files is lost. A workaround is to use sox or equivalent on the host. Change-Id: Icd06b4d02482b3ad07bf03979f46860e68d38ad9
* | | | | Use libsndfile to write .wav filesGlenn Kasten2013-12-172-45/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will reduce code duplication, and allow us take advantage of more advanced capabilities of libsndfile in the future. Change-Id: I25fa2b6d0c21e325aeaf05bda62cf7aab0c5deb4
* | | | | Merge "Fix several test-resample BufferProvider bugs"Glenn Kasten2013-12-171-10/+61
|\ \ \ \ \
| * | | | | Fix several test-resample BufferProvider bugsGlenn Kasten2013-12-171-10/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously getNextBuffer always returned the same data address over and over. Now it correctly returns the right portion of the input buffer. Previously getNextBuffer always returned the total number of frames in the input, which might be larger than the size requested by the caller, and/or larger than the number of remaining input frames. It also always returned successfully, even when there should be no frames available. This violates the contract for getNextBuffer. Now getNextBuffer will return the maximum of the number of frames requested, and the number of remaining frames available. If that maximum is zero, getNextBuffer will return an error instead. Previously releaseBuffer would silently allow releasing more frames than were actually gotten, which violates the contract for releaseBuffer. Now releaseBuffer checks for this and logs a message if it happens. Add 'v' (verbose) option to log buffer provider calls. Bug: 12194314 Change-Id: I9b915e954b3612a07ef271da8652486b8875e0fd
* | | | | | am 5c474238: am 5893736d: am a67c7653: Merge "Increase kFastTrackMultiplier ↵Glenn Kasten2013-12-171-7/+7
|\ \ \ \ \ \ | |/ / / / / |/| / / / / | |/ / / / | | | | | | | | | | | | | | | from 1 to 2" * commit '5c474238bc579224ec8f7267d05651b0aa934100': Increase kFastTrackMultiplier from 1 to 2
| * | | | Merge "Increase kFastTrackMultiplier from 1 to 2"Glenn Kasten2013-12-171-7/+7
| |\ \ \ \
| | * | | | Increase kFastTrackMultiplier from 1 to 2Glenn Kasten2013-12-041-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I158f147295eebcea96e4047d7618069bc48bdd7d
* | | | | | audioflinger: check for condition before waitingHaynes Mathew George2013-12-061-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AsyncCallbackThread must check for any condition that was already been satisfied before waiting. Bug: 11824817 Change-Id: Ic8c2090d521ecd6a30b76ee75635258d35eb1eff
* | | | | | Merge "Add RecordThread media.log and deferred deallocation"Glenn Kasten2013-12-053-13/+56
|\ \ \ \ \ \
| * | | | | | Add RecordThread media.log and deferred deallocationGlenn Kasten2013-12-053-13/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows a media.log buffer for RecordThread. Unlike playback threads which stick around forever, the RecordThread comes and goes for every capture session. This means that the media.log buffer for a RecordThread would disappear too, and so was useless. Now when a thread exits, it's associated media.log buffer is just marked for deferred deallocation. It is only actually freed when the memory is needed. Other changes: - Fix bug in unregistering comparison, it was comparing the wrong pointers - Increased size of log area so we can log for RecordThread also Change-Id: If45d4c03a793b86390a0112ec3acc5d41b2e3635
* | | | | | | Merge "Change mActiveTrack to mActiveTracks vector"Glenn Kasten2013-12-052-31/+66
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Change mActiveTrack to mActiveTracks vectorGlenn Kasten2013-11-202-31/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The size of mActiveTracks is still limited to 1 for now. Change-Id: Ia6b06b25d8c4709f087110ae29c589999407a2a2
* | | | | | | Merge "Code simplification and movement to prepare for mActiveTracks"Glenn Kasten2013-12-021-19/+22
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Code simplification and movement to prepare for mActiveTracksGlenn Kasten2013-11-201-19/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Share code to acquire wake lock at entry to loop Change-Id: I01fb645de9417055c0adfc6a4c4011bf22ea4f94
* | | | | | | camera2/3: Add protection for still capture pathZhijun He2013-11-261-35/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Jpeg stream in JpegProcessor could be deleted while process new capture is ongoing, which unsafe to access a dead consumer endpoint. Bug: 9316454 Change-Id: I2950f31ea28d0ba01f08502e2e3ba452bf8bb818