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
- Ringtone will be played on speaker when USB headset is connected.
- Sonification is not allowed for USB headset. The behavior is
similar to HDMI.
CRs-Fixed: 588622
Change-Id: I5fba6ae0e42235f4144ccebac2a55fe1529b530a
-If any of the metadata parameters are set from the framework.
set the gapless metadata to one.
CRs-Fixed: 588353
Change-Id: I66a79d3f64515d108585527496a754c06a441560
open_output_stream API expects the default usecase to
be returned if other usecases are unavailable or unusable.
However, the output returned in this default case must be
the default primary if it exists.
Change-Id: Ie5cc53f077358d7039d62b09b29edb58c213bc08
- isVirtualInputDevice is a static member function and
its implementation should be modified in base class only.
- Remove isVirtualInputDevice in policy_hal and modify
APM_AUDIO_IN_DEVICE_VIRTUAL_ALL in base class to support
FM recording over A2DP headset.
Change-Id: Ib0527cfdff170367491feb62b117815558e139e1
CRs-Fixed: 581377
- 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