Removed extern "C" declaration in header files. Since all
files at lvm/lib are .cpp and all function names are unique,
extern "C" is no longer required.
Note: Build errors due to renaming of files to .cpp
are taken care in this patch.
Test: android.media.cts.AudioEffectTest
Test: android.media.cts.AudioPreProcessingTest
Test: android.media.cts.BassBoostTest
Test: android.media.cts.EnvReverbTest
Test: android.media.cts.EqualizerTest
Test: android.media.cts.LoudnessEnhancerTest
Test: android.media.cts.PresetReverbTest
Test: android.media.cts.VirtualizerTest
Test: android.media.cts.VisualizerTest
Test: Play Music offload / non-offload
Test: Tested using standalone application
Bug: 129491957
Change-Id: I7033146c21681372a212d507f959ab02568b7538
unlinkToDeath is no longer required, (this change in behavior is to
avoid leaks) so holding onto the service here (still calling
unlinkToDeath to avoid a log, but may for instance remove all
unlinkToDeath calls in the future).
Bug: 145692765
Test: boot, see linkToDeath maintained
Change-Id: Ib74ab470580643ff61fc684fdd4e16d5e38389af
Hidden stream type (e.g. rerouting/patch) and usages are not
part anymore of engine configuration schema.
This CL programmatically adds the internal system strategies
and volume associated.
Test: atest VtsHalAudioPolicyV1_0TargetTest
Bug: 141989952
Change-Id: I3d182bf374a4bd6ae10e7c408d51f83f6a2ea378
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
-Add remote submix in legacy address as criterion type value
-Add volume curves for all device cat for rerouting/patch streams
-Silent reset input device
Test: build
Bug:
Change-Id: I3578f9a05899f20847c123477451f1eb97ed5cee
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
[AudioPolicy][Engine] Add remote submix in legacy address
Bug:
Test: build
Change-Id: Ic00e892a03c3b6f6ce3748ea1eb02452bf01c23f
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
New assistant stream has been added.
This CL fixes the support of new stream within configurable engine.
Bug:
Test: build
Change-Id: If33aa6ea668655d933d274d9c46447185f75c8d0
Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
This CL prevents from regression each time audio-base.h is changed on
enumeration coupled with Parameter Framework structure.
The Structure type file is generated from the audio-base.h. If misaligned,
Settings would not be generated, it won't compile.
This CL also fixes a typo on name as names are now aligned.
Bug:
Test: build
Change-Id: I8fd15a8d2f92908dceb2baf7ca8d35f4a69f7904
Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
The linker error previously seen no longer happens - it probably got
fixed by a non-toolchain-related change since clang-r349610 from Feb
2019 is able to build libmediandk with coverage in the Q branch.
Bug: http://b/124522995
Test: mmma NATIVE_COVERAGE=true frameworks/av/media/ndk and check that
built libmediandk.so has __gcov_flush symbol
Test: Presubmit target cf_x86_phone-userdebug_coverage
Change-Id: I24f0c3fbbea733a521ea97e4fe28c94c6f607119
This CL adds fm_tuner and echo_reference in the list of allowed
input sources for default effect(s) instantiation.
XSD aligned accordingly.
Test: build
Bug:
Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Merged-In: I0da109d637dac646ee43e2dd602ddfb0b21fa31d
Change-Id: I0da109d637dac646ee43e2dd602ddfb0b21fa31d
This CL removes duplicated code for patch creation for
-voice call
-system API to create patches.
-system API to start/stop AudioSource
It creates internal methods to create/release Audio Patches.
The benefit of this rework is to have startAudioSource now working
whatever Sw or HW bridging is used.
Test: Voice Call
Bug:
Change-Id: I82738d116abd94f7738fce8ca3a1c3466942060a
Merged-In: I82738d116abd94f7738fce8ca3a1c3466942060a
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
This CL updates the parser to support a new attributes in GlobalConfiguration
in order to support dynamic loading of engine.
The given value shall be <<none>|default|configurable>
XSD for HAL v6.0 has been updated accordingly.
Bug: 141989952
Test: build & audio check
Change-Id: I5774597e252261d8369cd7dc3cce9bb7056e1569
Merged-In: I5774597e252261d8369cd7dc3cce9bb7056e1569
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
If CreateFromService("default") fails, then get codec2client from
CreateFromService("software")
Bug: 147836127
Test: on Pixel 2, C2DecoderTest -P /data/local/tmp/MediaBenchmark/res/
Change-Id: Iedcaa3a462a5c27f5ef843ef1233c8d06ad3d1d1
libstagefright_mpeg2support actually doesn't link with libmedia. It uses
headers from the library. Replace the shared lib dependency to the
library with the header lib dependency to libmedia_headers and
libaudioclient_headers.
Bug: N/A
Test: m libstagefright_mpeg2support
Change-Id: I87dba95b344eb95c9d36746c8234640815236956
* clang-tidy segmentation fault
Test: make with WITH_TIDY=1 and tidy checks for nightly builds
Bug: 146435095
Change-Id: Id9d5a10ebe73d902098d23c1a74954f82fef0607
Add management of audio effects applied to a specific input
or output audio device.
A new class DeviceEffectProxy derived from Effectbase is added
to represent an effect attached to a particular audio device type and
address. This proxy manages one or more actual EffectModule instances
automatically added to a playback or capture thread or directly to the
audio HAL when the targeted audio device is used by an audio patch.
A new DeviceEffectManager class is added to manage creation and release
of DeviceEffectProxy instances and monitor creation and release of audio
patches and create or release actual effect instances accordingly.
Bug: 136294538
Test: make
Change-Id: I23b9f9db4459136039c5ee327cf3b1aefa7db5af
Merged-In: I23b9f9db4459136039c5ee327cf3b1aefa7db5af