summaryrefslogtreecommitdiffstats
path: root/media/libmedia
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue 1946033: dialer deadlocks and/or ANRs when using dialpad in-callEric Laurent2009-07-091-0/+2
| | | | | | The cause is very likely that the WaveGenerator *lpWaveGen returned by lpToneGen->mWaveGens.valueFor(lFrequency) just before calling lpWaveGen->getSamples(lpOut, lGenSmp, lWaveCmd) is invalid. The frequency lFrequency is not part of the frequencies in mWaveGens. This can happen if a different tone is started while the callback function is active: The state is changed to TONE_RESTARTING and the call to prepareWave() at line 1226 will change the tone descriptor pointed to by mpToneDesc as well as the content of mWaveGens. However, mpToneDesc was cached in a local variable lpToneDesc when entering the callback and is not reloaded when exiting prepareWave(). This causes a mismatch between the tone frequencies listed in lpToneDesc and the frequencies present in mWaveGens. This regression was introduced in change 973 when mpToneDesc was cached in a local variable.
* Fix issue 1743700: AudioTrack: setPlaybackRate can not set the playback rate ↵Eric Laurent2009-07-072-22/+14
| | | | | | | | 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.
* Fill in CDMA gaps and clean up ToneGenerator codeDavid Krause2009-06-231-135/+681
|
* Removed trailing whitespaces.Nicolas Catania2009-06-112-3/+2
|
* NJ-1409: (frameworks/base) Support new audio encoding types(AMR and AAC).Jianhong Jiang2009-06-081-4/+4
|
* setVolume did not check interface descriptorDave Sparks2009-05-261-0/+2
| | | | DO NOT MERGE
* Fix issue 1846343 - part 1Eric Laurent2009-05-262-10/+16
| | | | | | | | 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.
* Don't allow negative numbers in ToneGenerator toneType parameterDave Sparks2009-05-071-1/+1
| | | | Bug 1836596
* Fixed issue 1709450: Requirements for CDMA Tone GeneratorEric Laurent2009-05-061-85/+342
| | | | | | | | | | Added new tone types for CDMA IS-95 specific tones. Automatic selection between IS-95, CEPT and JAPAN version base on operator country code for call supervisory tones. Also improved tone generator capabilities: - Each tone segment can now generate its own set of frequencies - A tone does not have to be a succession of alternating ON/OFF segments - The sequence repetition does not have to start from first segment
* Fix issue 1745312: Various cleanups in media frameworkEric Laurent2009-04-214-14/+14
| | | | | | | | | | | | | | | | | | | | | | 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 144054: am: CL 144053 Fix issue #1751242 A2DP playback fails first time: ↵Eric Laurent2009-04-011-16/+17
| | | | | | | | | | | Invalid buffer size: minFrameCount 10240, frameCount 4800 The problem comes from the fact that AudioSystem::getOutputFrameCount() calls getOutput() to retrieve the active output (A2DP or Hardware) before calling get_audio_flinger(). If it is the first time AudioSystem::getOutputFrameCount() is called in a given process, getOutput() will return a wrong value because gA2dpEnabled has not yet been updated by get_audio_flinger(). The fix consists in calling get_audio_flinger() in getOutput() to be sure that gA2dpEnabled is valid when getOutput() reads it. Original author: elaurent Merged from: //branches/cupcake/... Automated import of CL 144054
* Automated import from //branches/donutburger/...@142065,142065Eric Laurent2009-03-241-1/+8
|
* Automated import from //branches/donutburger/...@141711,141711Andreas Huber2009-03-241-3/+8
|
* Automated import from //branches/donutburger/...@141200,141200Jean-Michel Trivi2009-03-241-2/+7
|
* Automated import from //branches/donutburger/...@140867,140867Jean-Michel Trivi2009-03-241-1/+1
|
* Automated import from //branches/donutburger/...@140866,140866Jason Sams2009-03-241-5/+23
|
* Automated import from //branches/donutburger/...@140663,140663Jean-Michel Trivi2009-03-241-2/+13
|
* auto import from //branches/cupcake_rel/...@140373The Android Open Source Project2009-03-183-6/+15
|
* auto import from //branches/cupcake_rel/...@138607The Android Open Source Project2009-03-132-0/+35
|
* auto import from //branches/cupcake/...@137873The Android Open Source Project2009-03-112-1/+17
|
* auto import from //branches/cupcake/...@137197The Android Open Source Project2009-03-091-4/+8
|
* auto import from //depot/cupcake/@136594The Android Open Source Project2009-03-052-19/+26
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0320-0/+6910
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0320-6786/+0
|
* auto import from //depot/cupcake/@132589The Android Open Source Project2009-03-034-128/+7
|
* auto import from //depot/cupcake/@137055The Android Open Source Project2009-03-024-7/+128
|
* auto import from //branches/cupcake/...@132569The Android Open Source Project2009-02-202-8/+13
|
* auto import from //branches/cupcake/...@132276The Android Open Source Project2009-02-192-4/+9
|
* auto import from //branches/cupcake/...@131421The Android Open Source Project2009-02-1310-89/+179
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-109-34/+273
|
* auto import from //branches/cupcake/...@127101The Android Open Source Project2009-01-202-50/+78
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-096-145/+578
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-1713-505/+2374
|
* Initial ContributionThe Android Open Source Project2008-10-2115-0/+4117