summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
Commit message (Collapse)AuthorAgeFilesLines
* Update calls to IInterface::asBinder()Marco Nelissen2014-11-172-2/+2
| | | | | | | | | | | to use the new static version. Change-Id: Ia7b10eb38ca55b72278bfd33d3bf647f338b4e6a Conflicts: media/libmedia/IAudioFlinger.cpp media/libmedia/IMediaPlayer.cpp media/libstagefright/CameraSource.cpp
* Move to libc++.Dan Albert2014-11-111-14/+3
| | | | | | | This also cleans up some makefile cruft. Bug: 15193147 Change-Id: Ia53ca4f6fb2153f4e77e6f696eb27dcaae73a78e
* am ac302143: Fix the fixMarco Nelissen2014-10-201-1/+3
|\ | | | | | | | | * commit 'ac302143551a8b964f026385a524dda9ff8ea5ba': Fix the fix
| * Fix the fixMarco Nelissen2014-10-201-1/+3
| | | | | | | | | | | | | | We need to clear the buffer a little more often. Bug: 18023017 Change-Id: If8a522b9133a4269e2435af8958f6ced322e71e9
* | am 22bc10a3: Merge "Clear effect buffer before sending to chain" into lmp-devMarco Nelissen2014-10-201-4/+3
|\ \ | |/ | | | | | | * commit '22bc10a347569a0ab2980c24783e31aba4d7414d': Clear effect buffer before sending to chain
| * Clear effect buffer before sending to chainMarco Nelissen2014-10-171-4/+3
| | | | | | | | | | | | | | | | otherwise the effect might get a buffer with previous data instead of silence. Bug: 18023017 Change-Id: Ic6be5ce0e74552aac2a0cce9c660893f9ad27f5c
* | am 2b217bb3: Merge "audioflinger: fix pre processing transfer between record ↵Eric Laurent2014-10-034-15/+76
|\ \ | |/ | | | | | | | | | | threads." into lmp-dev * commit '2b217bb3aee87ce8486014f261c0f498f6209e80': audioflinger: fix pre processing transfer between record threads.
| * Merge "audioflinger: fix pre processing transfer between record threads." ↵Eric Laurent2014-10-034-15/+76
| |\ | | | | | | | | | into lmp-dev
| | * audioflinger: fix pre processing transfer between record threads.Eric Laurent2014-10-024-15/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix two problems remaining with pre processing effects transfer from one record thread to the next in case of tear down due to device connection: 1 - the enabled state of the effects was not communicated to the new HAL input stream. 2 - the effects saved in orphan chains list were not transfered to the new thread when a AudioRecord was created. Bug: 17757378. Change-Id: I0923c98470db3b51154dc89846157780a4c21e86
* | | am be9ebd46: Merge "Fix uncertainty of one normal mix buffer in ↵Glenn Kasten2014-10-033-2/+29
|\ \ \ | |/ / | | | | | | | | | | | | | | | AudioTrack::getTimestamp" into lmp-dev * commit 'be9ebd46c1ec366dca5f142a36a71015b048c037': Fix uncertainty of one normal mix buffer in AudioTrack::getTimestamp
| * | Fix uncertainty of one normal mix buffer in AudioTrack::getTimestampGlenn Kasten2014-10-023-2/+29
| |/ | | | | | | | | | | | | | | | | | | The per-thread timestamp latch was not synchronized with the per-track released frames. Now the value of each track's released frames is latched along with the timestamp. Bug: 17531839 Bug: 17669342 Change-Id: I9d50c8c6a5de55a3f4561ac40e20d497376c1257
* | am cb4b6e9f: audioflinger: fix failure to indicate volume to effectEric Laurent2014-10-022-10/+23
|\ \ | |/ | | | | | | * commit 'cb4b6e9f05d1c0b3fcc5be5ebe3f7d6f32669b1a': audioflinger: fix failure to indicate volume to effect
| * audioflinger: fix failure to indicate volume to effectEric Laurent2014-10-012-10/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | If an effect is added and enabled after a track is started it will not receive current volume information because volume is indicated only to active effects and if there is a volume change. Add a flag to force EffectChain::setVolume_l() to pass volume indication to all effects each time an effect is enabled. Bug: 17572556. Change-Id: I6b68488c9aca8b2095fb210aa124d02e4f759660
* | am a49c94ea: Merge "Revert "Fix uncertainty of one normal mix buffer in ↵Glenn Kasten2014-10-013-23/+1
|\ \ | |/ | | | | | | | | | | AudioTrack::getTimestamp"" into lmp-dev * commit 'a49c94ea49c8329a1bdefe980e1f7d335c0d1ec5': Revert "Fix uncertainty of one normal mix buffer in AudioTrack::getTimestamp"
| * Merge "Revert "Fix uncertainty of one normal mix buffer in ↵Glenn Kasten2014-10-013-23/+1
| |\ | | | | | | | | | AudioTrack::getTimestamp"" into lmp-dev
| | * Revert "Fix uncertainty of one normal mix buffer in AudioTrack::getTimestamp"Glenn Kasten2014-10-013-23/+1
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 54464ba861aaafd11ee5645f5d1ecd1171c6e9fe. Bug: 17733142. Change-Id: I9886d40032b2f7d96bee03e600e14f78943d8052
* | | am 955e24d3: Merge "Fix uncertainty of one normal mix buffer in ↵Glenn Kasten2014-09-303-1/+23
|\ \ \ | |/ / | | | | | | | | | | | | | | | AudioTrack::getTimestamp" into lmp-dev * commit '955e24d3a8e218d4711cabc6558781e095011132': Fix uncertainty of one normal mix buffer in AudioTrack::getTimestamp
| * | Merge "Fix uncertainty of one normal mix buffer in AudioTrack::getTimestamp" ↵Glenn Kasten2014-09-303-1/+23
| |\ \ | | |/ | | | | | | into lmp-dev
| | * Fix uncertainty of one normal mix buffer in AudioTrack::getTimestampGlenn Kasten2014-09-303-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The per-thread timestamp latch was not synchronized with the per-track released frames. Now the value of each track's released frames is latched along with the timestamp. Bug: 17531839 Bug: 17669342 Change-Id: I96252782911bd42a2534cc4030521b7eeb99a7b9
* | | am f71224ce: Merge "audioflinger: forward flush to direct output streams" ↵Eric Laurent2014-09-303-4/+16
|\ \ \ | |/ / | | | | | | | | | | | | | | | into lmp-dev * commit 'f71224ce266abb39f83ecba87783c2347631654a': audioflinger: forward flush to direct output streams
| * | Merge "audioflinger: forward flush to direct output streams" into lmp-devEric Laurent2014-09-303-4/+16
| |\ \
| | * | audioflinger: forward flush to direct output streamsEric Laurent2014-09-293-4/+16
| | |/ | | | | | | | | | | | | | | | | | | | | | Track flush should be forwarded to the audio HAL when playing on a direct output stream. Bug: 17704953. Change-Id: Iafc94327fe9aebf1d4eaa97b76c6767b7ac5babe
* | | am 4379c034: Merge "Fix tee sink" into lmp-devGlenn Kasten2014-09-291-3/+5
|\ \ \ | |/ / | | | | | | | | | * commit '4379c03433e4613c417998ca7917059ef17dc3a9': Fix tee sink
| * | Fix tee sinkGlenn Kasten2014-09-281-3/+5
| |/ | | | | | | | | | | | | Note: this does not fix the bug below, but it helps to investigate the bug. Bug: 17578238 Change-Id: I0fd27a477b73ba0e1c5a658bdfad17c500f5dc67
* | am c53b98f3: am 6cd6792a: Merge "Allow building on clang without ↵Ian Rogers2014-09-261-1/+4
|\ \ | |/ |/| | | | | | | | | __builtin_assume_aligned" * commit 'c53b98f3773299ca26acbe5c4a56450a76c2ecf9': Allow building on clang without __builtin_assume_aligned
| * Allow building on clang without __builtin_assume_alignedBernhard Rosenkraenzer2014-09-191-1/+4
| | | | | | | | | | | | | | | | | | Clang versions up to and including 3.5 don't have __builtin_assume_aligned. Define it to a reasonable approximation when building with those. Change-Id: I223ccfda6e6ae55ce29dda5e4cacc1b162728b2c Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
| * Remove 64-bit android_atomic uses from StateQueue.Hans Boehm2014-07-232-12/+8
| | | | | | | | | | | | | | | | | | Use stdatomic.h instead. We're trying to remove android_atomic use wherever possible. The 64-bit uses seem easiest to remove first. This cleans up the code, though not as much as C++ <atomic> would, if it worked everywhere. Change-Id: I3c29bdbd5915cb9d47118834a3a742fe296cf87f
* | audioflinger: remove debug log.Eric Laurent2014-09-171-2/+0
| | | | | | | | | | | | | | Remove debug log left by commit ab5cdbaf. bug: 17537746. Change-Id: I10f672f607f8e87caaa8228fc05eff8aee7dfa15
* | Merge "audioflinger: fix pre processing effect leak" into lmp-devEric Laurent2014-09-158-37/+133
|\ \
| * | audioflinger: fix pre processing effect leakEric Laurent2014-09-158-37/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a capture thread was closed, the effects attached to this thread were left dangling and the associated effect chain destroyed. When their last client was disconnected, the effects were not released properly from the effect library because the destruction process could not be completed without the effect being attached to a thread. A similar problem prevented a RecordTrack to be properly released if its client was destroyed after the capture thread. The fix consists in allowing the effect or record track to be properly released even if its parent thread cannot be promoted. Also save any effect chain still present on a closed capture thread in case a new client wants to reuse the effects on the same session later. Bug: 17110064. Change-Id: I5cd644daa357afd1f3548f9bcb28e6152d95fdb8
* | | audioflinger: send mic mute command to all audio HALsEric Laurent2014-09-151-2/+7
|/ / | | | | | | | | | | | | | | | | Mic mute should be sent to all audio HALs, not only the primary HAL as telephony can use capture devices on other HALs (e.g USB) Bug: 17321604. Change-Id: I658f6084d5b5cdc5a70784661d5cea0b6f81c3a9
* | 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
* | 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 "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
* | 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
* | Fix memory access error due to race during fast track removalGlenn Kasten2014-08-181-7/+29
| | | | | | | | | | Bug: 16205169 Change-Id: Ie15ec2a737b6ddd16b2d26030d01564ff70177f5
* | Fix overruns when capturing with resamplingGlenn Kasten2014-08-121-15/+30
| | | | | | | | | | Bug: 16658148 Change-Id: I2dd04b23a143e0948b299d408790e7a46b5a53b0
* | Merge "Fix to support mono in effect buffer allocation." into lmp-devRicardo Garcia2014-08-111-1/+4
|\ \
| * | Fix to support mono in effect buffer allocation.Ricardo Garcia2014-08-111-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Since effects are now enabled for recording, mono cases are possible and needed to be correctly allocated. Bug: 16917961 Change-Id: I760fc421f9f90fabb3f0deadd5f9dc61cd284371
* | | Extend downsampling ratios greater than 2:1Andy Hung2014-08-112-4/+4
|/ / | | | | | | | | | | | | | | | | Also improve robustness to choice of sampling rate or buffer size such that increasing either by 10x does not cause overflow. Bug: 12979141 Bug: 15933066 Change-Id: If7989bd745d1bee3bdf811b8b7c978543ccafb65
* | audio policy: enable more than one sink per audio patch.Eric Laurent2014-08-081-29/+35
| | | | | | | | | | | | | | | | | | | | | | | | Allow creation of audio patches with more than one sink. More than one sink is enabled when: - Connecting an input device to output devices on the same audio HW module. - Connecting an output mix to output devices on the same audio HA module. All other patches are limited to one sink. Bug: 16879363. Change-Id: I95be6948ef29df64e51e5b8ace38c2db7f3e89f2
* | Merge "Fix effect and mono sink handling." into lmp-devAndy Hung2014-08-072-5/+6
|\ \
| * | Fix effect and mono sink handling.Andy Hung2014-08-082-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | Do not permit mixing to mono sink in AudioFlinger. Allow effects on mono sink if not Mixer thread (e.g. Record). Bug: 16863095 Change-Id: I8b232fc1fb3f07bf017020c5d4f9ace644dec6d8
* | | Merge "audio policy: add support for USB devices for voice call" into lmp-devEric Laurent2014-08-061-2/+2
|\ \ \
| * | | audio policy: add support for USB devices for voice callEric Laurent2014-08-061-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Add possibility to use sink and source devices not on the primary HW module for voice calls (e.g. USB headsets). Bug: 15520724. Change-Id: Ib27db4ba759b6d91ea1104dc2e35c87733517b30
* | | Merge "AudioSystem: add API to query audio HW sync source" into lmp-devEric Laurent2014-08-062-0/+22
|\ \ \
| * | | AudioSystem: add API to query audio HW sync sourceEric Laurent2014-08-062-0/+22
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a method to query from the audio HAL the HW sync source used for a given audio session. Modify audio policy to select a direct output with HW sync when requested. Bug: 16132368. Change-Id: I03038f9188f2d389f8a5fd76a671854013a4513e
* | | Merge "MediaServer crashing and audio effects not applied to TTS." into lmp-devRicardo Garcia2014-08-061-1/+6
|\ \ \ | |/ / |/| |