summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Fix FastMixer high bit depth Hal support" into mnc-devAndy Hung2015-06-221-0/+4
|\
| * Fix FastMixer high bit depth Hal supportAndy Hung2015-06-191-0/+4
| | | | | | | | | | Bug: 21959591 Change-Id: Ia3351ea5644b36852a1f0dad1314beac97d840e1
* | Merge "AudioFlinger: reset SPDIF encoder on flush" into mnc-devPhil Burk2015-06-201-1/+2
|\ \
| * | AudioFlinger: reset SPDIF encoder on flushPhil Burk2015-06-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | This may prevent corrupt data from reaching the AVR. Bug: 19604395 Change-Id: I3dbdd002326917b9f14dda46a3e5170e1ec799bb Signed-off-by: Phil Burk <philburk@google.com>
* | | Merge "Fix clamp issue with AudioMixer with float input and int16 output" ↵Andy Hung2015-06-191-3/+2
|\ \ \ | |_|/ |/| | | | | into mnc-dev
| * | Fix clamp issue with AudioMixer with float input and int16 outputAndy Hung2015-06-181-3/+2
| |/ | | | | | | | | Bug: 20706338 Change-Id: I7e3ab0da96901870cc57fbe2e79163bc81157465
* | Reduce log messages on AudioFlinger throttleAndy Hung2015-06-182-2/+17
|/ | | | | Bug: 21858740 Change-Id: I8f291b64c1033867bb57ffceaa3b7d94aa998715
* Merge "Fix AudioRecord cleanup if construction fails" into mnc-devAndy Hung2015-06-131-1/+3
|\
| * Fix AudioRecord cleanup if construction failsAndy Hung2015-06-121-1/+3
| | | | | | | | | | Bug: 11671194 Change-Id: Id48350264f8b5ce53bf7ce2b308bf4ba21e59241
* | Merge "AudioFlinger: flush stream when switching tracks" into mnc-devPhil Burk2015-06-112-24/+45
|\ \
| * | AudioFlinger: flush stream when switching tracksPhil Burk2015-06-112-24/+45
| |/ | | | | | | | | | | | | | | | | For direct threads, when recycling a stream, perform a flush so that the frame position is reset. Bug: 21145353 Change-Id: I08611cd64bb249a9659c44f9e4c47e7455f4838f Signed-off-by: Phil Burk <philburk@google.com>
* | Take advantage of audio_channel_in_mask_from_countGlenn Kasten2015-06-091-5/+3
|/ | | | | | Bug: 21375533 Bug: 21721483 Change-Id: I1ccd5d1d68a25f415dc4a62bf7a44d9db12a256b
* Merge "Throttle MixerThread data pull to no more than twice expected rate" ↵Andy Hung2015-06-032-3/+38
|\ | | | | | | into mnc-dev
| * Throttle MixerThread data pull to no more than twice expected rateAndy Hung2015-06-032-3/+38
| | | | | | | | | | | | | | | | | | | | | | | | This helps prevent underruns with NuPlayer and other applications which set up buffers that are close to minimum size or use deep buffers, and rely on a double-buffering sleep strategy to fill. Enabled by default. Disabled by setting af.thread.throttle 0 Bug: 19062223 Bug: 21198655 Change-Id: Ia52b48e0c99588af5db53c43fede2afd775b8899
* | Fix buildGlenn Kasten2015-06-021-0/+1
| | | | | | | | Change-Id: I4d1e396d812b6a22087d35156633451d5c1c36bc
* | Allow capture by root for command-line native testingGlenn Kasten2015-06-021-0/+4
|/ | | | Change-Id: I3cafd70b7770c7e4b578d39a8d570572829f2c59
* Merge "Add more device codes for symbolic display" into mnc-devGlenn Kasten2015-05-291-0/+34
|\
| * Add more device codes for symbolic displayGlenn Kasten2015-05-271-0/+34
| | | | | | | | Change-Id: I08553f0e94d0a0931ccf98ee04f53686b96c8b03
* | Merge "Fix for audio effects in offload path for mono content" into mnc-devRicardo Garcia2015-05-291-1/+9
|\ \
| * | Fix for audio effects in offload path for mono contentRicardo Garcia2015-05-281-1/+9
| |/ | | | | | | | | | | | | | | Effects path is always stereo, and it should be initialized as thus even if the source is mono. Fixed condition check before initialization. bug: 18157592 Change-Id: Idd7241931e4ba6085fd804345128d898c8511e11
* | audio flinger: add suffix to time variables namesEric Laurent2015-05-272-56/+56
| | | | | | | | | | | | | | | | | | | | | | Add suffix to clarify units for the following variables: standbyTime -> mStandbyTimeNs standbyDelay -> mStandbyDelayNs activeSleepTime -> mActiveSleepTimeUs idleSleepTime -> mIdleSleepTimeUs sleepTime -> mSleepTimeUs Change-Id: I7f5d602c39e0ef3f6fe9ef99eaf1b351c7bd4fc3
* | Merge "audio flinger: pause direct output when underrunning" into mnc-devEric Laurent2015-05-271-7/+7
|\ \ | |/ |/|
| * audio flinger: pause direct output when underrunningEric Laurent2015-05-261-7/+7
| | | | | | | | | | | | | | | | | | | | | | If a direct output supports pause, pause the stream instead of placing it into standby when the audio track underruns. This will avoid resetting the presented frame count and preserve A/V sync. Bug: 21437855. Change-Id: I598346edb62a1864126acdb1d9a937c82eac2191
* | 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