HAL doesnt let voice calls start if the device is set to speaker
as voice calls generally start on devices other than speaker.
However QCHAT calls start by calling setForceUse and setting the
device to speaker.
Fix by updating a flag whenever device routing happens when
AUDIO_MODE_IN_CALL. Reset the flag when mode is AUDIO_MODE_NORMAL.
CRs-fixed: 596074
Change-Id: I546959d2b0123828562dba1f6439aa494a365c3f
- Issues: camera shutter sound is not heard on
speaker when wired headset is connected.
- Rootcause: combo output devices are not updated
properly for voice call use cases.
- Fix: update combo devices before voice call use
cases in platform_get_output_snd_device.
CRs-Fixed: 591822
Change-Id: Ic2e75a4ce25f77499c07b4a8a32af774cdea16c2
When voip usecase is active and voice call is recieved, voip
usecase will go to standby causing devices to be disabled
resulting no audio in voice call.
CRs-fixed: 589353, 592531
Change-Id: I6d5e2f9c5dd72438affd82799333d7227c72533f
Conflicts:
hal/audio_hw.c
-Set the property-audio.offload.gapless.enabled to true to enable
gapless playback by default.
-Set mixer control to the driver to decide if gapless playback needs
to be used or not
-If gapless playback is not enabled then partial drain from HAL is
treated as full drain.
Change-Id: Id7f4967fe528bab9097c3f609058276ec02174e1
- when hfp is active we make sure we do not reroute anything
new to different device with same backend.
CRs-Fixed: 592390
Change-Id: I75e69916a8fe7e711b326cf82b206e3e16508b60
- Add support for setting sampling rate using setparameter. This
is to support 8000 or 16000 sampling rate set from BT
Change-Id: Ia6c7e530df0ba0226e492937e1c9acc70f6c6d13
When setparameters() is called and if the known keys are not found,
the implementation returns -2 error.Fix this by setting error only
when keys are found and there is an error while executing corresponding
implemention.
CRs-fixed: 589280
Change-Id: If5544d6fdeac47ddfc1f7e8e18bfa81e2ef5cbc2
- Remove CHECK(0) for unsupported sound card to
avoid boot up failure with USB headsets.
Change-Id: Ib41c48e2b50de042fe94a4c1db0890a39b6a03e2
CRs-Fixed: 580226
- Use proper period_size(512) and period_count(8)
for 4ch pcm recording.
- Fix read logic in ssr_read to capture 4k data
for each read
- Miscellaneous code clean up for variables, APIS,
and debug dumps.
Change-Id: I01c0e99a717a3536bd7d19c2f46ed10be77661e4
Crs-Fixed: 589342
Add support in AHAL for Volume Boost. A parameter is received
from the UI and the volume boost feature set ID is sent to the
calibration driver to send the volume boosted calibration.
Change-Id: Iafb099b2750deaf58dc5f073f31a23abb9bfe950
- Mutex acquired in the begining of
the synchronised block but is not
unlocked when platform_init fails.
- Fix by adding the mutex unlock code.
Change-Id: I02b7f7cac0185dd40ec9f03e443e4de98b18c105
CRs-fixed: 590216
When voice/volte call is setup over USB headset, the call is
still on USB headset even after turning on speaker.
Don't set the device to USB headset when speaker is forced
by Telephony during call.
Change-Id: If6a95895a33423ff5150862a823fc669fd44e59a
CRs-Fixed: 588884