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