Update audio patch in automotive HAL extension
to support device to device patch only.
Remove playback or capture patch as they are
supported at audio hw level.
Change-Id: If3cf097e4ed010548e1d3ab421611490f284157b
FM TX out device defined in HAL conflicts with hearing
aid output device defined in audio-base.h. Clean up FM
device as it is no longer needed.
Change-Id: Ibe2923272a69d24c3a1e44a045a590d185493caf
Audio devices were stored in HAL on variables with
type audio_devices_t. This change removes the storage
of multiple devices on a bitfield. Device comparisons,
assigments, removal have been updated. Helper functions
have been introduced for device operations.
Change-Id: I9ce8b0f9bdc542c386cbfe45b685158cc51d47b6
Implement create_audio_patch and release_audio_patch
APIs for stream routing. Framework will
call these APIs instead of set_parameters to update
routing for a stream.
Increment HAL major version to 3.
Change-Id: Ife914f3277f2b3aa02e88e722d191c3f930e8095
* Add ec_car_state to switch between single-mic
and multi-mic ecns hfp calls.
* Add the capability to have an echo reference for
both single-mic and multi-mic ecns hfp call.
* New snd device is introduced for multi-mic ecns hfp.
Change-Id: I5a8c869cf6854020e15efb61cbaf78f3f027e1ee
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
Signed-off-by: Derek Chen <chenche@codeaurora.org>
getVendorEnhancedInfo() was added in vndk fwk detection library, and it
offers more detailed info on system and odm partitions. Accomodate this
enhancement into HAL as it's needed for GSI variant.
CRs-Fixed: 2519894
Change-Id: I41fb065a66edb15839d3efe570162997debdda37
- Enable HiFi filter for 48kHz, 44.1kHz Music playback
Change-Id: I87a87b0d719ac4ba82b3d16331711b85459a3edb
Signed-off-by: Ramlal Karra <rkarra@codeaurora.org>
Use BUS device associated usecases for SND
device selection on automotive platform.
The criteria for SND device selection are
* HFP calls: usecase->id;
* NON HFP calls: out->car_audio_stream.
Change-Id: If5eb1283e6bfec074efceb4f545a28fdd3dbf601
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
Add support TX and RX calibration for HFP call
on both uplink and downlink ASM loopback path.
Change-Id: I66dec9ec01e0645ba6f5c21a4e64aabd10e2b6a5
Signed-off-by: Derek Chen <chenche@codeaurora.org>
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
Support dynamic feature enablement for auto hal
driver compilation.
Update fp for ext_hw_plugin driver.
Change-Id: Id534530875068b9641df103a3b58aaac06c7578e
QC defined interfaces in tinycompress to handle metadata of extended
audio format. These interfaces aren't enabled in tinycompress lib.
Use feature flag to enable these APIs for QC AHAL.
CRs-Fixed: 2491047
Change-Id: I0644bd0965a3850ef4c728ca881bf81cdbd8bc53
During fm plaback even though routing device is changed from WHP
to SPK on UI, fm continues to route through WHP on targets with
shared backend for WHP and SPK. This is due to APM unaware of
routing device is change to SPK and selects WHP to play LL touch
tones causes all active usecase on SPK to move to WHP and fm
routes through WHP.
Change is to handle this scenario by re-routing fm on SPK once
standby is received for LL touch tones.
Change-Id: Ia503d4c134a3679fc2a51e2f9b7b8343e7b7cd1e
Support snd card status string with set parameters
API for audio HAL dev and input/output streams.
Remove hostless session control in auto hal as it
is managed in audiod.
Change-Id: I3390ca26cf49cef86df116d8e28c5c558f9afee6
Add support for FAST FLAG in capture path.
Clients may request to open the compress session
in perf mode by passing the FAST FLAG.
Change-Id: I2b6cc50b0dd45aa6d6d78362392e4ee39dddd967
Add support for low latency compress capture.
Client may pass the required capture duration as part
of config. HAL will decided the buffer size based on
this.
Change-Id: I39aa6d99c954877449a827468cea4b1d4304637d
Add API support to stop input stream.
Expose in_stop in HAL via QAHW so that clients may call it
when necessary.
Change-Id: I5b1112166453371ab4d79c31fa99fb1f6b3bff3f
This change adds new usecases to the list that will raise a
usecase event to sthal. USECASE_AUDIO_PLAYBACK_LOW_LATENCY and
USECASE_AUDIO_PLAYBACK_ULL are added with system property checks.
USECASE_AUDIO_PLAYBACK_MMAP is also added without a system
property. Additionally, screen state events can now be sent to
sthal.
Change-Id: I936b2390d886b67695daf184a2ca1b018ed17567
Add support to capture mic and ec reference data in single stream.
Add changes to update custom matrix params to configure PSPD.
Change-Id: I29f38c0d778d44217a9e0d59e4b1324f4ee81fdd
Add snd card status callback in auto hal for hostless
session (early TDM clock) enablement in the event of
subsystem restart.
Change-Id: I9758f6a737f25387cffa8ffaade24bd89ef239a2
Support bus device based audio stream volume
control in dsp or codec h/w over audio HAL port
config interface for automotive audio.
Change-Id: I87be963c0af96bf27dfa65900d8a916525ba0356
Add support for car audio streams and usecases
including media, system notification, navigation
guidance and phone.
The car audio streams are routed to bus devices
with assigned address, which is defined in audio
policy configuration. This enables dynamic mixing
and routing done by Android car framework from
application to AudioFlinger and audio HAL.
Change-Id: I583fc7b5f2e8850b064a3cde5f93693b16c47841
For combo devices, each of the sound device may have different
sample rate, so calibration data should be sent with its own
sample rate value.
Use the sample rate per sound device for calibration.
Change-Id: If1989b8ceb166a905f3e438161765b4b3a6dc5f5
Add support to query presentation position from DSP
in system time domain.
Change-Id: I475aeedb7a3691027698ca91747b801dff569d21
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
HAL forces mono configuration for VoIP. This is due to VoIP
topology being configured as mono. However, pure AOSP
targets support VoIP with stereo configuration. HAL forcing
mono would lead to mismatched configuration. Correct this by
forcing mono only on vendor enhanced targets.
Change-Id: Icc63e14469ef67b5d916cebdba56a45910dcf28d
- use vendor property to check if feature is enabled or disabled
and remove feature manager and helper
Change-Id: I6cd70ad364720f1c241ecabe5c4a795b33e0e4e5