summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge "Improve volume input check for AudioMixer" into mnc-devAndy Hung2015-05-211-23/+88
|\ \
| * | Improve volume input check for AudioMixerAndy Hung2015-05-211-23/+88
| | | | | | | | | | | | Change-Id: I5b656b123847529f2b76af2a68bd4e9b691882f4
* | | Merge "audio flinger: do not call JAVA services until system is ready" into ↵Eric Laurent2015-05-214-50/+102
|\ \ \ | |/ / |/| | | | | mnc-dev
| * | audio flinger: do not call JAVA services until system is readyEric Laurent2015-05-204-50/+102
| |/ | | | | | | | | | | | | | | Wait for system ready indication form AudioService before enabling calls to scheduling service or power manager. Bug: 11520969. Change-Id: I221927394f4a08fd86c9d457e55dd0e07949f0cf
* | Merge "Update FastTrack channel conversion check" into mnc-devAndy Hung2015-05-191-3/+5
|\ \
| * | Update FastTrack channel conversion checkAndy Hung2015-05-191-3/+5
| | | | | | | | | | | | Change-Id: Ia1a3124e6408859bf4d95ff9fd95dda6970a4a7f
* | | Merge changes Iba5ccd18,I97e578f3 into mnc-devAndy Hung2015-05-192-43/+65
|\ \ \ | |_|/ |/| | | | | | | | | | | * changes: Fix channel mask dump in AudioFlinger Allow creation of output endpoints with channel index masks
| * | Fix channel mask dump in AudioFlingerAndy Hung2015-05-191-43/+56
| |/ | | | | | | Change-Id: Iba5ccd1885775b14c44342c7b169a0672b93549b
| * Allow creation of output endpoints with channel index masksAndy Hung2015-05-191-0/+9
| | | | | | | | | | Bug: 21301523 Change-Id: I97e578f3da933f7086e4f431a199ed907f04cbc8
* | Merge changes Ia529bf53,I10888d0b into mnc-devChih-Hung Hsieh2015-05-152-12/+0
|\ \ | |/ |/| | | | | | | * changes: Enable building with clang/llvm. Enable clang compilation.
| * Enable building with clang/llvm.Chih-Hung Hsieh2015-05-151-6/+0
| | | | | | | | | | | | | | | | The llvm bug https://llvm.org/bugs/show_bug.cgi?id=21572 was fixed. BUG: 18373866 Change-Id: Ia529bf53267f636880515ccefb4ca1cf7d731baf (cherry picked from commit 7630881d853b130e2c1f11cb2dafebe684bcfa91)
| * Enable clang compilation.Chih-Hung Hsieh2015-05-151-6/+0
| | | | | | | | | | | | | | | | Previous clang/llvm bug was fixed. BUG: 18373866 Change-Id: I10888d0bc1cf8f621c719a705b1f77ff0d0ecca5 (cherry picked from commit 1ab4ff2355e934517751e40573e4163cb49b1676)
* | audio flinger: fix record permission checkEric Laurent2015-05-121-1/+1
|/ | | | | Bug: 21022842. Change-Id: Iff7c2ce715fa5e7ff029dbf6a3f27c6a8bc0735d
* Merge "Update sampling rate to 192kHz for devices" into mnc-devAndy Hung2015-05-122-6/+8
|\
| * Update sampling rate to 192kHz for devicesAndy Hung2015-05-122-6/+8
| | | | | | | | Change-Id: I0a83206be51d7ae18ccf85b94b2127356307be69
* | Merge "Work around bug in offload driver" into mnc-devMarco Nelissen2015-05-121-2/+12
|\ \
| * | Work around bug in offload driverMarco Nelissen2015-05-121-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a bug in the offload driver that causes the last offload buffer(s) to be dropped unless the device is on power or holding a wake lock. To avoid truncated playback, we now hold a wake lock during the drain phase of offloaded playback. Bug: 19928717 Change-Id: I8df22e965ec791448aa5d9b74e743f48ef886fc4
* | | Merge "Support channel index masks for output hal" into mnc-devAndy Hung2015-05-121-40/+2
|\ \ \ | | |/ | |/|
| * | Support channel index masks for output halAndy Hung2015-05-061-40/+2
| | | | | | | | | | | | Change-Id: Ib3e61ff6faf91c71b85102b5d77f90f124c08220
* | | Merge "Allow 8 channels in RecordThread" into mnc-devAndy Hung2015-05-121-3/+1
|\ \ \ | |/ /
| * | Allow 8 channels in RecordThreadAndy Hung2015-05-051-3/+1
| | | | | | | | | | | | Change-Id: I738d4975188695e568015e1bc64d160550e958f5
* | | Merge "AudioMixer: fix for volume ramp in float mode" into mnc-devEric Laurent2015-05-091-1/+2
|\ \ \
| * | | AudioMixer: fix for volume ramp in float modeEric Laurent2015-05-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 20912450. Bug: 19952126. Change-Id: I1ff3c3f4c0dd673bbbc17ce8da14d446fdb7e8a8
* | | | Merge "Revert "Revert "Enable full floating point path in AudioMixer""" into ↵Eric Laurent2015-05-091-3/+3
|\ \ \ \ | | | | | | | | | | | | | | | mnc-dev
| * | | | Revert "Revert "Enable full floating point path in AudioMixer""Eric Laurent2015-05-081-3/+3
| | |_|/ | |/| | | | | | | | | | | | | | | | | | This reverts commit 5dcaebbea5dca62ca55d6137777caa67fc757dd6. Change-Id: I8bfc668baf53dc03a9516c50e2a4d625ec767d0a
* | | | Merge "audio flinger: fix fuzz test crash" into mnc-devEric Laurent2015-05-083-7/+22
|\ \ \ \ | |/ / / |/| | |
| * | | audio flinger: fix fuzz test crashEric Laurent2015-05-083-7/+22
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clear output stream pointer in duplicating thread when the main output to which it is attached is closed. Also do not forward master mute and volume commands to duplicating threads as this is not applicable. Also fix logic in AudioFlinger::primaryPlaybackThread_l() that could accidentally return a duplicating thread. This never happens because the primary thread is always first in the list. Bug: 20731946. Change-Id: Ic8869699836920351b23d09544c50a258d3fb585
* | | Revert "Enable full floating point path in AudioMixer"Eric Laurent2015-05-071-3/+3
|/ / | | | | | | | | | | | | | | This reverts commit 5b8fde71e08f57478ef25d040fc5f66294011ac6. temporary revert while we investigate. Bug: 20912450.
* | Merge "Implement audio device callback" into mnc-devEric Laurent2015-05-062-0/+9
|\ \ | |/ |/|
| * Implement audio device callbackEric Laurent2015-05-062-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add class AudioSystem::AudioDeviceCallback notifying AudioSystem clients upon device selection change on a given input or output thread. Maintain a list of installed callback per I/O handle in AudioSystem and call registered callbacks when an OPEN of CONFIG_CHANGED event is received on IAudioFlingerClient::ioConfigChanged(). Add methods to AudioTrack and AudioRecord to add and remove device change callbacks. Add methods to AudioTrack and AudioRecord to query currently selected device. ioConfigChanged() events now convey the audio patch describing the input or output thread routing. Fix AudioRecord failure to start when invalidation is handled by start(). Change-Id: I9e938adf025fa712337c63b1e02a8c18f2a20d39
* | Merge "AudioRecord keeps track of UID" into mnc-devJean-Michel Trivi2015-05-052-2/+3
|\ \ | |/ |/|
| * AudioRecord keeps track of UIDJean-Michel Trivi2015-05-052-2/+3
| | | | | | | | | | | | Bug 20832981 Change-Id: If5f3c61fae02d86b9d6fdf411711f854fd56c77d
* | Merge "AudioTrack: fix direct tracks not pausing" into mnc-devPhil Burk2015-05-022-10/+12
|\ \
| * | AudioTrack: fix direct tracks not pausingPhil Burk2015-05-012-10/+12
| |/ | | | | | | | | | | | | | | | | | | When a Direct Track is paused and the HAL does not support pause() and resume() then the HW never gets paused. The app can just keep writing data, which gets played. Bug: 18899620 Change-Id: Ice0f360956ff7ca425f6f24a0a2a8640d8b43fa8 Signed-off-by: Phil Burk <philburk@google.com>
* | Merge "AudioSystem: refactor audio config cache and callbacks" into mnc-devEric Laurent2015-05-014-62/+61
|\ \ | |/ |/|
| * AudioSystem: refactor audio config cache and callbacksEric Laurent2015-05-014-62/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up implementation of audio configuration cache and callback events from AudioFlinger: - Define class AudioIoDescriptor for audio input and output configurations outside of AudioSystem class. - Do not use void * but an AudioIoDescriptor as argument to audio config callbacks from AudioFlinger. - Remove unused configuration events. - Move AudioSystem audio input and output cache from static singletons to members of AudioFlingerClient subclass. Change-Id: I67c196c32c09ce2756af0755ee1fe631040c3270
* | Merge "PatchPanel: do not use setParameters() internally." into mnc-devEric Laurent2015-05-015-135/+219
|\ \ | |/
| * PatchPanel: do not use setParameters() internally.Eric Laurent2015-04-285-135/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not use setParameters() with AUDIO_PARAMETER_STREAM_ROUTING when communicating the input or output device selected to playback or record threads, even for HAL version less than 3.0. Use createAudioPatch()/releaseAudioPatch() instead. This allows to send more information on the output or input device being selected. Also fix a regression introduced in L where the output device selection was not communicated to effects on record threads. Change-Id: I4780ada53241d56694b005c992171e173c3bf8f5
* | AudioTrack: fix spurious retrograde messagesPhil Burk2015-04-292-50/+2
| | | | | | | | | | | | | | | | | | | | | | The retrograde motion was confused by some positions coming from the DSP on offloaded tracks. So the retrograde check was moved up into AudioTrack.cpp. This allows us to take advantage of the checks for invalid positions based on timing. Bug: 2047891 Change-Id: Ifcad2349201443a7f1711347c203297100449536 Signed-off-by: Phil Burk <philburk@google.com>
* | Respect the record audio app op - mediaSvet Ganov2015-04-294-16/+79
|/ | | | Change-Id: I3a97977b6e9a09355e2008f780d22d480fb7308b
* Add floating and multichannel record to AudioFlingerAndy Hung2015-04-224-80/+162
| | | | Change-Id: Ia388fb012a0b6d81613ef87142a97d76836338f9
* Merge "Make record buffer in RecordThread variable format"Andy Hung2015-04-222-9/+9
|\
| * Make record buffer in RecordThread variable formatAndy Hung2015-04-212-9/+9
| | | | | | | | Change-Id: Id4bb9b973eeea16946fba3bc084c7ac270d9fa33
* | Merge "Fix single channel playback that does not use AUDIO_CHANNEL_OUT_MONO"Andy Hung2015-04-221-2/+3
|\ \ | |/
| * Fix single channel playback that does not use AUDIO_CHANNEL_OUT_MONOAndy Hung2015-04-211-2/+3
| | | | | | | | | | | | | | | | Mono channel playback without resampling and not using AUDIO_CHANNEL_OUT_MONO can show low frequency garbling. Bug: 20463456 Change-Id: I0c1bbf957ea439bb8d8da57b9e78938e1acb4793
* | Use AudioPlaybackRate to hold TimestretchBufferProvider parametersRicardo Garcia2015-04-226-80/+118
|/ | | | | | | | Use this struct to handle the parameters for TimestretchBufferProvider all across the system. Add stretch mode and fallback mode to TimestretchBuffer Provider. Change-Id: I19099924a7003c62e48bb6ead56c785cb129fba2
* Merge "TimestretchBufferProvider integration with Sonic Library"Ricardo Garcia2015-04-144-14/+36
|\
| * TimestretchBufferProvider integration with Sonic LibraryRicardo Garcia2015-04-134-14/+36
| | | | | | | | | | | | | | | | Using Sonic as backbone for time stretching algorithm. Adding libsonic to needed makefiles. bug: 19196501 Change-Id: I1ea9221d2f56e4e79fba8746ce0ad350b5079e82
* | Merge "audio polciy: remove FM audio capture permission."Eric Laurent2015-04-132-8/+0
|\ \ | |/ |/|
| * audio polciy: remove FM audio capture permission.Eric Laurent2015-04-132-8/+0
| | | | | | | | Change-Id: I2607d89b0bd87cdd2f4084dfdb55135509a824d5