summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
Commit message (Collapse)AuthorAgeFilesLines
* am 5bec1b72: am c99d333f: Merge "audioflinger: fix audio patch release" into ↵Eric Laurent2014-09-101-3/+3
|\ | | | | | | | | | | | | lmp-dev * commit '5bec1b725df12905e86c35ea142b3a628b266a6c': audioflinger: fix audio patch release
| * 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
* | am b12d6a17: am 62ce2072: Merge "Make IPowerManager native conform to .aidl ↵Glenn Kasten2014-09-081-4/+8
|\ \ | |/ | | | | | | | | | | for oneway" into lmp-dev * commit 'b12d6a17d33141789c974e3bd3eacfcb0be1c1e3': Make IPowerManager native conform to .aidl for oneway
| * 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
* | am 955d8f90: am 23c8cf95: Merge "Restore the ability to build tee sink for ↵Glenn Kasten2014-09-033-12/+16
|\ \ | |/ | | | | | | | | | | debugging" into lmp-dev * commit '955d8f906e920fe8da66e7943a7f2bfa98422e19': Restore the ability to build tee sink for debugging
| * 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
* | | am 3d640e0a: am 97d547da: audio flinger: fix use of global effect bufferEric Laurent2014-09-031-0/+4
|\ \ \ | |/ / | | | | | | | | | * commit '3d640e0a93e31bb53e671ed467774b63bb69750e': audio flinger: fix use of global effect buffer
| * | 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 "Clear the timestamp latch valid flag if no new timestamp available"Glenn Kasten2014-08-272-0/+2
|\ \ | |/ |/|
| * Clear the timestamp latch valid flag if no new timestamp availableGlenn Kasten2014-08-262-0/+2
| | | | | | | | | | Bug: 11815245 Change-Id: I94885a1b4c2c7c055b8eacc7f7d0fcd064094b6d
* | 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
|\ \ | |/ |/|
| * MediaServer crashing and audio effects not applied to TTS.Ricardo Garcia2014-08-061-1/+6
| | | | | | | | | | | | | | | | | | A memclear in the EffectChain was out of bounds. Bug 15432115 Bug 16845751 Change-Id: Ib0adc7fa730d630bb71fb87d51163a26149b16e2
* | audio: fix crashes upon USB device connectionEric Laurent2014-08-051-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Audio policy: Replace unknown device assertion by debug log in setDeviceConnectionState(). It is possible that some kernels indicate connection of a legacy device type when a USB audio device is connected. We should just ignore this device. - Audio flinger: Make sure FastMixer thread is idle before exiting the normal mixer thread and closing the output stream. Change-Id: Ia10a20176a60a8aa56765538093a555fc998508a
* | Merge "Remove unused TwoTrack process mode from AudioMixer" into lmp-devAndy Hung2014-08-052-107/+0
|\ \
| * | Remove unused TwoTrack process mode from AudioMixerAndy Hung2014-08-042-107/+0
| |/ | | | | | | | | | | Legacy code that has not been hooked up. Change-Id: Ic01a4eddfa1020089d5bc42f58b6a4697698c27a
* | audio flinger: fix service fuzz test crashEric Laurent2014-08-041-0/+6
| | | | | | | | | | Bug: 13744704. Change-Id: I572c89f88dcab2b8b612ec6860983306f9f159ab
* | Remove 64-bit android_atomic uses from StateQueue.Hans Boehm2014-07-312-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. (cherry picked from commit f39b560952d3706a7ff47ef0d82c1a836daeea42) Change-Id: I3c29bdbd5915cb9d47118834a3a742fe296cf87f
* Merge "Enable multichannel in AudioFlinger" into lmp-devAndy Hung2014-07-291-1/+1
|\
| * Enable multichannel in AudioFlingerAndy Hung2014-07-281-1/+1
| | | | | | | | Change-Id: Ibdbdc6ea0b87cdcd15432257a3455b11b3ce14b7
* | Fix build warningsGlenn Kasten2014-07-296-15/+15
| | | | | | | | Change-Id: Ife5e40264f43fb3ccb40830228701003fe106bf5
* | audio policy: pass session ID to capture activity methodsEric Laurent2014-07-282-5/+5
| | | | | | | | | | | | | | | | Indicate the audio session ID when calling getInput(), startInput(), stopInput(), releaseInput(). Bug: 12378680. Change-Id: I763793752f93e2f4e1445a5ab217c895af011038
* | Merge "Fix rounding in RecordThread resampler buffer computation" into lmp-devGlenn Kasten2014-07-281-10/+12
|\ \
| * | Fix rounding in RecordThread resampler buffer computationAndy Hung2014-07-281-10/+12
| |/ | | | | | | | | Bug: 16525305 Change-Id: Ie010822b0fa9dec74adde1d1b091ee44c183fc94
* | rename AudioSystem::newAudioSessionId()Eric Laurent2014-07-282-2/+2
| | | | | | | | | | | | | | | | | | Rename AudioSystem::newAudioSessionId() to AudioSystem::newAudioUniqueId() as it can be used also for I/O handles. Bug: 12378680. Change-Id: I611ea3b5eb57a4b0774437f477ee87dc4ccc2cc2
* | Merge "AudioFlinger: update openInput() and openOutput()" into lmp-devEric Laurent2014-07-253-151/+148
|\ \ | |/ |/|
| * AudioFlinger: update openInput() and openOutput()Eric Laurent2014-07-283-151/+148
| | | | | | | | | | | | | | | | | | | | Add parameters to openInput() and openOutput(): device address, input source. Allow caller to specify a given I/O handle Group parameters in a struct audio_config. Bug: 12378680. Change-Id: I7e9af74c0d996561cc13cbee7d9012d2daf33025
* | Enable lower latency audio capture on more devicesGlenn Kasten2014-07-271-3/+3
|/ | | | | Bug: 16601366 Change-Id: I573b98631f81b7768f7cc00aa09e560008dea587
* Add multichannel capability to AudioFlingerAndy Hung2014-07-247-34/+111
| | | | | | But not enabled (kEnableExtendedChannels == false). Change-Id: I62f7e31fbd29ad703a9a02f5d1a280b6972dd423
* Add multichannel capability to AudioMixerAndy Hung2014-07-246-175/+420
| | | | | | | | tests/test-mixer updated to handle multichannel. New mixer path is still disabled (kUseNewMixer = false). Subsequent CL will enable multichannel capability. Change-Id: I71dafa94cc1d9af567c285e0ded7c5c94e3ff926
* audio flinger: add patch connection between hw modulesEric Laurent2014-07-2410-216/+855
| | | | | | | | | | | | | | | | | | Add support for audio device connections between different audio hw modules. The patch is performed by creating a bridge between the playback thread connected to the sink device and the record thread connected to the source device using a pair of specialized PlaybackTrack and RecordTrack. - Added PatchTrack and PatchRecord classes. - Added TrackBase type to indicate more clearly the track behavior. - A TrackBase can allocate the buffer or reuse an existing one. - Factored some code in openOutput() and openInput() for internal use by PatchPanel. Bug: 14815883. Change-Id: Ib9515fcda864610458a4bc81fa8f59096ff4d7db
* Merge "Fix multichannel integer resampling and add tests" into lmp-devAndy Hung2014-07-232-35/+111
|\
| * Fix multichannel integer resampling and add testsAndy Hung2014-07-212-35/+111
| | | | | | | | Change-Id: I384bf8317d4f03616bf9f2b458a8700965d5cf56
* | Remove execute bitGlenn Kasten2014-07-211-0/+0
|/ | | | Change-Id: I1cf0c0d9375779b3074af12f4cbf9c1ec07bf4ff
* Merge "Add RemixBufferProvider to AudioMixer" into lmp-devAndy Hung2014-07-172-2/+53
|\
| * Add RemixBufferProvider to AudioMixerAndy Hung2014-07-182-2/+53
| | | | | | | | | | | | | | This is used to convert between channel masks for input AudioTrack data. Change-Id: Iedffaeccb99c7053992152e7b1cb6b2d33b12eef
* | Merge "Update DownmixerBufferProvider to use CopyBufferProvider" into lmp-devAndy Hung2014-07-182-158/+166
|\ \ | |/