summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* audio: primary desc check for sonificationHEADkitkatPavan Chikkala2014-10-061-1/+3
| | | | | | | | | | | | | | | | | - Audio glitches on alarm expiry if alarm starts on screen lock/standby mode - On alarm expiry alarm tone will start play on combo device &screen unlock tone try to play on headset which results multiple device switch, as a result audio glitches are audible - If sonfication strategy is used by primary desc , we will treat all non music streams with sonfication stragey which will avoid device switch Change-Id: Id7d8dfa75f8d881549d57f01e3bb1025135d4b2c CRs-Fixed: 514467 CRs-Fixed: 657274
* audio: update srcOutputs based on current outputsMingming Yin2014-10-061-1/+1
| | | | | | | | | | | | | | - Issue: Direct outputs are also opened to query for dynamic parameters in checkOutputsForDevice and will be closed later by setDeviceConnectionState. There is a mismatch between srcOutputs and dstOutputs in checkOutputForStrategy which results in a temp mute while moving tracks from one output to another - Fix this issue by updating srcOutputs based on mOutputs instead of mPreviousOutputs Change-Id: Ie716e33606985ae93f31abbf8aac506c935840db CRs-Fixed: 591339
* audio: Fix to update devices for all non-primary outputsAmit Shekhar2014-10-061-0/+9
| | | | | | | | | -Incorrect routing is observed, after call disconnection, due to devices not being updated for non-primary outputs. -Update devices for non-primary outputs as well. Change-Id: I424f980e3a26f57e7655b5fd10bb54e73cca3a57 CRs-Fixed: 592604
* Revert "Fix build for non-AV-ENHANCED or non-QCOM boards"Ali B2014-09-151-5/+0
| | | | | | This reverts commit 6d35f2956639f78f0171a355178b84a3fb5f5c6b. Change-Id: I1fc71b527f8eed643c92994e23f38b15d4253065
* Fix build for non-AV-ENHANCED or non-QCOM boardsLorDClockaN2014-09-141-0/+5
| | | | | | | PS6: bring it inline with https://github.com/CyanogenMod/android_frameworks_av/commit/09dd0f0228d76be5476afbf5ffe3bfe6fd2aecdf Change-Id: If0f85f5d86db60dbd6c7bf7fda704d92805b3c49
* Merge branch 'cm-11.0' of ↵LorDClockaN2014-09-134-3164/+69
|\ | | | | | | https://github.com/CyanogenMod/android_hardware_libhardware_legacy into cm
| * policy: Offload enhancementsSteve Kondik2014-09-121-20/+48
| | | | | | | | | | | | | | * Port changes from audio-caf to the generic HAL to bring support for these features to more devices. Change-Id: I74ff10dd7574498654d4771a74285e0875dd8580
| * audio_policy: Prevent dumping string NULL terminationScott Mertz2014-08-251-2/+2
| | | | | | | | Change-Id: Ia2e08de45a5e4880c9547a5cf8f93e72d4dd6baa
| * wifi: remove local nl80211 headerMichael Bestas2014-07-303-3134/+2
| | | | | | | | | | | | * Sync with omapzoom d-jb-mr2.1-release Change-Id: I89cb2c3bdf667f38ff4c94c164cdfb3d750478e2
| * audio_policy: Fix for audio routing speaker though BT is connectedZhou Song2014-07-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Speaker device is selected by getDeviceForStrategy() though BT is connected as mA2dpSuspended is still remaining as 'true' even after ending the voice call. - This flasg is not updated by checkA2dpSuspend() as force usage for communication and record is still FORCE_BT_SCO after ending voice call. - Modified condition check to set mA2dpSuspended to 'false' as soon as phone state is changed to MODE_NORMAL porting from change:Ib3a67268be33a10c6bcdf6437868990a92a06c2f Change-Id: I86ebb66cd165e8009bfa6193d2ad9ab383996283 CRs-Fixed: 671810
| * audio: Handle sonification for last stream in stopOutputChaithanya Krishna Bacharaju2014-07-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Low visibility stream is not muted during voice call when played back to back. -In startOutput, handleInCallSonification is called only for first time i.e. mRefCount is 1. While in stopOutput, it is called without any check on refCount. This causes second notification stream to be played when stopOutput of first stream unmutes the muted stream. -Handle sonification while in call only for last stream in stopOutput i.e. only if mRefCount is 1. CRs-Fixed: 663101 Change-Id: If6cbf24aa814a115c98358883794a7c92aec0c86
| * audio: New audio format for FLACApurupaPattapu2014-07-011-0/+1
| | | | | | | | | | | | | | - Add string to enum conversion for new audio format FLAC Change-Id: Ie49170947a6524aa7412855106d666b467104a93
| * Audio: Add new format and property for PCM offloadApurupaPattapu2014-06-101-0/+2
| | | | | | | | | | | | | | - Add string to enum method for PCM offload 16/24 bit formats Change-Id: I8dcc2e35e1c8635a5b8f6f8de15167a40b842767
| * audio: Increased mute wait for USB PlaybackPavan Chikkala2014-06-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Sometimes, when touch tones are played over USB Headset glitch is heard. This issue is seen when startOuput is called for touch tone after the device goes into standby - Fix is to increase the mute wait during starting of the output to give additional time for the proxy device to come up CRs-Fixed: 615405 Change-Id: I37b772582058ec6939ca13067a31360a4de9784b
| * audio: improve logging.Sidipotu Ashok2014-06-101-6/+9
| | | | | | | | | | | | | | - log msgs showing device switches - log msgs shoing open/close of input/output streams Change-Id: Ic6fbedc4b48db72bf2cf8af38ade0e3e80243640
| * Revert "audio: Handle sonification for last stream in stopOutput"Steve Kondik2014-05-071-5/+5
| | | | | | | | | | | | * Weird voodoo here. Will revisit. This reverts commit faa89e38febf7a542ff3d414fc8bc7827f43de57.
| * wlan: Fix for improper comparison of driver_status stringMahesh A Saptasagar2014-05-061-1/+1
| | | | | | | | | | | | | | | | This commit ensures driver load failure status is compared with valid string which has the failure/success information. Change-Id: I3b619ad0c005fb793d127bd2a23b376ed961d0b7 CRs-Fixed: 652539
| * Audio: Fix for audio loss on switching between speaker and USB headsetDhanalakshmi Siddani2014-05-061-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | - snd device reference count is not decremented when usb headset is unplugged, because touch tone is still active on usb headset. So when usb is plugged again device routing is not triggered as present and prev devices are same - Fix is to route audio to speaker as soon as usb headset is disconnected CRs-Fixed: 630425 Change-Id: Id07bc44a39f72f33b39fd180efd1859de63650e5
| * Audio: Fix HDMI audio device switch issueVidyakumar Athota2014-05-061-1/+6
| | | | | | | | | | | | | | | | | | | | - Device routing is not triggered in the following scenario: Start playback on HDMI, pause it, unplug and plug the HDMI cable, resume playback, music starts on speaker. - Fix by update outputDesc->mDevice even if the requested device is 0 Change-Id: I4d1c1f76094f4acb20acdb8af68302ea8a1008c5 CRs-Fixed: 606004
| * audio: Handle sonification for last stream in stopOutputChaithanya Krishna Bacharaju2014-05-061-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Low visibility stream is not muted during voice call when played back to back. -In startOutput, handleInCallSonification is called only for first time i.e. mRefCount is 1. While in stopOutput, it is called without any check on refCount. So the second notification stream gets played when stopOutput of first stream unmutes the muted stream. -Handle sonification while in call only for last stream in stopOutput i.e. mRefCount is 0. CRs-Fixed: 645543 Change-Id: I73727c3cc39e7ceecfbc961c3accb109cd013d96
* | Audio: Fix for audio loss on switching between speaker and USB headsetDhanalakshmi Siddani2014-05-201-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | - snd device reference count is not decremented when usb headset is unplugged, because touch tone is still active on usb headset. So when usb is plugged again device routing is not triggered as present and prev devices are same - Fix is to route audio to speaker as soon as usb headset is disconnected CRs-Fixed: 630425 Change-Id: Id07bc44a39f72f33b39fd180efd1859de63650e5
* | wlan: Fix for improper comparison of driver_status stringMahesh A Saptasagar2014-05-201-1/+1
| | | | | | | | | | | | | | | | This commit ensures driver load failure status is compared with valid string which has the failure/success information. Change-Id: I3b619ad0c005fb793d127bd2a23b376ed961d0b7 CRs-Fixed: 652539
* | Audio: Fix HDMI audio device switch issueVidyakumar Athota2014-05-201-1/+6
| | | | | | | | | | | | | | | | | | | | - Device routing is not triggered in the following scenario: Start playback on HDMI, pause it, unplug and plug the HDMI cable, resume playback, music starts on speaker. - Fix by update outputDesc->mDevice even if the requested device is 0 Change-Id: I4d1c1f76094f4acb20acdb8af68302ea8a1008c5 CRs-Fixed: 606004
* | wifi: check if supplicant is running before starting itJonathan DE CESCO2014-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Wrong property was used to check if wpa_supplicant was running. Fix this Change-Id: I6a5bd7a3acae84f5ba4bba317d04191e0e59b2e7 Author: Jonathan DE CESCO <jonathan.de.cesco@intel.com> Signed-off-by: Jonathan DE CESCO <jonathan.de.cesco@intel.com> Signed-off-by: Shuo Gao <shuo.gao@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Author-tracking-BZ: 66748
* | vibrator workaroundFranco Rapetti2014-03-251-2/+2
|/
* Revert "audio: Fix check for sonification on digital docks"Chris Soyars2014-03-051-3/+1
| | | | | | This reverts commit 7a133590ff567fe09b7f415371c78480d39a83e7. Change-Id: I27968a26e755e85d4d0c150278bf7988cc86f4e6
* audio: Fix check for sonification on digital docksSteve Kondik2014-02-121-1/+3
| | | | Change-Id: If077bc6336ce57256dd078d0cbe80c3b5e3a0b6e
* wifi: remove p2p interface on supplicant stopBarak Bercovitz2014-01-211-0/+7
| | | | | | | | remove p2p interface on wpa_supplicant stop so next time it is started it won't fail when trying to create p2p again Change-Id: I7a4c5e9a82a013afc75548d175d5850d67fcd927
* audio :Make isVirtualInputDevice as protected methodPavan Chikkala2014-01-091-2/+1
| | | | | | | | | | | - startInput is overridden in AudioPolicyManagerALSA and is making a call to isVirtualInputDevice which is private in AudioPolicyManagerBase. - Make isVirtualInputDevice as protected in base class so that it can be called from the derived class Change-Id: I7e499b0c06f9412bc191179d497298cd57af2c3a CRs-Fixed: 591788
* libhardware_legacy: Clean up all the audio ifdefsSteve Kondik2013-12-273-19/+15
| | | | | | * Remove duplicates and differentiate between legacy targets Change-Id: Iad22875513846b16fa1e5d602d3fd4289d5fbde2
* AudioPolicyManagerBase : MUTE_TIME_MS reduced to 500msApoorv Raghuvanshi2013-12-271-1/+1
| | | | | | | | | | | - Some streams are muted while the audio path is switched for different device switch like BT, Headset, AOS and HDMI etc. Audio drop is observed for more than 3-4 secs. So tuning this macro for better results. Change-Id: I8bb0b6f5eb5e526b755fce97f31a3f8f6dd22064 CRs-fixed: 572654
* audio: Add support for compressed VoIPNarsinga Rao Chella2013-12-272-0/+6
| | | | | | | Add changes needed to enable VoIP calls using compressed audio formats. Change-Id: I7ebdfa1c2cc9b97666c7d8392b5e6ebd9b477184
* audio: Add support for DOLBY DD+ decodingMingming Yin2013-12-272-1/+14
| | | | | | | | - Add DOLBY AC3/EAC3 format enums - Use offload profile for DOLBY decoding regardless of duration Change-Id: I2c9738fa34635304aeca8fb529dbe8c2aa5e528d
* audio: Do not allow Compress offload mode for AV streaming contentRavi Kumar Alamanda2013-12-271-0/+8
| | | | | | | | Add system property check to use compress offload mode or not for audio+video streaming content. Change-Id: I10aa22995d2d1320b41f58ff9bb2303787c9d40d CRs-fixed: 587600
* libhardware: Fix merge damage which was breaking direct outputSteve Kondik2013-12-271-2/+3
| | | | Change-Id: Ic247e590039c20ace09ed3a19f61e263b1410e96
* audio: fix for multi-channel HDMI playbackMingming Yin2013-12-271-0/+7
| | | | | | | | - Overwrite playback flag to AUDIO_OUTPUT_FLAG_DIRECT for PCM_16_BIT multi-channel clips so that HDMI profile is used for playback. Change-Id: Ibf295f506e6ec62ffbd79091361793c18213d494
* audio: fix offload enabling test parameterRicardo Cerqueira2013-12-141-1/+1
| | | | | | | | passing NULL as the default to property_get doesn't return false, it returns random memory junk that evaluates to true... Explicitly default the state of this property to "false" as a default Change-Id: Ib2808bf2540b2b4fdf754d489fb44aa5d9e061a8
* audio: Disable sonification on digital USB outputsSteve Kondik2013-12-121-1/+2
| | | | | | | * We don't want to hear touch sounds on our badass USB DACs. Just play the damn music, please :) Change-Id: I08b1c5d672d853fc7116c03cd77b8828881d3a5b
* Merge tag 'android-4.4.1_r1' into HEADRicardo Cerqueira2013-12-063-8/+79
|\ | | | | | | | | | | | | | | | | Android 4.4.1 Release 1 Conflicts: audio/AudioPolicyManagerBase.cpp Change-Id: I89ac037649e05540e85f7497e416f85032210776
| * Define and use DRC-specific volume curves when applicableJean-Michel Trivi2013-11-143-3/+41
| | | | | | | | | | | | | | | | | | | | | | | | Add support for property defining whether a DRC on the speaker path is enabled and will boost soft sounds. Define new volume curves with more attenuations than existing ones to compensate for DRC-induced boost on sonification sounds to provide a more "linear" control to the user over the applied volume. Bug 11600699 Change-Id: If23dd097a8b9b5ebb61e75dd8512ff75e63ba899
| * Merge "audio policy: fix gapless playback when effects enabled" into klp-devEric Laurent2013-10-302-5/+42
| |\
| | * audio policy: fix gapless playback when effects enabledEric Laurent2013-10-142-5/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not allow offloading if one non offloadable effect is enabled. This prevents from creating an offloaded track and tearing it down immediately after start when audioflinger detects there is an active non offloadable effect. Not doing so breaks gapless playback because AwesomePlayer will always be able to open an offloaded track which will not be compatible with the previous PCM track and Audiosink::open() will not recycle it. Bug: 11181933. Change-Id: I6d163806849d9093b9ec701ba8e8c1ccb658e3c8
| * | merge in klp-release (no-op)Ed Heyl2013-10-160-0/+0
| |\ \ | | |/ | |/|
* | | libhardware_legacy: Add ifdefs for non-QCOM hardwareSteve Kondik2013-11-114-2/+87
| | | | | | | | | | | | Change-Id: Ic39f17d4626dc9970edf5c5466b3ccd6d16cbd3e
* | | audio: fix no audio playback issue in recorder appShiv Maliyappanahalli2013-11-111-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When audio clips recorded using voice recorder app is played, openoutput() in audio policy manager is called with flags 0 and will match the incall music profile and try to open incall music direct output stream. Fix by looking for direct output profiles only when AUDIO_OUTPUT_FLAG_DIRECT is set in the flags. Change-Id: I3f6fdec1dfdc4c7642d308108199369cfc6d2409
* | | libhardware_legacy: Add property for A-V playback in offload modeKrishnankutty Kolathappilly2013-11-111-2/+9
| | | | | | | | | | | | | | | | | | | | | Add a and check for property for enabline tunnel audio video playback. Change-Id: I8ebbfe106feac4a991de05a0db79ac64493d0129
* | | audio: fix no audio when playing dtmf tonesShiv Maliyappanahalli2013-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AUDIO_OUTPUT_FLAG_DIRECT is passed for isCompatibleProfile() which would match incall music profile even for regular dtmf tones. As a result output stream for incall music case is selected. Fix by passing the input parameter flags along with AUDIO_OUTPUT_FLAG_DIRECT. CRs-fixed: 568696 Change-Id: Ie5a11f21a01c65fb07e9ae1268cf03b6744f9f6e
* | | audio: Support MR1 audio_policyThomas Wendt2013-11-111-0/+2
| | | | | | | | | | | | Change-Id: I1726d18f87fe6a6907bad61bc0de27e17c1237d1
* | | Added ifndef ICS_AUDIO_BLOB around non-existent functions (2/3)Tom Briden2013-11-111-0/+2
| | | | | | | | | | | | | | | | | | | | | For older audio blobs where is_source_active and is_stream_active_remotely doesn't exist, receiving a notification and dumpsys crashes the audio service. Change-Id: I2ec4dcece3c95c9972ce78f1f7a38fe522dd7802
* | | wifi: avoid crash when no phy's are foundVishal Mahaveer2013-11-111-1/+2
| | | | | | | | | | | | | | | | | | | | | Exit gracefully when no phy's are found. Change-Id: I8c1f57e60bb63b52d8cb086e1a25d8d5b33f03f0 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>