summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/enginedefault
Commit message (Collapse)AuthorAgeFilesLines
* audiopolicy: Set sane defaults for QC audio featuresSteve Kondik2015-12-161-1/+1
| | | | Change-Id: If91536d2be0165c90effccdfa2b92722223eb905
* audiopolicy: Remove unused variables with LEGACY_ALSA_AUDIOAdrianDC2015-11-201-1/+3
| | | | | Change-Id: If037b4eb6bbd864ccab050565899ce508ee90f9e Signed-off-by: AdrianDC <radian.dc@gmail.com>
* audio: Fixed Audio Source in Voice CallPavan Chikkala2015-11-071-0/+4
| | | | | | | | | | | | | | | setPhoneState calls getDeviceForInputSource to check if voice_tx device is available as part of Primary Audio Module. getDeviceForInputSource always returns DEVICE_IN_COMMUNICATION for SOURCE_VOICE_COMMUNICATION on A Family and this is not added to Available devices This is leading to creation of txPatch when it is not needed Fix is to use AUDIO_SOURCE_VOICE_CALL instead of AUDIO_SOURCE_VOICE_COMMUNICATION Change-Id: I9aa7dd2139b8374ec7f06676d06ef5addea4b2a9
* audiopolicy: Add DEVICE_IN_COMMUNICATION for VOIPPavan Chikkala2015-11-071-0/+4
| | | | | | | | | - On A family, Only DEVICE_IN_COMMUNICATION is supported by voip_tx profile. getDeviceForInputSource should always return DEVICE_IN_COMMUNICATION to load voip_tx profile Change-Id: I3bb2fb70a89eadc35c2ced0c7f717ec15120bfe7
* Merge tag 'android-6.0.0_r26' into cm-13.0Ricardo Cerqueira2015-11-051-4/+4
|\ | | | | | | | | | | Android 6.0.0 release 26 Change-Id: I8a57007bf6efcd8b95c3cebf5e0444345bdd4cda
| * Force fixed volume for TTS streamEric Laurent2015-09-111-4/+4
| | | | | | | | | | | | | | | | Always play Transmitted Through Speaker stream at max volume instead of tracking media stream volume. Bug: 23729461. Change-Id: I61021f59617bb851a4cd7da80924e587029e96a3
* | audiopolicy: port existing fixes to AudioPolicyManagerSatya Krishna Pindiproli2015-10-062-4/+35
|/ | | | | | | | | | | | | | | | | | This is a squashed commit of the following fixes in AudioPolicyManager. Only some parts of the fixes have been ported as the custom audio policy has the other required changes. audiopolicy: Fix MT call delay Change-Id: I790479eaad9d2d6fd4204cc4cb7698761c30f7cf audiopolicy: support extended feature in audiopolicymanager Change-Id: I1925339b591cd29f11a71c287a2e53c0627e9e62 audiopolicy: additional change for extended feature Change-Id: I9bad6a294ddd7aee72f6f6a314666b892b730c8e Change-Id: I7738d4b0ac11ee6d93bfd67e2553eae8518ff719
* audio policy: add support for device combo with speaker safeEric Laurent2015-07-071-4/+10
| | | | | | | | | | combo devices with AUDIO_DEVICE_OUT_SPEAKER_SAFE were not supported by audio policy manager causing selection of speaker+headphone when spekaer_safe+headphone would be the right selection. Bug: 21537010. Change-Id: I9865352559c9d32c6754ad3d2b84bddfe2dc8aac
* audio policy: route media to BT SCO in callEric Laurent2015-06-081-0/+4
| | | | | | | | | Allow media (and Navigation instructions) to be routed to BT SCO in call. Bug: 18986190. Change-Id: I1fa4decfbf035623fdcc8681b53cbd61e1d5f933
* Kill a new user of stlport.Dan Albert2015-05-071-2/+0
| | | | | | Bug: http://b/15193147 Change-Id: I20d21a040f0c2c6c291053fe02fdf82e33ed56a0 (cherry picked from commit 1b5a73358b72b8ff1bee05cc44d94b47b73ede44)
* audio policy: volume in dBsEric Laurent2015-04-084-18/+32
| | | | | | | | | | Volumes are now stored and exchanged in dBs to be consistent with the volume tables. They are converted if needed when applied to the target gain controller. Change-Id: I916cbb0bbe65c916444b8c65a2bdca9645c58399
* audio policy: volume control reorganizationEric Laurent2015-04-081-3/+3
| | | | | | | | | | | | | | | | | | Output volume and routing control by AudioOutputDescriptor is reorganized to prepare hardware source volume and routing control. AudioOutputDescriptor contains all volume, device and activity state common to software (audio flinger mixers) and hardware sources (tuners, A2DP, HDMI). A new class SwAudioOutputDescriptor is derived from AudioOutputDescriptor and is specific to software sources. Low level routing and volume control methods receive an AudioOutputDescriptor parameter instead of an IO handle. mPrimaryOutput is now an AudioOutputDescriptor. Change-Id: Ie90943ee3102cdb8adf89fdd2addd2c279b1e5bf
* audio policy: fix unique audio port ID.Eric Laurent2015-04-081-1/+1
| | | | | | | | | | | | Remove mId member from AudioPort as it was shadowed by mId in DeviceDescriptor. Add getters for Id, and HW module name and version to device, output and input descriptors. Fix DeviceDescriptor name initialization. Change-Id: I4a69f385e40330954d9dad5f2926c521f60b2ec1
* AudioPolicy: remove extraneous parenthesesJean-Michel Trivi2015-04-031-1/+1
| | | | Change-Id: Ibcea37b90cc0aaacb3b6194745bf569edad8992a
* Split ManagerDefault into manager and engineFrançois Gaffie2015-04-017-0/+1349
This patch defines an interface for a new component: policy engine. The APIs found under this interface are the one we may want to customize and to configure easily. This patch also split the current manager code into manager and engine to provide a default version of the policy engine. Change-Id: I97cf59760b53d248fe9efe466ae5e73bd7e5cc06 Signed-off-by: François Gaffie <francois.gaffie@intel.com>