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
flags
Removed all feature flags except those that are hardware
specific, legacy features, non-LA features.
Moved following features to runtime enable:
- HFP
- EXT_HW_PLUGIN
- HDMI_PASSTHROUGH
- BATTERY_LISTENER
- INCALL_MUSIC
- CONCURRENT_CAPTURE
- COMPRESS_IN_CAPTURE
- HWDEP_CAL
- RECORD_PLAY_CONCURRENCY
Disabled AUTO_HAL compiletime flag temporarily after
discussing with Derek Chen. Will be re-enabled as
runtime flag later.
Change-Id: I55a58ca405b58be99e1873a5198fa201c0525725
Move audio and voice extension feature to seperate
dynamic libraries. Loading these libraries will be
controlled from config store based on target. These
flags can be changed at runtime
Change-Id: I042450768243124ea80945efac0821984f96b9bf
-FM audio is not working after FM app is killed and
launched back.
-add getparamter to let app know FM status and start/stop it.
Change-Id: I295fad5baee838f32d741cdfe874576d55b66957
During fm playback if there is a device switch
happening due to enable of another usecase, then fm volume
set by policy is lost when fm is resumed back. This is due to
disable and enable of the fm usecase and fm device resulting in
setting of default volume set from mixer_paths.
Change is to handle this scenario by resetting the actual fm
volume whenever fm usecase is enabled.
CRs-Fixed: 2256201
Change-Id: Ib11ab0fbbe6e038d41f53675adf3c4ca509692d0
During FM playback, usecase play-fm may be disabled and
re-routed because of codec backend config change. Default
FM volume is applied when usecase play-fm re-routed, thus
volume may be different from previous normal one. As for
current mixer path, default value for fm is too low to be
audible.
Restore FM volume after usecase play-fm re-routed by codec
backend config change.
CRs-Fixed: 2171323
Change-Id: I88117989ffcacc48268891c7144f78e7a9875c51
Enable SoundMonitor in audio hal to handle ADSP SSR events,
do required cleanup and restore any active sessions gracefully.
Change-Id: I83270b7c12095e56a6677f41efe0f5618a27e0e5
With CLANG enabled and -Wall & -Werror being set in
LOCAL_CFLAGS, all warnings are treated as errors.
This commit fixes all the warnings most of which are
about unused variables and functions.
Change-Id: I32c6593fa0ad6a4fdca5dc8e6c76982a146a8bc6
Add parameter to handle mute options, this is required to
control fm mute in device loopback mode without affecting
other music streams.
CRs-Fixed: 963849
Change-Id: I1729d0bd3cff40670444a8806a05c7304d4ca6aa
- Update FM device references to match latest
definitions to fix compilation of FM extention.
- Update FM feature flag for power optimization.
Change-Id: I17a9e240e552c4089d3e9c7a25e437fb5b5433f9
Minor pop is observed when FM playback is stopped, this is due to
derouting of loopback devices while they still have audible data.
This is causing pops even when FM is stopped after playback, but
this pop is more perceivable in case of interruption by voice call.
Fix the issue by draining unmuted data before derouting FM playback.
Change-Id: If92e43f3a15f0a9cfdf2819827c7f7a0ba852e3d
- FM audio is muted on start of record session when
playback record concurrency enabled
- Add support for FM playback device switch on
record concurrency enabled
Change-Id: I51795dedf0f32c41c6a84889bb7f62ee21713720
- 8-10sec delay observed when FM is turned off/on from UI post SSR with
touch tones enabled. If any new input request comes before FM is closed
post SSR, pcm driver assumes AFE is still active and starts pumping data
to AFE which is already closed due to SSR causing the delay
- Fix is to close FM session during SSR
CRs-Fixed: 673031
Change-Id: I4a55c6ca66d94e633e768b1d40584d5a5782e13e
Remove update_mixer (as its unused) and change function signatures
wherever used.
Remove code chunk to set BT sample rate before enabling device as
thats part of the mixer path file now.
Change-Id: I5eb3bce5183acf505596be2b0ec93cdbd728bdaa
CRs-Fixed: 581453
- FM audio is enabled or disabled through set_parameters() API
on primary output stream. The audio is routed to device of
primary output stream.
- If the routing is not updated before the enable command, the
audio is routed to previous device of primary output.
- Fix the issue by updating the primary output device with device
from enable command.
Change-Id: I67764b8b5d2cfaddef94ccfe555702289bf36f95
CRs-Fixed: 651821
APQ8084 uses an external chip for FM. Add support for
mixer control for external FM volume control.
Change-Id: I296d0b32fce632a296057e6d7b48698d9b0648fe
- HAL always assumed SOUND_CARD/MIXER_CARD
number to be zero. This could cause HAL
not to load when some other card is
detected earlier to HAL.
- Fix by removing these Macro(s) and reading
correct sound card number runtime while loading
- Corrected its use cases across HAL replacing it
with appropriate platform API
CRs-fixed: 580226
Change-Id: I4512e4a2f7f81d8415c3ba8ec393c96867e6d69a
Reboot the phone, start FM playback and it plays back at
max volume regardless of previous Media volume.
The audio HAL is caching the volume that is being sent to
driver after conversion.
Fix the issue by caching the value set by the policy manager.
Change-Id: I2c416fc72d354b368890afcdd51b83e662b0ce6e
CRs-Fixed: 579377