summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
Commit message (Collapse)AuthorAgeFilesLines
* audio flinger: fix standby on output with HW A/V syncEric Laurent2015-04-012-2/+13
| | | | | | | | | | Fix a bug in audio HAL pause logic on output threads with HW A/V sync preventing the HAL to enter standby when the audio track is stopped and detroyed. Bug: 19980184. Change-Id: Ia497dad23159038b447fcbc18a67bb61b70b79cc
* Merge "AudioFlinger: call SPDIF wrapper from AudioFlinger"Phil Burk2015-03-2410-86/+688
|\
| * AudioFlinger: call SPDIF wrapper from AudioFlingerPhil Burk2015-03-2410-86/+688
| | | | | | | | | | | | | | | | | | | | | | | | | | Create an interface layer between the AudioFlinger and the HAL that manages the wrapping and format conversion. Removed unnecessary includes. Handle rate conversion in getRenderPosition(). Try to open HAL with encoded format before wrapping with SPDIF. Bug: 17566660 Change-Id: I00ad888ca15ff0f85b85efb8167c7f5ea761a244 Signed-off-by: Phil Burk <philburk@google.com>
* | Merge "AudioRecord TRANSFER_OBTAIN can be used with FAST flag"Glenn Kasten2015-03-241-2/+3
|\ \ | |/ |/|
| * AudioRecord TRANSFER_OBTAIN can be used with FAST flagGlenn Kasten2015-03-231-2/+3
| | | | | | | | Change-Id: I001ba1a88150dddf79d99baf5927f31799745eef
* | Merge "AudioFlinger: prevent retrograde timestamps for direct mode"Phil Burk2015-03-242-31/+51
|\ \ | |/ |/|
| * AudioFlinger: prevent retrograde timestamps for direct modePhil Burk2015-03-232-31/+51
| | | | | | | | | | | | | | | | | | Prevent retrograde motion in the HAL or drivers from making it up through the AudioFlinger to the app. Bug: 19604395 Change-Id: I11d6c0f7cab69e75fd4b4a2a90f64960b4bb6d5a Signed-off-by: Phil Burk <philburk@google.com>
* | Fix typosGlenn Kasten2015-03-231-1/+1
| | | | | | | | | | | | | | | | Fix typos in comments Add formal parameter name to declaration where it was missing Fix out of order comments Change-Id: I1de81ae82af5ca507864e4c7b959111bac898b98
* | Merge "Enable full floating point path in AudioMixer"Andy Hung2015-03-201-3/+3
|\ \
| * | Enable full floating point path in AudioMixerAndy Hung2014-11-071-3/+3
| | | | | | | | | | | | Change-Id: I7becce859d6e8db413e6a7c3193ae0f2af273599
* | | Merge "Initial implementation of fast capture dump"Glenn Kasten2015-03-194-1/+30
|\ \ \ | |_|/ |/| |
| * | Initial implementation of fast capture dumpGlenn Kasten2015-03-064-1/+30
| | | | | | | | | | | | Change-Id: I898d903e539f760ef7caa80f41ca21c223f67264
* | | Merge "audioflinger: refresh fast track underrun state upon start"Andy Hung2015-03-171-2/+6
|\ \ \
| * | | audioflinger: refresh fast track underrun state upon startHaynes Mathew George2015-03-161-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | False underrun is detected when starting recycled fast tracks, which leads to continuous fatal assertion failures and even AP reboot. Track's last mObservedUnderruns isn't updated one at previous stop() call. Hence, when we start the same track again, we should synchronize it to the latest state instead of relying on stale one. authored-by: Weiyin Jiang<wjiang@codeaurora.org> CRs-Fixed: 803389 Bug: 19635137 Signed-off-by: Andy Hung <hunga@google.com> Change-Id: Ia003a49c6896dba965798c062c98b8c367ef8369
* | | | Update commentsGlenn Kasten2015-03-132-1/+2
| | | | | | | | | | | | | | | | Change-Id: I37d3c4ce22b74fe8581a886fe5a7f9fef8266dad
* | | | Merge "Allow TRANSFER_OBTAIN to be used for fast tracks"Glenn Kasten2015-03-091-2/+3
|\ \ \ \ | |_|/ / |/| | |
| * | | Allow TRANSFER_OBTAIN to be used for fast tracksGlenn Kasten2015-03-091-2/+3
| | | | | | | | | | | | | | | | Change-Id: I8fa20c26f076567b38210af4a680fe1cb2eacee4
* | | | Dump generic information first for each threadGlenn Kasten2015-03-061-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | also mBufferSize was already being displayed as part of dumpBase Change-Id: I17f3062fcc076c594b5fd6b8fca286b27067e07c
* | | | Display more fields in thread dumpBaseGlenn Kasten2015-03-061-0/+4
|/ / / | | | | | | | | | Change-Id: Ice15e999dda2f6cf9d23685ade4a87f74180322d
* | | Rename mName to mThreadName and kNameLength to kThreadNameLengthGlenn Kasten2015-03-062-14/+15
| | | | | | | | | | | | Change-Id: I0adfcdcab7923a07a840ec0e04528cb8bfc41f10
* | | WhitespaceGlenn Kasten2015-03-062-17/+17
| | | | | | | | | | | | | | | | | | switch indent Change-Id: I652c798dd37a80634d247c4d881fb1cce92c4bd6
* | | Rename tee sink file name and add prefix to macrosGlenn Kasten2015-03-061-12/+12
| | | | | | | | | | | | Change-Id: If316b9e32963d9baef8f4382fcc73dc6c4ff684d
* | | Rename formal parameter to match type nameGlenn Kasten2015-03-061-8/+8
| | | | | | | | | | | | Change-Id: I0761005b751f5c4a4b28729b1820961ff3077afd
* | | Add devicesToString, inputFlagsToString, and sourceToStringGlenn Kasten2015-03-062-1/+106
| | | | | | | | | | | | Change-Id: I0c09d76c204ffc5579f62d2ed1faef07922a5962
* | | Merge "Fix typo in string table"Glenn Kasten2015-03-061-1/+1
|\ \ \ | |/ / |/| |
| * | Fix typo in string tableGlenn Kasten2015-03-051-1/+1
| | | | | | | | | | | | Change-Id: Iaf3d3c77129c62cf3dcad21fc754f390eb43b28e
* | | Merge "Improve resampler speed for floating point and arm64"Andy Hung2015-03-046-6/+626
|\ \ \ | |/ / |/| |
| * | Improve resampler speed for floating point and arm64Andy Hung2015-03-036-6/+626
| | | | | | | | | | | | | | | | | | | | | | | | Add floating point intrinsics for arm32 and arm64 devices. Add integer intrinsics for arm64 devices. Bug: 17366024 Change-Id: Id4240f549033deb262815c7145d69820e5fd7b92
* | | Remove PCM16 assumption from FastCaptureGlenn Kasten2015-03-032-9/+6
| | | | | | | | | | | | | | | Bug: 19586911 Change-Id: I74d4ddc09a9eb9c651f874482639d39a56f8ca1f
* | | Pull up comment to superclassGlenn Kasten2015-03-032-7/+6
| | | | | | | | | | | | Change-Id: I2e3632ee80744f2f8d932ac1a8597ff805883851
* | | Remove redundant this->Glenn Kasten2015-03-032-12/+12
| | | | | | | | | | | | Change-Id: Iaa11bcce94dd331425197aab49065939e226a6a2
* | | Add "m" prefix to fieldsGlenn Kasten2015-03-038-396/+403
| | | | | | | | | | | | Change-Id: Ifdb8fa886d1ff53cd7c8aff3c2f8286e6e18dec2
* | | Pull out commandToString() from FastMixerDumpState.cppGlenn Kasten2015-03-037-29/+50
| | | | | | | | | | | | | | | | | | to FastThreadState.cpp, FastMixerState.cpp, and FastCaptureState.cpp Change-Id: I872efb211e8a0335c42906367859d3674340e374
* | | Pull up increaseSamplingN and kSamplingNforLowRamDeviceGlenn Kasten2015-03-035-43/+33
| | | | | | | | | | | | | | | | | | | | | from FastMixerDumpState to FastThreadDumpState, and remove unused parameter from FastMixerDumpState constructor. Change-Id: Ib8937b106622a8da28a6ef6043de4528ae82cb05
* | | Remove redundant semicolon from namespace closingGlenn Kasten2015-03-0319-21/+19
| | | | | | | | | | | | Change-Id: I163f9d3d216c283ae1160ce4802e5247cf44fba7
* | | Merge "Fix compile error if FAST_THREAD_STATISTICS not defined"Glenn Kasten2015-03-031-0/+2
|\ \ \
| * | | Fix compile error if FAST_THREAD_STATISTICS not definedGlenn Kasten2015-03-021-0/+2
| | | | | | | | | | | | | | | | Change-Id: I3a4ac558e61ad956a7a6e325534e722066e49b2f
* | | | Merge "Rename FAST_MIXER_STATISTICS to FAST_THREAD_STATISTICS"Glenn Kasten2015-03-038-19/+18
|\ \ \ \ | |/ / /
| * | | Rename FAST_MIXER_STATISTICS to FAST_THREAD_STATISTICSGlenn Kasten2015-03-028-19/+18
| |/ / | | | | | | | | | Change-Id: Idb5f5bf0c20bffff8536cf4a46f696e12e99e81b
* | | Re-generate sinc tables with comment and indent by 4Glenn Kasten2015-03-022-258/+262
|/ / | | | | | | Change-Id: I349273969dfd7e9d7f896f8bd6d552bd6b56ba54
* | Merge "Line length 100"Glenn Kasten2015-03-021-1/+2
|\ \
| * | Line length 100Glenn Kasten2015-02-271-1/+2
| | | | | | | | | | | | Change-Id: Ic0ae92c300df221387bdd9669e4b7b995d83d28a
* | | Merge "Extract resampler coefficient tables to separate files"Glenn Kasten2015-03-023-258/+260
|\ \ \ | |/ /
| * | Extract resampler coefficient tables to separate filesGlenn Kasten2015-02-273-258/+260
| | | | | | | | | | | | Change-Id: I2e186bd3172cecc08c436e6bf7546b913249e6c8
* | | Merge "Fix comments in resampler assembly"Andy Hung2015-02-281-40/+40
|\ \ \
| * | | Fix comments in resampler assemblyAndy Hung2015-02-091-40/+40
| | | | | | | | | | | | | | | | Change-Id: Iedbd14a2c6c73dd9631813bd2414bf11cee78c32
* | | | Merge "Add channel index mask to AudioMixer"Andy Hung2015-02-281-6/+44
|\ \ \ \
| * | | | Add channel index mask to AudioMixerAndy Hung2015-02-271-6/+44
| | | | | | | | | | | | | | | | | | | | Change-Id: Ifbcb61cc24111b7efab5e8d119d44dab26ba1778
* | | | | Merge "Change AudioTrack resampling buffers from 3 to 2"Andy Hung2015-02-281-19/+12
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Change AudioTrack resampling buffers from 3 to 2Andy Hung2015-02-061-19/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move computation of minimum AudioTrack buffer size to server for normal streaming PCM tracks. Use server-side computation to exactly determine requirements for the resampler to avoid triple buffering. This reduces latency for normal audio tracks that require resampling, and makes things consistent with the minimum buffer size. Change-Id: I2f2ca0e599ee20e16559bc5c5dab61ed100da16c