summaryrefslogtreecommitdiffstats
path: root/libs/audioflinger/AudioFlinger.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix issue 1795088 Improve audio routing codeEric Laurent2009-07-231-1136/+2100
| | | | | | | Initial commit for review. Integrated comments after patch set 1 review. Fixed lockup in AudioFlinger::ThreadBase::exit() Fixed lockup when playing tone with AudioPlocyService startTone()
* Standby A2DP audio hardware interface when disabling A2DP.Nick Pelly2009-07-151-0/+1
| | | | | | | | | | | Patch supplied on advice of partner. This causes us to send suspend_sink to Bluez via socket interface, so we enter suspend on the A2DP link faster. This is especially important when switching to SCO so that we come closer to whitepaper recommendations to suspend A2DP before setting up SCO. We have another patch set to add DBUS A2DP suspend and resume calls to Bluez that will do a better job of following whitepaper recommendations for A2DP -> SCO -> A2DP, but this small patch is still an improvement.
* am 3893da46: Merge change 6614 into donutAndroid (Google) Code Review2009-07-091-4/+9
|\ | | | | | | | | | | | | Merge commit '3893da46f0a97d59a7687ae2bd71ba855eb5ffe3' * commit '3893da46f0a97d59a7687ae2bd71ba855eb5ffe3': Fix issue 1970108: crash in AudioFlinger::isMusicActive()
| * Fix issue 1970108: crash in AudioFlinger::isMusicActive()Eric Laurent2009-07-091-4/+9
| | | | | | | | Protected calls to MixerThread::isMusicActive() by AudioFlinger::mLock
* | am 88e209dc: Fix issue 1743700: AudioTrack: setPlaybackRate can not set the ↵Eric Laurent2009-07-071-12/+6
|\ \ | |/ | | | | | | | | | | | | | | playback rate to twice of the ouputSR Merge commit '88e209dcf8c2ebddda5c272f46d1bd5478bc639c' * commit '88e209dcf8c2ebddda5c272f46d1bd5478bc639c': Fix issue 1743700: AudioTrack: setPlaybackRate can not set the playback rate to twice of the ouputSR
| * Fix issue 1743700: AudioTrack: setPlaybackRate can not set the playback rate ↵Eric Laurent2009-07-071-12/+6
| | | | | | | | | | | | | | | | to twice of the ouputSR Store sample rate on 32 bits instead of 16 bits in audio_track_cblk_t. Removed sampleRate() methods from AudioTrack and AudioRecord: replaced by getSampleRate(). AudioTrack::setSampleRate() no returns a status.
* | am 2bbb80e1: Merge change 5994 into donutAndroid (Google) Code Review2009-07-031-2/+3
|\ \ | |/ | | | | | | | | | | Merge commit '2bbb80e183c6492689f8b10b2d0f5dfe9872a6ac' * commit '2bbb80e183c6492689f8b10b2d0f5dfe9872a6ac': Less logging in some places. More in others.
| * Less logging in some places. More in others.Joe Onorato2009-07-011-2/+3
| |
* | am d9cc7659: Merge change 2706 into donutAndroid (Google) Code Review2009-05-291-11/+14
|\ \ | |/ | | | | | | | | | | Merge commit 'd9cc7659fa9b8544e2a3ca7b7040fbd79afdf7ea' * commit 'd9cc7659fa9b8544e2a3ca7b7040fbd79afdf7ea': Fix issue 1883666: Audio coming from the music player stopped suddenly
| * Fix issue 1883666: Audio coming from the music player stopped suddenlyEric Laurent2009-05-291-11/+14
| | | | | | | | | | | | | | The problem comes from the code handling the automatic change of audio routing to speaker when notifications are played. The music is also muted while the sound is forced to speaker. To avoid truncating the end of the notification, a delay is inserted between the end of the notification and the restoration of the audio routing. If a new notification starts during this delay, the current music mute state read and saved before muting music corresponds to the forced mute due to previous notification. When the new notification ends, the mute state restored is muted and music stream stays muted for ever. The fix consists in reading and saving music mute state only if the audio routing has been restored (check that mForcedRoute is back to 0).
* | am de8268d6: Merge change 2331 into donutAndroid (Google) Code Review2009-05-261-10/+9
|\ \ | |/ | | | | | | | | | | Merge commit 'de8268d6d1cd168510c490b17e93154d2eab767c' * commit 'de8268d6d1cd168510c490b17e93154d2eab767c': Fix issue 1846343 - part 1
| * Fix issue 1846343 - part 1Eric Laurent2009-05-261-10/+9
| | | | | | | | | | | | | | | | This change is the first part of a fix for issue 1846343, : - Added new enum values for input sources in AudioRecord and MediaRecorder for voice uplink, downlink and uplink+downlink sources. - renamed streamType to inputSource in all native functions handling audio record. A second change is required in opencore author driver and android audio input to completely fix the issue.
* | move libbinder's header files under includes/binderMathias Agopian2009-05-201-3/+3
| |
* | am a59aba8c: Merge changes 2023,2036 into donutAndroid (Google) Code Review2009-05-201-1/+3
|\ \ | |/ | | | | | | | | | | | | Merge commit 'a59aba8cd88b8f98fa4de2a903899bc6ac9f73e8' * commit 'a59aba8cd88b8f98fa4de2a903899bc6ac9f73e8': Update more references to openInputStream in support classes. Modify AudioFlinger to use updated openInputStream factory method.
| * Modify AudioFlinger to use updated openInputStream factory method.Dave Sparks2009-05-191-1/+3
| | | | | | | | Continuation of bug 1846343
* | Merge donut into masterJean-Baptiste Queru2009-04-221-32/+14
|\ \ | |/
| * Fix issue 1745312: Various cleanups in media frameworkEric Laurent2009-04-211-29/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AudioTrack, AudioRecord: - remove useless mAudioFlinger member of AudioTrack and AudioRecord. - signal cblk.cv condition in stop() method to speed up stop completion. - extend wait condition timeout in obtainBuffer() when waitCount is -1 to avoid waking up callback thread unnecessarily AudioFlinger: - remove some warnings in AudioFlinger.cpp. - remove function AudioFlinger::MixerThread::removetrack_l() as its content is never executed. - remove useless call to setMasterVolume in AudioFlinger::handleForcedSpeakerRoute(). - Offset VOICE_CALL stream volume to reflect actual volume that is never 0 in hardware (this fix has been made in the open source): 0.01 + v * 0.99. AudioSystem.java: - correct typo in comment IAudioflinger, IAudioFlingerClient: - make AudioFlinger binder interfaces used for callbacks ONEWAY. AudioHardwareInterface: - correct routeStrings[] table in AudioHardwareInteface.cpp
| * AI 143775: am: CL 143620 Attempt for fixing crash in ↵Eric Laurent2009-03-311-8/+5
| | | | | | | | | | | | | | | | | | | | AudioFlinger::MixerThread::dumpTracks() seen in bug report for issue 1747119. AudioFlinger::MixerThread::dumpTracks() was reading mTracks[] vector instead of mActiveTracks[] when dumping active tracks. Original author: elaurent Merged from: //branches/cupcake/... Automated import of CL 143775
| * AI 143177: am: CL 142889 Fix issue #1736153 Camera shutter sound can be ↵Eric Laurent2009-03-271-3/+6
| | | | | | | | | | | | | | | | | | | | | | muted by new AlarmClock setting. Current implementation of Camera service plays the camera shutter sound over the ALARM stream so that it cannot be muted by silent mode in order to comply to some country specific requirement. A recent change made it possible for the user to mute the ALARM stream thus making this stream not suitable any more for the camera shutter sound. The fix consists in creating a new stream type only accessible by native code and that cannot be muted and use it to play camera sounds. Original author: elaurent Merged from: //branches/cupcake/... Automated import of CL 143177
* | Merge commit 'goog/readonly-p4-master'The Android Open Source Project2009-03-311-8/+5
|\ \
| * | AI 143785: am: CL 143775 am: CL 143620 Attempt for fixing crash in ↵Eric Laurent2009-03-311-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AudioFlinger::MixerThread::dumpTracks() seen in bug report for issue 1747119. AudioFlinger::MixerThread::dumpTracks() was reading mTracks[] vector instead of mActiveTracks[] when dumping active tracks. Original author: elaurent Merged from: //branches/cupcake/... Original author: android-build Merged from: //branches/donutburger/... Automated import of CL 143785
| * | AI 143327: am: CL 143177 am: CL 142889 Fix issue #1736153 Camera shutter ↵Eric Laurent2009-03-271-3/+6
| |/ | | | | | | | | | | | | | | | | | | | | | | | | sound can be muted by new AlarmClock setting. Current implementation of Camera service plays the camera shutter sound over the ALARM stream so that it cannot be muted by silent mode in order to comply to some country specific requirement. A recent change made it possible for the user to mute the ALARM stream thus making this stream not suitable any more for the camera shutter sound. The fix consists in creating a new stream type only accessible by native code and that cannot be muted and use it to play camera sounds. Original author: elaurent Merged from: //branches/cupcake/... Original author: android-build Merged from: //branches/donutburger/... Automated import of CL 143327
* | Merge commit 'korg/cupcake'The Android Open Source Project2009-03-271-93/+77
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: core/java/android/webkit/WebView.java core/java/android/widget/TwoLineListItem.java preloaded-classes
| * | Automated import from //branches/cupcake/...@142889,142889Eric Laurent2009-03-261-3/+6
| |/
| * auto import from //branches/cupcake_rel/...@140373The Android Open Source Project2009-03-181-90/+71
| |
* | Merge commit 'remotes/korg/cupcake' into mergeJean-Baptiste Queru2009-03-181-631/+1478
|\ \ | |/ | | | | | | | | | | | | | | | | Conflicts: core/java/android/view/animation/TranslateAnimation.java core/jni/Android.mk core/res/res/values-en-rGB/strings.xml libs/audioflinger/AudioFlinger.cpp libs/surfaceflinger/LayerScreenshot.cpp packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
| * auto import from //branches/cupcake_rel/...@138607The Android Open Source Project2009-03-131-10/+27
| |
| * auto import from //branches/cupcake/...@137873The Android Open Source Project2009-03-111-6/+75
| |
| * auto import from //branches/cupcake/...@137197The Android Open Source Project2009-03-091-153/+156
| |
| * auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+2474
| |
| * auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-2471/+0
| |
| * auto import from //depot/cupcake/@132589The Android Open Source Project2009-03-031-10/+7
| |
| * auto import from //depot/cupcake/@137055The Android Open Source Project2009-03-021-7/+10
| |
| * auto import from //branches/cupcake/...@132276The Android Open Source Project2009-02-191-14/+48
| |
| * auto import from //branches/cupcake/...@131421The Android Open Source Project2009-02-131-677/+1272
| |
| * auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-16/+138
| |
* | Fix issue #1324: No audible call-waiting indication when in-call volumeJames E. Blair2009-03-031-1/+14
|/ | | | | | | | | is low http://code.google.com/p/android/issues/detail?id=1324 Re-base the internally generated in-call audio volume so that it is never muted, which is already the case for the hardware routed in-call audio.
* auto import from //branches/cupcake/...@127436The Android Open Source Project2009-01-221-9/+71
|
* auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-151-2/+7
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-72/+63
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-249/+461
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+1450