summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* audio polciy: remove FM audio capture permission.Eric Laurent2015-04-134-12/+2
| | | | Change-Id: I2607d89b0bd87cdd2f4084dfdb55135509a824d5
* Merge "Fix AudioPolicyManager dynamic policy initialization"Jean-Michel Trivi2015-04-093-31/+31
|\
| * Fix AudioPolicyManager dynamic policy initializationJean-Michel Trivi2015-04-083-31/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | AudioPolicyManager::getInputForAttr() is initializing the AudioMix for the new AudioInputDescriptor. The audio policy manager refactoring introduced a regression where the association of an existing AudioMix (registered when the associated AudioPolicy was registered) with the input descriptor copied a value of local scope, instead of referencing the AudioMix in the list of mixes. Bug 20081375 Change-Id: Iddd57fed8525880afd1d4a5493f97130aabe4816
* | Merge "audio policy: volume in dBs"Eric Laurent2015-04-0910-40/+77
|\ \
| * | audio policy: volume in dBsEric Laurent2015-04-0810-40/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "audio policy: volume control reorganization"Eric Laurent2015-04-099-376/+571
|\ \ \ | |/ /
| * | audio policy: volume control reorganizationEric Laurent2015-04-089-376/+571
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Enable 8 bit and float pcm record formats for AudioFlinger"Andy Hung2015-04-092-14/+55
|\ \ \
| * | | Enable 8 bit and float pcm record formats for AudioFlingerAndy Hung2015-04-082-14/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Update sampling rate handling as well. Bug: 19570772 Change-Id: I872248e64c0578b2e48869a68fee0d51bd0640c3
* | | | Merge "Improve ResamplerBufferProvider"Andy Hung2015-04-084-40/+88
|\ \ \ \ | |/ / /
| * | | Improve ResamplerBufferProviderAndy Hung2015-04-084-40/+88
| | | | | | | | | | | | | | | | Change-Id: I3cc3af221ad5797ff219d75227350733afa180db
* | | | Merge "Add RecordBufferConverter for RecordThread data processing"Andy Hung2015-04-084-136/+305
|\ \ \ \ | |/ / /
| * | | Add RecordBufferConverter for RecordThread data processingAndy Hung2015-04-084-136/+305
| | | | | | | | | | | | | | | | Change-Id: Ia3aab8590cd41e8a7cba0a7345d70d2866d92045
* | | | Merge "Return number of frames output from resample method"Andy Hung2015-04-089-41/+59
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | Return number of frames output from resample methodAndy Hung2015-04-089-41/+59
| | | | | | | | | | | | Change-Id: Ic297e2ed59839f1788c83e099ef1a9e4af29591f
* | | audio flinger: improve device to device audio patchesEric Laurent2015-04-084-24/+29
| | | | | | | | | | | | | | | | | | | | | Allow creation of audio patches between input and output devices managed by the same audio HW module. Change-Id: I4b83268a4d5c41f3d5905d7581202cf5193efd32
* | | audio policy: fix unique audio port ID.Eric Laurent2015-04-0816-79/+180
|/ / | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Adding explicit routing API to AudioTrack"Paul McLean2015-04-0812-11/+185
|\ \ | |/ |/|
| * Adding explicit routing API to AudioTrackPaul McLean2015-04-0812-11/+185
| | | | | | | | Change-Id: I40c048c7644c46f4e4f7103875206c0785c4b1dc
* | Camera2Client: support HAL version 3.3Zhijun He2015-04-071-1/+2
| | | | | | | | Change-Id: Id018e3ce21b4344d09a877395eb355adba9e8fa2
* | audiopolicy: add support for parsing AUDIO_FORMAT_DTSPhil Burk2015-04-061-0/+2
|/ | | | | | Bug: 18292317 Change-Id: Ic9a15fc09ce32021d12072fb71252d207deac30a Signed-off-by: Phil Burk <philburk@google.com>
* AudioPolicy: remove extraneous parenthesesJean-Michel Trivi2015-04-031-1/+1
| | | | Change-Id: Ibcea37b90cc0aaacb3b6194745bf569edad8992a
* Merge "Updates to AudioPolicyManager refactor"Jean-Michel Trivi2015-04-015-13/+21
|\
| * Updates to AudioPolicyManager refactorJean-Michel Trivi2015-04-015-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use protected access in AudioPolicyManager class for - engine field - querying phone state - isStrategyActive Fix inclusion of AudioPolicyManagerInterface header. Use "APM_" prefix in audio policy conf parsing code to avoid naming conflicts with some HALs. DeviceDescriptor and its collection class are good friends now. Change-Id: I236d62a2b8a4b6bf68dd515932650b912577c145
* | Merge "Split ManagerDefault into manager and engine"Jean-Michel Trivi2015-04-0115-908/+1752
|\ \ | |/
| * Split ManagerDefault into manager and engineFrançois Gaffie2015-04-0115-908/+1752
| | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge "Create StreamDescriptor and associated collection within common"Jean-Michel Trivi2015-04-018-246/+473
|\ \ | |/
| * Create StreamDescriptor and associated collection within commonFrançois Gaffie2015-04-018-246/+473
| | | | | | | | | | | | | | | | | | | | | | Create StreamDescriptor and associated collection within common common policy pillar elements. It moves the code from managerdefault and creates helpers function within the collection. It also split the AudioGain in a common volume header and AudioGain class. Change-Id: I1bb80e4219506f8c9042367085db328d317cb668 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
* | Merge "Create SoundTriggerSession and associated collection within common"Jean-Michel Trivi2015-04-015-17/+86
|\ \ | |/
| * Create SoundTriggerSession and associated collection within commonFrançois Gaffie2015-04-015-17/+86
| | | | | | | | | | | | | | | | | | | | This patch creates a SoundTriggerSession and associated collection within common policy pillar elements. It moves the code from managerdefault and creates helpers function within the collection. Change-Id: I83ea230573c05e8ab99f4489c20059ed27678221 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
* | Merge "Add EffectDescriptor and associated collection to common elements"Jean-Michel Trivi2015-04-017-181/+288
|\ \ | |/
| * Add EffectDescriptor and associated collection to common elementsFrançois Gaffie2015-04-017-181/+288
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds EffectDescriptor and associated collection to common policy pillar elements. It moves the code from the policy manager and creates helpers function in the collection. It also factorize the RoutingStrategy structure within a separated header file. Change-Id: I29964ff77564fadedf3237c8754240b21ae77297 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
* | Merge "Add AudioMix and AudioMixCollection to common policy element"Jean-Michel Trivi2015-04-015-102/+307
|\ \ | |/
| * Add AudioMix and AudioMixCollection to common policy elementFrançois Gaffie2015-04-015-102/+307
| | | | | | | | | | | | | | | | | | | | This patch adds AudioMix and associated collection to the common policy pillar elements library. It removes the code from the manager and creates also helpers function associated to the mix collection. Change-Id: Ia3536fdef09da13734d2895030d736c701040237 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
* | Merge "Migrate helper functions from managerdefault to common"Jean-Michel Trivi2015-04-0120-653/+977
|\ \ | |/
| * Migrate helper functions from managerdefault to commonFrançois Gaffie2015-04-0120-653/+977
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch moves from manager to common: -parse helper functions of the policy configuration file -collection helper function on -output / input descriptors -DeviceDescriptor -AudioPatch / Audio Port -IO Profile -HwModule Change-Id: If45e53418db75af1af198f43c4ef27884499055f Signed-off-by: François Gaffie <francois.gaffie@intel.com>
* | Merge "Split ManagerDefault into Manager and ManagerDefinitions"Jean-Michel Trivi2015-04-0125-132/+233
|\ \ | |/
| * Split ManagerDefault into Manager and ManagerDefinitionsFrançois Gaffie2015-04-0125-132/+233
| | | | | | | | | | | | | | | | | | | | | | | | This patch splits the managerdefault into a manager and a manager defintion library that contains all pillar elements of a policy manager. It renames the file with the name of the main class they contains. It splits the AudioPort into AudioPort and AudioPatch. Change-Id: I992cf0b8aed895805cc003ba0980d2c9e92c985b Signed-off-by: François Gaffie <francois.gaffie@intel.com>
* | Merge "Audio Policy Refactor: reorganise headers inclusion"Jean-Michel Trivi2015-04-0120-58/+159
|\ \ | |/
| * Audio Policy Refactor: reorganise headers inclusionFrançois Gaffie2015-04-0120-58/+159
| | | | | | | | | | | | | | | | | | | | | | | | This patch reoganises the headers inclusion in order to prepare the split of managerdefault into a manager and a separated lib of pillar policy elements. It also moves back the isStrategyActive to the manager to avoid any dependancies from this pillars to the manager. Change-Id: I1a35c45d86db7a3878a40dc7d6858dfea37c5ac9 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
* | 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 "camera2: Enforce client eviction on user switch."Ruben Brunk2015-03-312-18/+134
|\
| * camera2: Enforce client eviction on user switch.Ruben Brunk2015-03-312-18/+134
| | | | | | | | | | Bug: 19186859 Change-Id: I172a2ce46c8e8a131ae7e8dd99d60c5f4f0d6668
* | Merge "Camera: iterate through all encoders for finding max video size"Yin-Chia Yeh2015-03-311-6/+20
|\ \ | |/ |/|
| * Camera: iterate through all encoders for finding max video sizeYin-Chia Yeh2015-03-311-6/+20
| | | | | | | | | | Bug: 19712132 Change-Id: I5c1fc748fcc756f6665c31951f8af8a37ff4254d
* | Merge "audio policy: fix IOProfile::isCompatibleProfile()"Eric Laurent2015-03-302-3/+11
|\ \
| * | audio policy: fix IOProfile::isCompatibleProfile()Eric Laurent2015-03-302-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle composite devices in IOProfile::isCompatibleProfile() by just checking the type in this case, not the address which is relevant only if a single device type is passed as input. Also remove warning. Bug: 19762960. Change-Id: Iaecb7fcfbf7ad39b1e33cb460922f7c069a34a00
* | | Merge "audio policy: fix DeviceVector::getDevicesFromType()"Eric Laurent2015-03-301-2/+6
|\ \ \
| * | | audio policy: fix DeviceVector::getDevicesFromType()Eric Laurent2015-03-261-2/+6
| |/ / | | | | | | | | | | | | | | | | | | | | | Fix device type comparison in DeviceVector::getDevicesFromType(): AUDIO_DEVICE_BIT_IN bit must be excluded from type comparison and used as an orthogonal match criterium. Change-Id: Ie7378723f5a3d613b1b045ccdda69650a9d655fc
* | | Merge "Camera: fix release fence logic"Yin-Chia Yeh2015-03-251-26/+9
|\ \ \