c51e05b671ecb639fae5845541fe632bbf1bd8b7 |
02-Jun-2016 |
Di Folco, Neil <neil.di.folco@intel.com> |
engine configurable: AUDIO_SOURCE_UNPROCESSED aligment with legacy This patch realigns the configurable version of the engine with the legacy one with regards the new AUDIO_SOURCE_UNPROCESSED. This is required to pass the Audio Frequency Line CTS test. Bug: 29096641 Change-Id: I88abf91807bf66671ad3da6030d6aa6487cf4c54 Signed-off-by: Di Folco, Neil <neil.di.folco@intel.com>
ngineconfigurable/parameter-framework/examples/Settings/device_for_input_source.pfw
|
b4eea9fa629f44ba17731a6152c1a083a559e851 |
27-May-2016 |
Eric Laurent <elaurent@google.com> |
Merge "engine configurable: add conf for product without devices" into nyc-dev
|
c7ce9a2ee61ecabdedc87ae8635eb80a5fbce17c |
09-May-2016 |
François Gaffie <francois.gaffie@intel.com> |
engine configurable: add conf for product without devices this patch provides an example of configuration of policy engine for platforms: -without output devices -without input devices. Change-Id: I5e8a159de085e35fb245f2efb54f609d8e89ce16 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ngineconfigurable/parameter-framework/examples/Android.mk
ngineconfigurable/parameter-framework/examples/Settings/PolicyConfigurableDomains.xml
ngineconfigurable/parameter-framework/examples/Settings/device_for_input_source.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_accessibility.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_dtmf.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_enforced_audible.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_media.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_phone.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_rerouting.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_sonification.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_sonification_respectful.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_transmitted_through_speaker.pfw
ngineconfigurable/parameter-framework/examples/SettingsNoInput/device_for_input_source.pfw
ngineconfigurable/parameter-framework/examples/SettingsNoOutput/device_for_strategies.pfw
ngineconfigurable/parameter-framework/examples/Structure/PolicySubsystem-CommonTypes.xml
ngineconfigurable/parameter-framework/examples/policy_criteria.txt
ngineconfigurable/parameter-framework/plugin/InputSource.cpp
ngineconfigurable/src/InputSource.cpp
ngineconfigurable/src/Strategy.cpp
|
5d364cac2911bf7d479af0d508576d4078d04961 |
26-May-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "Audio policy: volume computation improvement on A2DP for notifications" into nyc-dev
|
00a2096f3bd6f938216b3691c0b581d64df52999 |
26-May-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Audio policy: volume computation improvement on A2DP for notifications When playing STRATEGY_SONIFICATION* streams, or system sounds or enforced sounds on A2DP during media playback, ensure the difference between the media volume and the notification is no more than 12dB Bug 28288132 Change-Id: If5cb7979dd76a0d624e8aeff9126ff56bfd7366b
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
f489ff899861a385c36b548bd51d0c6e17f8e67f |
09-May-2016 |
François Gaffie <francois.gaffie@intel.com> |
Audio Policy: engine configurable: remove sign bit from conf files In order to avoid mistake or extra configuration, this patch removes from xml/pfw configuration files the sign bit for input device and adds it programmaticaly within the Parameter Framework policy plugin Bug: 25075342 Change-Id: I571e8ae882cb338330d6a10da309b1249ce0417e Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ngineconfigurable/parameter-framework/examples/Settings/PolicyConfigurableDomains.xml
ngineconfigurable/parameter-framework/examples/Settings/device_for_input_source.pfw
ngineconfigurable/parameter-framework/examples/Structure/PolicySubsystem-CommonTypes.xml
ngineconfigurable/parameter-framework/plugin/InputSource.cpp
|
d86071d55540c3a5c40afe2122bff6a5c4296bf1 |
09-May-2016 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: engine configurable: aligment with legacy This patch realigns the configurable version of the engine with the legacy one. Bug: 25075342 Change-Id: Ic73cee9176d6593e8fbf6d92e571d76cdba42c6b Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ngineconfigurable/parameter-framework/example/Android.mk
ngineconfigurable/parameter-framework/example/ParameterFrameworkConfigurationPolicy.xml.in
ngineconfigurable/parameter-framework/example/README.md
ngineconfigurable/parameter-framework/example/Settings/PolicyConfigurableDomains.xml
ngineconfigurable/parameter-framework/example/Settings/device_for_input_source.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_accessibility.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_dtmf.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_enforced_audible.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_media.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_phone.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_rerouting.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_sonification.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_sonification_respectful.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_transmitted_through_speaker.pfw
ngineconfigurable/parameter-framework/example/Settings/strategy_for_stream.pfw
ngineconfigurable/parameter-framework/example/Settings/strategy_for_usage.pfw
ngineconfigurable/parameter-framework/example/Settings/volumes.pfw
ngineconfigurable/parameter-framework/example/Structure/PolicyClass.xml
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem-CommonTypes.xml
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem.xml
ngineconfigurable/parameter-framework/example/policy_criteria.txt
ngineconfigurable/parameter-framework/examples/Android.mk
ngineconfigurable/parameter-framework/examples/ParameterFrameworkConfigurationPolicy.xml.in
ngineconfigurable/parameter-framework/examples/README.md
ngineconfigurable/parameter-framework/examples/Settings/PolicyConfigurableDomains.xml
ngineconfigurable/parameter-framework/examples/Settings/device_for_input_source.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_accessibility.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_dtmf.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_enforced_audible.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_media.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_phone.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_rerouting.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_sonification.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_sonification_respectful.pfw
ngineconfigurable/parameter-framework/examples/Settings/device_for_strategy_transmitted_through_speaker.pfw
ngineconfigurable/parameter-framework/examples/Settings/strategy_for_stream.pfw
ngineconfigurable/parameter-framework/examples/Settings/strategy_for_usage.pfw
ngineconfigurable/parameter-framework/examples/Settings/volumes.pfw
ngineconfigurable/parameter-framework/examples/Structure/PolicyClass.xml
ngineconfigurable/parameter-framework/examples/Structure/PolicySubsystem-CommonTypes.xml
ngineconfigurable/parameter-framework/examples/Structure/PolicySubsystem.xml
ngineconfigurable/parameter-framework/examples/policy_criteria.txt
|
9f39f8d6cc1445c338d8cb635fdbc167c4200971 |
25-May-2016 |
Eric Laurent <elaurent@google.com> |
Fix warning in audio policy service Change-Id: I33b20b7007e19e8b2514ffdf2232e9c1d7314d9f
ervice/AudioPolicyInterfaceImpl.cpp
|
b2379ba0a32638bae2ea0460644f68cf5a0967ce |
24-May-2016 |
Eric Laurent <elaurent@google.com> |
Fix android.permission.CAPTURE_AUDIO_OUTPUT permission check Make sure we use the correct PID and UID when checking android.permission.CAPTURE_AUDIO_OUTPUT permission from audio policy service. Bug: 28772898 Change-Id: I8f0c45bf7a5728b4364a451eefb6c025892ae9a5
ervice/AudioPolicyClientImplLegacy.cpp
ervice/AudioPolicyInterfaceImpl.cpp
ervice/AudioPolicyInterfaceImplLegacy.cpp
ervice/AudioPolicyService.h
|
634b71478742310960f3fdb4241e70a0735712c4 |
20-Apr-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix regression in getDeviceConnectionState(). Fix problem in DeviceVector() device search logic causing failure to report connection of devices when no address is provided (e.g when called from AudioManager.isBluetoothA2dpOn()). Bug: 28286051 Change-Id: I7ca732e195d2ddcdc1a93b78aed21523b3461aa9
ommon/managerdefinitions/include/DeviceDescriptor.h
ommon/managerdefinitions/include/HwModule.h
ommon/managerdefinitions/src/DeviceDescriptor.cpp
ommon/managerdefinitions/src/HwModule.cpp
anagerdefault/AudioPolicyManager.cpp
|
0631aee95c5a98fb2dc0a45f093f9bd0cfbe463f |
19-Apr-2016 |
Eric Laurent <elaurent@google.com> |
fix the build Fix the build for platforms using legacy audio_policy.conf file broken by commit 5a2b6298. Change-Id: Icb9c8027b1a8163d19162f311ec1364da7383a2c
ommon/managerdefinitions/src/StreamDescriptor.cpp
|
8111860ba116d84034b2aa21445feec71c65a9d4 |
19-Apr-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: support platforms with no audio devices" into nyc-dev
|
5a2b62984c7cecd1761fe272c078dd814c167942 |
15-Apr-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: support platforms with no audio devices Remove requirement to declare an AUDIO_DEVICE_OUT_SPEAKER device for platforms without audio output. By convention: - platforms without audio output should declare a single output device of type AUDIO_DEVICE_OUT_STUB also declared as default output device - platforms without audio input should declare a single input device of type AUDIO_DEVICE_IN_STUB Platforms with no audio at all can use stub audio policy configuration file and audio HAL with the following instructions in device.mk file: USE_XML_AUDIO_POLICY_CONF := 1 PRODUCT_PACKAGES += \ audio.stub.default PRODUCT_COPY_FILES += \ frameworks/av/services/audiopolicy/config/audio_policy_configuration_stub.xml:system/etc/audio_policy_configuration.xml Bug: 25075342 Change-Id: Id700978559427edd3c7cc38d98f2fd52928367ed
udioPolicyInterface.h
ommon/include/policy.h
ommon/managerdefinitions/include/VolumeCurve.h
ommon/managerdefinitions/src/AudioPatch.cpp
ommon/managerdefinitions/src/StreamDescriptor.cpp
ommon/managerdefinitions/src/TypeConverter.cpp
onfig/audio_policy_configuration_stub.xml
nginedefault/src/Engine.cpp
anagerdefault/AudioPolicyManager.cpp
|
3f5eba440fa87637211f1d3b3f0061fc37065636 |
19-Apr-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: modify ringone volume attenuation over headset." into nyc-dev
|
d3926fe68ffd8d156e7c019277bbeb32ca786d8e |
16-Apr-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix call volume regression Commit 1fd372e4 caused a regression preventing to change in call volume. Bug: 28223472 Change-Id: I31bd220ebdde1175c2f0a5ef1e874e86c6615ff8
anagerdefault/AudioPolicyManager.cpp
|
6af1c1dc8954a555c6c6ef07d4f93e243d7f08cf |
14-Apr-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: modify ringone volume attenuation over headset. Do not limit ringtone volume over headseet when combined with speaker and no music is playing. bug: 26769982 Change-Id: I5309bf0d672cca67c69a15b73ee2ef34a220d42a
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
8c808a220fc155cc7bbe94e43125f2a25a4441a5 |
14-Apr-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix dynamic audio policy device address forwarding" into nyc-dev
|
c40d96943ddebd31578f30517457f88e6e894eb1 |
14-Apr-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix dynamic audio policy device address forwarding Make sure the device address is passed to audio HAL when opening the output stream or changing device selection. This is needed for dynamic audio policies with MIX_ROUTE_FLAG_RENDER. Bug: 25448664 Change-Id: Iff7f733f6cad54753b0b5b0166303e97ea24e284
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
8ae73129e7e79d826b293238c2f037f723d0e6e8 |
12-Apr-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix call audio over 24 bit USB device Take into account voice RX source device properties when configuring the audio patch bridging the voice RX device to the USB output device. Bug: 25643110 Change-Id: I06f282d3cc12493f21500bf9ab35a3ceb93f14af
ommon/managerdefinitions/src/DeviceDescriptor.cpp
anagerdefault/AudioPolicyManager.cpp
|
4ac9d8441da55d95a60e92725576e38d7cc6cb34 |
12-Apr-2016 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: engine configurable: improve accessibility volume This is the counter part patch of 28d09f06422841b4274d7fed6ad3441dc97382b2 for configurable engine verion based on the parameter framework. It solves: regressions caused by the introduction of accessibility stream type and strategy in M. - change the way ACCESSIBILITY usage maps to a given strategy: always map to strategy ACCESSIBILITY but implement a specific device selection for strategy ACCESSIBILITY in getDeviceForStrategy(). This makes sure that accessibility prompts always use ACCESSIBILITY stream type. - optimize getDeviceForStrategy() to avoid reloading the list of outputs and devices from the observer when called recursively. - make sure that all volume APIs also take into account ACCESSIBILITY stream when called for MUSIC stream. Generalize the concept of matching strategies for straqegies that should be considered equivalent for volume control. Bug: 25067903 Bug: 25616373 Change-Id: Ie674e6bfb5d1b25f71a9fd31cd2405c263b1732b Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ngineconfigurable/parameter-framework/example/Settings/PolicyConfigurableDomains.xml
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_accessibility.pfw
ngineconfigurable/src/Engine.cpp
|
e358ea3f7c1e9fbe2fca10e3b32f2e824ba4004b |
12-Apr-2016 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: engine configurable: change default in call routing for line out device This patch is the counter part of a0b18ce8f737c0d6ccd728e17c3f355a250ae1dc. It updates engine configurable conf file accordingly: It solves: Current strategy is to use LINE OUT for calls only when speaker phone mode is enabled. This creates confusion because most users don't understand why the behavior differs between a headset and a line out. Also the main use of a line out device for calls is when connected to a car kit via an aux cable. In this case, you want to use the car kit by default without having to touch your phone and select speaker phone. Bug: Bug: 27548502 Change-Id: I07440fc882573a1ef797f35c86a2ce4ddf1389b1 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ngineconfigurable/parameter-framework/example/Settings/PolicyConfigurableDomains.xml
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_dtmf.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_phone.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_sonification.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_sonification_respectful.pfw
|
f4541b1d2342e08ee429b71627f1161812fc8d13 |
12-Apr-2016 |
François Gaffie <francois.gaffie@intel.com> |
Audio Policy: Engine Configurable: Force Encoded surround setting This patch is the counter part of 09bc4612bdd5874d744c5da1183d96fbd2ad0235. It solves Bug: 26373761 for configurable policy engine, i.e. Parameter-framework based policy. Bug: 26373761 Change-Id: I5f01732238375c1fa08a8f2116698d4362840ba6 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ngineconfigurable/parameter-framework/example/policy_criteria.txt
ngineconfigurable/wrapper/audio_policy_criteria_conf.h
ngineconfigurable/wrapper/config/audio_policy_criteria.conf
|
da65b5a3502ae06a65f09d9983c89b7fd9369316 |
09-Apr-2016 |
Andy Hung <hunga@google.com> |
Merge "AudioPolicyManager: Tally max effects memory usage" into nyc-dev
|
0fd0d0c1e33303d2a2cbce23dabc13f7036d108e |
08-Apr-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix volume burst on user switch." into nyc-dev
|
5f1fa3053c87dd8e9dc528fb8c101907ff747746 |
06-Apr-2016 |
Andy Hung <hunga@google.com> |
AudioPolicyManager: Tally max effects memory usage Bug: 27925014 Change-Id: I6d2596ed1b10ff193babeba7e6cbec36ee4fe074
ommon/managerdefinitions/include/EffectDescriptor.h
ommon/managerdefinitions/src/EffectDescriptor.cpp
|
1fd372e40ef40643fa9d036a0c9db043475b1b02 |
06-Apr-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix volume burst on user switch. Fix two main problems in setStreamVolumeIndex(): 1) the conventional initialization or user switch behavior consisting in first applying volume for AUDIO_DEVICE_OUT_DEFAULT device which resets all volumes and then apply device specific volumes is problematic: if this is done while a stream is active, it will temporarily reset the volume to its default (usually loud) and then back causing an audible glitch. 2) The logic consisting in applying the requested volume to all outputs with a device selected by the routing strategy corresponding to the requested stream is problematic: it will cause device specific volumes for other devices than current one to be applied to active streams. Restrict the logic to cases of multiple device selections including the requested device. Bug: 27557733 Change-Id: Ia14cd51766a7516c42221abff76843d47699105f
ommon/managerdefinitions/include/IVolumeCurvesCollection.h
ommon/managerdefinitions/include/StreamDescriptor.h
ommon/managerdefinitions/include/VolumeCurve.h
anagerdefault/AudioPolicyManager.cpp
|
2cc2a03319144bcebac5a9693319776afc471307 |
07-Apr-2016 |
Phil Burk <philburk@google.com> |
AudioProfile: reject profile if not exact match In AudioProfile.cpp, the checkExact() function was treating dynamic_channels as a wildcard. So 5.1 would match even if there were no channel masks listed as supported. Bug: 25144047 Change-Id: I3036dca7e0ed92579b1ac7a3cf8504b0e47b7ed5 Signed-off-by: Phil Burk <philburk@google.com>
ommon/managerdefinitions/src/AudioProfile.cpp
|
7c6a1621ef253989ab44cf68904531b35ae8b0b1 |
01-Apr-2016 |
Phil Burk <philburk@google.com> |
Merge "AudioPolicyManager: remove 5.1 channels for Surround Settings NEVER" into nyc-dev
|
0709b0aba2adb719d347341ff58441347a1c1582 |
31-Mar-2016 |
Phil Burk <philburk@google.com> |
AudioPolicyManager: remove 5.1 channels for Surround Settings NEVER This allows people with TOSLINK to hear the correct stereo PCM when listening to movies. Bug: 25144047 Change-Id: I88401c016dd5a3a469becb019540c04befe78bba Signed-off-by: Phil Burk <philburk@google.com>
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
e85b9da2b3b8461724067cb927d20666ab09e3fd |
01-Apr-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix in call volume over USB" into nyc-dev
|
18fba84019d778b3c20875d93f9f36c2410ecf33 |
31-Mar-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix in call volume over USB Do not consider only primary output for voice volume control as sometimes the output device selected for a call can be connected to another output stream (e.g USB) Bug: 27108587 Change-Id: I8ec3db272f87d49f57044a771019672050f63d32
anagerdefault/AudioPolicyManager.cpp
|
00eeb32846df81288f12fe4c83e61d7db2842226 |
31-Mar-2016 |
Phil Burk <philburk@google.com> |
AudioPolicyManager: only modify surround formats for HDMI devices USB devices were getting modified by mistake. Bug: 27938796 Change-Id: Ib62f6df804f8e578a702aba93439ff7cbfe3347a Signed-off-by: Phil Burk <philburk@google.com>
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
a13cde98a880341f0a56d91da6364b093fb5d24e |
29-Mar-2016 |
Glenn Kasten <gkasten@google.com> |
Use audio_module_handle_t and audio_patch_handle_t consistently Bug: 27814144 Change-Id: I54b7a73ec318779fd3addb060998f4d94141152d
ommon/managerdefinitions/include/AudioSourceDescriptor.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ommon/managerdefinitions/src/AudioPatch.cpp
ommon/managerdefinitions/src/AudioPort.cpp
ommon/managerdefinitions/src/DeviceDescriptor.cpp
ommon/managerdefinitions/src/HwModule.cpp
anagerdefault/AudioPolicyManager.cpp
ervice/AudioPolicyClientImpl.cpp
ervice/AudioPolicyClientImplLegacy.cpp
|
fd7dc4c764e6ec1136439188f75839094ff01917 |
28-Mar-2016 |
Phil Burk <philburk@google.com> |
Merge "AudioPolicyManager: always force AC3 on for TVs" into nyc-dev
|
07ac114c3965e16fe523f88c913e701602604589 |
25-Mar-2016 |
Phil Burk <philburk@google.com> |
AudioPolicyManager: always force AC3 on for TVs Most TVs support AC3 but they do not report it in their EDID. This changes forces support for AC3 unless turned off by Settings. This change allows broadcast TV to work by default. Bug: 24541671 Change-Id: I9e8cf194198db3811f91149014ef29e46972ad2c Signed-off-by: Phil Burk <philburk@google.com>
anagerdefault/AudioPolicyManager.cpp
|
fdb90f355b269737fe48a2da0593b37d5c2b83c1 |
25-Mar-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "RENDER dynamic policies: fix address check" into nyc-dev
|
5ac8cd425e1a0c4287c0bb84f922fef4fa106411 |
25-Mar-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
RENDER dynamic policies: fix address check Fix mix / output address comparison when registering dynamic policy mixes with a MIX_ROUTE_FLAG_RENDER flag. Fix mix registration code path where the matching output is not found, but no error is reported. Improve logs. Bug 25448664 Change-Id: I3679aead00304b38f7cc42dd9083644450771a15
ommon/managerdefinitions/src/AudioPolicyMix.cpp
anagerdefault/AudioPolicyManager.cpp
|
0f928fab9963f15c524f4416b3d52d2df4a93eec |
21-Mar-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix getDeviceForStrategy() Modification of getDEviceForStrategy by commit 28d09f064 made wrong use of available output devices vector passed by reference and caused an update of the actual list of connected devices instead of the local list. Bug: 27586202 Change-Id: I805b9cf27e1fb28494e6e23b2b874e0e5c3487e6
nginedefault/src/Engine.cpp
nginedefault/src/Engine.h
|
6b1255bdd3d8d941f4952a98eadf3b454f36a2a9 |
11-Mar-2016 |
Glenn Kasten <gkasten@google.com> |
Fix typos in use of %# Change-Id: I5e49f89dc0e49bc3f5f2d3922d390982a3773384
anagerdefault/AudioPolicyManager.cpp
|
560a198f1f95a085e24944b20df536e75e21cedb |
18-Mar-2016 |
Andy Hung <hunga@google.com> |
Merge "Update audio services for 64 bit compilation" into nyc-dev
|
8fa2697e21c61998f78c346251d2c08f77d720ea |
03-Mar-2016 |
Andy Hung <hunga@google.com> |
Update audio services for 64 bit compilation audioserver still runs in 32 bits Bug: 27479136 Change-Id: I99ac607e4ce006a87abc2a3f838023e00ef78647
ndroid.mk
ommon/managerdefinitions/Android.mk
ngineconfigurable/Android.mk
ngineconfigurable/parameter-framework/plugin/Android.mk
ngineconfigurable/wrapper/Android.mk
nginedefault/Android.mk
|
a8d309df2f603767c0f0ad9248aef47a5b6ed5b8 |
17-Mar-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix HW A/V sync rerouting" into nyc-dev
|
14cbfcae68582eca97f1a8168c584254515879ee |
17-Mar-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix HW A/V sync rerouting Do not allow HW A/V sync tracks to be attached to a PCM mixer as those tracks carry time stamps in band. Cherry pick of c576f6a0 from lmp-mr1-tv-dev. Bug: 25293500. Change-Id: I1f080232e439a410ded25ca8e461113a96687a3b
anagerdefault/AudioPolicyManager.cpp
|
9a57e34f476d5d2400e6e8ffac303c6190e641f0 |
17-Mar-2016 |
Glenn Kasten <gkasten@google.com> |
Merge "Use audio_session_t consistently" into nyc-dev
|
7638ca29e8400a19524adb982e9d22c02786de82 |
05-Mar-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Dynamic policies: support for device selection Dynamic policy mix: rename "registration" field to device address as this reflects the true use of the field. AudioPolicyManager: dynamic policy registration differs depending on policy routing flags. When register a mix with the RENDER flag, iterate over all outputs' patches to find a matching device and address. Bug 25448664 Change-Id: I71584081e7f1b2b5252fb6c4659fdeb464f7d282
ommon/include/policy.h
ommon/managerdefinitions/include/AudioPolicyMix.h
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ommon/managerdefinitions/src/AudioPolicyMix.cpp
ommon/managerdefinitions/src/AudioSession.cpp
anagerdefault/AudioPolicyManager.cpp
|
d848eb48c121c119e8ba7583efc75415fe102570 |
08-Mar-2016 |
Glenn Kasten <gkasten@google.com> |
Use audio_session_t consistently Bug: 27562099 Change-Id: I328d8226191386b163f2ace41233607294c50dcd
udioPolicyInterface.h
ervice/AudioPolicyClientImpl.cpp
ervice/AudioPolicyClientImplLegacy.cpp
ervice/AudioPolicyEffects.cpp
ervice/AudioPolicyEffects.h
ervice/AudioPolicyInterfaceImpl.cpp
ervice/AudioPolicyInterfaceImplLegacy.cpp
ervice/AudioPolicyService.cpp
ervice/AudioPolicyService.h
|
794fde269478b50be873d9d93574b8aa2b6afc42 |
11-Mar-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix volume control regression commit 28d09f064 introduced regressions in volume control resulting in changing some device/stream volumes unexpectedly. The problem was in the logic consisting in considering streams equivalent for volume control based on their associated strategy: The rule is wrong because it causes a volume change on a given stream to cause the same change on all streams sharing the same strategy. For instance stream SYSTEM and MUSIC share the same strategy and changing SYSTEM stream volume would change MUSIC volume. The new rule just considers the stream type when deciding if two stream share the same volume control. Also fixed possible calls to getStrategy() with stream PATCH causing asserts. Bug: 27586382 Author: Eric Laurent <elaurent@google.com> Date: Tue Mar 8 10:43:05 2016 -0800 audio policy: improve accessibility volume Change-Id: I3fe2a25767319800b0db5fd1ed7c1bd751b04732
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
905d50834def592740d666b4c49549137bdf5899 |
10-Mar-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "AudioPolicy: tighter match for device descriptor query" into nyc-dev
|
f7f85438503e6964aba3ddabd6228e7fefb36735 |
10-Mar-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioPolicy: tighter match for device descriptor query When querying a module for a device descriptor, the matching was too "loose": if a device type and address was not found, a match was returned for just the device. While this works for device types where only one is connected to the system (e.g. wired headphones), this is an improper behavior for devices such as REMOTE_SUBMIX where multiple are "connected" to the DUT, but with different addresses. Bug 27337358 Bug 27336527 Change-Id: I9b6464485da2bedde2d14b624133e02b5a3fa357
ommon/managerdefinitions/src/DeviceDescriptor.cpp
ommon/managerdefinitions/src/HwModule.cpp
|
a8b282504d103f1156e7d4e14104e5e91317e374 |
08-Mar-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: improve accessibility volume" into nyc-dev
|
28d09f06422841b4274d7fed6ad3441dc97382b2 |
08-Mar-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: improve accessibility volume Fix some regressions caused by the introduction of accessibility stream type and strategy in M. - change the way ACCESSIBILITY usage maps to a given strategy: always map to strategy ACCESSIBILITY but implement a specific device selection for strategy ACCESSIBILITY in getDeviceForStrategy(). This makes sure that accessibility prompts always use ACCESSIBILITY stream type. - optimize getDeviceForStrategy() to avoid reloading the list of outputs and devices from the observer when called recursively. - make sure that all volume APIs also take into account ACCESSIBILITY stream when called for MUSIC stream. Generalize the concept of matching strategies for straqegies that should be considered equivalent for volume control. Modifications in: - initStreamVolume() - setStreamVolumeIndex() - isStreamActive() - getDevicesForStream() Bug: 25067903 Bug: 25616373 Change-Id: Id8c7dd3231f79572b278407bc73186fc42dcc028
ngineconfigurable/src/Engine.cpp
nginedefault/src/Engine.cpp
nginedefault/src/Engine.h
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
a0b18ce8f737c0d6ccd728e17c3f355a250ae1dc |
08-Mar-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: change default in call routing for line out device Current strategy is to use LINE OUT for calls only when speaker phone mode is enabled. This creates confusion because most users don't understand why the behavior differs between a headset and a line out. Also the main use of a line out device for calls is when connected to a car kit via an aux cable. In this case, you want to use the car kit by default without having to touch your phone and select speaker phone. Bug: 27548502 Change-Id: I3e8a540b91dc80516439a97dabc9641b95ce23a7
nginedefault/src/Engine.cpp
|
c1391f91c4f85f5f2f08b072486455b990817710 |
10-Dec-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: engine configurable: upgrade to PFW 3.2.4 This patch updates the policy plugin to PFW 3.2.4. Bug: 22887211 Change-Id: Ic9f54c3108adeaec7031a1fd4f8e3b7cfb1c5abf Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ngineconfigurable/parameter-framework/example/Android.mk
ngineconfigurable/parameter-framework/example/ParameterFrameworkConfigurationPolicy.xml
ngineconfigurable/parameter-framework/example/ParameterFrameworkConfigurationPolicy.xml.in
ngineconfigurable/parameter-framework/example/Settings/PolicyConfigurableDomains.xml
ngineconfigurable/parameter-framework/example/Settings/device_for_input_source.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_dtmf.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_enforced_audible.pfw
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem.xml
ngineconfigurable/parameter-framework/plugin/Android.mk
ngineconfigurable/parameter-framework/plugin/InputSource.cpp
ngineconfigurable/parameter-framework/plugin/InputSource.h
ngineconfigurable/parameter-framework/plugin/PolicySubsystem.cpp
ngineconfigurable/parameter-framework/plugin/PolicySubsystem.h
ngineconfigurable/parameter-framework/plugin/PolicySubsystemBuilder.cpp
ngineconfigurable/parameter-framework/plugin/Strategy.cpp
ngineconfigurable/parameter-framework/plugin/Strategy.h
ngineconfigurable/parameter-framework/plugin/Stream.cpp
ngineconfigurable/parameter-framework/plugin/Stream.h
ngineconfigurable/parameter-framework/plugin/Usage.cpp
ngineconfigurable/parameter-framework/plugin/Usage.h
ngineconfigurable/wrapper/ParameterManagerWrapper.cpp
|
0494ebbeda158681dbe0c7cf68abfd475a19d139 |
03-Mar-2016 |
Phil Burk <philburk@google.com> |
Merge "AudioPolicyManager: remove unnecessary device reconnection" into nyc-dev
|
62b5c0c28becab95727739889ee762f727c2a462 |
03-Mar-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio flinger: fix offload track underrun" into nyc-dev
|
1e3acb84fcab8f00dba0a78ad4badaef4ba3869e |
03-Mar-2016 |
Eric Laurent <elaurent@google.com> |
Merge "AudioPolicy: capture sample rate 0 is route-specific default" into nyc-dev
|
517161856d74f5fe39cce131f29b977bc1745991 |
01-Mar-2016 |
Eric Laurent <elaurent@google.com> |
audio flinger: fix offload track underrun Fix offload track underrun detection causing early disabling of offloaded audio tracks. Optimize sleep time in case of underrun to avoid spinning while waiting for new data. Re-enable offload when streaming Bug: 26668110 Change-Id: I874728c69647ac05e1effb84c48700a6d0ac7435
anagerdefault/AudioPolicyManager.cpp
|
878e32d7cefc19d86cd0602eda6101961edad6fa |
03-Mar-2016 |
Phil Burk <philburk@google.com> |
AudioPolicyManager: remove unnecessary device reconnection This is now handled by a device reconnection in the AudioService. Bug: 27434478 Change-Id: I2182b205c2b72cebff657a7bbee95df97f97eb55 Signed-off-by: Phil Burk <philburk@google.com>
anagerdefault/AudioPolicyManager.cpp
|
702b105b290d9a3c8b23f3c809a79086d784c9be |
03-Mar-2016 |
Phil Burk <philburk@google.com> |
AudioPolicyManager: fix device enumeration The AudioDeviceInfo only had PCM_FLOAT because the device enumeration was stopping because of an error. The error was detected by new code in the AudioFlinger. The root error was not clearing a variable after a close. Bug: 27457547 Change-Id: I529a26c8c0a688863bcf316ad365feddc303fe43 Signed-off-by: Phil Burk <philburk@google.com>
anagerdefault/AudioPolicyManager.cpp
|
05ddca504ce8e0e61b41e5c1aebea72086eea57b |
11-Feb-2016 |
Glenn Kasten <gkasten@google.com> |
AudioPolicy: capture sample rate 0 is route-specific default Bug: 25641253 Bug: 21019153 Change-Id: I7d193640572c08ab5e5f1ecfc8ad6d31635967dd
ommon/include/policy.h
ommon/managerdefinitions/include/IOProfile.h
ommon/managerdefinitions/src/AudioPort.cpp
ommon/managerdefinitions/src/AudioProfile.cpp
ommon/managerdefinitions/src/IOProfile.cpp
anagerdefault/AudioPolicyManager.cpp
|
e8158ffea27c9526547a7340dc5a085b8582033e |
01-Mar-2016 |
Glenn Kasten <gkasten@google.com> |
Merge "Add use for audio_unique_id_t" into nyc-dev
|
eeecb980ff4c202d0a3c4b0bfe040dce2f73336d |
26-Feb-2016 |
Glenn Kasten <gkasten@google.com> |
Add use for audio_unique_id_t Bug: 25641253 Bug: 21019153 Change-Id: I65dc128e760c245f3d90559635a8981b186c87d7
udioPolicyInterface.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/src/AudioPort.cpp
anagerdefault/AudioPolicyManager.cpp
ervice/AudioPolicyClientImpl.cpp
ervice/AudioPolicyService.h
|
09bc4612bdd5874d744c5da1183d96fbd2ad0235 |
25-Feb-2016 |
Phil Burk <philburk@google.com> |
AudioPolicyManager: force encoded surround setting Bug: 26373761 Change-Id: I0f7a486bf1aa7a27f15cf220e2c75ef23f8f8536 Signed-off-by: Phil Burk <philburk@google.com>
nginedefault/src/Engine.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
b3e06a7592fc189315a90a88cbea66e31c2e6b41 |
26-Feb-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "AudioPolicy: AudioOutputDescriptor set/get for patch handle" into nyc-dev
|
0d035b6057cef680a3755c6a8fc914c483648903 |
26-Feb-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "Send audio patch in recording callback" into nyc-dev
|
ff155c642fe7d342a3110444c6103f788230af53 |
26-Feb-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioPolicy: AudioOutputDescriptor set/get for patch handle For symmetry with AudioInputDescriptor: no direct access to the field for the patch handle. Change-Id: I5bffecf7a157ec042d749064208bc6c279008542
ommon/managerdefinitions/include/AudioOutputDescriptor.h
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
anagerdefault/AudioPolicyManager.cpp
|
8c7cf3b7d0d7bccb9affbc34ae2ab2d6b332f972 |
26-Feb-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Send audio patch in recording callback Remove direct access to patch handle in AudioInputDescriptor, replace with set / get functions. Add interface for AudioSession to query configuration from enclosing input descriptor. When input descriptor's patch handle changes during a recording, propagate the change through the recording notification callback. Bug 26798796 Change-Id: Ia1395d44da7ccfe69ca46877638d1eb49b3935ad
udioPolicyInterface.h
ommon/managerdefinitions/include/AudioInputDescriptor.h
ommon/managerdefinitions/include/AudioSession.h
ommon/managerdefinitions/include/AudioSessionInfoProvider.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
ommon/managerdefinitions/src/AudioSession.cpp
anagerdefault/AudioPolicyManager.cpp
ervice/AudioPolicyClientImpl.cpp
ervice/AudioPolicyService.cpp
ervice/AudioPolicyService.h
|
78229d88678932244f7cbb6e52ad43c0d986a780 |
26-Feb-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: engine configurable: allow to use custom PFW and plugins" into nyc-dev
|
a2b6c4b54cd3ae3db7f2a7f1df6d6f889af1e743 |
25-Feb-2016 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: engine configurable: allow to use custom PFW and plugins Android build system prevents from having the same module target refered in more than one makefile. Some platform may need to use a custom parameter manager version than the aosp version of the PFW. It also concerns with associated plugins. This patch inhibits the AOSP Policy PFW plugin if USE_CUSTOM_PARAMETER_MANAGER is set to true. Bug; 22887211 Change-Id: I71147b3e7c8a9296af3182f8a1401bc37191a276 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ngineconfigurable/parameter-framework/plugin/Android.mk
|
e736431c69e2a00468d140d2af97b63e0e5aa83a |
25-Feb-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: add device for audio bus" into nyc-dev
|
7281aa9810b33eff47b00104db26c97c77931611 |
18-Feb-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Send client / device format in recording callback Bug 26798796 Change-Id: Ib4f64159c8371d87da49a8f0cad9317a87d843c4
udioPolicyInterface.h
ommon/managerdefinitions/include/AudioSession.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
ommon/managerdefinitions/src/AudioSession.cpp
ervice/AudioPolicyClientImpl.cpp
ervice/AudioPolicyService.cpp
ervice/AudioPolicyService.h
|
58545be2ce4e701c8c37401edcc126a8b683890d |
23-Feb-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: add device for audio bus Add audio device category representing a bus in the audio subsystem. E.g a set of channels in MOST automotive bus. Bug: 25448664 Change-Id: Id00da57dc45037d4d8062e9a747c423940611539
ommon/managerdefinitions/src/TypeConverter.cpp
|
c8fc4803705da79aaaeff909538a976bf0e45852 |
22-Feb-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audiopolicy: Synchronize calls to Effects state" into nyc-dev
|
bab7bf46e15f7e2e304081c5cc56f8d58f5f09f3 |
31-Oct-2015 |
Haynes Mathew George <hgeorge@codeaurora.org> |
audiopolicy: Synchronize calls to Effects state Synchronize calls that might access Effects state (alternate approach) Bug: 26516500 Change-Id: Ie03de9c67232e0ac7f5db5cbfe87ec058acbfc8e
ervice/AudioPolicyInterfaceImpl.cpp
ervice/AudioPolicyService.h
|
232f26f8b673973ffa463f80b08b731ffacc8785 |
18-Feb-2016 |
Eric Laurent <elaurent@google.com> |
DO NOT MERGE - audio policy: disable concurrent capture This reverts commit 4342335fb84bfa4ec5b99e3ef82f186820c2275f. This reverts commit 56afc7a5cc0f0bfc8021f6413b2e2267050bdc8a. This reverts commit 313d1e7dfb4bf8e0a2f09a9adb287062dd64410c. This reverts commit fb66dd9f95a1168698f072c4e5c2a2cf8c49a80f. Bug: 22702906 Change-Id: I9085918f1f7b12e28430958cceb768bb29c12bdb
udioPolicyInterface.h
ommon/include/policy.h
ommon/managerdefinitions/include/AudioInputDescriptor.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/AudioSession.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ommon/managerdefinitions/src/AudioSession.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
ervice/AudioPolicyEffects.cpp
ervice/AudioPolicyEffects.h
ervice/AudioPolicyInterfaceImpl.cpp
ervice/AudioPolicyInterfaceImplLegacy.cpp
|
b74dc56b2fd3ec872383544d4b6d4950c206259b |
18-Feb-2016 |
Wei Jia <wjia@google.com> |
Merge "AudioPolicyManager: add comment for disabling offload when streaming." into nyc-dev
|
4ca44d77ede74eda712fbae80700dc92d5922e02 |
18-Feb-2016 |
Wei Jia <wjia@google.com> |
AudioPolicyManager: add comment for disabling offload when streaming. Bug: 23499384 Change-Id: I74214c9cb444b10a6f50ffe499938945c063afca
anagerdefault/AudioPolicyManager.cpp
|
de223b40b81450703980667ffffc766a16c3447c |
18-Feb-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: select output with best sample format match" into nyc-dev
|
e693002b0fb25099540588245892ed98103749ba |
11-Feb-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: select output with best sample format match Add rules allowing selection of the output stream with the sample format offering the best match to the client track sample format when more than one output is compatible with a request. Bug: 27210844 Change-Id: I31981940be5d1c06d713d52187cfb0a7bf355773
ommon/include/policy.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/src/AudioPort.cpp
ommon/managerdefinitions/src/AudioProfile.cpp
anagerdefault/AudioPolicyManager.cpp
|
7b8d434379e486ff32d43875676f423ce9ee1c05 |
17-Feb-2016 |
Wei Jia <wjia@google.com> |
AudioPolicyManager: disable offload mode when streaming. This is a temporary work around until the root cause is fixed in offload playback path. Bug: 23499384 Change-Id: I1ee8197ba8995084287ef9385a0f6a30e4bb9351
anagerdefault/AudioPolicyManager.cpp
|
b0a144d705a021994628d136a170a6d2bd4282e7 |
12-Feb-2016 |
Phil Burk <philburk@google.com> |
Merge "AudioTrack: support ENCODING_IEC61937" into nyc-dev
|
661c5953f54848a37a012d9106af00e61bb98e08 |
12-Feb-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "Dynamic audio policies on UID" into nyc-dev
|
fdb3c07db5d44535eb8c3ec46dc78ad8446c01eb |
09-Feb-2016 |
Phil Burk <philburk@google.com> |
AudioTrack: support ENCODING_IEC61937 Set DIRECT flag. Use audio_has_proportional_frames() instead of audio_is_linear_pcm() where appropriate. Bug: 24541671 Bug: 20891646 Bug: 26373761 Change-Id: Ia32036b18683b084d6c9887593df87397ea0afd9 Signed-off-by: Phil Burk <philburk@google.com>
ommon/managerdefinitions/src/TypeConverter.cpp
anagerdefault/AudioPolicyManager.cpp
|
e8decedb429ed76dfa84cdb3e80ab3b969e77298 |
11-Feb-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Dynamic audio policies on UID When looking for an output, take attributes and UID into account. To find the matching mix: for each mix - inspect which rules are used - find a candidate mix for usage - check UID compatibility Rename AttributeMatchCriterion to AudioMixMatchCriterion to be consistent with the fact that now mixing rules are not always about audio attributes. Bug 26798796 Change-Id: I1520b0df190a98f197ea8e0144b770e1e6d97888
ommon/managerdefinitions/include/AudioPolicyMix.h
ommon/managerdefinitions/src/AudioPolicyMix.cpp
anagerdefault/AudioPolicyManager.cpp
|
138ed1796f8c8edd318488911a9b056877191778 |
10-Feb-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix issues in effect parameters parsing Fix several issues in AudioPolicyEffects.cpp - Fix old bug in growParamSize() that should take a pointer to the address of the parameter structure because it can modify it by calling realloc() - Fix warnings reported by clang static analyzer - Add checks on memory allocations Bug: 26938281 Change-Id: Id0bfa64371d95356d9fc308c6ea9c74e10ab1be0
ervice/AudioPolicyEffects.cpp
ervice/AudioPolicyEffects.h
|
52785f3df24fe817af4f1c3c2cddfb30ab5450ee |
10-Feb-2016 |
Chris Thornton <thorntonc@google.com> |
Call SoundTrigger::setCaptureState in AudioPoilcyManager::closeAllInputs closeAllInputs wasn't informing the sound trigger service that all inputs were closed. This meant that the service could get stuck in a state where it was disabled because it thought there was some active capture, even though there was nothing listening. (This was particularly common when a bluetooth device disconnected). BUG: 26970013,26450651 Change-Id: I613434ecacce3ef03a657008fd94c314948ba2b8
anagerdefault/AudioPolicyManager.cpp
|
814ce809867326e6ba46583444476e9f63ad01f7 |
18-Jan-2016 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: engine configurable: support fail safe When the parameter manager could not be launched, the engine will abort if LOG_NDEBUG is defined, unless a segmentation fault will happen later. This patch allows fail safe feature when LOG_NDEBUG is not defined. Change-Id: Ie78575bddad6d19beed61673979e1b8ef1c70b0e Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ngineconfigurable/src/Engine.cpp
ngineconfigurable/wrapper/ParameterManagerWrapper.cpp
|
9792ec3735dc56ca2bd97d7e6524deb8c46f5186 |
26-Jan-2016 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: engine configurable: update example PFW files This patch updates the PFW files given as example. -it adapts to N-definition -fixes some bugs Change-Id: I9537982b33bf772056a3bf94c775ce28d9069ef2 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ngineconfigurable/parameter-framework/example/Settings/PolicyConfigurableDomains.xml
ngineconfigurable/parameter-framework/example/Settings/device_for_input_source.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_media.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_phone.pfw
ngineconfigurable/parameter-framework/example/Settings/volumes.pfw
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem-CommonTypes.xml
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem.xml
|
62e4bc53be19e96f8e37e850b9c8a9e15b9e2ba6 |
03-Feb-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: strengthen dynamic audio profile intialization Add some robustness to getParameters() reply parsing in AudioPolicyManager::updateAudioProfiles(). Some audio HALs may respond with more than just the parameters requested. Change-Id: Id9327604f521f9fb5636ff93cb6a7c3c23c86778
anagerdefault/AudioPolicyManager.cpp
|
156260319a15174a86676fa3de8819976199ccac |
05-Feb-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix capture concurrency mode checks"
|
4342335fb84bfa4ec5b99e3ef82f186820c2275f |
05-Feb-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix capture concurrency mode checks Capture concurrency mode indicated by policy manager after startInput() is a bit field and should be handled as such by startInput() in AudioPolicyInterfaceImpl. Bug: 26994864 Change-Id: Iff093a82b8b68262abab50bc84060cf023450783
udioPolicyInterface.h
ervice/AudioPolicyInterfaceImpl.cpp
|
19bd5498a78936436e982ff074cd9d460494c066 |
03-Feb-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "Fix connection of OUT_REMOTE_SUBMIX device on APM startInput"
|
56afc7a5cc0f0bfc8021f6413b2e2267050bdc8a |
03-Feb-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Fix connection of OUT_REMOTE_SUBMIX device on APM startInput Fix a regression in AudioPolicyManager::startInput() where the OUT_REMOTE_SUBMIX audio device was never made available due to the test on the input descriptor, which was already active by the time it is tested, as the activity on the session has already been updated. Add methods to AudioInputDescriptor and AudioSessionCollection to query the number of active sessions. Use the new method to optimize AudioSessionCollection::hasActiveSession() Bug 26798796 Change-Id: I2de4e47970505e64c4c78a148a80a9f0ec19e821
ommon/managerdefinitions/include/AudioInputDescriptor.h
ommon/managerdefinitions/include/AudioSession.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
ommon/managerdefinitions/src/AudioSession.cpp
anagerdefault/AudioPolicyManager.cpp
|
e1c37946c27024acd80b1af8724ad5d309ddcf92 |
03-Feb-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix overflow in condition wait timeout"
|
d7eda8d0127fabf2d63b0890043da40e2a9e366c |
03-Feb-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix overflow in condition wait timeout Do not pass a large value to Condition::waitRelative() as this can cause an overflow in pthread_cond_timedwait_relative_np() when converting to absolute time. Bug: 26891803 Change-Id: Ie2a00bca52d469aa08b2718089dc19cfb1f3475f
ervice/AudioPolicyService.cpp
|
2e5408ac3e51cb459160b9cd392f1809b0758316 |
01-Feb-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix set volume with explicit audio patch"
|
706de969169a8f651726ab7de7302a3d35b39768 |
01-Feb-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix loss of audio patch client UID"
|
e04e62bc05316d9682688f87053be5cf47e9c707 |
30-Jan-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix set volume with explicit audio patch setStreamVolumeIndex() receives both a stream and a device as inputs. When an explicit audio patch is requested on an output mix, it is possible that the active device does not match the strategy derived from the stream, in which case the function would not update current volume. This patch makes sure that the device explicitly passed to setStreamVolumeIndex() is always taken into acount. Change-Id: Ie496ff70f059166af6c81c8f8445a9a9c7548a72
anagerdefault/AudioPolicyManager.cpp
|
bacd9d7ae33d831f9b8b3a0bc7ba8d367164a1d0 |
30-Jan-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix loss of audio patch client UID If an explicit audio patch is present on an output mix, its client UID should not be reset by default when the device is updated on this output mix. Bug: 26423115 Change-Id: I87973e62d6eeb6f8fef3780bd67f58ae52d07812
anagerdefault/AudioPolicyManager.cpp
|
52d49a8a1f48c2d59769b9257e2eed988014aa03 |
28-Jan-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix connected device address. Also update the audio device address with the one passed by setDeviceConnectionState() if the device is in the list of declared devices but does not have an address set. Change-Id: Ibe9008b0c96fc336a90646b98703ed238a6cf4a9
ommon/managerdefinitions/src/HwModule.cpp
|
313d1e7dfb4bf8e0a2f09a9adb287062dd64410c |
29-Jan-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix input device selection Make sure session activity count is incremented before selecting device in startInput(). Bug: 26841909 Change-Id: I0b4867b9ad4c7a98e5eddb4f1f23c4cf075f074e
anagerdefault/AudioPolicyManager.cpp
|
fb66dd9f95a1168698f072c4e5c2a2cf8c49a80f |
29-Jan-2016 |
Eric Laurent <elaurent@google.com> |
Revert "Revert "audio policy for concurrent capture."" This reverts commit 84332aaa807037baca05340875f2d94fcc519ac4. Bug:26841909
udioPolicyInterface.h
ommon/include/policy.h
ommon/managerdefinitions/include/AudioInputDescriptor.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/AudioSession.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ommon/managerdefinitions/src/AudioSession.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
ervice/AudioPolicyEffects.cpp
ervice/AudioPolicyEffects.h
ervice/AudioPolicyInterfaceImpl.cpp
ervice/AudioPolicyInterfaceImplLegacy.cpp
|
35cb56342e80dbbba3a9cbf5c1398976f1f1befd |
28-Jan-2016 |
Eric Laurent <elaurent@google.com> |
Merge "Revert "audio policy for concurrent capture.""
|
84332aaa807037baca05340875f2d94fcc519ac4 |
28-Jan-2016 |
Eric Laurent <elaurent@google.com> |
Revert "audio policy for concurrent capture." This reverts commit 4b2fcd8abf90b1bd95539f9f4ef2ac39ce9e2df1. Bug:26841909 Change-Id: Ifc74b195394b9fb3f73d33455ad061bd896d5331
udioPolicyInterface.h
ommon/include/policy.h
ommon/managerdefinitions/include/AudioInputDescriptor.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/AudioSession.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ommon/managerdefinitions/src/AudioSession.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
ervice/AudioPolicyEffects.cpp
ervice/AudioPolicyEffects.h
ervice/AudioPolicyInterfaceImpl.cpp
ervice/AudioPolicyInterfaceImplLegacy.cpp
|
19219b44e05555b29e00ce56ce273d168fa83888 |
25-Jan-2016 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: use reference for all default volume table This patch migrates all default volume tables as reference volume tables. No implicit volume tables is allowed any more, the reference must be given for all stream type and device category. It allows removing the WA that was introduce to use the stream CNT to host the default volume tables. Change-Id: I19f5e9d2a62d448f0f8447f93acbbd2e1a723958 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ommon/managerdefinitions/include/AudioPolicyConfig.h
ommon/managerdefinitions/include/VolumeCurve.h
ommon/managerdefinitions/src/Serializer.cpp
ommon/managerdefinitions/src/TypeConverter.cpp
onfig/audio_policy_volumes.xml
onfig/default_volume_tables.xml
anagerdefault/AudioPolicyManager.h
|
c9d7c4e35afd48ac8a315f53666943b6210dafa1 |
22-Jan-2016 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: allows to use reference for volume table This patch allows to definie reference attribute within XML Volume Element and define a reference volume curve. It allows to factorize efficiently and avoid too much XML duplication. Change-Id: I462808ea38d7a39e1e20fe7090a6ebee0cb3c39b Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ommon/managerdefinitions/include/Serializer.h
ommon/managerdefinitions/src/Serializer.cpp
onfig/audio_policy_configuration.xml
onfig/audio_policy_volumes.xml
|
4b2fcd8abf90b1bd95539f9f4ef2ac39ce9e2df1 |
16-Jan-2016 |
Eric Laurent <elaurent@google.com> |
audio policy for concurrent capture. First implementation of concurrent capture policy: Initially, only capture for HOTWORD or FM TUNER sources or re-route submix is allowed at the same time as any other capture. Several capture clients can share the same input stream. In this case active clients are sorted by audio source priority level and the input path configuration and routing is driven by the highest priority active source. Bug: 22702906 Change-Id: Icbedfe001c6243ecad7a7b57ab78d893b2b97402
udioPolicyInterface.h
ommon/include/policy.h
ommon/managerdefinitions/include/AudioInputDescriptor.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/AudioSession.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ommon/managerdefinitions/src/AudioSession.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
ervice/AudioPolicyEffects.cpp
ervice/AudioPolicyEffects.h
ervice/AudioPolicyInterfaceImpl.cpp
ervice/AudioPolicyInterfaceImplLegacy.cpp
|
a03910b23a31058eea178e8d3f5e84fcf852d5c2 |
27-Jan-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix merging error for commit 112b0af8."
|
20eb3a4340a1f1f6e978a23527daff080140db1a |
27-Jan-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix merging error for commit 112b0af8. Wrong patch set was merged from partner gerrit. Change-Id: I850d61b1cc8682e0a82ee64bc8cb022b7512de1c
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/AudioProfile.h
anagerdefault/AudioPolicyManager.cpp
|
d1ab2bd4f1ea166a7e9e81cfd7f3e5dd47135d4d |
02-Dec-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: move volume table to XML file This patch allows to store in XML file volume tables. The compatibility is maintained for legacy conf file. Configurable Engine is only compatible with new XML conf. This patch removes from configurable engine Structure / Settings the volume table but keep the configurabllity of switching volume profiles from one another according to criteria like phone state... (ex: DTMF stream type is following Voice Profile in call) Change-Id: I78c91bc3378b6c47202abe7b5c1c1e011ff62eed Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ndroid.mk
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/AudioPolicyConfig.h
ommon/managerdefinitions/include/Gains.h
ommon/managerdefinitions/include/IVolumeCurvesCollection.h
ommon/managerdefinitions/include/Serializer.h
ommon/managerdefinitions/include/StreamDescriptor.h
ommon/managerdefinitions/include/VolumeCurve.h
ommon/managerdefinitions/src/AudioGain.cpp
ommon/managerdefinitions/src/Gains.cpp
ommon/managerdefinitions/src/Serializer.cpp
ommon/managerdefinitions/src/StreamDescriptor.cpp
ommon/managerdefinitions/src/TypeConverter.cpp
ommon/managerdefinitions/src/VolumeCurve.cpp
onfig/audio_policy_configuration.xml
onfig/audio_policy_volumes.xml
onfig/default_volume_tables.xml
ngine/interface/AudioPolicyManagerInterface.h
ngine/interface/AudioPolicyManagerObserver.h
ngineconfigurable/Android.mk
ngineconfigurable/interface/AudioPolicyPluginInterface.h
ngineconfigurable/parameter-framework/example/Android.mk
ngineconfigurable/parameter-framework/example/Settings/PolicyConfigurableDomains.xml
ngineconfigurable/parameter-framework/example/Settings/volumes.pfw
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem-CommonTypes.xml
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem-Volume.xml
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem.xml
ngineconfigurable/parameter-framework/plugin/Android.mk
ngineconfigurable/parameter-framework/plugin/PolicySubsystem.cpp
ngineconfigurable/parameter-framework/plugin/PolicySubsystem.h
ngineconfigurable/parameter-framework/plugin/Stream.cpp
ngineconfigurable/parameter-framework/plugin/Stream.h
ngineconfigurable/parameter-framework/plugin/VolumeProfile.cpp
ngineconfigurable/parameter-framework/plugin/VolumeProfile.h
ngineconfigurable/src/Engine.cpp
ngineconfigurable/src/Engine.h
ngineconfigurable/src/Stream.cpp
ngineconfigurable/src/Stream.h
nginedefault/Android.mk
nginedefault/src/Engine.cpp
nginedefault/src/Engine.h
nginedefault/src/Gains.cpp
nginedefault/src/Gains.h
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
e0db30868d9734f95a02df516dd0dc6a7226474b |
16-Jan-2016 |
Eric Laurent <elaurent@google.com> |
audio policy: fix combo device parsing When parsing a device type entry in audio_policy.conf, do not load device combos (e.g AUDIO_DEVICE_OUT_ALL_A2DP) in a single DeviceDescriptor but create one descriptor for each device type in the combo. Bug: 24113912. Change-Id: I3a7f43c7fc9cf516506bb3255dd2ed86564b7cd6
ommon/managerdefinitions/src/ConfigParsingUtils.cpp
|
f4ad6e5637b6deccdac4b60615383f290b3806cf |
19-Nov-2015 |
François Gaffie <francois.gaffie@intel.com> |
Audio policy: implement configuration file in XML This patch introduces configuration file of the policy in XML. Legacy configuration file is used by default and compilation flag USE_XML_AUDIO_POLICY_CONF must be defined to use XML file format. Change-Id: I352b788b5829d42ed82c851a4faef0e526be582e Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ndroid.mk
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/AudioCollections.h
ommon/managerdefinitions/include/AudioPolicyConfig.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/ConfigParsingUtils.h
ommon/managerdefinitions/include/Serializer.h
ommon/managerdefinitions/include/TypeConverter.h
ommon/managerdefinitions/include/VolumeCurve.h
ommon/managerdefinitions/src/AudioCollections.cpp
ommon/managerdefinitions/src/AudioPort.cpp
ommon/managerdefinitions/src/ConfigParsingUtils.cpp
ommon/managerdefinitions/src/DeviceDescriptor.cpp
ommon/managerdefinitions/src/HwModule.cpp
ommon/managerdefinitions/src/IOProfile.cpp
ommon/managerdefinitions/src/Serializer.cpp
onfig/a2dp_audio_policy_configuration.xml
onfig/audio_policy_configuration.xml
onfig/r_submix_audio_policy_configuration.xml
onfig/usb_audio_policy_configuration.xml
ngineconfigurable/Android.mk
nginedefault/Android.mk
anagerdefault/AudioPolicyManager.cpp
|
c16bf1d9e8ccdd27327e988d50f5b9640e5406f8 |
13-Jan-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "AudioPolicy: callback for recording configuration change"
|
2f4fe9f7df8f22c6bc8745407d19df73128810ec |
05-Dec-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioPolicy: callback for recording configuration change Each AudioSession tracks start / end of recording, and sends a callback to AudioSystem. AudioSystem tracks a single recording callback tracking input source and audio session number. Change-Id: Ic065751d9ba013e03f2a6ad8dde02542e5465ec0
udioPolicyInterface.h
ommon/managerdefinitions/include/AudioInputDescriptor.h
ommon/managerdefinitions/include/AudioSession.h
ommon/managerdefinitions/src/AudioSession.cpp
anagerdefault/AudioPolicyManager.cpp
ervice/AudioPolicyClientImpl.cpp
ervice/AudioPolicyService.cpp
ervice/AudioPolicyService.h
|
64f1901bdddf464c8f29bed34e3449762873b3e9 |
09-Jan-2016 |
Andy Hung <hunga@google.com> |
Merge "Add setMasterMono and getMasterMono"
|
2ddee19245641e86bca436dda23a0f5089bf2ab5 |
19-Dec-2015 |
Andy Hung <hunga@google.com> |
Add setMasterMono and getMasterMono Bug: 15283594 Bug: 22700363 Change-Id: I32dc1fcecf285967a61bd508af3bb299595db57d
udioPolicyInterface.h
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
ervice/AudioPolicyInterfaceImpl.cpp
ervice/AudioPolicyInterfaceImplLegacy.cpp
ervice/AudioPolicyService.h
|
a3e696da3872250bca66a62d93a3b6114e20c27d |
18-Dec-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: engine configurable: fix support of multiple devices of same type The configurable policy is using criteria for the available devices based on the type. If multiple devices of the same type (as remote submix) are removed and added, the bit associated to this type within the criterion shall be set as far as at least one device of this type is connected. It was not the case, this patch is fixing this issue. Change-Id: Id6a83b753907a9b0f07bf8552e50ee28e990a83e Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ngineconfigurable/src/Engine.cpp
ngineconfigurable/src/Engine.h
ngineconfigurable/wrapper/ParameterManagerWrapper.cpp
ngineconfigurable/wrapper/include/ParameterManagerWrapper.h
|
fdb17f649c7480ddd83de9fd99ff48a4166a6acf |
16-Dec-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: configurable engine: remove unecessary function The policy plugin does not connect with any HW and does not need to perform a backward synchronisation at startup. This patch removes uncessary function linked with this functionality. Change-Id: Ie0d729f0eb4ea10d9a8450902dabba1fbbf199ef Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ommon/managerdefinitions/src/AudioCollections.cpp
ngineconfigurable/parameter-framework/plugin/InputSource.cpp
ngineconfigurable/parameter-framework/plugin/InputSource.h
ngineconfigurable/parameter-framework/plugin/Strategy.cpp
ngineconfigurable/parameter-framework/plugin/Strategy.h
ngineconfigurable/parameter-framework/plugin/Usage.cpp
ngineconfigurable/parameter-framework/plugin/Usage.h
|
754cabcfef43f894a73bb3f7581b6cd4f48fcc95 |
08-Jan-2016 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: introduce audio route concept"
|
cbb3044d6bfa9ab30c83b67874f40344e29805e1 |
19-Nov-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: introduce audio route concept As a preambule of introduction of topology concept within audio policy configuration file, this patch introduces the notion of audio route, i.e. a link between one sink and one or more sources. This link may be shareable (mix) or mutual exclusive (mux). From this route concept, and in order to keep backward compatibility, the supported device of ioprofile (what will become AudioMixPort) must be updated. Change-Id: If078830dbe74b003be4a64c584521df481101294 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/AudioCollections.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/AudioRoute.h
ommon/managerdefinitions/include/DeviceDescriptor.h
ommon/managerdefinitions/include/HwModule.h
ommon/managerdefinitions/include/IOProfile.h
ommon/managerdefinitions/src/AudioCollections.cpp
ommon/managerdefinitions/src/AudioRoute.cpp
ommon/managerdefinitions/src/DeviceDescriptor.cpp
ommon/managerdefinitions/src/HwModule.cpp
ommon/managerdefinitions/src/IOProfile.cpp
|
8a397d583a4f4cf24ad88facaf2fd33990cfb811 |
02-Dec-2015 |
rago <rago@google.com> |
Adding UNPROCESSED to the available audio_sources bug: 25564291 Change-Id: I86d8feda4d687352f98b640819211207a06d6b50
nginedefault/src/Engine.cpp
ervice/AudioPolicyEffects.cpp
|
112b0af826aeca45855690b9c105b2cdf9938bbe |
19-Nov-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: introduction of AudioProfile In order to be able to declare the possible sample specifications for an Audio Port (a given format, a list of sample rates, a list of channels), a new object AudioProfile is introduced. Change-Id: Ie3ca3400f05984e7b4132fc7ba90020eb4d998c7 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ommon/include/policy.h
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/AudioPolicyConfig.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/AudioProfile.h
ommon/managerdefinitions/include/ConfigParsingUtils.h
ommon/managerdefinitions/include/DeviceDescriptor.h
ommon/managerdefinitions/include/TypeConverter.h
ommon/managerdefinitions/include/audio_policy_conf.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ommon/managerdefinitions/src/AudioPort.cpp
ommon/managerdefinitions/src/AudioProfile.cpp
ommon/managerdefinitions/src/ConfigParsingUtils.cpp
ommon/managerdefinitions/src/DeviceDescriptor.cpp
ommon/managerdefinitions/src/HwModule.cpp
ommon/managerdefinitions/src/IOProfile.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
599c758b258cc5da0dba9b530425381facc37d77 |
08-Dec-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: audio sessions on input descriptors In preparation for concurrent capture, add support for multiple audio sessions per input stream. Each session keeps its own properties, open and active reference counting. No functional change for now: still one session per input and one active input at a time. Bug: 18815985. Bug: 22702906. Change-Id: I915a65989a7fd0d3cbe2fcf5a0aee2ea0df5f4f5
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/AudioInputDescriptor.h
ommon/managerdefinitions/include/AudioSession.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
ommon/managerdefinitions/src/AudioSession.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
7b279bbc24139ee1e01b58055ca94926ec18e2e9 |
14-Dec-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: remove compilation warnings Change-Id: I4d41ca903dfbe37066ef20a13ebabaff1e5b7326
ommon/managerdefinitions/src/HwModule.cpp
ommon/managerdefinitions/src/TypeConverter.cpp
anagerdefault/AudioPolicyManager.cpp
|
fd9445e97609756e7ec2e95f66440d76f32068e5 |
11-Dec-2015 |
Andy Hung <hunga@google.com> |
Merge "Run audio services in audioserver instead of mediaserver"
|
b5959c7391ddcede07f0a1c65ae3aaaef02cd45f |
03-Dec-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: engine configurable: do not compile example makefile This patch avoids compiling the example makefile of the engine configurable settings and structure files. It is up to the oem to have its own makefile with its own structure and settings files. Change-Id: I735290bff08ca6183da7ea4266ced9206f2bb6a1 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ngineconfigurable/parameter-framework/example/Android.mk
|
dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9 |
09-Sep-2015 |
Marco Nelissen <marcone@google.com> |
Run audio services in audioserver instead of mediaserver audioflinger, audiopolicy, (fm) radio, soundtrigger moved to audioserver. medialog is removed from mediaserver. audioserver has same permissions and rights as mediaserver. mediaserver is allowed to specify client uid to audioserver. Subsequent CL will add medialog to audioserver. TBD: Pare down permissions. Bug: 24511453 Change-Id: Iccaa08b874a502710d142e72f8abbb3d97c44cfa
ervice/AudioPolicyInterfaceImpl.cpp
|
ec1efa072e68a7970c6bca8da0a5d436c30b6196 |
07-Dec-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "AudioPolicyManager: AudioInputDescriptor open ref count cleanup"
|
8fa2458708fa775c2562d836d8f87ac30d5970f4 |
05-Dec-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: configurable engine: fix dead lock issue"
|
65bfe916ca972b95f41d7f6cc2566c2e12a3eada |
05-Dec-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioPolicyManager: AudioInputDescriptor open ref count cleanup Always initialize the mOpenRefCount field. Add functions for management for open ref count. Change-Id: I0bbd021283047abfebbc108ced68c79e29297f25
ommon/managerdefinitions/include/AudioInputDescriptor.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
anagerdefault/AudioPolicyManager.cpp
|
8649a34c282954ccb64a507b1085313e3ceafc38 |
03-Dec-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: configurable engine: fix dead lock issue This patch fixes a dead lock issue within configurable engine of the audio policy. A clear was calling itself in loop instead of calling clear on its base class. Change-Id: I9f7c5f6425fbba36e029664ac130cbeafeca4ddf Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ngineconfigurable/src/Collection.h
ngineconfigurable/src/Stream.cpp
|
ebdddf82b07fa2c4134c3c00dbbbaa1ad3286726 |
04-Dec-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: enhancing type conversion helper"
|
f8ad572ea6259534dd2a9ef160e59976f5514951 |
04-Dec-2015 |
Eric Laurent <elaurent@google.com> |
Merge "Volume should take VOLUME_MIN_DB value when audio is muted." am: 2e12b68fad am: e04b1e747e am: a4d6e82d47 * commit 'a4d6e82d474fd8c18d27f879bd8643b918b7af91': Volume should take VOLUME_MIN_DB value when audio is muted.
|
e04b1e747e0c1680836dab71357cb6bd216aa575 |
03-Dec-2015 |
Eric Laurent <elaurent@google.com> |
Merge "Volume should take VOLUME_MIN_DB value when audio is muted." am: 2e12b68fad * commit '2e12b68fad486445f230fb0435e6d5483047c85c': Volume should take VOLUME_MIN_DB value when audio is muted.
|
8cf5cf7c49e6c7cff160149727b17e1ab6015409 |
10-Nov-2015 |
Safa Boumaiza <Safax.boumaiza@intel.com> |
Volume should take VOLUME_MIN_DB value when audio is muted. Audio can be heard when muting volume as the minimum volume value takes 0.0f instead of VOLUME_MIN_DB (-758). This patch fixes the minimum volume value which should be VOLUME_MIN_DB instead of 0.0f. Change-Id: I4cb8093b6d9f18e5330ba5f770b9133baa77542f Signed-off-by: Safa Boumaiza <Safax.boumaiza@intel.com> Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
ngineconfigurable/src/Stream.cpp
|
5fcd6f99944d8722c57d2b2963814a1964ecfedd |
27-Nov-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: enhancing type conversion helper This patch updates the conversion helper class (string to/from policy common types) by adding direction agnostic helper for channels and formats. It also adds the support of device category and stream type parsing. Change-Id: I75d5a77d78bc3aeb2389b424bfb41febbf020f1a Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ommon/include/policy.h
ommon/managerdefinitions/include/TypeConverter.h
ommon/managerdefinitions/src/TypeConverter.cpp
|
d0609ad390ff8bb1cafebdf363bf1d15e63b949f |
01-Dec-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: move device_category type outside volume class This patch prepares the removal of hard coded volume tables by moving outside volume class the device_category enumeration. Change-Id: Ic712377898276a39bb782ac0bc7f793cdd7fa8bd Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ommon/include/Volume.h
ommon/managerdefinitions/include/StreamDescriptor.h
ommon/managerdefinitions/src/StreamDescriptor.cpp
ngine/interface/AudioPolicyManagerInterface.h
ngineconfigurable/interface/AudioPolicyPluginInterface.h
ngineconfigurable/parameter-framework/plugin/VolumeProfile.cpp
ngineconfigurable/parameter-framework/plugin/VolumeProfile.h
ngineconfigurable/src/Engine.cpp
ngineconfigurable/src/Engine.h
ngineconfigurable/src/Stream.cpp
ngineconfigurable/src/Stream.h
nginedefault/src/Engine.cpp
nginedefault/src/Engine.h
nginedefault/src/Gains.cpp
nginedefault/src/Gains.h
|
1d4481fb9cb1ea149f79f2a5d22110af84fbc90b |
19-Nov-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: clarify tag and name for device description In preparation to introduction of topology within policy configuration file, this patch clarifies the meaning of tag and name attributes of a device. Change-Id: I8db58be939823e87aa05b991e2afe0762eb741ca Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ommon/managerdefinitions/include/AudioPolicyConfig.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/DeviceDescriptor.h
ommon/managerdefinitions/src/ConfigParsingUtils.cpp
ommon/managerdefinitions/src/DeviceDescriptor.cpp
ommon/managerdefinitions/src/HwModule.cpp
|
a8ecc2c72ca26389bd6b0162181d60aaeaca8149 |
09-Nov-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: remove deserialization from policy objects This patch removes the responsability of the deserialization of all objects managed by the policy by: -adding required accessors -moving deserialization function to Config parser helper -adds a TypeConverter to associate string to / from values of all audio enumeration shared between HALs and policy. Change-Id: I1ce798848f4657b37e47446c9fbdc63f7ed0390e Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ndroid.mk
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/AudioGain.h
ommon/managerdefinitions/include/AudioPolicyConfig.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/ConfigParsingUtils.h
ommon/managerdefinitions/include/DeviceDescriptor.h
ommon/managerdefinitions/include/HwModule.h
ommon/managerdefinitions/include/IOProfile.h
ommon/managerdefinitions/include/TypeConverter.h
ommon/managerdefinitions/include/audio_policy_conf.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ommon/managerdefinitions/src/AudioPatch.cpp
ommon/managerdefinitions/src/AudioPort.cpp
ommon/managerdefinitions/src/ConfigParsingUtils.cpp
ommon/managerdefinitions/src/DeviceDescriptor.cpp
ommon/managerdefinitions/src/HwModule.cpp
ommon/managerdefinitions/src/IOProfile.cpp
ommon/managerdefinitions/src/TypeConverter.cpp
anagerdefault/AudioPolicyManager.cpp
|
7a564a0e201d8ddc7cc7b7a7202adf017b4e4836 |
05-Nov-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: add support for external audio sources"
|
74e0f3a620bd0cdfb153728e99a17a96ca3db0de |
03-Nov-2015 |
Bill Yi <byi@google.com> |
Merge commit 'f71d2618532e73db5c01e3c00595d7d2ab2cff3e' into HEAD
|
57f2cc1fa8165974df15bcdcaf215cc2c0c11216 |
02-Nov-2015 |
Gaurav Shah <gauravsh@google.com> |
Merge "audio: Change the default init value for StreamDescriptor" am: 2e5591958b am: 1d1449297e am: bbed3af44a * commit 'bbed3af44a9ac40a15f3c0759cef33d06d1f93b4': audio: Change the default init value for StreamDescriptor
|
bbed3af44a9ac40a15f3c0759cef33d06d1f93b4 |
02-Nov-2015 |
Gaurav Shah <gauravsh@google.com> |
Merge "audio: Change the default init value for StreamDescriptor" am: 2e5591958b am: 1d1449297e * commit '1d1449297e6ea4cd76119e284807f5e2b9187743': audio: Change the default init value for StreamDescriptor
|
1d1449297e6ea4cd76119e284807f5e2b9187743 |
02-Nov-2015 |
Gaurav Shah <gauravsh@google.com> |
Merge "audio: Change the default init value for StreamDescriptor" am: 2e5591958b * commit '2e5591958b5fe897f37715145e86bf8afbde0911': audio: Change the default init value for StreamDescriptor
|
5664139e0ae16bb180a8eaae917f35f7c99d2a0a |
09-Oct-2015 |
Ralph Nathan <ralphnathan@google.com> |
audio: Change the default init value for StreamDescriptor Currently, audio doesn't play on Brillo because the policy manager's default value for all streams is set to 0. In Android, this value is changed by calls from AudioService.java. If we set the default value to 1 in Brillo, then even if there are no calls, we will have audio. BUG=none TEST=manual Change-Id: I1418c9ecfb4f1c81c9c0946eee11deed3c65b358
ommon/managerdefinitions/src/StreamDescriptor.cpp
|
11fe1acb608d4dcd86b06c9ccd876864beebf4d4 |
30-Oct-2015 |
Wonsik Kim <wonsik@google.com> |
Merge "APM: Don't copy invalid gain value"
|
60d156247a7189d59af0a3643e2a786dacef734d |
29-Oct-2015 |
Wonsik Kim <wonsik@google.com> |
APM: Don't copy invalid gain value Bug: 24775316 Change-Id: I0c439a78909c03ca2b0340c67bfb969de2283166
ommon/managerdefinitions/src/AudioPort.cpp
|
d60560af7cb559762593161c8202459cc01fb0f5 |
10-Apr-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: add support for external audio sources Add support for activity on external audio sources. An external source reflects activity on an input audio device that must be controlled (both routing and volume) by the audio policy manager. First, the input device must be connected with setDeviceConnectionState(). Then, the source activity is indicated with startAudioSource() and stopAudioSource() APIs. startAudioSource() indicates the source device with an audio port configuration and the use case by the audio attributes. Once a source is active, its routing and volume are controlled by the policy manager as it would for a software source (AudioTrack). Change-Id: If5805d58a4356b2f681f1aabf54375f62b55b98a
udioPolicyInterface.h
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/AudioOutputDescriptor.h
ommon/managerdefinitions/include/AudioSourceDescriptor.h
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ommon/managerdefinitions/src/AudioSourceDescriptor.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
ervice/AudioPolicyInterfaceImpl.cpp
|
0443ba44a1ebda31bc3642cd91a0570694f29ec1 |
29-Oct-2015 |
Eric Laurent <elaurent@google.com> |
Merge "AudioPolicyService: Synchronize access to AudioPolicyManager" am: 60cf8e8925 am: 62ac714617 am: f71d261853 * commit 'f71d2618532e73db5c01e3c00595d7d2ab2cff3e': AudioPolicyService: Synchronize access to AudioPolicyManager
|
f71d2618532e73db5c01e3c00595d7d2ab2cff3e |
29-Oct-2015 |
Eric Laurent <elaurent@google.com> |
Merge "AudioPolicyService: Synchronize access to AudioPolicyManager" am: 60cf8e8925 am: 62ac714617 * commit '62ac714617c3c994619afdc0666ac3359d8084e7': AudioPolicyService: Synchronize access to AudioPolicyManager
|
62ac714617c3c994619afdc0666ac3359d8084e7 |
29-Oct-2015 |
Eric Laurent <elaurent@google.com> |
Merge "AudioPolicyService: Synchronize access to AudioPolicyManager" am: 60cf8e8925 * commit '60cf8e892519b84bd5aa2c7ef8027304382ac4b0': AudioPolicyService: Synchronize access to AudioPolicyManager
|
60cf8e892519b84bd5aa2c7ef8027304382ac4b0 |
29-Oct-2015 |
Eric Laurent <elaurent@google.com> |
Merge "AudioPolicyService: Synchronize access to AudioPolicyManager"
|
dfb9f3b053fa8ff7e622783a2040953442c44700 |
27-Oct-2015 |
Haynes Mathew George <hgeorge@codeaurora.org> |
AudioPolicyService: Synchronize access to AudioPolicyManager Synchronize access to APM when getDevicesForStream is called on APM. Change-Id: I2ba6922341f035375270b02000ef5a7e078f6b5a
ervice/AudioPolicyInterfaceImpl.cpp
|
a2ce3c173951845c1305099314451a2f99123b05 |
23-Sep-2015 |
Eric Laurent <elaurent@google.com> |
AudioPolicyService: fix race in AudioCommandThread Fixe race condition in AudioCommandThread::threadLoop() where a command can be inserted in first position in the queue after the sleep time has been calculated causing a longer delay than expected. Also fix a failure to hold a wake lock while commands are still in the queue. Bug: 22707905. Change-Id: I813626986677bf00106acb37ee20d3dd75d5cf33
ervice/AudioPolicyService.cpp
|
f8e21a06c1b559757f1c6846b1a1abd29874cbeb |
27-Oct-2015 |
Zach Jang <zachjang@google.com> |
Merge "Revert "Revert "audio policy: bind setMode() and setPhoneState() operations""" into mnc-dev am: 681bc45d25 am: f6224dece5 am: 5f2a15a617 am: 6360955a0b * commit '6360955a0b34e7c48d9471c766ba6d5ca0051d97': Revert "Revert "audio policy: bind setMode() and setPhoneState() operations""
|
57a34a5163fa995b5d4827d60d9ebdb1881b11df |
27-Oct-2015 |
Zach Jang <zachjang@google.com> |
Merge "Revert "Revert "AudioPolicyService: fix race in AudioCommandThread""" into mnc-dev am: 6919fbe40d am: 8c5b71ce47 am: 2fb59515d4 am: 77249c550f * commit '77249c550ffc97b5f92150d544e661e17d530332': Revert "Revert "AudioPolicyService: fix race in AudioCommandThread""
|
f6224dece52c569e27322580407c3f5898fa042b |
27-Oct-2015 |
Zach Jang <zachjang@google.com> |
Merge "Revert "Revert "audio policy: bind setMode() and setPhoneState() operations""" into mnc-dev am: 681bc45d25 * commit '681bc45d2592ed447f70d1dd14e92ad584499c9d': Revert "Revert "audio policy: bind setMode() and setPhoneState() operations""
|
8c5b71ce473517ea1270f6467fa518274bd54b35 |
27-Oct-2015 |
Zach Jang <zachjang@google.com> |
Merge "Revert "Revert "AudioPolicyService: fix race in AudioCommandThread""" into mnc-dev am: 6919fbe40d * commit '6919fbe40d92af432d3b72ad36e0697654f8146c': Revert "Revert "AudioPolicyService: fix race in AudioCommandThread""
|
7f5d179babc1dbd4a9859da92fa43a89f14ce853 |
27-Oct-2015 |
Zach Jang <zachjang@google.com> |
Merge "Revert "AudioPolicyService: fix race in AudioCommandThread"" into mnc-dev am: cda4871486 am: 1fcbd9b0e9 am: dee38ac0da am: e44a9c0666 * commit 'e44a9c0666b3861eb2676ddf91cbeb5ecd5b23a5': Revert "AudioPolicyService: fix race in AudioCommandThread"
|
0e15f1f817cad0623a719fd8871067ad1f5b8eb9 |
27-Oct-2015 |
Zach Jang <zachjang@google.com> |
Merge "Revert "audio policy: bind setMode() and setPhoneState() operations"" into mnc-dev am: be6f10c049 am: fd16414d34 am: d53f955a4f am: 14c54bbf9c * commit '14c54bbf9c739c8d611e5dc8990a5d220d135956': Revert "audio policy: bind setMode() and setPhoneState() operations"
|
1fcbd9b0e973d662ed566967af71c8f5b2383320 |
27-Oct-2015 |
Zach Jang <zachjang@google.com> |
Merge "Revert "AudioPolicyService: fix race in AudioCommandThread"" into mnc-dev am: cda4871486 * commit 'cda487148602325701ffd7f595ca096a182f380c': Revert "AudioPolicyService: fix race in AudioCommandThread"
|
fd16414d341b1c104068c489103aeb2ddb8995e6 |
27-Oct-2015 |
Zach Jang <zachjang@google.com> |
Merge "Revert "audio policy: bind setMode() and setPhoneState() operations"" into mnc-dev am: be6f10c049 * commit 'be6f10c049086453cc53b8e50c5d497bb5b3ae05': Revert "audio policy: bind setMode() and setPhoneState() operations"
|
3994ffdd2c280aa5fad9f3c41255371cd545c7cf |
27-Oct-2015 |
Zach Jang <zachjang@google.com> |
Revert "Revert "audio policy: bind setMode() and setPhoneState() operations"" This reverts commit 26ce11a1dd2a9b70865aec1b42c365dd19172511. Change-Id: I0affb97e7f2eb541ebd6f26c33e8f32261e9e221
ervice/AudioPolicyInterfaceImpl.cpp
|
a754b4fa874f97a51ed2bee9257f2a870effe619 |
27-Oct-2015 |
Zach Jang <zachjang@google.com> |
Revert "Revert "AudioPolicyService: fix race in AudioCommandThread"" This reverts commit 75c82b50951b21190f710a638c6a26ff7ee6d86d. Change-Id: I1b1f147bedf205636ec20b84faf6ef597a781c0d
ervice/AudioPolicyService.cpp
|
26ce11a1dd2a9b70865aec1b42c365dd19172511 |
27-Oct-2015 |
Zach Jang <zachjang@google.com> |
Revert "audio policy: bind setMode() and setPhoneState() operations" This reverts commit 9ddf1c76121caef55a05c537d6a9a1d76c1d17be. Change-Id: I860ecc288a1798605dff46f39107f4450ca5cd56
ervice/AudioPolicyInterfaceImpl.cpp
|
75c82b50951b21190f710a638c6a26ff7ee6d86d |
27-Oct-2015 |
Zach Jang <zachjang@google.com> |
Revert "AudioPolicyService: fix race in AudioCommandThread" This reverts commit 74ce88ff0f24a8c08fdab3a1140212183089c2b5. Change-Id: I39114c8cdd3021951ba93716aaa0c1c03e68538d
ervice/AudioPolicyService.cpp
|
9ddf1c76121caef55a05c537d6a9a1d76c1d17be |
17-Sep-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: bind setMode() and setPhoneState() operations No routing operation should be allowed between setMode() and setPhoneState() when starting a call as the audio HAL relies on a precise sequence of mode change and routing change to select the initial audio device for the call. Bug: 24083591. Change-Id: I2d5ef62c11cf7aedc2ec7ca5e5fadd7ac875afbc
ervice/AudioPolicyInterfaceImpl.cpp
|
74ce88ff0f24a8c08fdab3a1140212183089c2b5 |
23-Sep-2015 |
Eric Laurent <elaurent@google.com> |
AudioPolicyService: fix race in AudioCommandThread Fixe race condition in AudioCommandThread::threadLoop() where a command can be inserted in first position in the queue after the sleep time has been calculated causing a longer delay than expected. Also fix a failure to hold a wake lock while commands are still in the queue. Bug: 22707905. Change-Id: I813626986677bf00106acb37ee20d3dd75d5cf33
ervice/AudioPolicyService.cpp
|
d90d042269d174104cbcddb078f835296571cf87 |
16-Oct-2015 |
Eric Laurent <elaurent@google.com> |
am adf760b9: am fba67941: am 0eb5a270: Merge "audio policy: fix transition from VoIP to voice call on USB" into mnc-dr-dev * commit 'adf760b98f22597bd0133c67af40d983a3e014c6': audio policy: fix transition from VoIP to voice call on USB
|
9690bf3690c9b720656cebf6da390800e7395213 |
15-Oct-2015 |
Eric Laurent <elaurent@google.com> |
am 27d07a9a: am 26639898: am 0926aab4: Merge "audio policy: fix USB mic selection for VoIP" into mnc-dr-dev * commit '27d07a9a0366bab299a4b08c24e9bc4e94d14ac0': audio policy: fix USB mic selection for VoIP
|
c0a889f766953b657a5e997bc1362661806d3a19 |
14-Oct-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: fix transition from VoIP to voice call on USB Make sure no active capture takes place while in call and the capture device is the same as the call TX device. Bug: 23977713. Change-Id: Ia379d5e626c150ea49f0cdd581c881dbf0b8399d
anagerdefault/AudioPolicyManager.cpp
|
c171c7c47d099a52ade95c3c8d8907bf09bb88fa |
25-Sep-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: fix USB mic selection for VoIP When transitioning from speaker phone to normal mode and a USB headset is connected, we must force a teardown of active input as the new input device cannot be reached via current input stream. Bug: 24406915. Change-Id: I9f7c1d3f3cba285c25a6da1d54a3d15a5c1f378a
anagerdefault/AudioPolicyManager.cpp
|
f63ae125ca8fc9e430694413b701d3667f3fd63a |
24-Sep-2015 |
Eric Laurent <elaurent@google.com> |
am 3d036a8f: am 8c8d9779: am 45fd99a3: Merge "audio policy: fix preemtible capture race" into mnc-dr-dev * commit '3d036a8f4ce9ba2a07593b21ef63d83c8a43816e': audio policy: fix preemtible capture race
|
45fd99a31d09f247c72f456a9d569d7326a95894 |
24-Sep-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix preemtible capture race" into mnc-dr-dev
|
0a712e0c7f292821ac7a997a75dbe2388378bed4 |
24-Sep-2015 |
Eric Laurent <elaurent@google.com> |
am 1723a587: am 3d25b023: am 047d97b2: AudioPolicyService: fix race in AudioCommandThread * commit '1723a5879ff1295e6553730e2916e54a88b6222e': AudioPolicyService: fix race in AudioCommandThread
|
047d97b2d046374e2a25c81a984d9cde23f5d781 |
23-Sep-2015 |
Eric Laurent <elaurent@google.com> |
AudioPolicyService: fix race in AudioCommandThread Fixe race condition in AudioCommandThread::threadLoop() where a command can be inserted in first position in the queue after the sleep time has been calculated causing a longer delay than expected. Also fix a failure to hold a wake lock while commands are still in the queue. Bug: 22707905. Change-Id: I813626986677bf00106acb37ee20d3dd75d5cf33
ervice/AudioPolicyService.cpp
|
64265b2fb8f5be63b6c2ad4fcbec9acf74705bc4 |
19-Sep-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: fix preemtible capture race Because a preemtible capture session can preempt another one, we end up in an endless loop situation were each session is allowed to restart after being preempted, thus preempting the other one which restarts and so on. To avoid this situation, we store which audio session was preempted when a particular input started and prevent preemption of this active input by this session. We also inherit sessions from the preempted input to avoid a 3 way preemption loop etc... Bug: 24007220. Change-Id: I0eab5299440ef3ab9e987635dc9a300cf42f2c79
ommon/managerdefinitions/include/AudioInputDescriptor.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
anagerdefault/AudioPolicyManager.cpp
|
fc2c73edef7b0a118634f75cf0ab2f3769ab0462 |
17-Sep-2015 |
Eric Laurent <elaurent@google.com> |
am f150772c: am da132d84: am 4296d7df: Merge "audio policy: bind setMode() and setPhoneState() operations" into mnc-dr-dev * commit 'f150772c994efa5bd80a0def10182c9c2bb2195a': audio policy: bind setMode() and setPhoneState() operations
|
beb07febdc0cae2f43a2008d3bd06b7bb933b19a |
17-Sep-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: bind setMode() and setPhoneState() operations No routing operation should be allowed between setMode() and setPhoneState() when starting a call as the audio HAL relies on a precise sequence of mode change and routing change to select the initial audio device for the call. Bug: 24083591. Change-Id: I2d5ef62c11cf7aedc2ec7ca5e5fadd7ac875afbc
ervice/AudioPolicyInterfaceImpl.cpp
|
4137d521e2be255ee109a6c59a1cd273b9029a4c |
16-Sep-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
am 373c7621: am d3fa3c14: am 20baac2a: Merge "AudioPolicy: don\'t always change ACCESSIBILITY volume" into mnc-dr-dev * commit '373c7621e21f8f15b4514e719030eb9ca7ebcfe6': AudioPolicy: don't always change ACCESSIBILITY volume
|
af20bc26704458eac0ddc23f12b637939b0df7a4 |
15-Sep-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioPolicy: don't always change ACCESSIBILITY volume Only change the volume for AUDIO_STREAM_ACCESSIBILITY when changing the media volume. Bug 23366575 Change-Id: Ic42c726ec4d47615c20500c20e4d43cef159b3c6
anagerdefault/AudioPolicyManager.cpp
|
c5aa679da8a249246562afe2b0df0aedd921d2a0 |
14-Sep-2015 |
Eric Laurent <elaurent@google.com> |
am 4df558eb: am c0bdf755: am f00b70e0: Merge "Force fixed volume for TTS stream" into mnc-dr-dev * commit '4df558eb60e0b70dc2f89cfed2cc2359275b890b': Force fixed volume for TTS stream
|
b9017af21e097ef12867e0d4b72c432579f29674 |
11-Sep-2015 |
Eric Laurent <elaurent@google.com> |
Force fixed volume for TTS stream Always play Transmitted Through Speaker stream at max volume instead of tracking media stream volume. Bug: 23729461. Change-Id: I61021f59617bb851a4cd7da80924e587029e96a3
nginedefault/src/Gains.cpp
|
b367f5b2de343bfd9040028b00acb96567f30bea |
25-Aug-2015 |
Ravi Kumar Alamanda <ralama@codeaurora.org> |
audiopolicy: do not update channelMask for voice input source It's not needed to update the channel mask based on source because the source is sent to audio HAL through set_parameters() and if source equal to VOICE_CALL does not mean that two channels need to capture. If recorder app selects AMR as encoding format but source as RX+TX means both RX and TX are captured in ONE channel. So use channels set by the app and use source for the type of capture (RX only, TX only, or RX+TX). Bug: 23484531 Change-Id: Iedf23318356480ba939fc06df4ae4f12906322b3
anagerdefault/AudioPolicyManager.cpp
|
125902529aed131abc00210c36dc9ff03d9e8120 |
22-Aug-2015 |
Eric Laurent <elaurent@google.com> |
audio policy service: check registerClient() input parameter Bug: 21523339. Change-Id: I1d1ebd54fa7b20ae01d914bb216bf3dd24fc32cd
ervice/AudioPolicyService.cpp
|
a09f8cf8c76fa946c4b91be059b420941abcdc3b |
14-Aug-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: refine TTS stream mute management" into mnc-dr-dev
|
9459fb087c97c3cad66221821eb32755fdb9c9f5 |
13-Aug-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: refine TTS stream mute management Do not mute the TTS stream if a dedicated output for TTS is available. Bug: 22100304. Change-Id: Ic126100ce1144f765bc0ae42c8ea87fa47cfb822
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
82db269d4797cb9909988b723d91fa2094a74b38 |
07-Aug-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: protect capture from telephony RX path. Add permission check if the capture device selected is telephony RX path. Bug: 23017158. Change-Id: Iaa34d836e6cf46b7cbbf2483fcd4306dcd27ce90
udioPolicyInterface.h
anagerdefault/AudioPolicyManager.cpp
ervice/AudioPolicyInterfaceImpl.cpp
|
45aabc3578f2362b82f5a425d44e75d4266b1c8c |
06-Aug-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: populate attributes for attached capture devices Populate supported sampling rates, channel masks and formats when enumerating attached build in capture devices. Having this information for build-in mic is important for some applications. Bug: 22729461. Change-Id: I93f03296447a87c10f2615fa1b1c45e9879b4aa7
anagerdefault/AudioPolicyManager.cpp
|
5de234b29141334c1bb5e40bc19c11836848841b |
21-Jul-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
Prevent notifications from muting accessibility prompts When evaluating on which device a sound is to be played, the policy must consider which current routing strategy, if any, has priority for overriding the choice. Here the playback of notifications, when duplicated over speaker and headphones, was causing the accessibility prompt to be muted because the it was of a higher priority, and incompatible with the accessibility routing. The fix consists in assigning a higher priority to the accessbility routing strategy over the notification routing strategy. Bug 18834451 Change-Id: I8228b30a7d80bd61d1c223afb030d9421d4f33cf
anagerdefault/AudioPolicyManager.cpp
|
0489aa0a7a9930a155022cac97242eb7ec610cdc |
24-Jun-2015 |
François Gaffie <francois.gaffie@intel.com> |
Update Policy PFW plugin makefile for PFW release 2.6.0 This patch updates the Policy PFW plugin with latest change within PFW. It makes use of the dynamic xmlserializer library and does not need anymore to link against xmlserializer library dependencies. Change-Id: Ic7b912929a69d3906a34999c1ae25ddb9ac800e5 Signed-off-by: François Gaffie <francois.gaffie@intel.com> Bug 246391
ngineconfigurable/parameter-framework/plugin/Android.mk
|
7c1ec5f038e63a5eb8b04434577c25bc23f5f410 |
09-Jul-2015 |
Eric Laurent <elaurent@google.com> |
audio: several fixes in audio routing callbacks - audio policy: Force device change to ensure new audio patch creation upon first track activity on a given output. Fix function device_distinguishes_on_address() which could mistake some output device with remote submix input device. - audio flinger: Reduce number of binder calls upon new client registration by only sending ioConfigChanged() callbacks to newly registered client. Fix first patch after output thread creation not triggering an ioConfigChanged() callback. -audio system: Force client registration upon routing callback installation to force new ioConfigChanged() callback from audio flinger. Bug: 22381136. Change-Id: Ieb0d9f92f563a40552eb31bc0499c8ac65f78ce4
ommon/include/policy.h
anagerdefault/AudioPolicyManager.cpp
|
54c0659b9efa72d11997c590c4d377c44789c7fd |
08-Jul-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: session route: move SessionRoute to common Move the SessionRoute and SessionRouteMap inner class from policy manager to common policy pillars as initiated by the refactor. This code was added at teh wrong place by commit aa981194. Bug: 22376521. Change-Id: I29aca21614e409c59aae4b7b14163552fb0bffb1 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/SessionRoute.h
ommon/managerdefinitions/src/SessionRoute.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
9a7d922796c61353e30cea5878f41b921adc79b0 |
03-Jul-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: add support for device combo with speaker safe 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
ommon/include/Volume.h
nginedefault/src/Engine.cpp
|
e59c6a33e724579f4b8ac76586e6f667fa0b8572 |
07-Jul-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix regression in incall notification management" into mnc-dev
|
75bd29fde03953952804215d1f24d8dffaeda763 |
06-Jul-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio: add definitions for devices connected over IP" into mnc-dev
|
b9d73333cce3f9da3a7a0b33589f6bbe0f992a92 |
01-Jul-2015 |
Eric Laurent <elaurent@google.com> |
audio: add definitions for devices connected over IP Bug: 22068684. Change-Id: Idde0eaf7121d2e43f32eee3e6b10e99d8cff4912
ommon/managerdefinitions/include/ConfigParsingUtils.h
|
f60b6b6c776a762827874f6f635c0577359a7ee4 |
06-Jul-2015 |
Glenn Kasten <gkasten@google.com> |
Fix build warning Change-Id: I876edc37fb2093ee13c876c2af5c46512763154d
ervice/AudioPolicyService.cpp
|
63dea1d5334acf3baa9448086dd504ead57d814b |
03-Jul-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: fix regression in incall notification management Commit 2110e04c introduced a regression preventing ongoing alarms to be restored when exiting a call and leaving the replacement tone playing for ever. Also add missing management of accessibility prompts when entering a call. Bug: 21857005. Change-Id: I4295c791c003db42c0fba9f618e51f60438158d1
anagerdefault/AudioPolicyManager.cpp
|
6631424f66253c4bad94618fa078c97715a65fbc |
02-Jul-2015 |
Ravi Kumar Alamanda <ralama@codeaurora.org> |
audiopolicy: Update flag enum tables for the new flags Without an entry in sOutputFlagNameToEnumTable or sInputFlagNameToEnumTable, a profile with specific output/input flag in the audio_policy.conf will not be detected by AudioPolicyManager. Bug: 19230391 Change-Id: I94bb3594e2eb8b57747b474a253da3551263c59a
ommon/managerdefinitions/include/ConfigParsingUtils.h
|
6705edd4e58c4fcff0cbbff30bacffa561759ba8 |
27-Jun-2015 |
Eric Laurent <elaurent@google.com> |
Merge "reduce number of binder calls from mediaserver" into mnc-dev
|
e8726fea8a53bf3474aa3c6deaf2f6c1f565e694 |
26-Jun-2015 |
Eric Laurent <elaurent@google.com> |
reduce number of binder calls from mediaserver Reduce the number of audio port, audio patch and IO config changed binder calls from mediaserver to client processes: - Do not call IO config changed callback if selected device is the same as previously selected one on a given audio flinger playback or capture thread. - Do not call the audio port or audo patch list update callback on a client if this client as no listener registered. Bug: 22045560. Change-Id: If780e105404de79b7cb5c80c27b793ceb6b1c423
ervice/AudioPolicyService.cpp
ervice/AudioPolicyService.h
|
cc750d3604b33a92374253b12dd739dc06440aad |
25-Jun-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: fix several device descriptor issues. - checkOutputsForDevice() should only clear device descriptor attributes if the device is digital. - checkInputsForDevice() did not clear device descriptor attributes at all. - AudioPort::clearCapabilities() and importAudioPort() should not manage gains as these are device specific. - importAudioPort() should load a default port config. Bug: 21990937. Change-Id: Ida762ed8f9baaabae392cb4291eff1a8d3009751
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/DeviceDescriptor.h
ommon/managerdefinitions/src/AudioPort.cpp
ommon/managerdefinitions/src/DeviceDescriptor.cpp
anagerdefault/AudioPolicyManager.cpp
|
c764de34b37abb05f7ff25fa5f8d540505bb8645 |
19-Jun-2015 |
Paul McLean <pmclean@google.com> |
Merge "Fixing no rates, chans & encodings on input devices for device enum API. Filtering digital attributes for non-digital audio devices." into mnc-dev
|
9080a4cd8c4e22ddae0350c0c51a20cea1a41016 |
18-Jun-2015 |
Paul McLean <pmclean@google.com> |
Fixing no rates, chans & encodings on input devices for device enum API. Filtering digital attributes for non-digital audio devices. Bug: 21876072 21903975 Change-Id: Ia5c81a8160f4b4ebf5941dd0c5dfb68d01699ca6
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
91b0018d658a509aacceddf9cde84afca591d014 |
19-Jun-2015 |
Eric Laurent <elaurent@google.com> |
Merge "Bug fix on Engine Configurable" into mnc-dev
|
46d8eb1aa167c8811554cded6640cb6f153b5021 |
19-Jun-2015 |
Eric Laurent <elaurent@google.com> |
Merge "Add a configurable version of the policy engine based on PFW" into mnc-dev
|
fa907d4ee326c7bb9cbb4882ab7c0ec42bbceee3 |
18-Jun-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audiopolicy: Add AUDIO_OUTPUT_FLAG_TTS to flags enum table" into mnc-dev
|
0f17ab7f9fac4327a8772e9199f411af7df912a4 |
13-May-2015 |
François Gaffie <francois.gaffie@intel.com> |
Bug fix on Engine Configurable This patch fixes a couple of issue within audio policy engine configurable -valgrind error detected within the parsing of the configuration file -configuration file typos -start of the PFW delayed to the init in order to wait the full construction of the engine object -wrong specialization of template functions. -broadcast volume min / max init to stream collection of manager & PFW Change-Id: I08823ab4040c92b719747c60cc3fa5c8b5f172ac Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ngineconfigurable/parameter-framework/plugin/PolicySubsystem.cpp
ngineconfigurable/src/Engine.cpp
ngineconfigurable/wrapper/ParameterManagerWrapper.cpp
ngineconfigurable/wrapper/config/audio_policy_criteria.conf
|
20f06f996337c9bf79d0b112083f6427a122ebab |
24-Mar-2015 |
François Gaffie <francois.gaffie@intel.com> |
Add a configurable version of the policy engine based on PFW This patch adds a configurable version of the policy engine based on the parameter framework. This configurable engine shall be activated with a flag USE_CONFIGURABLE_AUDIO_POLICY within BoardConfig.mk This patch provides the generic configuration as an example. This configuration provides the same user experience as the default policy engine. - Fix M Issue on configurable policy engine version. - Remove the "empty static lib include trick" hack The code was using a hack to import headers only through an empty lib. This trick was used not only by the PFW and its plugin but also internally with policy. This patch removes this hack and either links againts the real libraries if exist or point on the path of the header. However, since header directories are not recursively detected on Andoid, we need to manually add all necessary libraries. (for example libicuuc needed by libxml2) - let the build system decide which compiler and which stl is to be used - Disable by default Audio Policy Settings XML file generation at compilation time In order not to depend on python tool for the configurable policy example, this patch adds the generated Settings XML file and disables the generation from .pfw files at compile time. If the user wishes to regenerate it, he may use the pfw_rebuild_settings option. - Fix Clang issues within Configurable Audio Policy Fix compilation issues revealed when switching to CLANG compiler within the configurable version of policy engine. Change-Id: I3edc26db94c0bf8a76430ab8081bae52e9193705 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ndroid.mk
ngine/interface/AudioPolicyManagerInterface.h
ngineconfigurable/Android.mk
ngineconfigurable/include/AudioPolicyEngineInstance.h
ngineconfigurable/include/EngineDefinition.h
ngineconfigurable/interface/AudioPolicyPluginInterface.h
ngineconfigurable/parameter-framework/Android.mk
ngineconfigurable/parameter-framework/example/Android.mk
ngineconfigurable/parameter-framework/example/ParameterFrameworkConfigurationPolicy.xml
ngineconfigurable/parameter-framework/example/README.md
ngineconfigurable/parameter-framework/example/Settings/PolicyConfigurableDomains.xml
ngineconfigurable/parameter-framework/example/Settings/device_for_input_source.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_accessibility.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_dtmf.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_enforced_audible.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_media.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_phone.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_rerouting.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_sonification.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_sonification_respectful.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_transmitted_through_speaker.pfw
ngineconfigurable/parameter-framework/example/Settings/strategy_for_stream.pfw
ngineconfigurable/parameter-framework/example/Settings/strategy_for_usage.pfw
ngineconfigurable/parameter-framework/example/Settings/volumes.pfw
ngineconfigurable/parameter-framework/example/Structure/PolicyClass.xml
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem-CommonTypes.xml
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem-Volume.xml
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem.xml
ngineconfigurable/parameter-framework/example/policy_criteria.txt
ngineconfigurable/parameter-framework/plugin/Android.mk
ngineconfigurable/parameter-framework/plugin/InputSource.cpp
ngineconfigurable/parameter-framework/plugin/InputSource.h
ngineconfigurable/parameter-framework/plugin/PolicyMappingKeys.h
ngineconfigurable/parameter-framework/plugin/PolicySubsystem.cpp
ngineconfigurable/parameter-framework/plugin/PolicySubsystem.h
ngineconfigurable/parameter-framework/plugin/PolicySubsystemBuilder.cpp
ngineconfigurable/parameter-framework/plugin/Strategy.cpp
ngineconfigurable/parameter-framework/plugin/Strategy.h
ngineconfigurable/parameter-framework/plugin/Stream.cpp
ngineconfigurable/parameter-framework/plugin/Stream.h
ngineconfigurable/parameter-framework/plugin/Usage.cpp
ngineconfigurable/parameter-framework/plugin/Usage.h
ngineconfigurable/parameter-framework/plugin/VolumeProfile.cpp
ngineconfigurable/parameter-framework/plugin/VolumeProfile.h
ngineconfigurable/src/Collection.h
ngineconfigurable/src/Element.h
ngineconfigurable/src/Engine.cpp
ngineconfigurable/src/Engine.h
ngineconfigurable/src/EngineInstance.cpp
ngineconfigurable/src/InputSource.cpp
ngineconfigurable/src/InputSource.h
ngineconfigurable/src/Strategy.cpp
ngineconfigurable/src/Strategy.h
ngineconfigurable/src/Stream.cpp
ngineconfigurable/src/Stream.h
ngineconfigurable/src/Usage.cpp
ngineconfigurable/src/Usage.h
ngineconfigurable/wrapper/Android.mk
ngineconfigurable/wrapper/ParameterManagerWrapper.cpp
ngineconfigurable/wrapper/audio_policy_criteria_conf.h
ngineconfigurable/wrapper/config/audio_policy_criteria.conf
ngineconfigurable/wrapper/include/ParameterManagerWrapper.h
tilities/convert/convert.h
|
e8d55a5d1f6b08cfdabea7628e956063a47fa160 |
18-Jun-2015 |
Ravi Kumar Alamanda <ralama@codeaurora.org> |
audiopolicy: Add AUDIO_OUTPUT_FLAG_TTS to flags enum table Without an entry in sOutputFlagNameToEnumTable, a profile with specific output flag in the audio_policy.conf will not be detected by AudioPolicyManager. Change-Id: Id242e6819aab1a67d72c564f3cc39af3de8e1ef7
ommon/managerdefinitions/include/ConfigParsingUtils.h
|
3fc792fe36b0b9100f74185665221b37f650ff65 |
18-Jun-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix explicit routing and accessibility" into mnc-dev
|
bd1c3e36767d08813b912028e69a8b7fed315ea2 |
12-Jun-2015 |
Andy Hung <hunga@google.com> |
Merge "audiopolicy: use deep buffer output by default for music streams" into mnc-dev
|
439e4ed408c21bd65711d279bd5251cef7e83440 |
03-Apr-2015 |
Ravi Kumar Alamanda <ralama@codeaurora.org> |
audiopolicy: use deep buffer output by default for music streams Default disabled. This is enabled by adb shell setprop audio.deep_buffer.media 1 Applications that use AudioTrack java interface for audio rendering defaults to primary output as flags indicated as FLAG_NONE. If the primary output is low latency output, it results higher power consumption than deep-buffer path if used. Make the deep buffer output as default option for music streams if flags are not specified. It may also be used for testing audio glitches from heavy CPU or DRM which may cause issues with the FastMixer. Bug: 21198655 Bug: 21785618 Change-Id: I909c296ddcf4484b9a877ef1c0230ea58537e06a
anagerdefault/AudioPolicyManager.cpp
|
093a20cbe70d0033c085ef7be90b9f1bbacb3335 |
11-Jun-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: fix explicit routing and accessibility If a session has an active explicit routing request, this routing must also be applied to accessibility prompts if accessibility usage is currrently remapped to the strategy used by this session. Bug: 20873151. Change-Id: I97c6ece98cf1af9c64c2d2eb1fe382c7c0d657b4
anagerdefault/AudioPolicyManager.cpp
|
e1c3cf01a58e45ec3784a1e877e16ce9ef7f6d1c |
10-Jun-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: route media to BT SCO in call" into mnc-dev
|
72249d5b2f9f42a96c0e0825431e8f3f49b82644 |
08-Jun-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: fix very verbose log build. Change-Id: I94a69207059d8010ded14bce5d6e39c3f3074649
anagerdefault/AudioPolicyManager.cpp
|
a20d4fa431d1091abf66f9d426ef0cf441db6623 |
05-Jun-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: route media to BT SCO in call Allow media (and Navigation instructions) to be routed to BT SCO in call. Bug: 18986190. Change-Id: I1fa4decfbf035623fdcc8681b53cbd61e1d5f933
nginedefault/src/Engine.cpp
|
08945c44a97d3749cc48f860eb4e01e57183ad90 |
01-Jun-2015 |
Andy Hung <hunga@google.com> |
Add property to control audio offload with video content Property audio.offload.video normally disabled (set to 1 to enable) Bug: 21198655 Change-Id: Ib1c457b1e3950f18d91b855424aa80bd23c723b0
anagerdefault/AudioPolicyManager.cpp
|
6374077319a2d060eefe5f4bf425aed37f90c5d0 |
22-May-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: add checks on primary output" into mnc-dev
|
87ffa39d29d1803b48237888a9fbf3d5f2c60c21 |
22-May-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: add checks on primary output Check if primary output has been initialized before using it. The primary output may not be initialized either due to HAL failure or on devices without telephony. Bug: 19573336. Change-Id: Id1fc3ed588268e1232b43d1e6235254d2f1a71d0
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
861a628adbcbe7c3baa6eab1b765b87b480ff4a2 |
19-May-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: fix direct output profile selection Fix logic in AudioPolicyManager::getProfileForDirectOutput() to select the direct output with most matching flags and not just the first compatible one. Also fixes issue 17783395 which was fixed by commit f7bc29b02 in lmp-tv-dev branch only but in a way that caused a regression for HW A/V sync (issue 19384172). Also removed duplicated code lines in getOutputForDevice() Bug: 20819715. Bug: 17783395. Bug: 19384172. Change-Id: I7fc793b37f9b53fabd92cab6b884ef85cfdafee4
anagerdefault/AudioPolicyManager.cpp
|
d9f493ebcd1830c76d7b1782e64c7ba9ad8ab4bd |
12-May-2015 |
Andy Hung <hunga@google.com> |
Merge "Update sampling rate to 192kHz for devices" into mnc-dev
|
db4c031f518ae5806af73756273ff32cd8d0e4f8 |
06-May-2015 |
Andy Hung <hunga@google.com> |
Update sampling rate to 192kHz for devices Change-Id: I0a83206be51d7ae18ccf85b94b2127356307be69
ommon/include/policy.h
ommon/managerdefinitions/src/AudioPort.cpp
|
fedef1384d5ff758285fb19161a0348e1e32ab3f |
12-May-2015 |
Andy Hung <hunga@google.com> |
Merge "Support channel index masks for output hal" into mnc-dev
|
c36a8897ff877f4c5b2e0580830faef8b87dd74a |
25-Apr-2015 |
Ravi Kumar Alamanda <ralama@codeaurora.org> |
audiopolicy: Use AUDIO_OUTPUT_FLAG_TTS for TTS stream Use AUDIO_OUTPUT_FLAG_TTS by default for TTS stream to see if the HW supports a dedicated output for the same. If not, fallback to primary output as it is done currently. Change-Id: Ifb2ef7066e75c61fe4c1b9783c12627386a00ea5
anagerdefault/AudioPolicyManager.cpp
|
a9b84966942fc4e7ab100376a4c5c41271fede8e |
07-May-2015 |
Dan Albert <danalbert@google.com> |
Kill a new user of stlport. Bug: http://b/15193147 Change-Id: I20d21a040f0c2c6c291053fe02fdf82e33ed56a0 (cherry picked from commit 1b5a73358b72b8ff1bee05cc44d94b47b73ede44)
nginedefault/Android.mk
|
49822fe2aa38cab4a8cdf2221480181ae7a5f9d0 |
07-May-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: clarify use of mName field for audio devices" into mnc-dev
|
7288ab87a7aa730ffe97d7dc7e118123107bfcea |
07-May-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: clarify use of mName field for audio devices The audio port field mName was used for two different purposes which caused a problem when exposing this information at the SDK API. Create a new "mTag" field storing the audio_policy.conf device tag if needed. Field "mName" is now used to store any additional name associated to a given device when available (e.g Manufacturer and model name for a USB device). Change-Id: I17fa872e4a3a2e1b7cbb807c6f72e095a8a2c9c5
ommon/managerdefinitions/include/DeviceDescriptor.h
ommon/managerdefinitions/src/ConfigParsingUtils.cpp
ommon/managerdefinitions/src/DeviceDescriptor.cpp
ommon/managerdefinitions/src/HwModule.cpp
anagerdefault/AudioPolicyManager.cpp
|
5603d28707ef0f19b2b915756809424698e93d9c |
05-May-2015 |
Chih-Hung Hsieh <chh@google.com> |
Make header functions "inline" to avoid warning when unused. Change-Id: Iefac44f3c0e1c3fd4b19833d9692744100f92e00 (cherry picked from commit 5e9febef197a9852c833a0aedc6bfee179c4ae9e)
ommon/include/policy.h
|
18aa27016a94d0fee243637a80fd0741f89e08f2 |
06-May-2015 |
Andy Hung <hunga@google.com> |
Support channel index masks for output hal Change-Id: Ib3e61ff6faf91c71b85102b5d77f90f124c08220
ommon/managerdefinitions/src/AudioPort.cpp
|
5f9bf49397b36ad4ebd838aef66b83e9e9fa42bc |
30-Apr-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: session routes continued." into mnc-dev
|
8c7e6dac6f5eb38cef627dab92eac8b38513450c |
22-Apr-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: session routes continued. - Clear session routes when client process dies. - Enforce the route only when the requesting session is active. - Fix requested route not working if an output mix change is required (e.g forcing to SPEAKER when the default route is USB or A2DP). - Make sure all sessions sharing the strategy with a rerouted session have the same route (needed for volume control consistency) Change-Id: I0ab347a8fb97e73e2c5965374544c5f4fe509ef1
udioPolicyInterface.h
ommon/managerdefinitions/src/AudioPolicyMix.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
ervice/AudioPolicyInterfaceImpl.cpp
ervice/AudioPolicyInterfaceImplLegacy.cpp
ervice/AudioPolicyService.cpp
ervice/AudioPolicyService.h
|
d641af3e9faf6c053ccbeea1bc20790021e57a11 |
30-Apr-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "AudioSystem callback for dynamic policy mix activity" into mnc-dev
|
f613d42b12389335b2ecf06df18d0d095d6bfd44 |
24-Apr-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioSystem callback for dynamic policy mix activity Add method to AudioPolicyServiceClient for dynamic policy mix activity notification. Propagate notification to a dedicated callback. Bug 20226914 Change-Id: I37928ed38e15ea2b8fed022cccadeca8c4d6c876
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
anagerdefault/AudioPolicyManager.cpp
|
be71aa29a3c86d2e01cd17839d2a72ab09a1bce5 |
28-Apr-2015 |
Svet Ganov <svetoslavganov@google.com> |
Respect the record audio app op - media Change-Id: I3a97977b6e9a09355e2008f780d22d480fb7308b
ervice/AudioPolicyEffects.cpp
|
466dc8ed6ca6b7f585104806c48613dd34e608c9 |
17-Apr-2015 |
Paul McLean <pmclean@google.com> |
Explicit routing in AudioRecord Change-Id: I9cc5d54883a3e5c75d553fabb619fc8e49f4f9e5
udioPolicyInterface.h
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
ervice/AudioPolicyInterfaceImpl.cpp
ervice/AudioPolicyInterfaceImplLegacy.cpp
ervice/AudioPolicyService.h
|
6fc6a64fa3b0a9e4577eb763590f531c0a50a27b |
25-Apr-2015 |
Eric Laurent <elaurent@google.com> |
Revert "Add a configurable version of the policy engine based on PFW" This reverts commit 65c3781db3443531deacecfbda5c7e7e82868a34. Change-Id: Ib61cd70f97c4c4f4b503fb845643627d6896f4f9
ndroid.mk
ngine/interface/AudioPolicyManagerInterface.h
ngineconfigurable/Android.mk
ngineconfigurable/include/AudioPolicyEngineInstance.h
ngineconfigurable/include/EngineDefinition.h
ngineconfigurable/interface/AudioPolicyPluginInterface.h
ngineconfigurable/parameter-framework/Android.mk
ngineconfigurable/parameter-framework/example/Android.mk
ngineconfigurable/parameter-framework/example/ParameterFrameworkConfigurationPolicy.xml
ngineconfigurable/parameter-framework/example/README.md
ngineconfigurable/parameter-framework/example/Settings/device_for_input_source.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_accessibility.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_dtmf.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_enforced_audible.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_media.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_phone.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_rerouting.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_sonification.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_sonification_respectful.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_transmitted_through_speaker.pfw
ngineconfigurable/parameter-framework/example/Settings/strategy_for_stream.pfw
ngineconfigurable/parameter-framework/example/Settings/strategy_for_usage.pfw
ngineconfigurable/parameter-framework/example/Settings/volumes.pfw
ngineconfigurable/parameter-framework/example/Structure/PolicyClass.xml
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem-CommonTypes.xml
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem-Volume.xml
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem.xml
ngineconfigurable/parameter-framework/example/policy_criteria.txt
ngineconfigurable/parameter-framework/plugin/Android.mk
ngineconfigurable/parameter-framework/plugin/InputSource.cpp
ngineconfigurable/parameter-framework/plugin/InputSource.h
ngineconfigurable/parameter-framework/plugin/PolicyMappingKeys.h
ngineconfigurable/parameter-framework/plugin/PolicySubsystem.cpp
ngineconfigurable/parameter-framework/plugin/PolicySubsystem.h
ngineconfigurable/parameter-framework/plugin/PolicySubsystemBuilder.cpp
ngineconfigurable/parameter-framework/plugin/Strategy.cpp
ngineconfigurable/parameter-framework/plugin/Strategy.h
ngineconfigurable/parameter-framework/plugin/Stream.cpp
ngineconfigurable/parameter-framework/plugin/Stream.h
ngineconfigurable/parameter-framework/plugin/Usage.cpp
ngineconfigurable/parameter-framework/plugin/Usage.h
ngineconfigurable/parameter-framework/plugin/VolumeProfile.cpp
ngineconfigurable/parameter-framework/plugin/VolumeProfile.h
ngineconfigurable/src/Collection.h
ngineconfigurable/src/Element.h
ngineconfigurable/src/Engine.cpp
ngineconfigurable/src/Engine.h
ngineconfigurable/src/EngineInstance.cpp
ngineconfigurable/src/InputSource.cpp
ngineconfigurable/src/InputSource.h
ngineconfigurable/src/Strategy.cpp
ngineconfigurable/src/Strategy.h
ngineconfigurable/src/Stream.cpp
ngineconfigurable/src/Stream.h
ngineconfigurable/src/Usage.cpp
ngineconfigurable/src/Usage.h
ngineconfigurable/wrapper/Android.mk
ngineconfigurable/wrapper/ParameterManagerWrapper.cpp
ngineconfigurable/wrapper/audio_policy_criteria_conf.h
ngineconfigurable/wrapper/config/audio_policy_criteria.conf
ngineconfigurable/wrapper/include/ParameterManagerWrapper.h
tilities/Android.mk
tilities/convert/Android.mk
tilities/convert/convert.h
|
65c3781db3443531deacecfbda5c7e7e82868a34 |
24-Mar-2015 |
François Gaffie <francois.gaffie@intel.com> |
Add a configurable version of the policy engine based on PFW This patch adds a configurable version of the policy engine based on the parameter framework. This configurable engine shall be activated with a flag USE_CONFIGURABLE_AUDIO_POLICY within BoardConfig.mk This patch provides the generic configuration as an example. This configuration provides the same user experience as the default policy engine. Change-Id: Ic8217333ae370b89bfdd2ad11320c5f14ea4da34 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
ndroid.mk
ngine/interface/AudioPolicyManagerInterface.h
ngineconfigurable/Android.mk
ngineconfigurable/include/AudioPolicyEngineInstance.h
ngineconfigurable/include/EngineDefinition.h
ngineconfigurable/interface/AudioPolicyPluginInterface.h
ngineconfigurable/parameter-framework/Android.mk
ngineconfigurable/parameter-framework/example/Android.mk
ngineconfigurable/parameter-framework/example/ParameterFrameworkConfigurationPolicy.xml
ngineconfigurable/parameter-framework/example/README.md
ngineconfigurable/parameter-framework/example/Settings/device_for_input_source.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_accessibility.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_dtmf.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_enforced_audible.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_media.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_phone.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_rerouting.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_sonification.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_sonification_respectful.pfw
ngineconfigurable/parameter-framework/example/Settings/device_for_strategy_transmitted_through_speaker.pfw
ngineconfigurable/parameter-framework/example/Settings/strategy_for_stream.pfw
ngineconfigurable/parameter-framework/example/Settings/strategy_for_usage.pfw
ngineconfigurable/parameter-framework/example/Settings/volumes.pfw
ngineconfigurable/parameter-framework/example/Structure/PolicyClass.xml
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem-CommonTypes.xml
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem-Volume.xml
ngineconfigurable/parameter-framework/example/Structure/PolicySubsystem.xml
ngineconfigurable/parameter-framework/example/policy_criteria.txt
ngineconfigurable/parameter-framework/plugin/Android.mk
ngineconfigurable/parameter-framework/plugin/InputSource.cpp
ngineconfigurable/parameter-framework/plugin/InputSource.h
ngineconfigurable/parameter-framework/plugin/PolicyMappingKeys.h
ngineconfigurable/parameter-framework/plugin/PolicySubsystem.cpp
ngineconfigurable/parameter-framework/plugin/PolicySubsystem.h
ngineconfigurable/parameter-framework/plugin/PolicySubsystemBuilder.cpp
ngineconfigurable/parameter-framework/plugin/Strategy.cpp
ngineconfigurable/parameter-framework/plugin/Strategy.h
ngineconfigurable/parameter-framework/plugin/Stream.cpp
ngineconfigurable/parameter-framework/plugin/Stream.h
ngineconfigurable/parameter-framework/plugin/Usage.cpp
ngineconfigurable/parameter-framework/plugin/Usage.h
ngineconfigurable/parameter-framework/plugin/VolumeProfile.cpp
ngineconfigurable/parameter-framework/plugin/VolumeProfile.h
ngineconfigurable/src/Collection.h
ngineconfigurable/src/Element.h
ngineconfigurable/src/Engine.cpp
ngineconfigurable/src/Engine.h
ngineconfigurable/src/EngineInstance.cpp
ngineconfigurable/src/InputSource.cpp
ngineconfigurable/src/InputSource.h
ngineconfigurable/src/Strategy.cpp
ngineconfigurable/src/Strategy.h
ngineconfigurable/src/Stream.cpp
ngineconfigurable/src/Stream.h
ngineconfigurable/src/Usage.cpp
ngineconfigurable/src/Usage.h
ngineconfigurable/wrapper/Android.mk
ngineconfigurable/wrapper/ParameterManagerWrapper.cpp
ngineconfigurable/wrapper/audio_policy_criteria_conf.h
ngineconfigurable/wrapper/config/audio_policy_criteria.conf
ngineconfigurable/wrapper/include/ParameterManagerWrapper.h
tilities/Android.mk
tilities/convert/Android.mk
tilities/convert/convert.h
|
7d7ea036436320b03bef826d78c4c035b67edbd0 |
24-Apr-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "AudioPolicyManager: notification of dynamic policy mix activity (input)"
|
138f77425a0956d867f078881f91628518ae8258 |
22-Apr-2015 |
Andy Hung <hunga@google.com> |
Fix format sorting order in AudioPort Otherwise AUDIO_FORMAT_DEFAULT (used for dynamic formats) is no longer the first entry. Change-Id: I23869a9ca2ed138759d722e7c9838497f640921a
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/src/AudioPort.cpp
|
f27e2fbfc3284c00a60fa68edc51d436f75b1e32 |
20-Apr-2015 |
Andy Hung <hunga@google.com> |
Add channel index record to AudioPolicyManager Change-Id: Ic534bee084108a68c7818600df6e1c9dc9258a0d
ommon/managerdefinitions/include/ConfigParsingUtils.h
ommon/managerdefinitions/src/AudioPort.cpp
|
493404d8c396e15ed73455acd39aa0f1940996e2 |
22-Apr-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: fix AudioTrack output device selection Have AudioTrack::setOutputDevice() set CBLK_INVALID flag instead of calling restoreTrack_l(). This allows restoreTrack_l() to be called in a safe context. Allow device change while the AudioTrack is active by forcing a new device selection in startOutput() if the output route for this session was changed. Remove some warnings. Change-Id: I2d921a63c9bfa0e122233645e2d6d39f95f5f17d
ommon/managerdefinitions/src/DeviceDescriptor.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
2b0c1fc0d0ad3744a32d48234f255d82a5c80ded |
16-Apr-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioPolicyManager: notification of dynamic policy mix activity (input) Use ref counting on start/stop inputs to notify audio policy client of mix activity changes. Bug 20226914 Change-Id: Ic4f9c91301d0bcbc0ff749acebdc3b2300309c38
anagerdefault/AudioPolicyManager.cpp
|
a7401cc5e781da150b46e7ae37905ab9ca2aa758 |
21-Apr-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: remove permission check for ports and patches getters Remove check for MODIFY_AUDIO_ROUTING permission in audio policy methods just getting devices or patches state. Change-Id: Id3bafc5ad0d0bd96210822243139898e314327d8
ervice/AudioPolicyInterfaceImpl.cpp
|
554a277d4e42a3d3df3d90ba0e7dfa2d31690e32 |
10-Apr-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: add binder calls for audio source control Add binder methods to IAudioPolicyService to control activity of external audio sources (e.g FM tuner). Change-Id: I2008308a6a996baeae502b68a790d87281efe2ff
udioPolicyInterface.h
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
ervice/AudioPolicyInterfaceImpl.cpp
ervice/AudioPolicyInterfaceImplLegacy.cpp
ervice/AudioPolicyService.h
|
cfdd52423cee9efea73023feeaa74279ebd45b7c |
15-Apr-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "AudioPolicyManager: notification of dynamic policy mix activity"
|
de80105c3f2db0eabd47640c49387ea3b44d4782 |
15-Apr-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioPolicyManager: notification of dynamic policy mix activity Implement non-stream type specific ref counting in output descriptors to keep track of mix activity. Notify audio policy client of mix activity changes. Bug 20226914 Change-Id: Iec939cb640c58056f88947b611d23b4bb6d8a11b
udioPolicyInterface.h
ommon/managerdefinitions/include/AudioOutputDescriptor.h
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ervice/AudioPolicyClientImpl.cpp
ervice/AudioPolicyService.cpp
ervice/AudioPolicyService.h
|
221a33890fa8b3c3c43c94327305b8e7717c412f |
14-Apr-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio polciy: remove FM audio capture permission."
|
ab300c8cbf5df98fddca39e8d1698b0307432152 |
13-Apr-2015 |
Eric Laurent <elaurent@google.com> |
audio polciy: remove FM audio capture permission. Change-Id: I2607d89b0bd87cdd2f4084dfdb55135509a824d5
ervice/AudioPolicyInterfaceImpl.cpp
ervice/AudioPolicyInterfaceImplLegacy.cpp
|
f129b03fa583d4cc26fd9c9171b8fb3b0ed8d4f4 |
07-Apr-2015 |
Andy Hung <hunga@google.com> |
Enable 8 bit and float pcm record formats for AudioPolicyManager Add capability for handling different record channel masks. Change-Id: I63f6b029aca5cefff7adf26198a3b594a7ea2d71
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/IOProfile.h
ommon/managerdefinitions/src/AudioPort.cpp
ommon/managerdefinitions/src/IOProfile.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
b6347ac62b36b4d9578d181ba83bf8e6446298e8 |
09-Apr-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "Fix AudioPolicyManager dynamic policy initialization"
|
dacc06f5e8d00ace9d16a149fc41ff65323ffbb3 |
09-Apr-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
Fix AudioPolicyManager dynamic policy initialization 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
ommon/managerdefinitions/include/AudioPolicyMix.h
ommon/managerdefinitions/src/AudioPolicyMix.cpp
anagerdefault/AudioPolicyManager.cpp
|
ffbc80f5908eaf67a033c6e93a343c39dd6894eb |
19-Mar-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: volume in dBs 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
ommon/include/Volume.h
ommon/managerdefinitions/include/AudioOutputDescriptor.h
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ngine/interface/AudioPolicyManagerInterface.h
nginedefault/src/Engine.cpp
nginedefault/src/Engine.h
nginedefault/src/Gains.cpp
nginedefault/src/Gains.h
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
c75307b73d324d590d0dbc05b44bce9aa89b7145 |
17-Mar-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: volume control reorganization 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
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/AudioOutputDescriptor.h
ommon/managerdefinitions/include/AudioPolicyMix.h
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ommon/managerdefinitions/src/AudioPolicyMix.cpp
ngine/interface/AudioPolicyManagerObserver.h
nginedefault/src/Engine.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
3bcf8597189c592713675ec58326ecbef0ac4ae9 |
03-Apr-2015 |
Eric Laurent <elaurent@google.com> |
audio flinger: improve device to device audio patches Allow creation of audio patches between input and output devices managed by the same audio HW module. Change-Id: I4b83268a4d5c41f3d5905d7581202cf5193efd32
anagerdefault/AudioPolicyManager.cpp
|
322b4d25387a04c9afebe998326d005bbdf17ede |
04-Apr-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: fix unique audio port ID. 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
ommon/managerdefinitions/include/AudioInputDescriptor.h
ommon/managerdefinitions/include/AudioOutputDescriptor.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/ConfigParsingUtils.h
ommon/managerdefinitions/include/DeviceDescriptor.h
ommon/managerdefinitions/include/IOProfile.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ommon/managerdefinitions/src/AudioPatch.cpp
ommon/managerdefinitions/src/AudioPort.cpp
ommon/managerdefinitions/src/ConfigParsingUtils.cpp
ommon/managerdefinitions/src/DeviceDescriptor.cpp
ommon/managerdefinitions/src/HwModule.cpp
ommon/managerdefinitions/src/IOProfile.cpp
nginedefault/src/Engine.cpp
anagerdefault/AudioPolicyManager.cpp
|
6dc4dc4ad23dc82eca9af3112292f3e6d5b17b15 |
08-Apr-2015 |
Paul McLean <pmclean@google.com> |
Merge "Adding explicit routing API to AudioTrack"
|
aa9811945f575614b3482d09e4d969792701cebb |
21-Mar-2015 |
Paul McLean <pmclean@google.com> |
Adding explicit routing API to AudioTrack Change-Id: I40c048c7644c46f4e4f7103875206c0785c4b1dc
udioPolicyInterface.h
ommon/managerdefinitions/include/AudioOutputDescriptor.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/DeviceDescriptor.h
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ommon/managerdefinitions/src/AudioPort.cpp
ommon/managerdefinitions/src/DeviceDescriptor.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
ervice/AudioPolicyInterfaceImpl.cpp
ervice/AudioPolicyInterfaceImplLegacy.cpp
ervice/AudioPolicyService.h
|
7d669b3551c20109f5544455ca1555499693e1e1 |
31-Mar-2015 |
Phil Burk <philburk@google.com> |
audiopolicy: add support for parsing AUDIO_FORMAT_DTS Bug: 18292317 Change-Id: Ic9a15fc09ce32021d12072fb71252d207deac30a Signed-off-by: Phil Burk <philburk@google.com>
ommon/managerdefinitions/include/ConfigParsingUtils.h
|
5c233f8b772719371475624edf1002ed80e1d0e8 |
03-Apr-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioPolicy: remove extraneous parentheses Change-Id: Ibcea37b90cc0aaacb3b6194745bf569edad8992a
nginedefault/src/Engine.cpp
|
887a9ed4446cb451181c392a0e51a69914e58fbf |
01-Apr-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
Updates to AudioPolicyManager refactor 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
ommon/managerdefinitions/include/DeviceDescriptor.h
ommon/managerdefinitions/include/audio_policy_conf.h
ommon/managerdefinitions/src/HwModule.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
2110e04cdfbf9ad85ce154ce5f778ee5ccfc95eb |
24-Mar-2015 |
François Gaffie <francois.gaffie@intel.com> |
Split ManagerDefault into manager and engine 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>
ndroid.mk
ommon/include/RoutingStrategy.h
ommon/managerdefinitions/include/AudioGain.h
ommon/managerdefinitions/src/AudioGain.cpp
ngine/interface/AudioPolicyManagerInterface.h
ngine/interface/AudioPolicyManagerObserver.h
nginedefault/Android.mk
nginedefault/include/AudioPolicyEngineInstance.h
nginedefault/src/Engine.cpp
nginedefault/src/Engine.h
nginedefault/src/EngineInstance.cpp
nginedefault/src/Gains.cpp
nginedefault/src/Gains.h
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
dfd7409c1b708f6c429aa43722ca8493a91d8df0 |
19-Mar-2015 |
François Gaffie <francois.gaffie@intel.com> |
Create StreamDescriptor and associated collection within common 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>
ommon/include/Volume.h
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/AudioGain.h
ommon/managerdefinitions/include/StreamDescriptor.h
ommon/managerdefinitions/src/AudioGain.cpp
ommon/managerdefinitions/src/StreamDescriptor.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
df37269852ea92bafd939fe793209d0581c4a574 |
19-Mar-2015 |
François Gaffie <francois.gaffie@intel.com> |
Create SoundTriggerSession and associated collection within common 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>
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/SoundTriggerSession.h
ommon/managerdefinitions/src/SoundTriggerSession.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
45ed3b053d9af2250f5ece9ee4e826905c3763a7 |
19-Mar-2015 |
François Gaffie <francois.gaffie@intel.com> |
Add EffectDescriptor and associated collection to common elements 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>
ommon/include/RoutingStrategy.h
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/ApmImplDefinitions.h
ommon/managerdefinitions/include/AudioOutputDescriptor.h
ommon/managerdefinitions/include/EffectDescriptor.h
ommon/managerdefinitions/src/EffectDescriptor.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
036e1e9126dcd496203434aa69e52115d8e730cc |
19-Mar-2015 |
François Gaffie <francois.gaffie@intel.com> |
Add AudioMix and AudioMixCollection to common policy element 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>
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/AudioPolicyMix.h
ommon/managerdefinitions/src/AudioPolicyMix.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
53615e29c99c5e9d2ca77aaefd7bf5c770513120 |
19-Mar-2015 |
François Gaffie <francois.gaffie@intel.com> |
Migrate helper functions from managerdefault to common 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>
ndroid.mk
ommon/include/policy.h
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/AudioInputDescriptor.h
ommon/managerdefinitions/include/AudioOutputDescriptor.h
ommon/managerdefinitions/include/AudioPatch.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/ConfigParsingUtils.h
ommon/managerdefinitions/include/DeviceDescriptor.h
ommon/managerdefinitions/include/HwModule.h
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ommon/managerdefinitions/src/AudioPatch.cpp
ommon/managerdefinitions/src/AudioPort.cpp
ommon/managerdefinitions/src/ConfigParsingUtils.cpp
ommon/managerdefinitions/src/DeviceDescriptor.cpp
ommon/managerdefinitions/src/HwModule.cpp
ommon/managerdefinitions/src/IOProfile.cpp
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
|
98cc191247388132b6fd8a4ecd07abd6e4c5a0ed |
18-Mar-2015 |
François Gaffie <francois.gaffie@intel.com> |
Split ManagerDefault into Manager and ManagerDefinitions 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>
ndroid.mk
ommon/Android.mk
ommon/managerdefinitions/Android.mk
ommon/managerdefinitions/include/ApmImplDefinitions.h
ommon/managerdefinitions/include/AudioGain.h
ommon/managerdefinitions/include/AudioInputDescriptor.h
ommon/managerdefinitions/include/AudioOutputDescriptor.h
ommon/managerdefinitions/include/AudioPatch.h
ommon/managerdefinitions/include/AudioPort.h
ommon/managerdefinitions/include/ConfigParsingUtils.h
ommon/managerdefinitions/include/DeviceDescriptor.h
ommon/managerdefinitions/include/HwModule.h
ommon/managerdefinitions/include/IOProfile.h
ommon/managerdefinitions/include/audio_policy_conf.h
ommon/managerdefinitions/src/AudioGain.cpp
ommon/managerdefinitions/src/AudioInputDescriptor.cpp
ommon/managerdefinitions/src/AudioOutputDescriptor.cpp
ommon/managerdefinitions/src/AudioPatch.cpp
ommon/managerdefinitions/src/AudioPort.cpp
ommon/managerdefinitions/src/ConfigParsingUtils.cpp
ommon/managerdefinitions/src/DeviceDescriptor.cpp
ommon/managerdefinitions/src/HwModule.cpp
ommon/managerdefinitions/src/IOProfile.cpp
anagerdefault/ApmImplDefinitions.h
anagerdefault/AudioInputDescriptor.cpp
anagerdefault/AudioInputDescriptor.h
anagerdefault/AudioOutputDescriptor.cpp
anagerdefault/AudioOutputDescriptor.h
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
anagerdefault/ConfigParsingUtils.cpp
anagerdefault/ConfigParsingUtils.h
anagerdefault/Devices.cpp
anagerdefault/Devices.h
anagerdefault/Gains.cpp
anagerdefault/Gains.h
anagerdefault/HwModule.cpp
anagerdefault/HwModule.h
anagerdefault/IOProfile.cpp
anagerdefault/IOProfile.h
anagerdefault/Ports.cpp
anagerdefault/Ports.h
anagerdefault/audio_policy_conf.h
|
ad3183e2d4cecd02f6261270a7ea1c68be0efa0f |
18-Mar-2015 |
François Gaffie <francois.gaffie@intel.com> |
Audio Policy Refactor: reorganise headers inclusion 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>
anagerdefault/ApmImplDefinitions.h
anagerdefault/AudioInputDescriptor.cpp
anagerdefault/AudioInputDescriptor.h
anagerdefault/AudioOutputDescriptor.cpp
anagerdefault/AudioOutputDescriptor.h
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
anagerdefault/ConfigParsingUtils.cpp
anagerdefault/ConfigParsingUtils.h
anagerdefault/Devices.cpp
anagerdefault/Devices.h
anagerdefault/Gains.cpp
anagerdefault/Gains.h
anagerdefault/HwModule.cpp
anagerdefault/HwModule.h
anagerdefault/IOProfile.cpp
anagerdefault/IOProfile.h
anagerdefault/Ports.cpp
anagerdefault/Ports.h
anagerdefault/audio_policy_conf.h
|
ac41a6f253a69671f6e018fcc84daf0030615ca9 |
30-Mar-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix IOProfile::isCompatibleProfile()"
|
f5d144f7ca773750ea7be371f14f9fc975a15862 |
27-Mar-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: fix IOProfile::isCompatibleProfile() 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
anagerdefault/Devices.cpp
anagerdefault/IOProfile.cpp
|
46bd6b5bb8f1dfd26977a04ee6fcf9641321ca29 |
30-Mar-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix DeviceVector::getDevicesFromType()"
|
4c91f90c72e74474fad7f6a99ae7926c8d1f2504 |
26-Mar-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: fix DeviceVector::getDevicesFromType() 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
anagerdefault/Devices.cpp
|
884de21ca32e4a47f77e541a7284d02054ff3349 |
24-Mar-2015 |
Wally Yau <wyau@google.com> |
Make sure waitRelative is called when waitTime != INT64_MAX b/19870971 (cherry picked from commit c600af1459c455583e071e653f0d998032aa423e) Change-Id: Ic6bb54067d76c96ff6fc45431dc2d72db9f0a3a8
ervice/AudioPolicyService.cpp
|
ac48c28215798e4135396f09d583b22302636735 |
16-Mar-2015 |
Rakesh Iyer <rni@google.com> |
Merge "Remove mId from DeviceDescriptor."
|
6fa7083f26895ede2331eeb3897f9ae659aae9bf |
13-Mar-2015 |
Rakesh Iyer <rni@google.com> |
Remove mId from DeviceDescriptor. DeviceDescriptor inherits from AudioPort which has the correct handle mId. The mId in DeviceDescriptor shadows this so calls like DeviceVector::getDeviceFromId() findDeviceById fail because they are looking at the wrong mId. The failure itself manifested as createAudioPatch failing. Change-Id: I8dd012d0678facaac84844b92226cc4b788abece
anagerdefault/Devices.h
|
ec8930f218fa0c1acde631543b40b5a0b28bfe1f |
09-Mar-2015 |
Glenn Kasten <gkasten@google.com> |
Fix warning while building mediaserver In file included from frameworks/av/services/audiopolicy/managerdefault/AudioPolicyManager.h:31:0, from frameworks/av/services/audiopolicy/service/AudioPolicyService.h:38, from frameworks/av/media/mediaserver/main_mediaserver.cpp:36: frameworks/av/services/audiopolicy/managerdefault/ConfigParsingUtils.h:29:0: warning: "ARRAY_SIZE" redefined #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) ^ In file included from frameworks/av/media/libmediaplayerservice/MediaPlayerService.h:31:0, from frameworks/av/media/mediaserver/main_mediaserver.cpp:35: frameworks/av/include/media/stagefright/foundation/ABase.h:21:0: note: this is the location of the previous definition #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) ^ Change-Id: I4b80f783c592a78aa88b3dad297278353740466e
anagerdefault/ConfigParsingUtils.h
|
acc930d104534dff89d5e336d22d2310069ca7c2 |
04-Mar-2015 |
Eric Laurent <elaurent@google.com> |
audiopolicy: Do not route VoIP call to HDMI getDeviceForStrategy is returning AUDIO_DEVICE_OUT_AUX_DIGITAL even when setForceUse is called with FORCE_NONE(earpiece) during VOIP call. Actual Intention is to route audio for phone strategy to AUX device even after setForceUse is called with FORCE_NONE when not in voice call. It is supposed to exclude VOIP call too. Bug: 19522164. Change-Id: I88d515c351f066305f9eed240b1fe5f60ef34f85
anagerdefault/AudioPolicyManager.cpp
|
56ec4ffcbae8aeac6c5245fc7b825d02e2e6cefd |
24-Jan-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
Refactor AudioPolicyManager AudioPolicyManager implementation is now split into the following files: files managerdefault/Gains.* class AudioGain class VolumeCurvePoint class StreamDescriptor files managerdefault/Devices.* class DeviceDescriptor class DeviceVector files managerdefault/Ports.* class AudioPort class AudioPortConfig class AudioPatch files managerdefault/IOProfile.* class IOProfile files managerdefault/HwModule.* class HwModule files managerdefault/AudioInputDescriptor.* class AudioInputDescriptor files managerdefault/AudioOutputDescriptor.* class AudioOutputDescriptor All files for libaudiopolicyservice are moved under service/ All files for libaudiopolicymanager are moved under manager/ Change-Id: I43758be1894e37d34db194b51a19ae24461e066e
ndroid.mk
udioPolicyClientImpl.cpp
udioPolicyClientImplLegacy.cpp
udioPolicyEffects.cpp
udioPolicyEffects.h
udioPolicyFactory.cpp
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyManager.cpp
udioPolicyManager.h
udioPolicyService.cpp
udioPolicyService.h
udio_policy_conf.h
anager/AudioPolicyFactory.cpp
anagerdefault/ApmImplDefinitions.h
anagerdefault/AudioInputDescriptor.cpp
anagerdefault/AudioInputDescriptor.h
anagerdefault/AudioOutputDescriptor.cpp
anagerdefault/AudioOutputDescriptor.h
anagerdefault/AudioPolicyManager.cpp
anagerdefault/AudioPolicyManager.h
anagerdefault/ConfigParsingUtils.cpp
anagerdefault/ConfigParsingUtils.h
anagerdefault/Devices.cpp
anagerdefault/Devices.h
anagerdefault/Gains.cpp
anagerdefault/Gains.h
anagerdefault/HwModule.cpp
anagerdefault/HwModule.h
anagerdefault/IOProfile.cpp
anagerdefault/IOProfile.h
anagerdefault/Ports.cpp
anagerdefault/Ports.h
anagerdefault/audio_policy_conf.h
ervice/AudioPolicyClientImpl.cpp
ervice/AudioPolicyClientImplLegacy.cpp
ervice/AudioPolicyEffects.cpp
ervice/AudioPolicyEffects.h
ervice/AudioPolicyInterfaceImpl.cpp
ervice/AudioPolicyInterfaceImplLegacy.cpp
ervice/AudioPolicyService.cpp
ervice/AudioPolicyService.h
|
e8610ba233ecdb3f6d3259412b41738a3861ee7e |
06-Feb-2015 |
Paul McLean <pmclean@google.com> |
Passing device name up through getDeviceDescriptor() method (when creating) Change-Id: Ibd85e37914333478fd038c3d2f52e214016c16b1
udioPolicyManager.cpp
udioPolicyManager.h
|
e743a47f445f02a0612018fa5640301304844fbf |
28-Jan-2015 |
Paul McLean <pmclean@google.com> |
Add additional info to AudioPort for enum/selection API. Add "device name" member to AudioPort. Moved unique device ID from DevicePort to AudioPort. Straighten out confusion between "name" and "address" Created string constants for Intent "extra" data keys. Combine card/address data into "address" at sender.Add additional info to AudioPort for enum/selection API. Change-Id: I1be308e12b09cd0ead9a3e9fbc9c385462299fb5
udioPolicyInterface.h
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyManager.cpp
udioPolicyManager.h
udioPolicyService.h
|
7bc903581f879c86f3881a2f7563bd28c1ac29b7 |
04-Feb-2015 |
Eric Laurent <elaurent@google.com> |
am 5d46bd54: am 3ae5f313: audiopolicy: send device connect notification to HALs * commit '5d46bd54a279f24d0476b83947ce29e786b5c72c': audiopolicy: send device connect notification to HALs
|
3ae5f31393609b7fa92f24132c66e9a8c9244a45 |
04-Feb-2015 |
Eric Laurent <elaurent@google.com> |
audiopolicy: send device connect notification to HALs Device disconnect notifications are sent from audiopolicy to the HALs. Send connect notifications as well. Bug: 19249796. Bug: 17785277. Change-Id: Ia823ed154d6a0c7ceb84b0a94f0c3b78392faaf6
udioPolicyManager.cpp
|
e33dee9e041c6ad8d822f717ef141d657da96c32 |
30-Jan-2015 |
Eric Laurent <elaurent@google.com> |
am 14a849c2: am 1bf8a210: Merge "audio policy: add fallback for output selection" into lmp-mr1-dev * commit '14a849c267bdcf564c30f9f2ebf0d619b36f500a': audio policy: add fallback for output selection
|
cba7fe5f1cb13108367d6de288428801b2d89a8e |
30-Jan-2015 |
Eric Laurent <elaurent@google.com> |
am 6f4428de: am d99c6855: Merge "audio policy: match attached device to declared devices" into lmp-mr1-dev * commit '6f4428de2b4ab10393bbac2441586ac514c8cf53': audio policy: match attached device to declared devices
|
1bf8a21018cc1d95dc3c28b5044aeda327c7b54e |
30-Jan-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: add fallback for output selection" into lmp-mr1-dev
|
a82797faddb37adb2d441737884576684c8515cb |
30-Jan-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: add fallback for output selection When getOutputForDevice() finds a matching direct output profile but fails to open it, try to fallback to downmix on mixer output when format is PCM and sampling rate allows it. Bug: 19197137. Change-Id: I197b9b202504265b6928e69740875cb7aba5c2c5
udioPolicyManager.cpp
|
d99c6855901e4b2625aaad3fc24cff5ecf675fa3 |
30-Jan-2015 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: match attached device to declared devices" into lmp-mr1-dev
|
a1d525fbf2c1e0b2c61e5d29f338b0a0d8823436 |
29-Jan-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: match attached device to declared devices Make sure that when a new audio device is connected, and a specific profile for this device is listed in audio_policy.conf, this particular profile is used instead of a default generic profile. Bug: 19188567. Change-Id: I5f576fcd697adc041b2cfbd2bac7a51bcc2143b9
udioPolicyManager.cpp
udioPolicyManager.h
|
88873ae1b01208a9e70b80860274f429d08a6c64 |
29-Jan-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
am f1121d96: am 0d84ba3f: Merge "Fix FLAG_BEACON regression" into lmp-mr1-dev * commit 'f1121d963b51c798ab28c85eeff1eedc9bb2c186': Fix FLAG_BEACON regression
|
0d84ba3fd82038cb721ffae234a99e6751ed7fbe |
29-Jan-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "Fix FLAG_BEACON regression" into lmp-mr1-dev
|
79ad438ed25c59a37244a48899263bbc4bc92f5d |
29-Jan-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
Fix FLAG_BEACON regression Fix regression where FLAG_BEACON is not honored anymore in terms of routing and muting behavior When converting from AudioAttributes to stream types, also look at FLAG_BEACON for mapping to STREAM_TTS Bug 19185342 Change-Id: I5871c1b94480ae3da544aef99ea9ab4dff97443d
udioPolicyManager.cpp
|
6dafb81dc699672f218915fa2895f8ee012203a9 |
29-Jan-2015 |
Eric Laurent <elaurent@google.com> |
am 8c403b22: am c84bc78d: Merge "Audio policy: fix device gain initialization" into lmp-mr1-dev * commit '8c403b2265fdef64ac4ba903e6261edd22d81909': Audio policy: fix device gain initialization
|
1db89b9c2692fd70eb1cc98b7db2f9beed81e66e |
28-Jan-2015 |
Eric Laurent <elaurent@google.com> |
Audio policy: fix device gain initialization Fix initilization of default gain configuration for audio devices loaded from audio_policy.conf. Initialization cannot be done in constructor as the possible gain configurations are not loaded yet. Bug: 19120566. Change-Id: I78f057ecfa1a121365ac3d8f317912a6f1647627
udioPolicyManager.cpp
udioPolicyManager.h
|
1d6aedb3581f1ef2ce9862b1b1d03c9fd3cfff83 |
21-Jan-2015 |
Eric Laurent <elaurent@google.com> |
am bf2751a5: am 7ccc6b9b: Merge "fix audio patch leak." into lmp-mr1-dev * commit 'bf2751a5ea6a306c2ba51a0658ec10aa889a81fa': fix audio patch leak.
|
7ccc6b9baf2f568a0a8c6e27dcd4195645a6361d |
20-Jan-2015 |
Eric Laurent <elaurent@google.com> |
Merge "fix audio patch leak." into lmp-mr1-dev
|
aa79befb301bc3451a19021b3fc9e9e6a1f231e8 |
15-Jan-2015 |
Eric Laurent <elaurent@google.com> |
fix audio patch leak. Always wait for status when executing a create audio patch command in audio policy service command thread. The returned patch handle must be passed back to audio policy manager so that the patch can be modified later. Failing to do so causes a leak of patch descriptors in audio flinger. Bug: 19032387. Change-Id: I5462d1437fac244d9c5e38f2c7b8e1a4c01d2b75
udioPolicyService.cpp
|
c09eb2dfef090864e3ab827c12e724424fc8ca01 |
16-Jan-2015 |
Eric Laurent <elaurent@google.com> |
am 65cb339d: am 21291a42: Merge "fix leak in audio policy effect config parser" into lmp-mr1-dev * commit '65cb339de0f628c82bdd5c68d868b6f3dc83cf04': fix leak in audio policy effect config parser
|
21291a420e11ccdf23e955c3dc390304230ddce3 |
16-Jan-2015 |
Eric Laurent <elaurent@google.com> |
Merge "fix leak in audio policy effect config parser" into lmp-mr1-dev
|
182c2f5e48f46c11dbcb5eecb46268dff4ad4797 |
15-Jan-2015 |
Eric Laurent <elaurent@google.com> |
fix leak in audio policy effect config parser Free temporary effect descriptors created in loadAudioEffectConfig(). Bug 19021726. Change-Id: Icd44216e25df3fe683a01763d7e8a7b84f367a1a
udioPolicyEffects.cpp
|
c9123e9aec7d84b51e5e3863953bcbd05e754513 |
15-Jan-2015 |
Leo Wang <leozwang@google.com> |
am eed5e4bd: am 5b578bec: Merge " [FM]There is no sound output from BT earphone while BT earphone is connected" into lmp-mr1-dev * commit 'eed5e4bd2b25da3e1965f4ab360f3cea1ccbcc2c': [FM]There is no sound output from BT earphone while BT earphone is connected
|
e6b8b27088f461957b4cbc51adbc8b01c41e9de2 |
13-Jan-2015 |
Hochi Huang <hochi.huang@mediatek.com> |
[FM]There is no sound output from BT earphone while BT earphone is connected Bug: 18847131 Review: https://partner-android-review.git.corp.google.com/#/c/193318 Signed-off-by: Hochi Huang <hochi.huang@mediatek.com> Change-Id: I79703ba4ceb67ca3b95fbc71444dd3b116ba4131
udioPolicyManager.h
|
27a78b56e1cf9814971192883cb7d15c186465f7 |
07-Jan-2015 |
Chong Zhang <chz@google.com> |
am 78c02ddb: am cfa5bf04: Merge "make libserviceutility a shared lib" into lmp-mr1-dev * commit '78c02ddb6bf0d676160244a62c11dceb68301b73': make libserviceutility a shared lib audio policy: fix remote mic capture audio policy: suppport for dynamic source Fix overload of SoftVideoDecoderOMXComponent::updatePortDefinitions Fix race condition in signaling completion for decode. AnotherPacketSource: need reset some members before returning from queueDiscontinuity(). Fix looping sound playback AnotherPacketSource.cpp: Do not queue discontinity signal buffer resulted from seek.
|
cfa5bf04ff250a14b11a75bcfa35ee2d6dbab4e9 |
07-Jan-2015 |
Chong Zhang <chz@google.com> |
Merge "make libserviceutility a shared lib" into lmp-mr1-dev
|
5db7897ddd32e3ec3ab45ecdb6f21b6265e7e14a |
07-Jan-2015 |
Chong Zhang <chz@google.com> |
make libserviceutility a shared lib so that we have only one getpid_cached in mediaserver process bug: 18919657 Change-Id: Iff3cd932c9110e874b3885f79705f49bf3e3f1fc
ndroid.mk
|
bb2e3e9d05e3760cfcf3cc63c10e7e8336e63a06 |
07-Jan-2015 |
Eric Laurent <elaurent@google.com> |
am fb5d35c0: am 7ae3dfab: Merge "fix record from default input source" into lmp-mr1-dev * commit 'fb5d35c00d1c4d672d245b6820551808617eba46': fix record from default input source
|
c447ded04f11169e9b96b31cd196b2c4ffa9f31c |
06-Jan-2015 |
Eric Laurent <elaurent@google.com> |
fix record from default input source Commit caf7f48a0e broke capture from default input source on some devices: the input source is now specified as part of the audio attributes and the default source was not remapped to mic source. Bug: 18736417. Change-Id: I3f5da33cdb56f959aaef68ed1952342babc63aa0
udioPolicyInterfaceImplLegacy.cpp
udioPolicyManager.cpp
|
4250b955f40ec459b5aeff3129a570fb182e8819 |
05-Jan-2015 |
keunyoung <keunyoung@google.com> |
am 01310cd7: am 3190e67d: close remote submix\'s output when device is not available. * commit '01310cd7adad778f8a6d0e4bc73dae068638abf2': close remote submix's output when device is not available.
|
3190e67d5c80c1e39e3be91784110af1180cd182 |
30-Dec-2014 |
keunyoung <keunyoung@google.com> |
close remote submix's output when device is not available. - change output close logic to find the device from IOProfile rather than AudioPatch as AudioPatch handle can be cleared before disconnect. - Otherwise, remote submix can be stuck as output is never closed and does not work any more as subsequent open fails as output is already taken. bug: 18733215 Change-Id: Iddb481c91e81070e6be18996a4c8837dabd7ebdb
udioPolicyManager.cpp
udioPolicyManager.h
|
b915a420a6a205d30c0181d3fc13078fc6d37a3c |
24-Dec-2014 |
Eric Laurent <elaurent@google.com> |
am 57221635: am 5886252a: Merge "audio policy: fix isSourceActive() for hotword" into lmp-mr1-dev * commit '572216352498c702651567b3b299a1f7ed725429': audio policy: fix isSourceActive() for hotword
|
d8be13b8d964b7edb02cb2ad64dee86ff247c911 |
20-Dec-2014 |
Eric Laurent <elaurent@google.com> |
am caf17e31: am 0a0662ea: Merge "audio policy: improve accessibility routing" into lmp-mr1-dev * commit 'caf17e316c7b7c22e877397f6bb3f882e4f68279': audio policy: improve accessibility routing
|
a34c9ce292ea984e92d8f70d2c056e5372c4f452 |
19-Dec-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix isSourceActive() for hotword Only condider AUDIO_SOURCE_HOTWORD equivalent to AUDIO_SOURCE_VOICE_RECOGNITION if the active capture was triggered by a hardware hotword recognition. Also fix activeInputsCount(). Bug: 18802896. Change-Id: I471aafcae29a76e9c323c6c0c314ef083991476b
udioPolicyManager.cpp
|
2cbe89a82d4167c5d5bcf3024edc22ab6874143a |
19-Dec-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: improve accessibility routing Force re-evaluating accessibility use case routing when a condition affecting it (ringtone, alarm, call state) is changing. Bug: 18761698. Change-Id: I42ac3a9fdc80bce11cf0a7fc76f680af4271abc9
udioPolicyManager.cpp
|
22dfb93254de370d401706728aba1f032ef1b172 |
17-Dec-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
am 8aadc515: am 71b52b5b: Merge "Fix routing not happening after change in output device list" into lmp-mr1-dev * commit '8aadc515b57c78cbb07ae7d0cb2553148ef05947': Fix routing not happening after change in output device list
|
93118cd96233b682be95a3eb114d88d69c8cc416 |
17-Dec-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
am 99429b40: am 277c7b8c: Merge "Fix permission check for audio recording" into lmp-mr1-dev * commit '99429b40411790b85e19c57392bbd292a237c470': Fix permission check for audio recording
|
71b52b5bb3be81bffa320241ca486fbf964d743e |
17-Dec-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "Fix routing not happening after change in output device list" into lmp-mr1-dev
|
277c7b8c41436125742339d8c80bccf0f2b086d9 |
17-Dec-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "Fix permission check for audio recording" into lmp-mr1-dev
|
3af7b7291bcd9b1b30dd11a8bedbdc63cc74b5a9 |
17-Dec-2014 |
Hochi Huang <hochi.huang@mediatek.com> |
am 7ca332ab: am 045e710f: [FM] Fix notification routing when FM enable * commit '7ca332ab8d7329598386acc1f50c43fc59952210': [FM] Fix notification routing when FM enable
|
045e710f8ce7ce1679b9b5f0adbd3290c4cc6f54 |
10-Dec-2014 |
Hochi Huang <hochi.huang@mediatek.com> |
[FM] Fix notification routing when FM enable https://partner-android-review.git.corp.google.com/#/c/188454/ Bug: 18727227 Change-Id: I74856ede5999cfc8a6932a99855d468cccd6f51c Signed-off-by: Hochi Huang <hochi.huang@mediatek.com>
udioPolicyManager.h
|
fe472e292ab50c121ff93dffa3b54c96feedcfef |
16-Dec-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Fix routing not happening after change in output device list If an output stream is active while rerouting rules are installed and recording starts, the list of outputs is not updated and therefore the stream is not rerouted to the new virtual device. The fix consists in also taking into account all the policy-related outputs when evaluating the before and after list of outputs following a connection state event. Bug 18736417 Change-Id: I6697976b3f89e2c0995e888e9046a2273361bb97
udioPolicyManager.cpp
|
70043ec5e8c79803972686577a9d36431019c15f |
16-Dec-2014 |
Eric Laurent <elaurent@google.com> |
am 679a1439: am be845fce: Merge "audiopolicy : Fix for incorrect input device selection" into lmp-mr1-dev * commit '679a14393639c70a653fe2a07f8de582d3a5de14': audiopolicy : Fix for incorrect input device selection
|
7f1295f5cf27127601ea15c31b6c144ff28d2a8b |
16-Dec-2014 |
Eric Laurent <elaurent@google.com> |
am 9632d33e: am cd71a69d: audio: Force audio to Speaker if requested during VOIP call * commit '9632d33e21ec2631c75cc949e0c92c351fd6a447': audio: Force audio to Speaker if requested during VOIP call
|
be845fce36a65139eb353ba7442eba951b1ebee3 |
16-Dec-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audiopolicy : Fix for incorrect input device selection" into lmp-mr1-dev
|
dc136ffee31f21da3b31240f8a22d4d08a658d0d |
16-Dec-2014 |
Eric Laurent <elaurent@google.com> |
audiopolicy : Fix for incorrect input device selection Some VoIP applications do not use source as VOICE_COMM but MIC and policy manager ignores the force usage in that case and selects handset-mic as input device even when BT-SCO headset is connected. Check the force usage for the AUDIO_SOURCE_MIC as well. Bug: 18606571 Change-Id: I5d5010ab396f85bf58573943c91fd815f39f57c1
udioPolicyManager.cpp
|
cd71a69d922eab2929faf8f5652fcd1b9a29cbe8 |
16-Dec-2014 |
Eric Laurent <elaurent@google.com> |
audio: Force audio to Speaker if requested during VOIP call getDeviceForStrategy is returning AUDIO_DEVICE_OUT_USB even when setForceUse is called with Speaker during VOIP call. Actual Intention is to route audio for phone strategy to USB device even after setForceUse is called with Speaker when not in voice call. It is supposed to exclude VOIP call too Added additional check for MODE_IN_COMMUNICATION so that it returns SPEAKER when setForceUse is called with speaker Bug: 18758599 Change-Id: I1c51128cc1c7bfce1cf6f1fde60b428d3a9379fc
udioPolicyManager.cpp
|
97bb33f58d742539f3382583d7978fca71ffa2d5 |
13-Dec-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Fix permission check for audio recording Define input types covering the different usecases for audio recording, and check the corresponding permissions when starting to record. Move the permission check from audio flinger to audio policy, as only the policy has the information to determine which permission to enforce. Fix missing permission when an application records audio and the audio is injected by an external policy. Bug 18736417 Change-Id: If7ec040502242c990ac8ea464db484339bdce573
udioPolicyClientImplLegacy.cpp
udioPolicyInterface.h
udioPolicyInterfaceImpl.cpp
udioPolicyManager.cpp
udioPolicyManager.h
|
f750da42246d064c838904869d2d6ff9332c6158 |
13-Dec-2014 |
Eric Laurent <elaurent@google.com> |
am 23085662: am c73ca6ef: audio policy: fix remote mic capture * commit '2308566236a3ff16197419ec226f956a295fe81a': audio policy: fix remote mic capture
|
c73ca6ef04136f28306784ad35f444538f081957 |
12-Dec-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix remote mic capture commit 275e8e9de introduced a regression for platforms overriding AudioPolicyManager::getDeviceForInputSource() method. Fixed by defining specific non virtual methods when overiding would break remote submix implementation. Bug: 18736417. Change-Id: Id4d0a6c48da987e6fb24422f2d61c7ab0fbfc921
udioPolicyManager.cpp
udioPolicyManager.h
|
d7986933bcf0b327bc260312b0ff0f83431a158b |
12-Dec-2014 |
Eric Laurent <elaurent@google.com> |
am 0cbeaf83: am 8cffa91a: Merge "audio policy: suppport for dynamic source" into lmp-mr1-dev * commit '0cbeaf83f7f50b5bc25a8dd7a08ea4e7c364c815': audio policy: suppport for dynamic source
|
c722f30eef03e77054395ae122470cf8dba93937 |
10-Dec-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: suppport for dynamic source Completed support for dynamic sources: - remote submix input device is dynamically connected/disconnected when corresponding AudioTrack starts/stops. Also do not create a duplicated output for mixes used by dynamic policies. Bug: 16006090. Change-Id: Ib5b5a2159fcac9d9f410a5a2f1c64d7ebad79f72
udioPolicyManager.cpp
udioPolicyManager.h
|
bd9df749bf5875fb2a1d909b0da920b8f261a419 |
10-Dec-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
am 1546028a: am 1767df77: AudioPolicyManager: distinguish between mirroring and rerouting * commit '1546028a2d02837f88f7ea1a4109e7649b665d2f': AudioPolicyManager: distinguish between mirroring and rerouting
|
66b17e9dfe114ae968bfb2f8ad8325527e373c65 |
10-Dec-2014 |
Glenn Kasten <gkasten@google.com> |
Merge commit 'f5a968a0' into mm Change-Id: Ifd30546c11def40ad483f27c9d7baa4008fcbac3
|
b279f5adfa2fd6f22c87b3a7106fbb62a0b9a5d2 |
10-Dec-2014 |
Eric Laurent <elaurent@google.com> |
am c49d9cda: am 2dda40d6: Merge "audio policy: add support for custom mixes" into lmp-mr1-dev * commit 'c49d9cda49dab8b7dd0376cf56476b3e1895d5c6': audio policy: add support for custom mixes
|
1767df778e20c1395afc63b3a0479bd903e7b9f0 |
10-Dec-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioPolicyManager: distinguish between mirroring and rerouting In the screen mirroring case, the notification manager queries the policy to see if media "is playing remotely": if yes, it will not request audio focus before playing a notification. This is the correct behavior for screen mirroring, but doesn't work when audio is rerouted to an external policy. This change consists in not reporting "remote" activity when playing to a mix of an external policy by looking at the address of the output on which playback is active for the given stream type. Bug 16009464 Change-Id: Iebbf5a8c738ab36c1cf2055e921c0a3472503125
udioPolicyManager.cpp
udioPolicyManager.h
|
baac183f3808d7b68f184647a97bd381620415fe |
02-Dec-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: binder calls for dynamic audio policy mixes Add binder calls to register and unregister dynamic mixes to AudioPolicyManager. Bug: 16009464. Change-Id: I4ef38166d0cfc88c984970969380d0cd6eb083ac
udioPolicyInterface.h
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyService.h
|
275e8e9de2e11b4b344f5a201f1f0e51fda02d9c |
01-Dec-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: add support for custom mixes Add support for custom mixes in AudioPolicyManager. Two methods are added to register or unregister a list of custom mixes with their attributes and format. getOutputForAttr() and getInputForAttr() first look for a match in registered mixes before defaulting to normal output/input selection Remote submix device connection disconnection now takes address into account to identify the correspnoding custom mix. Bug: 16009464. Change-Id: I3f1c2a485a0fb71b1f984ed0adc9b68aa971e408
udioPolicyManager.cpp
udioPolicyManager.h
|
b156888dcd2f8b3b05d724a31ec1c48da322fdc1 |
08-Dec-2014 |
Eric Laurent <elaurent@google.com> |
am 427aca5b: am 18265202: Merge "audio policy: fix inifinite loop in clearAudioPatches()" into lmp-mr1-dev * commit '427aca5bebaacfd5639b85661689ebd554bd0822': audio policy: fix inifinite loop in clearAudioPatches()
|
c12caed177ec2d4912394be692854dc1d632b3c3 |
08-Dec-2014 |
Eric Laurent <elaurent@google.com> |
am a9450bbc: am cbbe1ccc: Merge "audio policy: fix AudioPort parameter checks" into lmp-mr1-dev * commit 'a9450bbc6274451bbb4241595d74d6ce9a4160d1': audio policy: fix AudioPort parameter checks
|
18265202049bfa53fe5b18a95d956325acca9c7b |
06-Dec-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix inifinite loop in clearAudioPatches()" into lmp-mr1-dev
|
0add0fd07401c507a77b37868f46a2ae587c30df |
05-Dec-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix inifinite loop in clearAudioPatches() releaseAudioPatch() does not necessarily remove the audio patch from the list. Scan the list from the top down to avoid adjusting the index. Bug: 18621514. Change-Id: I58787154680f7cb1818509017835b1693d62190f
udioPolicyManager.cpp
|
cbbe1ccc41a86fbf009767bbdab43232e6c369c0 |
06-Dec-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix AudioPort parameter checks" into lmp-mr1-dev
|
9f104ea6d1123199f1f2e88934fae939c112a9b3 |
05-Dec-2014 |
Hochi Huang <hochi.huang@mediatek.com> |
am 94d91778: am 18f2f90c: [FM] Fix Buganizer ID: 18456930 - FM radio audio got routed to loudspeaker unexpectedly * commit '94d9177849bb68434d3839a9b0886e09489de7f2': [FM] Fix Buganizer ID: 18456930 - FM radio audio got routed to loudspeaker unexpectedly
|
0daea39f02fb1ba60a7b351bb5859e407f9f090b |
05-Dec-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix AudioPort parameter checks Accept any value for sampling rate, format or channel mask if the list of supported values is empty in the AudioPort. Bug: 18575607. Change-Id: I93e1942b89c630e3fee490799a8f8d79f7831ab7
udioPolicyManager.cpp
|
18f2f90cff65c384a4e8292cc3296dafafb43d52 |
03-Dec-2014 |
Hochi Huang <hochi.huang@mediatek.com> |
[FM] Fix Buganizer ID: 18456930 - FM radio audio got routed to loudspeaker unexpectedly https://partner-android-review.git.corp.google.com/#/c/187894/ Change-Id: I3f9175bbc302e382155e568e66b88400ec05ffa5 Signed-off-by: Hochi Huang <hochi.huang@mediatek.com>
udioPolicyManager.h
|
61280541836947ce0b281b240ffa4c55bbf5bd55 |
27-Nov-2014 |
Eric Laurent <elaurent@google.com> |
am 390ef843: am f20c4356: Merge "AudioRecord: use audio attributes instead of audio source." into lmp-mr1-dev * commit '390ef84373b7edd1397381f780ca235326357094': AudioRecord: use audio attributes instead of audio source.
|
51a7a41514622e68998b4f77022f8a93af530588 |
26-Nov-2014 |
Eric Laurent <elaurent@google.com> |
am 5bf757cf: am 087eb332: Merge "audio policy: do not route accessibility prompts to compressed output" into lmp-mr1-dev * commit '5bf757cfb8b43e5d92be95a8c700e4b7839f6730': audio policy: do not route accessibility prompts to compressed output
|
121143d5242a790d0bd01fe1b9cec5d28a1ba1d7 |
26-Nov-2014 |
Eric Laurent <elaurent@google.com> |
am bf14c62e: am 72bf901c: Merge "audio policy: new getOutputForAttr() prototype." into lmp-mr1-dev * commit 'bf14c62e7973ed793a3b00c2c67beca4484c1c7a': audio policy: new getOutputForAttr() prototype.
|
e0f440094345e1e7c3836fe29d3fa34d84e43aee |
26-Nov-2014 |
Eric Laurent <elaurent@google.com> |
am fcf39e22: am 0f78eabb: fix the build. * commit 'fcf39e226ce318ae1e4bc042379aae1ecff560a6': fix the build.
|
72215491c60fbcdb9a2f0be782e24e39cca249c5 |
26-Nov-2014 |
Eric Laurent <elaurent@google.com> |
am 1a475921: am 223fd5c9: audio: new routing strategies and stream types * commit '1a475921c0577a4650d1bbe40a85b732d1766939': audio: new routing strategies and stream types
|
caf7f48a0ef558689d39aafd187c1571ff4128b4 |
26-Nov-2014 |
Eric Laurent <elaurent@google.com> |
AudioRecord: use audio attributes instead of audio source. Added AudioRecord constructor with audio attributes. Replaced AudioPolicymanager::getInput() by getInputForAttr(). No new functionality for now. Also: - Fixed warnings in AudioPolicyManager - Allocate audio session ID before calling getOutputForAttr() in AudioTrack. Bug: 16006090. Change-Id: I15df21e4411db688e3096dd801cf579d76d81711
udioPolicyInterface.h
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyManager.cpp
udioPolicyManager.h
udioPolicyService.h
|
066ceecf4c6ed5ce26c5ddf00d7d9097d560b7a2 |
25-Nov-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: do not route accessibility prompts to compressed output When a digital output (HDMI or S/PDIF) is configured with a non linear PCM audio format it is likely that the audio HAL or HW will not be able to mix other sounds with the main media stream being played. In this case, do not condider HDMI or S/PDIF as a valid route for accessibilty strategy so that accessibility prompts are always audible. Bug: 18067208. Change-Id: If20603a1dc1dc470f206f841308bed2b87daf21c
udioPolicyManager.cpp
|
e83b55dc29ca16092ba02f36f55fa6e0e37fd78c |
14-Nov-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: new getOutputForAttr() prototype. Update getOutputForAttr() prototype and group all logic dealing with audio attributes to stream type conversion in audio policy manager. getOutputForAttr(): - specifies the audio session (for future use) - returns a status code - receives either stream type (for legacy) or audio attributes - returns an updated streamtype Remove logic dealing with legacy stream types to attributes conversion from AudioTrack. Use correct type for audio sessions in other APIs (startOutput() ...). releaseOutput() specifies the audio session (for future use). Bug: 18067208. Change-Id: I1bfbe9626c04c7955d77f8a70aecfad2cb204817
udioPolicyInterface.h
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyManager.cpp
udioPolicyManager.h
udioPolicyService.cpp
udioPolicyService.h
|
0f78eabb733e1413d7febd00c0bad0f0add02314 |
25-Nov-2014 |
Eric Laurent <elaurent@google.com> |
fix the build. Change-Id: Iab6b65327ae1adbf0b3a6da5a23b8107468f533e
udioPolicyManager.cpp
|
223fd5c9738e9665e495904d37d4632414b68c1e |
11-Nov-2014 |
Eric Laurent <elaurent@google.com> |
audio: new routing strategies and stream types Added new routing strategies and stream type for internal use by audio policy manager and audio flinger: - One for accessibility to allow different routing than media - One for re-routing (remote submix) in preparation of dynamic policies - Added stream type for "internal" audio flinger tracks used for audio patches and duplication. Bug: 18067208. Change-Id: I88f884b552e51e4a49c29125e5a1204cf58ff434
udioPolicyEffects.cpp
udioPolicyEffects.h
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyManager.cpp
udioPolicyManager.h
|
c9769c557e202df671e35196c8c735b49257be7d |
21-Nov-2014 |
Eric Laurent <elaurent@google.com> |
am 568689b1: am 3a2a32b5: Merge "AudioSystem: fix cross deadlock" into lmp-mr1-dev * commit '568689b169d8b0ae2cc252b88602db5e5acaa604': AudioSystem: fix cross deadlock
|
0ebd5f95b68a3a5c9e5509f21938c9e51e74d71b |
20-Nov-2014 |
Eric Laurent <elaurent@google.com> |
AudioSystem: fix cross deadlock Do not hold gLockAPS when calling AudioPolicyService::registerClient() in get_audio_policy_service(). registerClient() will need to acquire the AudioPolicyService mutex and if at the same time a method called from AudioPolicyService (with mutex held) calls back into AudioSystem and get_audio_policy_service() a cross deadlock occurs. Same preventive fix for get_audio_flinger(). Use a separate mutex for notification client list in AudioPolicyService. This prevents deadlocking if registerClient() is called as a consequence of AudioFlinger calling back into AudioPolicyManager while executing a method with AudioPolicyService locked Bug: 18403952. Bug: 18450065. Change-Id: Ia832e41aede8bc6c843fc615508fbdd74e0863b5
udioPolicyService.cpp
udioPolicyService.h
|
9544a8e904955f4b96ec9f2d6f4edc2a72afd270 |
18-Nov-2014 |
Eric Laurent <elaurent@google.com> |
am bfa77b5c: am 8cd37d67: Merge "audio policy: do not prevent routing to A2DP when suspended." into lmp-mr1-dev * commit 'bfa77b5c687f217e26267693306aaa6cc8a63672': audio policy: do not prevent routing to A2DP when suspended.
|
29e6cecdd8562700ab625c5645ddd6a7753789f1 |
14-Nov-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: do not prevent routing to A2DP when suspended. Allow A2DP sink selection even if A2DP is suspended. It is not because use of A2DP is temporarily disabled by SCO selection that the policy rule routing a given use case to A2DP should be altered. The source will be routed to A2DP but it will remain silent until suspend condition is cleared which is the purpose of suspend mode. Also make sure that accessibility prompts are audible while in call by forcing stream type to STREAM_VOICE_CALL. Fix inconsistent logic between AudioTrack::setStreamTypeFromAttributes() and AudioPolicyManager::getStrategyForAttr() Bug: 18095151. Change-Id: I1c75dd8288ed3dd494eb942060eac9c9660dca50
udioPolicyManager.cpp
|
22bfb336abb82b853a7a20232626b113ba568c1d |
17-Nov-2014 |
Eric Laurent <elaurent@google.com> |
am 2b456a16: am f89f2ff4: Merge "audiopolicy: Update input device check in checkInputsForDevice" into lmp-mr1-dev * commit '2b456a16ceeffd3d82dca71ce29c6479b8a11bff': audiopolicy: Update input device check in checkInputsForDevice
|
77e79a509d19ab50b1867fe3903b5a8fae450591 |
17-Nov-2014 |
Marco Nelissen <marcone@google.com> |
resolved conflicts for merge of e78a27ca to lmp-mr1-dev-plus-aosp Change-Id: If10a9cc17245f95d5e10b1507445abbb4020670e
|
f888020c6e2735624f2b2a30e72aca24e17b8b4d |
14-Nov-2014 |
Marco Nelissen <marcone@google.com> |
Update calls to IInterface::asBinder() to use the new static version. Change-Id: Ia7b10eb38ca55b72278bfd33d3bf647f338b4e6a Conflicts: media/libmedia/IAudioFlinger.cpp media/libmedia/IMediaPlayer.cpp media/libstagefright/CameraSource.cpp
udioPolicyService.cpp
|
ddbc6657fa0c55166148ca597980edbaafc418bf |
14-Nov-2014 |
Eric Laurent <elaurent@google.com> |
audiopolicy: Update input device check in checkInputsForDevice - When an input device is disconnected, checkInputsForDevice clears dynamic fields of input profiles that are supporting the disconnected device. AUDIO_DEVICE_BIT_IN mask is missing while comparing with the supported input devices of a profile which is resulting in clearing wrong fields - Fix is to include AUDIO_DEVICE_BIT_IN in this comparison - also fix two other places where comparison with input device was not masked with AUDIO_DEVICE_BIT_IN. Bug: 18367045 Change-Id: Icc94b8353bc49567d8a6d6a75293c3b0dd42d83c
udioPolicyManager.cpp
|
7aa310d90179d3811f7581c914e970c2461db7cf |
15-Nov-2014 |
Chih-Hung Hsieh <chh@google.com> |
am 0ef3210f: am 14a74010: Merge "Include AudioPolicyInterface.h only when needed." * commit '0ef3210f77799b5e0086c7a0f9244aefdf403805': Include AudioPolicyInterface.h only when needed.
|
c84d9d235679a4d48245b316b7b2e4c0b19413e7 |
14-Nov-2014 |
Chih-Hung Hsieh <chh@google.com> |
Include AudioPolicyInterface.h only when needed. Both legacy and non-legacy AudioPolicyInterface define extern "C" functions createAudioPloicyManager and destroyAudioPloicyManager. Standard C++ does not allow overloading of extern C functions. g++ did not catch this problem but clang++ does. Change-Id: I80869cdb26e7721777e53d4eff71c5c733044abf
udioPolicyService.cpp
udioPolicyService.h
|
d9cfeb447356cb6334379eaf5da1e49424eb5979 |
23-Sep-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Support speaker routing for FLAG_BEACON Add support for routing audio stream to the speaker when audio attributes carry the FLAG_BEACON value: - associate streams with FLAG_BEACON to the up-to-now unused STREAM_TTS ("Transmitted Through Speaker"). The remapping happens in AudioTrack. - AudioPolicyManager: define new strategy for handling the Beacon behavior, that only goes to speaker. Define new volume curves for STREAM_TTS that are not silence only for the speaker device category. Keep ref count of other streams and never play Beacon streams when anything else is playing: either don't start playback if something else is playing, or unmute STREAM_TTS when it's allowed to play and mute when it's done. - Take into account muting latency when starting an output. Bug 15415971 Change-Id: I26539c7ec1a486accd85bbeb1623e9c7d3a1192f
udioPolicyManager.cpp
udioPolicyManager.h
|
b1322c78b035c9f47ebe57a39799d7a0e13bf57f |
30-Oct-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix commit dea1541f Fix return types in early returns added by commit dea1541f in AudioPolicy binder call methods. Also fix former similar mistakes found nearby. Bug: 18001784. Bug: 18002005. Change-Id: I088c6029ca04e2c2c2f78e560c9cb6b9576dd88f
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
|
8e05b5f5f45b8d6931ff830969125a42428c6830 |
30-Oct-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: validate stream type received from binder calls." into lmp-mr1-dev
|
dea1541fc0042abf05674b19c2f94ca086945dfd |
28-Oct-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: validate stream type received from binder calls. Bug: 18001784. Bug: 18002005. Change-Id: I8efa674dceff5a6e10251b1c7a55e9bb2d532395
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
|
6e8212b2a02685e50d0c093a6f44d9af636261d9 |
28-Oct-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "Always use an address for remote submix" into lmp-mr1-dev
|
b80a2a8871d3af8619bf774a0c9ddbac8d598bf9 |
28-Oct-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix output device command after clearing audio patch Make sure that a valid audio patch is created again on an output stream following the disconneciton and reconnection of the same output device. Bug: 18144611. Change-Id: I72387ad8e93f8fb2571da2a6c58a6e167ac7fc4d
udioPolicyManager.cpp
|
fd4c14883b268a0bc5514da135fe6b7d1ce2071b |
07-Aug-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Always use an address for remote submix Usage of remote submix device for audio rerouting (e.g. wifi display) didn't mandate the use of addresses. Use "0" as the default address when none is specificed. In logs, only use hex format for audio devices Bug 16009464 Change-Id: Ibfb1ce6881eba8b7e34420293b8a7077a6e659e6
udioPolicyManager.cpp
|
31551f8dd625b8d40961e141d2913b0073f852ab |
11-Oct-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix multiple device volume Whem multiple devices are selected by a strategy, apply volume to all these devices when one of them is changed by setStreamVolumeIndex() API. Also only consider devices supported by current output profile in checkDeviceMuteStrategies() to avoid muting a stream because of devices connected to another output stream. Bug: 17507571. Change-Id: I83ef9fb7f294214d30f7f890db44c64ece3be387
udioPolicyManager.cpp
|
964b73121a634921f000ef3f877a7546f65bb700 |
21-Oct-2014 |
Eric Laurent <elaurent@google.com> |
am 7de5ac1f: audio policy: fix effect handle leak * commit '7de5ac1f067ec61f7ea424d5534cfd40987b11fa': audio policy: fix effect handle leak
|
7de5ac1f067ec61f7ea424d5534cfd40987b11fa |
21-Oct-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix effect handle leak Fix ref counting error in AudioPolicyEffect::addInputEffects() and addOutputSessionEffects() Bug: 17675112. Change-Id: I5267d1024a585919f66ead83662e57b78ba53540
udioPolicyEffects.cpp
|
f4c58707b511af4c9f55c25781304172964107cb |
16-Oct-2014 |
Haynes Mathew George <hgeorge@codeaurora.org> |
am a2d4a6da: audio policy: Fix for voice call audio loss * commit 'a2d4a6dac432f0c4f543d79b9a63c55ae91f81d6': audio policy: Fix for voice call audio loss
|
a2d4a6dac432f0c4f543d79b9a63c55ae91f81d6 |
13-Oct-2014 |
Haynes Mathew George <hgeorge@codeaurora.org> |
audio policy: Fix for voice call audio loss Audio Policy service filters out one of the create patch commands when it finds two pending commands with the same patch handles. Due to this routing command is not received to audio HAL and the voice call set up fails. Fix this by filtering create patch commands only when they are issued on the same output. authored-by: Karthik Reddy Katta <a_katta@codeaurora.org> Bug: 17787282 Change-Id: If36f0ab71e9b72d6a8eb61d31f762bc5e1683b89
udioPolicyService.cpp
|
f53eaf49df1e1e1c01708919e9e0a046543de9b6 |
09-Oct-2014 |
Hochi Huang <hochi.huang@mediatek.com> |
fix FM no sound issue Review: https://partner-android-review.git.corp.google.com/#/c/184276 Signed-off-by: Carson Liao <carson.liao@mediatek.com> Change-Id: I0847c8a6e6d054a9258b52402c914105d902c573
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
|
fa845267f7cb5aede69ff1f62db99e8478db170d |
12-Oct-2014 |
Dave Burke <daveburke@google.com> |
am 9286354c: Merge "Revert "audio policy: add support for ro.audio.media_deep_buffer"" into lmp-dev * commit '9286354c0a864ce2348cc7dfc6ca81e84a15f8e2': Revert "audio policy: add support for ro.audio.media_deep_buffer"
|
f2ab2191387ce7902c730cc68314ea5fdc4a9237 |
11-Oct-2014 |
Vineeta Srivastava <vsrivastava@google.com> |
Revert "audio policy: add support for ro.audio.media_deep_buffer" This reverts commit 95511add8ad4d440c67272503559f5042c4e6f1f. Change-Id: I76a8b86790b06b08d8ca0f8d374e585f964ffba8
udioPolicyManager.cpp
udioPolicyManager.h
|
6337f6032e7bdbf0b4654fb07512a00bd33ef696 |
11-Oct-2014 |
Eric Laurent <elaurent@google.com> |
am ffd5cdbd: Merge "audio policy: add support for ro.audio.media_deep_buffer" into lmp-dev * commit 'ffd5cdbd3e3faa203539e26adc755f860c8cac80': audio policy: add support for ro.audio.media_deep_buffer
|
95511add8ad4d440c67272503559f5042c4e6f1f |
11-Oct-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: add support for ro.audio.media_deep_buffer Bug: 17931716. Change-Id: Ife170f20f5d02b71059fbd384bd29759fafee826
udioPolicyManager.cpp
udioPolicyManager.h
|
733ee8aaf2a91ac98cc7cfae5b98164d3aefab2a |
10-Oct-2014 |
Eric Laurent <elaurent@google.com> |
am f5ada6ed: audio policy: move intializations to onFirstRef() * commit 'f5ada6edcc83bb1b313abcd4c4fbdc4f7724f04d': audio policy: move intializations to onFirstRef()
|
f5ada6edcc83bb1b313abcd4c4fbdc4f7724f04d |
10-Oct-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: move intializations to onFirstRef() Bug: 17896324. Change-Id: I3bb74f5397142ac354bd815eb362e5ddacdcb463
udioPolicyService.cpp
udioPolicyService.h
|
7c6977c42da29bf47e44aab55d3b2044bf9b442d |
07-Oct-2014 |
Eric Laurent <elaurent@google.com> |
am 07811789: Merge "audio policy: fix build with USE_LEGACY_AUDIO_POLICY" into lmp-dev * commit '07811789ebf31f5317403356f624d04282e666aa': audio policy: fix build with USE_LEGACY_AUDIO_POLICY
|
8610f49c1a14c91550c8abde27bda59ac6526b23 |
07-Oct-2014 |
Eric Laurent <elaurent@google.com> |
am 5bee844f: Merge "audio policy: fix lockup during mediaserver restart" into lmp-dev * commit '5bee844fd8c2f6d9fa78ed5e063a8e3df9f2f7b6': audio policy: fix lockup during mediaserver restart
|
f380677f21240ffb78bcdf7c804fe0a7807fb08d |
07-Oct-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix build with USE_LEGACY_AUDIO_POLICY Bug: 17894512. Change-Id: I6431c0b03ba02cf561413c34848a334caa0261fa
udioPolicyClientImplLegacy.cpp
udioPolicyInterfaceImplLegacy.cpp
|
8b1e80bf1e9f214feea219cfe981ba533b806003 |
07-Oct-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix lockup during mediaserver restart When pre or post processing effects are applied by audio policy service automatically there is a potential lockup if the first call into AudioPolicyService is made while creating one of those effects. This is because effects are created with AudioPolicyService mutex held and effect creation calls into methods (e.g registerClient()) which also acquire the mutex. The fix consists in adding a new mutex to AudioPolicyEffects class and not hold the AudioPolicyService mutex when calling methods in of class. Bug: 17830596. Change-Id: Ie61c3671d3147f46e99ba208f39c1a3bf180779f
udioPolicyEffects.cpp
udioPolicyEffects.h
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyService.cpp
|
23fe3c0a05fcb619eeb5b0c2ece02cdadab2df6e |
03-Oct-2014 |
Hochi Huang <hochi.huang@mediatek.com> |
[AU] Import gain setting into ports Review: https://partner-android-review.git.corp.google.com/#/c/183780 Signed-off-by: Hochi Huang <hochi.huang@mediatek.com> Change-Id: I415d0b494b9bfadf783280aeea6ad46e0a242cfb
udioPolicyManager.cpp
|
79e687edb9bd7e2fcc60e06dd779f98c75511045 |
01-Oct-2014 |
Nicholas Sauer <nicksauer@google.com> |
Merge "[AU] Update volume setting and Audio Device API 3.0" into lmp-sprout-dev
|
327cb70dcbf3a1f1679aeafaaa62d8532abea86d |
21-Sep-2014 |
Hochi Huang <hochi.huang@mediatek.com> |
[AU] Update volume setting and Audio Device API 3.0 Signed-off-by: Hochi Huang <hochi.huang@mediatek.com> Review: https://partner-android-review.git.corp.google.com/#/c/182522 Change-Id: Ida2dfedc6eaa3204354cdc182e0ee13a35472661
udioPolicyManager.cpp
udioPolicyManager.h
|
c260784e37dea73a2090d4ccd91472d61d3b6230 |
29-Sep-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix HW A/V sync output selection commit b732cf5a broke the selection mechanism for the HW A/V sync direct output. Add a rule to only select a mixed output for basic PCM stereo content when a direct output is not explicitly requested. Bug: 17702382. Change-Id: I1387690ace77cd4d6a8faf0b525c3d1008fba3f1
udioPolicyManager.cpp
|
a8a4eeb95988e6bb73f7a742c8dd238c1f96c5c4 |
27-Sep-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: favor mixed over direct output for PCM format" into lmp-dev
|
b732cf5af93c33fa183769210ce9954521fb68cd |
25-Sep-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: favor mixed over direct output for PCM format modify getOutputForDevice() to skip direct output selection if the request can obviously be attached to a mixed output This prevents from selecting a direct output profile that can manage stereo PCM format if a mixer output is available to reach the same device. Bug: 17628413. Change-Id: I02e9a0b02c9ae5f44ff5768ac4ed02ce84d521c5
udioPolicyManager.cpp
|
bb6c9a05840d924b502ce0f1868fca4881ada1ed |
25-Sep-2014 |
Eric Laurent <elaurent@google.com> |
audio: fix stream type for accessibility usage Make sure that accessibility prompts are heard when a ringtone is active by forcing stream type to AUDIO_STREAM_RING when phone state is AUDIO_MODE_RINGTONE. Bug: 17558149. Change-Id: Ia3bead8052fca5cbf282c267f7b9b06014fef628
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyService.cpp
udioPolicyService.h
|
5dbe47139713292bf45bbf4f1a7af0835a5ff368 |
20-Sep-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: add hw hotword flag for inputs Audio input profiles can indicate flag AUDIO_INPUT_FLAG_HW_HOTWORD meaning they allow capture from the same source as HW hotword detection. When a client requests capture with this flag, the policy will try to find an input profile matching this request first and fallback to a regular input if not found. Bug: 17575019. Change-Id: Ia463211597d7fa363527d776389f2257f0ced9a2
udioPolicyManager.cpp
udioPolicyManager.h
|
d78f153a21868d870b14169a6928d991e4b82e73 |
17-Sep-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix attached devices validation Consider all supported devices in an io profile and not only the first one when looking for a match with attached devices. Failing to do so would cause the device validation to fail if supported devices are not declared in a specific order in the io profile descriptor in audio_policy.conf Bug: 17532764. Change-Id: Id27c9192e21de7f075076e17eb8c48e7e42847f6
udioPolicyManager.cpp
|
966095ea014bc0f6ae9f523ee7f37f2fed2faeb5 |
09-Sep-2014 |
Jon Eklund <jeklund@motorola.com> |
audio policy: fix relative priorities of PHONE and ENFORCED_AUDIBLE ENFORCED_AUDIBLE should only be highest priority if system tones are being forced. Otherwise it should behave like SONIFICATION. Bug: 17474485. Change-Id: Ia651779870d51100cc3179c96fa09694bc691ba7
udioPolicyManager.cpp
|
58f8eb7ae0ee400585bce6682a7212575115e758 |
13-Sep-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix check in creaateAudioPatch() Bug: 17488759. Change-Id: I9dd2c3ca7f83de4b3573f4fb0e9934e1bc37c3bc
udioPolicyManager.cpp
|
11c9fb1f90cc786485a53aeb1d31ec1ad1dbf840 |
23-Jun-2014 |
Jon Eklund <jeklund@motorola.com> |
AudioPolicyManager: Use "safe" speaker for notifications if available On particularly loud devices, unexpected audio bursts can be harmful. For longer audio events, the conventional mitigation strategy is to somehow soft-start (ramp) the loudspeaker volume, but this strategy can severely impact the audibility of short audio events. Use of the "safe" speaker path hints to AudioHAL to immediately output at best allowable level for transient audio events. SPEAKER_SAFE is aliased to SPEAKER for purposes of volume control. Bug: 17319721 Change-Id: I75187c23f3d1f18e9f638c5d14e7b0bf805a67bc
udioPolicyManager.cpp
|
8838a3895c365d443ee22e169ccf45956780c081 |
09-Sep-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix output stream selection Make sure that all outputs considered by selectOutput() when called from AudioPolicyManager::getOutputForDevice() support the requested audio format. Bug: 17340382. Change-Id: I76520ce60e9a8fe4d2d23125d6143bb016522754
udioPolicyManager.cpp
udioPolicyManager.h
|
2e97b01cecec65e690ac7da5df9433c52ff75bd8 |
08-Sep-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audiopolicy: fix direct output profile probing" into lmp-dev
|
828bcffa0d5f73461c6c1ba4ef6d3da704c27b7e |
07-Sep-2014 |
Eric Laurent <elaurent@google.com> |
audiopolicy: fix direct output profile probing Do not select maximum sampling rate and channel count when opening a direct output for the first time to make sure that the combination of sampling rate and channel count is supported by the connected sink. Bug: 17047809. Change-Id: I077a3c1436158378f2762343469ceb39fab9775e
udioPolicyManager.cpp
|
cb16968f593e4d58857c693c8ec6f2d2337f5512 |
06-Sep-2014 |
Jungshik Jang <jayjang@google.com> |
Merge "Fix "invalid device combination" in system audio mode." into lmp-dev
|
e45b48aba115f4daf4a4aad31b6a95df9b79f463 |
05-Sep-2014 |
Eric Laurent <elaurent@google.com> |
audio policy service: filter out delayed audio patch commands if needed. As for set parameters commands, create or release audio patch commands modifying the same patch handle should be filtered by the audio policy service command thread so that an immediate command is not overridden by a pending delayed command. Bug: 17379728. Change-Id: I6aa4652b4bfec59eebd3c3cb7d1d9ac1bc1d6e49
udioPolicyService.cpp
|
a1f9917243caafd1da5fa743c6fda1d0614ed167 |
05-Sep-2014 |
Jungshik Jang <jayjang@google.com> |
Fix "invalid device combination" in system audio mode. HDMI-CEC system audio mode removes speaker from output list. It also has multiple outputs by connected outputs. However, getDeviceForVolume() doesn't cover multiple output with no speaker or bluetooth case. This change picks one of system audio outputs in order. Bug: 17400026 Change-Id: I102fd0052c9c4c9543f9e8f3b16ec6815d7485d8
udioPolicyManager.cpp
|
9a63396f70880772e551e1e4c38f27c635612083 |
29-Aug-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: fix input source passed to openInput()" into lmp-dev
|
1c9c2cc4b170b79a83433749808e286eb0fcc449 |
29-Aug-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix input source passed to openInput() The input source passed to openInput() must be modified from HOTWORD to VOICE_RECOGNITION if the capture does not correspond to a sound trigger session. Bug: 16731718. Change-Id: I48aa4180e75dd5335cd096b48da1c15f2236e6ed
udioPolicyManager.cpp
|
f5e7e79bf88b0c08c73262e7992634797a4f81a1 |
19-Aug-2014 |
bryant_liu <bryant_liu@htc.com> |
audiopolicy: Indicate output device change to all input threads for pre-processing Bug: 17129715 Change-Id: I1fd938cce0b85241c80ea00f3d013a98948d3975
udioPolicyManager.cpp
|
890a5637b3e3eb197fd2c7f5deec816c7feb13fc |
20-Aug-2014 |
bryant_liu <bryant_liu@htc.com> |
frameworks: av: AudioPolicyEffect: Add refCount for each session Audio framework stops and restarts AudioTracks on same audio session. Sometimes the AudioTrack start() comes before a stop(). As effects are linked to the session, they should only be created on the last stop() related to that session. Bug: 17201117 Change-Id: I19343e293d6b7b6b794fe05ebd0dd239ed3b075c
udioPolicyEffects.cpp
udioPolicyEffects.h
|
8962e08c4989368d2c821b64f42632b6f5fb016e |
28-Aug-2014 |
Paul McLean <pmclean@google.com> |
Merge "Fix audio dropouts with multiple playback streams." into lmp-dev
|
47f64f2ed14839a00b3b148d490dc0394282eb54 |
28-Aug-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: remove audio patch when closing input or output" into lmp-dev
|
05b90f833337ab5f7b16509e5f1d339a04eb5bf6 |
28-Aug-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: remove audio patch when closing input or output Make sure that an audio patch having an output as source or input as sink is removed when this input or output is closed. Bug: 17303725. Change-Id: I234d54a25ce0b579eeeafdcfda3a0594f048768c
udioPolicyManager.cpp
udioPolicyManager.h
|
5c477aa6205e2ebafec237411900d89a510cc105 |
21-Aug-2014 |
Paul McLean <pmclean@google.com> |
Fix audio dropouts with multiple playback streams. Bug 17136569 Change-Id: I7f69cb24168c7d27ce28679735f53c1ece4014c1
udioPolicyManager.cpp
|
961ec21a5878517ce6db27bad8da269637c45a44 |
26-Aug-2014 |
Marco Nelissen <marcone@google.com> |
Fix memory leak in getConnectionState Turns out having an sp<> point at the containing object doesn't really work so well. Bug: 17210991 Change-Id: I4bcb0c38adffc574d661f0772583357868f6c5b4
udioPolicyManager.cpp
udioPolicyManager.h
|
47bf8d8f0242bbe9cfa777c96e41e5fcd5294ee4 |
13-Aug-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "audiopolicy: add dump for audio patches" into lmp-dev
|
edf103987d71f09dc2acb0a971cb40ff6608f1a5 |
11-Aug-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "Update audio ports with profile capabilities" into lmp-dev
|
f17026dfef596cf1c8008fda20f1f2ad23a3df3a |
10-Aug-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Update audio ports with profile capabilities When opening an output, import the profile capabilities associated with the device into the AudioPort. Bug 10549017 Change-Id: If102f5623457542d2c1407ada303c71e43d19a08
udioPolicyManager.cpp
udioPolicyManager.h
|
4d41695d45e2c7211899afa94b20e32120b2b7e0 |
10-Aug-2014 |
Eric Laurent <elaurent@google.com> |
audiopolicy: add dump for audio patches Bug: 10549017. Change-Id: I896c8e16c8cf7490bab75295903620a76236f571
udioPolicyManager.cpp
udioPolicyManager.h
|
874c4287a4e49c59ac88767751dce00fcd3edb73 |
09-Aug-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: enable more than one sink per audio patch. Allow creation of audio patches with more than one sink. More than one sink is enabled when: - Connecting an input device to output devices on the same audio HW module. - Connecting an output mix to output devices on the same audio HA module. All other patches are limited to one sink. Bug: 16879363. Change-Id: I95be6948ef29df64e51e5b8ace38c2db7f3e89f2
udioPolicyManager.cpp
|
7f04ec2a4ec94ada7ef89db8c50fd1e5c3a93a3b |
07-Aug-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: add support for USB devices for voice call" into lmp-dev
|
c2730ba7c5e9559b7499ef5e0d7742deb18c5110 |
21-Jul-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: add support for USB devices for voice call Add possibility to use sink and source devices not on the primary HW module for voice calls (e.g. USB headsets). Bug: 15520724. Change-Id: Ib27db4ba759b6d91ea1104dc2e35c87733517b30
udioPolicyManager.cpp
udioPolicyManager.h
|
93c3d41bdb15e39dac0faea9c5b60f1637cd477c |
01-Aug-2014 |
Eric Laurent <elaurent@google.com> |
AudioSystem: add API to query audio HW sync source Add a method to query from the audio HAL the HW sync source used for a given audio session. Modify audio policy to select a direct output with HW sync when requested. Bug: 16132368. Change-Id: I03038f9188f2d389f8a5fd76a671854013a4513e
udioPolicyManager.cpp
|
92ce4715315bddd158c7d4028556632f0547e3b9 |
06-Aug-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audio: fix crashes upon USB device connection" into lmp-dev
|
cf817a2330936947df94c11859f48771f5596a59 |
05-Aug-2014 |
Eric Laurent <elaurent@google.com> |
audio: fix crashes upon USB device connection - Audio policy: Replace unknown device assertion by debug log in setDeviceConnectionState(). It is possible that some kernels indicate connection of a legacy device type when a USB audio device is connected. We should just ignore this device. - Audio flinger: Make sure FastMixer thread is idle before exiting the normal mixer thread and closing the output stream. Change-Id: Ia10a20176a60a8aa56765538093a555fc998508a
udioPolicyManager.cpp
|
a57ab8da6fe56fdb91dfc95ebd0282eb879dde53 |
30-Jul-2014 |
Eric Laurent <elaurent@google.com> |
policy manager: recognize AUDIO_DEVICE_IN_AMBIENT from policy.conf Change-Id: If46b8d13f216bad4aa62598531d406d3303134f5
udioPolicyManager.cpp
|
ac29afacbb34b92f1948188e5353fce5a252ccb3 |
28-Jul-2014 |
Jon Eklund <jeklund@motorola.com> |
audio policy: support line output device Change-Id: Iddf1b6486430270d871a45c75615e54339a818e9
udioPolicyManager.cpp
udioPolicyManager.h
|
df3dc7e2fe6c639529b70e3f3a7d2bf0f4c6e871 |
28-Jul-2014 |
Eric Laurent <elaurent@google.com> |
Add sound trigger control by audio policy Audio policy: - Added active capture indication to sound trigger service: recognition stops if concurrent capture is not supported. - Added generation of reserved I/O handle and session ID for utterance capture. Sound trigger service - Added sound model update callback handling. - Added service state callback - Simplified callback shared memory allocation. Bug: 12378680. Change-Id: Ib0292c2733e6df90fdae480633dd9953d0016ef1
ndroid.mk
udioPolicyClientImpl.cpp
udioPolicyInterface.h
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyManager.cpp
udioPolicyManager.h
udioPolicyService.h
|
77cce80fa9d44f1e2a6bc486ad957fbbebfce3b2 |
05-Aug-2014 |
Phil Burk <philburk@google.com> |
[audio][policy] fix crash when offloadInfo is NULL Added check for NULL pointer to avoid crash in AudioPolicyManager when playing AC3 data. Change-Id: Ie56788f6277be6da47d4218b1b4a6b359fce6473 Signed-off-by: Phil Burk <philburk@google.com>
udioPolicyManager.cpp
|
222260168c144cca5a4e8f1c79df8c8baa22b591 |
02-Aug-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix service fuzz test crash Bug: 13744391. Change-Id: I2430e09ad00476b9ac28dc55466942c61fb0531d
udioPolicyManager.cpp
|
a6d28be0be0fa813080a021bd6a5920a8cb4fbb1 |
30-Jul-2014 |
Andy Hung <hunga@google.com> |
Merge "Add Quad channel output to AudioPolicyManager" into lmp-dev
|
e1d37b784f3970e44a7331c189cbfdca15404648 |
29-Jul-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: add missing enums in config file parsing Change-Id: I4edd6cde11de62c9c19dfa623d08cddf42c953db
udioPolicyManager.cpp
|
3a0fe12fbd08b13e9f57d79b0391186be05072f5 |
30-Jul-2014 |
Andy Hung <hunga@google.com> |
Add Quad channel output to AudioPolicyManager Matches some USB device configurations. Change-Id: I2429f9de87816b4ad1d39516e3821562617c76ee
udioPolicyManager.cpp
|
8b685b9e56cc207d44b08d124148e7d752ef2241 |
30-Jul-2014 |
Andy Hung <hunga@google.com> |
Merge "Update multichannel audio policy handling" into lmp-dev
|
9a60538b9ee2b097770dcd378281b31f4218ae56 |
29-Jul-2014 |
Andy Hung <hunga@google.com> |
Update multichannel audio policy handling Ensure AUDIO_FORMAT_PCM_FLOAT and AUDIO_FORMAT_PCM_32_BIT have proper precedence. Allow more mixer channels than 2. Change-Id: I02af97dad6218b25cbada4d93077a213314c6725
udioPolicyManager.cpp
udioPolicyManager.h
|
4dc680607181e6a76f4e91a39366c4f5dfb7b03e |
29-Jul-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: pass session ID to capture activity methods Indicate the audio session ID when calling getInput(), startInput(), stopInput(), releaseInput(). Bug: 12378680. Change-Id: I763793752f93e2f4e1445a5ab217c895af011038
udioPolicyInterface.h
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyManager.cpp
udioPolicyManager.h
udioPolicyService.h
|
de3f8392fbf380ba6f09d009b00d7172477389a2 |
28-Jul-2014 |
Eric Laurent <elaurent@google.com> |
rename AudioSystem::newAudioSessionId() Rename AudioSystem::newAudioSessionId() to AudioSystem::newAudioUniqueId() as it can be used also for I/O handles. Bug: 12378680. Change-Id: I611ea3b5eb57a4b0774437f477ee87dc4ccc2cc2
udioPolicyClientImpl.cpp
udioPolicyInterface.h
udioPolicyService.h
|
cf2c0210c8afbe7d0661ccbbae3835b5ce73c0bf |
26-Jul-2014 |
Eric Laurent <elaurent@google.com> |
AudioFlinger: update openInput() and openOutput() Add parameters to openInput() and openOutput(): device address, input source. Allow caller to specify a given I/O handle Group parameters in a struct audio_config. Bug: 12378680. Change-Id: I7e9af74c0d996561cc13cbee7d9012d2daf33025
udioPolicyClientImpl.cpp
udioPolicyClientImplLegacy.cpp
udioPolicyInterface.h
udioPolicyManager.cpp
udioPolicyManager.h
udioPolicyService.h
|
97117153a0d681be70bfa9dc9876541375355c47 |
28-Jul-2014 |
Glenn Kasten <gkasten@google.com> |
Merge "audio policy: compatible sample rates and channel masks" into lmp-dev
|
d8622371d5ac5b98abcc5d388bd952bb3dd4fda9 |
27-Jul-2014 |
Eric Laurent <elaurent@google.com> |
audiopolicy: fix output audio format selection Fix two problems in output stream audio format selection added by commit 1e693b55: - flags must be set before picking the format. - fix logic error in best format selection. Change-Id: I6458b32725f771da5a08108932d64e71964ae9f1
udioPolicyManager.cpp
|
cbd48023d0a0e3fd59955011538c0087a439f905 |
24-Jul-2014 |
Glenn Kasten <gkasten@google.com> |
audio policy: compatible sample rates and channel masks Change-Id: I50d068a968aa6bd9e53e5b3111a1b09a6c2d219c
udioPolicyManager.cpp
udioPolicyManager.h
|
0fb47759256ecdaedbc34c880238bc9d102ef160 |
23-Jul-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioPolicyManager: handle outputs for different addresses Add the notion of device types that cause the device address to be taken into account, i.e. multiple devices of the same type but with a different address can be connected/ disconnected. AUDIO_DEVICE_OUT_REMOTE_SUBMIX is such a device type. When making those devices available / unavailable, look for all outputs with a matching address. Bug 16009464 Change-Id: I260f8248b7794c4932094e876afdf29fdea007a3
udioPolicyManager.cpp
udioPolicyManager.h
|
9e62beeeb307a098be9c72bbd23188a7731b72bb |
25-Jul-2014 |
Glenn Kasten <gkasten@google.com> |
Merge "audio policy: clean up checking for active input" into lmp-dev
|
0a234ea24a9b03da571150c464c6670fba9d224f |
25-Jul-2014 |
Ricardo Garcia <rago@google.com> |
Merge "-Making sure mAudioCommands list is empty before going to sleep. -Wake_lock release before sleeping or quitting threadLoop()." into lmp-dev
|
05f2fdc1070c1c07af9e21760d4d2e06bebde55a |
25-Jul-2014 |
Ricardo Garcia <rago@google.com> |
-Making sure mAudioCommands list is empty before going to sleep. -Wake_lock release before sleeping or quitting threadLoop(). Change-Id: Icab53d7984a3ba3eaf13e514667b4d60f40cbcd6
udioPolicyService.cpp
|
74a8e2533561f04029873446206ab407cd2e033b |
24-Jul-2014 |
Glenn Kasten <gkasten@google.com> |
audio policy: clean up checking for active input Change-Id: I85cc089df32e6d469e8aef307599f1021ea5b835
udioPolicyManager.cpp
|
6a8ab05f0598f4ebdd5ef82e93cf32fde0598189 |
24-Jul-2014 |
Glenn Kasten <gkasten@google.com> |
audio policy: add audio_input_flags_t and mOpenRefCount Change-Id: I5f9c7b5ebf03b9bc94efe70d3677edfabb99c194
udioPolicyInterface.h
udioPolicyInterfaceImpl.cpp
udioPolicyManager.cpp
udioPolicyManager.h
|
83b8808faad1e91690c64d7007348be8d9ebde73 |
21-Jun-2014 |
Eric Laurent <elaurent@google.com> |
audio flinger: add patch connection between hw modules Add support for audio device connections between different audio hw modules. The patch is performed by creating a bridge between the playback thread connected to the sink device and the record thread connected to the source device using a pair of specialized PlaybackTrack and RecordTrack. - Added PatchTrack and PatchRecord classes. - Added TrackBase type to indicate more clearly the track behavior. - A TrackBase can allocate the buffer or reuse an existing one. - Factored some code in openOutput() and openInput() for internal use by PatchPanel. Bug: 14815883. Change-Id: Ib9515fcda864610458a4bc81fa8f59096ff4d7db
udioPolicyManager.cpp
|
c15c265676da2226a18a5373812608b19d4719d7 |
23-Jul-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: remove redundant fixed volume management Remove code handling fixed device volume in AudioPolicyManager::computeVolume() as this is already managed by AudioService. Change-Id: Ib2be7578e40652c85a7d44c685ff9cc703d0c969
udioPolicyManager.cpp
|
daf92cc876a1952059794e6d0f558f0f6dd9ac8c |
23-Jul-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix hotword capture commit 1c333e2 introduced a regression causing the wrong input source type to be communicated to the audio HAL when starting hotword (background) capture. Change-Id: Iec6b3c58cbc15b9988793077232ff3e7e72a4d6d
udioPolicyManager.cpp
|
eeaf40a8e413780bd2aacde172ac820e2ce12eb3 |
22-Jul-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: add missing formats to audio_policy.conf parser." into lmp-dev
|
a204994e7dd7dab931297176c66b5d3b82e2c90b |
22-Jul-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: add missing formats to audio_policy.conf parser. Change-Id: I872c11d080c505abe3025e7bbb554ca9711de9af
udioPolicyManager.cpp
|
a7e04803ffa0d8d4cc51a122f68bf5038422aabb |
21-Jul-2014 |
Glenn Kasten <gkasten@google.com> |
Remove execute bit Change-Id: I1cf0c0d9375779b3074af12f4cbf9c1ec07bf4ff
ndroid.mk
udioPolicyEffects.cpp
udioPolicyEffects.h
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyService.cpp
udioPolicyService.h
|
b3b1660ecb67f61f9da54efced8677fa3a6f4863 |
16-Jul-2014 |
Glenn Kasten <gkasten@google.com> |
Add audio_input_flags_t to IAudioPolicyService::getInput Change-Id: I9f37be05f8dc7b85a8827a94e76ca0f45453e170
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyService.h
|
ec40d284218466d8f0e832e7eb88e6ea6c479c88 |
16-Jul-2014 |
Glenn Kasten <gkasten@google.com> |
Add audio_input_flags_t to IAudioFlinger::openInput For backward compatibility, until flags are correctly calculated, we will assume that the request is for a low latency input stream. Change-Id: I76746834e870df00833dc77cbdaa2edd2ffeec95
udioPolicyClientImpl.cpp
udioPolicyClientImplLegacy.cpp
udioPolicyInterface.h
udioPolicyManager.cpp
udioPolicyService.h
|
7b24ee381e806dcb53308c1cafc8a45f4e2d8300 |
15-Jul-2014 |
Jungshik Jang <jayjang@google.com> |
Revisit HDMI-CEC system audio mode in AudioService. From recent feedback on HDMI-CEC system audio mode, it would be unnecessary to enforce output from AudioService. Instead, it would follow audio policy according to status of HDMI-CEC system audio mode. For that removed two params of setHdmiSystemAudioModeSupported api of AudioManager. In terms of speaker mute, it will be handled by removing speaker from audio ouput instead of changing gain control. For that added new force usage type, FOR_HDMI_SYSTEM_AUDIO_MODE and new force config type, FORCE_HDMI_SYSTEM_AUDIO_ENFORCED. This is used to notify change of system audio mode to audio policy manager. Bug: 16305986 Bug: 16002150 Change-Id: I702e0f9ce7c7887d5f5dd02b06a40d20e4c950df
udioPolicyManager.cpp
|
7c5b60ae8b8793b2d601ecf459807c974120331b |
15-Jul-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: build with USE_LEGACY_AUDIO_POLICY Change-Id: I9def12ea689b00c0295c670c07373dacfb186799
udioPolicyInterfaceImplLegacy.cpp
|
388742df51084f02a362818a884f3bde71b7ef8d |
12-Jul-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audiopolicy: remove debug log in AudioPolicyEffects.cpp"
|
897a408b3f9c893776d67214257ca6a6bc1751bd |
12-Jul-2014 |
Eric Laurent <elaurent@google.com> |
audiopolicy: remove debug log in AudioPolicyEffects.cpp Change-Id: Ia037807a91d6649c3f47baccf8c107df496e934e
udioPolicyEffects.cpp
|
1e693b55d888b9d3e0a2ce770ae2b72b59c1a317 |
10-Jul-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: add rules to select audio parameters Added rules to select most appropriate sampling rate, format and channel mask from an input or output profile. Moved mFlags from IOProfile to its base class AudioPort. Removed bogus mChannelMask member in DeviceDescriptor class. Improveed dump of dynamic parameters in AudioPort. Change-Id: Ic09d320386002a8bafee4a28db00b1001a386678
udioPolicyManager.cpp
udioPolicyManager.h
udioPolicyService.cpp
|
2829edccd7d2bb8244246f316face82b650b8949 |
18-Jun-2014 |
aarti jadhav-gaikwad <agaikwad@nvidia.com> |
stagefright: Pass audio aac sub formats in offloadinfo Pass audio aac sub formats in offloadinfo according to aac profile. Audio HAL can take decision about offload using DSP capabilities Change-Id: If269a3654b5d2b09c183212b0646ef03e06f2d8f
udioPolicyManager.cpp
|
0c94309d3c6db555b57f2e2e2dc3a0a2676ac6b7 |
08-Jul-2014 |
Jungshik Jang <jayjang@google.com> |
Revamp HDMI-CEC system audio mode integration with audio service. In previous change we use setForceUse(FORCE_MEDIA, XXX) method in order to set specific audio output type, such as LINE, HDMI_ARC, and SPDIF. But it turns out that it conflicts with bluetooth a2dp which uses the same setForceUse(FORCE_MEDIA, yyy). This change is based on several conditions. 1. When other non-speaker devices are on, prevent system audio from turing on. 2. In order to keep track of other devices' connectivity and to turn off system audio if other device like bluetooth or headphone preempts current output, register OnAudioPortChangeListner to audio manager. 3. All possible system audio outputs can be merged with other outputs without priority. Change-Id: Ic5ccc80f9b48fb77433c347de7969837c69e58c1
udioPolicyManager.cpp
|
817d3356b5c23f01620105141633616b48002779 |
09-Jul-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "Revise speaker volume curve for media on devices with speaker DRC"
|
98c6043e089743355bb6686176877f2ba5125213 |
09-Jul-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Revise speaker volume curve for media on devices with speaker DRC Bug 15318604 Change-Id: I14b451e2d8d4439fe286dd98c45d09b9dadbb4f6
udioPolicyManager.cpp
|
72d039f007722c92ee5ea7ffd03ece19d2781103 |
09-Jul-2014 |
Terry Heo <terryheo@google.com> |
Merge "audio policy: add new input audio device"
|
7999a2236cb641dc1d7bf7bd8d2499d40d0a806d |
27-Jun-2014 |
Terry Heo <terryheo@google.com> |
audio policy: add new input audio device Add entry for AUDIO_DEVICE_IN_LOOPBACK to string to enum table. Bug: 15437484 Change-Id: I552df0969c745bdf66ff9e5d7bd864ef9e3f438d
udioPolicyManager.cpp
|
3c643073650f469574498c68a6c30e5098350c33 |
03-Jul-2014 |
Jungshik Jang <jayjang@google.com> |
Merge "Add force usage and category for System Audio Control."
|
839e4f33906b650140b578d42d6a51300f26703c |
26-Jun-2014 |
Jungshik Jang <jayjang@google.com> |
Add force usage and category for System Audio Control. System Audio Control in HDMI-CEC delegate audio control to audio receiver. When system audio control is selected in audio settings as audio output it should select one of ARC, SPDIF, and LINE as audio output. Whenever user select System Audio as audio output, audio setting should call setForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM_AUDIO, AUDIO_POLICY_FORCE_XXX); and if other output is selected it should call setForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM_AUDIO, AUDIO_POLICY_FORCE_NONE); Change-Id: I1c237ee9291a4e0acf01a86aff3176edce5c14e0
udioPolicyManager.cpp
|
ba2b43990a7b4f0f2c425cf6cdfc63376a45772c |
11-Jun-2014 |
bryant_liu <bryant_liu@htc.com> |
frameworks: av: services: audiopolicy: Added AudioPolicyEffects Manage pre- and postprocessing effects defined in audio_effects.conf Change-Id: Idea1478e3d434f8ff66907adb3c77663db78d583
ndroid.mk
udioPolicyEffects.cpp
udioPolicyEffects.h
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyService.cpp
udioPolicyService.h
|
b919dd3334fed73e16ebac7b7e10cf2add34c338 |
26-Jun-2014 |
Paul McLean <pmclean@google.com> |
Enabling USB Device and Android Device Vol inc/dec functionality for USB Audio Output Bug: 13747844 Change-Id: Ied5bb44f63a4e7183c52f8111e9a389b60ffe75f
udioPolicyManager.cpp
|
84c70244bfea51b3413a8d8ffbf74ca737436251 |
23-Jun-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix several issues on routing APIs. - Do not list duplicated outputs in listAudioPorts(): duplicated outputs are not valid sources for audio patches. Also add asserts to make sure that an audio port with no valid profile is never used by audio routing APIs. - Fix typos causing the wrong device type to be used when creating an audio patch. - Fix error in building config mask in toAudioPortConfig(). Change-Id: I4505891dbed2c2fa92804d45505c3c2deb921f3e
udioPolicyManager.cpp
|
beb9e30471701d7b76bc14fd0d5dd1de95edd680 |
19-Jun-2014 |
Mark Salyzyn <salyzyn@google.com> |
audiopolicy: 64-bit compile warnings Change-Id: I71db11499c4b0c434df8144c633d42282f5823c2
udioPolicyManager.cpp
|
ab5cdbaf65ca509681d2726aacdf3ac8bfb6b3fa |
10-Jun-2014 |
Eric Laurent <elaurent@google.com> |
AudioTrack: add support for compressed audio Add support for compressed audio playback by use of an AudioTrack attached to a direct output thread. Bug: 9428304. Change-Id: I4a61be9cf0e31003ca85935d6e0ee38ca8192e03
udioPolicyManager.cpp
|
5bd3f38638acab633d181359cc9ec27b80f84d43 |
14-Jun-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioPolicyManager: return output for audio attributes In AudioPolicyManager, support querying an output or playback strategy for audio attributes, instead of a stream type, In AudioTrack creation, use the output returned for the track's attributes. Change-Id: I0fef05845ba676404775e2e338c10e6a96237268
udioPolicyInterface.h
udioPolicyInterfaceImpl.cpp
udioPolicyManager.cpp
udioPolicyManager.h
udioPolicyService.h
|
eb4b03cb98e38bf76ee6e6debb74e76c30cbc228 |
11-Jun-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: use factory to create audio policy manager"
|
f269b8e0e9ab950fc6652b9594b7a3431c81630c |
10-Jun-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: use factory to create audio policy manager Use the class factory to create the audio policy mamager instead of AudioPolicyManager class constructor and use a pointer to an AudioPolicyInterface. Change-Id: Ibb5a8eee5d597db67cf13f279c909181cfee9949
ndroid.mk
udioPolicyFactory.cpp
udioPolicyService.cpp
udioPolicyService.h
|
59a8923027d2d6a155c0fa434ae65559318da4b6 |
08-Jun-2014 |
Eric Laurent <elaurent@google.com> |
audio policy service: fix potential deadlock in destructor In the AudioCommandThread loop, release mLock before releasing the strong reference on the service as AudioPolicyService destructor calls AudioCommandThread::exit() which acquires mLock. Also check exiPending in thread loop before processing pending commands or sleeping. Bug: 15449050. Change-Id: I148bf21bd67ef721b5b5ee2c1a6afb185c59daa3
udioPolicyService.cpp
|
7e45ef9db7446d33c941961c14555413641e444b |
07-Jun-2014 |
Eric Laurent <elaurent@google.com> |
am 318cd78e: Merge "audio policy: added audio HAL version in audio_policy.conf" into lmp-preview-dev * commit '318cd78e3b8503113919191b3711eb8be5d23d35': audio policy: added audio HAL version in audio_policy.conf
|
eb108a4622825688b02d7afc981014d149913cd8 |
06-Jun-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: added audio HAL version in audio_policy.conf Each hardware module section in audio_policy.conf indicates the audio HAL version it implements. Also added a template audio_policy.conf file with examples of device and gain descriptors added for audio HAL version3.0. Bug: 14815883. Change-Id: Id219d121f81f687363f6c18f2d1684b2448dcdf4
udioPolicyManager.cpp
udioPolicyManager.h
udio_policy.conf
udio_policy_conf.h
|
6f264ac08317a27958f2b0d3c35133b368dd9f3c |
06-Jun-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Merge "Audio policy: new media volume curve for speaker with DRC"
|
ccd8e4a9da4d0bcc2c715452c5a18fabb23f86ac |
06-Jun-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Audio policy: new media volume curve for speaker with DRC For devices with DRC on speaker (using the flag "speaker_drc_enabled" in audio_policy.conf), set the speaker media volume to use a new curve with more aggressive attenuation in the upper range. Bug 15318604 Change-Id: Ia5fb9fdd608fddad22fadfb1065d35574030bb52
udioPolicyManager.cpp
udioPolicyManager.h
|
e40ed90293eeb0feecb5b7729cf24f8ecea9b412 |
05-Jun-2014 |
Eric Laurent <elaurent@google.com> |
am 26594add: Merge "audio policy: new setAudioPortConfig implementation" into lmp-preview-dev * commit '26594add1ec0b6255c96b39e43ccdc95b2c480aa': audio policy: new setAudioPortConfig implementation
|
a408743e8a759b344ac95322ae336459a81edf24 |
04-Jun-2014 |
Eric Laurent <elaurent@google.com> |
am 4bd9d452: Merge "audio policy: removed raw pointers." into lmp-preview-dev * commit '4bd9d45230cd69c0409591874db3e6f2e3a226b3': audio policy: removed raw pointers.
|
aaaea95d23b78313b7ddf1f8f670c9b0110474ed |
04-Jun-2014 |
Eric Laurent <elaurent@google.com> |
am 83438ce6: Merge "audio policy: add permission for routing APIs." into lmp-preview-dev * commit '83438ce6cbbff49ca26d4bd694ffdad4842ded5a': audio policy: add permission for routing APIs.
|
a121f90f388343dc48793cbc7eb899aba42e7664 |
03-Jun-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: new setAudioPortConfig implementation Rewrite setAudioPortConfig() to take advantage of the new AudioPortConfig class. The configuration is now checked against AudioPort capabilities and stored in the AudioPortConfig. Fix a bug where the config mask was not set properly when calling setAudioPortConfig at the PatchPanel interface. Remove debug log in IAudioPolicyService. Bug: 14815883. Change-Id: I7eb7683a96e049581c13f2a212486507883d008d
udioPolicyManager.cpp
udioPolicyManager.h
|
1f2f2230900581e5de9cf01a883e5d9338f0df94 |
02-Jun-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: removed raw pointers. Use only RefBase objects for the following classes: - AudioOutputDescriptor - AudioInputDescriptor - HwModule - EffectDescriptor Create a common base class AudioPortConfig for: AudioOutputDescriptor, AudioInputDescriptor and DeviceDescriptor Bug: 14815883. Change-Id: I1bd193ef1020780d8b94c13142029903615aba97
udioPolicyManager.cpp
udioPolicyManager.h
|
5284ed53c14cd4d15bd793000ede7166d143e69a |
29-May-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: add permission for routing APIs. Add check for signature or system permission "android.permission.MODIFY_AUDIO_ROUTING" for routing APIs. Bug: 14815883. Change-Id: Iefa0b9d90127a53e03a2e6d50dc93d8f4ae63e2f
udioPolicyInterfaceImpl.cpp
|
43466a133984182b250453cea244eb146e83c010 |
02-Jun-2014 |
Eric Laurent <elaurent@google.com> |
am 62aaabb3: audio policy: fix unitialized hw module in audio port * commit '62aaabb3905c61bb7acd6037414c206240a31c32': audio policy: fix unitialized hw module in audio port
|
62aaabb3905c61bb7acd6037414c206240a31c32 |
02-Jun-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix unitialized hw module in audio port The hw module handle was not initialized when creating and audio port configuration from an input stream descriptor. Bug 15376641. Change-Id: I6c784cded68a5c665fd22c3643765c63f70eb241
udioPolicyManager.cpp
|
481c8837c7f67852e06137d636915ea6e96247e3 |
31-May-2014 |
Eric Laurent <elaurent@google.com> |
am e1715a46: audio policy: add audio port gain control * commit 'e1715a465a29db625da9d0ea365edf371e39e201': audio policy: add audio port gain control
|
68f5fb51f6ef2f54a0955bac98c16c2aa811f809 |
31-May-2014 |
Eric Laurent <elaurent@google.com> |
am 1afeecb8: audio policy: parse device descriptors in config file * commit '1afeecb88bea660b2c10b2096be0fd02433303ce': audio policy: parse device descriptors in config file
|
72aa32f7dbbfb658097930b57659d8e50f24a953 |
31-May-2014 |
Eric Laurent <elaurent@google.com> |
resolved conflicts for merge of b52c152d to master Change-Id: I34869bda071d511c9595ea0a5ff6571eb34da059
|
e1715a465a29db625da9d0ea365edf371e39e201 |
20-May-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: add audio port gain control Implement setAudioPortConfig() API to configure an audio port. Currently limited to gain control. Bug: 14815883. Change-Id: Ic1b268e5ba5c277e9f5b8fa63c81dd7c0b250024
udioPolicyClientImpl.cpp
udioPolicyInterface.h
udioPolicyManager.cpp
udioPolicyService.cpp
udioPolicyService.h
|
671714b80cad4725d07691fbd8284cb869a0c27f |
30-May-2014 |
Eric Laurent <elaurent@google.com> |
am 6a94d69d: audio policy: implement routing control * commit '6a94d69dc4f32abb53c466a96f905bb199be6417': audio policy: implement routing control
|
c0008d1146ccdeda0a4eb08f8225225b1b1237dc |
30-May-2014 |
Eric Laurent <elaurent@google.com> |
Merge "handle in and out audio device connection separately"
|
1afeecb88bea660b2c10b2096be0fd02433303ce |
14-May-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: parse device descriptors in config file Implement parsing of audio_policy.conf for device and gain controller definitions. Copy audio_policy_conf.h from hardware_legacy. New syntax for devices and gain controllers description will not be parsed by legacy audio policy manager. Bug: 14815883. Change-Id: I7f1035d514dcf55fb3e45ed1f633a2f63ee398f5
udioPolicyManager.cpp
udioPolicyManager.h
udio_policy_conf.h
|
b52c152d553556b2d227ffc943489de0c60b4b02 |
20-May-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: add routing update client interface Added IAudioPolicyServiceClient client binder interface for client process to receive notifications from AudioPolicyService when audio ports are added/removed or audio patches created/released. The audio patches owned by a given client are automatically released when this client binder dies. Bug: 14815883. Change-Id: I6013f6aec03b50565cffb1ad2cd1f0f8852032c5
udioPolicyClientImpl.cpp
udioPolicyInterface.h
udioPolicyManager.cpp
udioPolicyService.cpp
udioPolicyService.h
|
6a94d69dc4f32abb53c466a96f905bb199be6417 |
20-May-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: implement routing control Add implementation of audio routing control via AudioSystem APIs. The following APIs are implemented: - listAudioPorts(): return a list of devices and output/input mixers ports that can be used as sources or sinks for audio patches. - createAudioPatch()/releaseAudioPatch(): create/release a connection patch between two audio ports (e.g. to connect input from an HDMI device to a speaker output device). Only one client application can own a patch from a given source. When an audio port (device or mix) is part of an application created patch, its routing cannot not be changed by a policy decision. - listAudioPatches(): return a list of existing patches. Each audio port addition/removal and each audio patch creation/release increments a generation count. This generation count is used to ensure consistency betwen calls to listAudioPorts() and listAudioPatches(). Bug: 14815883. Change-Id: I022b638c2f5f0bb41543c7cfca7488fb45cfdd80
udioPolicyInterface.h
udioPolicyInterfaceImpl.cpp
udioPolicyManager.cpp
udioPolicyManager.h
|
b71e58b64cd4992355cf6afaf3f3530f723bc72c |
30-May-2014 |
Eric Laurent <elaurent@google.com> |
handle in and out audio device connection separately AudioService now indicates in and out device connection separately in case of combined devices like wired headset or BT SCO headset. Change-Id: I97adf8343d0ce32c279ffc3cce5c84ca7a349e16
udioPolicyManager.cpp
|
1afdf38e0d8979e0a6bd5f3cc9b6751ca132753e |
28-May-2014 |
Mike Lockwood <lockwood@google.com> |
Merge "Add audio policy support for A2DP sink"
|
203b1a18a806e2c56c701aac49cda963bccfad5b |
01-Apr-2014 |
Eric Laurent <elaurent@google.com> |
DO NOT MERGE - IAudioPolicyService interface extension for patch panel Change-Id: I0a62e5416edc41c3a0e816275085ab18a23066f1
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyService.h
|
951f455566775e5f01e67c5ee26863d7d19209d7 |
20-May-2014 |
Eric Laurent <elaurent@google.com> |
DO NOT MERGE - audioflinger: first patch panel implementation. Added a new PatchPanel subclass to AudioFlinger to handle audio ports and audio patches configuration and connection. The first implementation does not add new functionnality. AudioPolicyManager uses patch panel interface to control device routing. AudioFlinger: - Added PatchPanel class. The first implementation does not add new functionnality. PatchPanel handles routing commands for audio HAL after 3.0 or converts to setParameters for audio HALs before 3.0. - Added config events to ThreadBase to control synchronized audio patch connection. AudioPolicyManager: - Use PatchPanel API to control device selection isntead of setParameters. - New base class AudioPort common to audio device descriptors and input output stream profiles. This class is RefBase and groups attributes common to audio ports. - Use same device selection flow for input as for outputs: getNewInputDevice -> getDeviceForInptusiource -> setInputDevice Change-Id: Idaa5a883b19a45816651c58cac697640dc717cd9
udioPolicyClientImpl.cpp
udioPolicyInterface.h
udioPolicyManager.cpp
udioPolicyManager.h
udioPolicyService.cpp
udioPolicyService.h
|
e5cfbd53612f2383f2e32b7a2605628f3c7baf6e |
23-May-2014 |
Eric Laurent <elaurent@google.com> |
DO NOT MERGE - audio policy: enable use of new AudioPolicyManager Do not define USE_LEGACY_AUDIO_POLICY by default. By default, all devices will now use the new audio policy implementation in AudioPolicyManager.cpp To continue using the legacy audio policy implemented by AudioPolicyManagerBase in libhardware_legacy a device should define USE_LEGACY_AUDIO_POLICY in its makefile. Change-Id: I7b8cac3cbb24b11105ba6233501c7212f5985727
ndroid.mk
|
41b0e2421a0cf8dc22f224ea078678d7db651bda |
14-May-2014 |
Mike Lockwood <lockwood@google.com> |
Add audio policy support for A2DP sink Change-Id: Ifcad9c1d4bdb79668e03a31d843ec46670dd0bd8
udioPolicyManager.cpp
|
8670c31fddbeadcf9627aa970c69a823f13939ff |
01-Apr-2014 |
Eric Laurent <elaurent@google.com> |
IAudioPolicyService interface extension for patch panel Change-Id: I0a62e5416edc41c3a0e816275085ab18a23066f1
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyService.h
|
1c333e252cbca3337c1bedbc57a005f3b7d23fdb |
20-May-2014 |
Eric Laurent <elaurent@google.com> |
audioflinger: first patch panel implementation. Added a new PatchPanel subclass to AudioFlinger to handle audio ports and audio patches configuration and connection. The first implementation does not add new functionnality. AudioPolicyManager uses patch panel interface to control device routing. AudioFlinger: - Added PatchPanel class. The first implementation does not add new functionnality. PatchPanel handles routing commands for audio HAL after 3.0 or converts to setParameters for audio HALs before 3.0. - Added config events to ThreadBase to control synchronized audio patch connection. AudioPolicyManager: - Use PatchPanel API to control device selection isntead of setParameters. - New base class AudioPort common to audio device descriptors and input output stream profiles. This class is RefBase and groups attributes common to audio ports. - Use same device selection flow for input as for outputs: getNewInputDevice -> getDeviceForInptusiource -> setInputDevice Change-Id: Idaa5a883b19a45816651c58cac697640dc717cd9
udioPolicyClientImpl.cpp
udioPolicyInterface.h
udioPolicyManager.cpp
udioPolicyManager.h
udioPolicyService.cpp
udioPolicyService.h
|
7a0aecb09a562fec144c07aeb7a3468a1e6da52e |
23-May-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: enable use of new AudioPolicyManager Do not define USE_LEGACY_AUDIO_POLICY by default. By default, all devices will now use the new audio policy implementation in AudioPolicyManager.cpp To continue using the legacy audio policy implemented by AudioPolicyManagerBase in libhardware_legacy a device should define USE_LEGACY_AUDIO_POLICY in its makefile. Change-Id: I7b8cac3cbb24b11105ba6233501c7212f5985727
ndroid.mk
|
d83062287758be57d1d0908b30bb18aa9b367f38 |
22-May-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: split audio policy library"
|
98c6be0e30fa28e752b13f3dd5986d41710bb7ae |
21-May-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: split audio policy library Split audio policy library into a service part and a policy part. This will allow OEMs to customize the policy part: - libaudiopolicyservice for the service. - libaudiopolicymanager for the policy. Two build options can be defined in device make file to select the policy library: - USE_LEGACY_AUDIO_POLICY = 1: this will use the legacy policy in hardware/libhardware_legacy implemented by AudioPolicyManagerBase class. This policy is loaded as a harware module and exposes the audio policy HAL defined in include/hardware/audio_policy.h and is in a library called audio_policy.XXX.so (e.g audio_policy.default.so) The legacy HAL will not be updated with new features. If USE_LEGACY_AUDIO_POLICY is not defined, the policy is implemented by a class named AudioPolicyManager exposing an interface defined in AudioPolicyInterface.h. The corresponding library is libaudiopolicymanager.so. New features will be added only to AudioPolicyInterface.h The default implementation is provided here in file AudioPolicyManager.cpp OEMs wanting to cutomize the policy can implement the AudioPolicyManager class and provide the libaudiopolicymanager.so library. In this case the device make file should define: - USE_CUSTOM_AUDIO_POLICY = 1 For now, USE_LEGACY_AUDIO_POLICY = 1 is forced in audio policy service make file. This will be removed when the new audio policy is enabled. Change-Id: I066799dacc9b182b468a43d48ff7798c9109a414
ndroid.mk
|
1b776237ec911f4bb09f42f295b41e13f5f49113 |
20-May-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: add new audio devices Add entries for new audio devices to string to enum table used for audio_policy.conf file parsing. Change-Id: Ica04c34af037d890a343af0b9eeb2ff0e5c86b02
udioPolicyManager.cpp
|
0ede8924b98c2967be2795e8d4f9837d8d3f094c |
10-May-2014 |
Eric Laurent <elaurent@google.com> |
audiopolicy: refactor audio command threads - Use strong pointers for command data to avoid transfering ownership of the object to receiver thread. This avoids waiting for the command acknowlegement to proceed with next command on server side. - Use a separate mutex for each command condition. - Factor in duplicated code to send commands. Change-Id: Ib0526e7c4fa64a71ad4015f477c6361727c6f40a
udioPolicyService.cpp
udioPolicyService.h
|
99401131e58f2ff7f5571037d0d53b6f684e5543 |
08-May-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix mute delay when setting output device The duration of the temporary mute applied on each output when switching device must be more than twice the actual delay we wait for the mute to be effective at the output. Otherwise some outputs with short latencies will be unmuted before the device switch is actually executed. This change makes sure that we take the maximum wait time into account when requesting the delayed unmuting of each output. Change-Id: Id92c201b47786082a44b6a5c1c8015273835a42e
udioPolicyManager.cpp
|
cdedf74e34117f9834055973880ee728f11d97cd |
08-May-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: cleanup AudioPolicyService destructor"
|
657ff61389d7316f798d4abe03efac56fd528d91 |
07-May-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: cleanup AudioPolicyService destructor No need to clear strong pointers in the destuctor. Add explicit exit() command to mOutputCommandThread. Change-Id: I60bb248fe6a20bfd8a55358ef139692b93df0238
udioPolicyService.cpp
|
5b61dddd0dba28922068da2487894761486aec6c |
07-May-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: fix typo in AudioPolicyManager constructor Fix cut/paste error in new AudioPolicyManager constructor causing the same index variable to be reused in nested for loops. Change-Id: Id57ff19bf6dd8974486b07c8252029e377df2747
udioPolicyManager.cpp
|
d46929666d7e4b1cad45afd7dcb883ec4dd2d49f |
06-May-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: update from libhardware_legacy Merge changes made to AudioPolicyManagerBase in libhardware_legacy since it was forked here: fd61179 Update policy handling for USB inputs c7b6e3c audio: allow compiling for 64-bit c26f454 Initial implementation of USB Audio output. a7b1bc9 Audio policy is 32-bit only 26101ad audio policy : add AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnumTable Change-Id: I22bc883c20603a6598c6ee3ded636e9cc4d9ec03
udioPolicyManager.cpp
udioPolicyManager.h
|
7ebe2c64dea42a3fd4de34ccb877d23b7a4e8076 |
06-May-2014 |
Eric Laurent <elaurent@google.com> |
am 71171988: am f655acf1: am 8fb04d47: Merge "Fix memory leak when filtering commands in insertCommand_l()" * commit '711719885d7563068579abf347c366cf6bc906f5': Fix memory leak when filtering commands in insertCommand_l()
|
2f8a36fc8df14cba33fa7c5c1c9d5a52f8a133c2 |
27-Mar-2014 |
Eric Laurent <elaurent@google.com> |
Fix the build Change-Id: I2169a3d26f4e35e5cfa35a1264175aab6ac4db41
udioPolicyManager.cpp
udioPolicyManager.h
|
1b512c05f46465a7b1a1d69f82937d7199d5d926 |
17-Mar-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: remove obsolete AudioPolicyManager class members Remove mHasA2dp, mHasUsb and mHasRemoteSubmix members from AudoPolicyManager. They are not needed any more since we use device descriptors with additional attributes. Also remove obsolete limitation on device address length (MAX_DEVICE_ADDRESS_LEN). Change-Id: Iffe760a521692a4b50be3f6b935af84afb61bb86
udioPolicyManager.cpp
udioPolicyManager.h
|
3a4311c68348f728558e87b5db67d47605783890 |
17-Mar-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: use new audio device representation Represent audio devices with more attributes than just the type (audio_device_t). This is in preparation for new routing APIs allowing device selection based on more criteria than just the type (address, channel mask...) A new class DeviceDescriptor is created and used by functions needing more information than just the device type. Bit fields for available and supported input or output devices are replaced by vectors of device descriptors. Each available device is allocated a unique ID for future use. Removed obsolete mA2dpDeviceAddress, mScoDeviceAddress and mUsbCardAndDevice fields replaced by address stored in DeviceDescriptor. Policy decisions like getDeviceForStrategy() are still based only on the device type. Change-Id: I5de3b3ffb12ff8dcfb746782ab1e6b15bf040d0c
udioPolicyManager.cpp
udioPolicyManager.h
|
9ac3c9a7ee931088d09027ffa09414cb0402886f |
21-Mar-2014 |
Eric Laurent <elaurent@google.com> |
Merge "audio policy: add option to use new policy manager"
|
c7e05b0fc54f9ad22c6d219bf8cf6f10f8d9ba9c |
18-Mar-2014 |
Glenn Kasten <gkasten@android.com> |
am 0c282de7: am 77658a06: Merge "AudioPolicyService: malloc/delete pair" * commit '0c282de73240b1efce64558ab2fa0a8be1f4292b': AudioPolicyService: malloc/delete pair
|
dce54a1492c410ad0d93253b341fb33305337505 |
10-Mar-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: add option to use new policy manager Add build option USE_LEGACY_AUDIO_POLICY to use either new audio policy manager in local AudioPolicyManager.cpp or the legacy AudioPolicyManagerBase.cpp via the policy HAL. New features will be implemented only by the new audio policy manager. Platform customiization will be by config file or new policy HAL. AudioPolicyClientImplLegacy.cpp copied from AudioPolicyClientImpl.cpp AudioPolicyInterfaceImplLegacy.cpp copied from AudioPolicyInterfaceImpl.cpp New implementations of AudioPolicyInterface and AudioPolicyClient talking directly to AudioPolicyManager. Change-Id: I7a320883a1de13de2c9295343e996addf2f3c154
ndroid.mk
udioPolicyClientImpl.cpp
udioPolicyClientImplLegacy.cpp
udioPolicyInterface.h
udioPolicyInterfaceImpl.cpp
udioPolicyInterfaceImplLegacy.cpp
udioPolicyService.cpp
udioPolicyService.h
|
e07208765fcd5904165e425ec714a25c350a2f40 |
11-Mar-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: renamed AudioPolicyManagerBase to AudioPolicyManager Change-Id: Ia8b5ae9c3a9cf6ed98f162614ea331efc78e9ff2
udioPolicyManager.cpp
udioPolicyManager.h
udioPolicyManagerBase.cpp
udioPolicyManagerBase.h
|
3b73df74357b33869b39a1d69427673c780bd805 |
11-Mar-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: remove dependency from AudioSystemLegacy Remove all dependencies on AudioSystemLegacy from AudioPolicyManagerBase. Only use types and definitions from audio.h and audio_policy.h. Also move code back into android name space. Change-Id: I0c2582cf854027fb1e599981865a6cbe7b5a9490
udioPolicyInterface.h
udioPolicyManagerBase.cpp
udioPolicyManagerBase.h
|
e552edb33fb5873179ae0a46d9579d1103eb13c6 |
11-Mar-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: import audio policy manager from hardware legacy Import AudioPolicyManagerBase from hardware/libhardware_legacy to prepare move from android_audio_legacy name space. Change-Id: I5d6682ccd2bfdeefbf2f6f81a557480a76aaf4fc
udioPolicyInterface.h
udioPolicyManagerBase.cpp
udioPolicyManagerBase.h
|
2d388eccc9dc085337c7a03a68467cbee6b809e1 |
07-Mar-2014 |
Eric Laurent <elaurent@google.com> |
audio policy: split implementation Split audio policy service implementation to ease further evolution: AudioPolicyInterfaceImpl.cpp contains the implementation of IAudioPolicyService interface AudioPolicyClientImpl.cpp contains the implementation of the AudioPolicyManager client interface AudioPolicyService.cpp contains the rest of the code mostly command threads implementation and pre processing management. AudioPolicyService.cpp: Change-Id: Ic48ba165532ef66e84a30894d01f750ed6619d02
ndroid.mk
udioPolicyClientImpl.cpp
udioPolicyInterfaceImpl.cpp
udioPolicyService.cpp
|
c7e5040aa8b8e4da86814bf560346c7571e48087 |
06-Mar-2014 |
Eric Laurent <elaurent@google.com> |
move audio policy service to a separate library Change-Id: Ibc3ef07aa9860b7fd4f9aaff27b0dbe0dcbf1cbf
ndroid.mk
udioPolicyService.cpp
udioPolicyService.h
|