b/6815609
- acdb and csd client modules are linked into HAL, UCM
at compile time.
- Remove the compile time dependency by loading the modules at
runtime.
Change-Id: Iab9684a4564e5dccd8eb6e07017959886d2f57b1
Signed-off-by: Iliyan Malchev <malchev@google.com>
This patch avoids abnormal operation in AudioStreamOutALSA::write().
When BT device is turned On/Off, if routing device is 0, then pcm open
will be failed.
- A variable "mDevices" is set to "0" when device is switched to BT A2DP
from speaker during playing music.
- If variable "mDevices" is "0", when PCM data is writing to buffer
in A2DP stream, then a routing device is set "no device".
- And when device is switched to ALSA stream, and PCM open will be failed.
This causes media crash as killing ALSA.
Change-Id: Id416bed3f59bfbe857b2a9fd504f3f18746fb4cd
- Currently pcm stream is closed to flush buffers while switching
between speaker+headset combo device and headset device.
- Fix this problem by removing unnecessary pcm stream close.
Bug-id: 7051374
Change-Id: Id2faaeadd2a8e009f67e85beee42bbfe47b959f4
b/7129131
- Increase buffersize to 4k and latency to 170ms when HAL is
configured for deep buffer output
Change-Id: Ib4d83eda81714f3aff169f84f29e582aec50e9c7
Signed-off-by: Iliyan Malchev <malchev@google.com>
b/6865729
- Add deep buffer output in config file
- Configure deep buffer output if flag
AUDIO_OUTPUT_FLAG_DEEP_BUFFER is set,
otherwise configure low latency output.
- Add support for low latency recording
- Enable low latency recording path with
system property
- For 2 buffers and 2048 bytes, reduce
PLAYBACK_LOW_LATENCY to 21.5 ms
Change-Id: I3c0d54fa473fe89df5a3924de483f16975f4000e
Signed-off-by: Iliyan Malchev <malchev@google.com>
Sometimes media server is killed by alsa_ucm during device is booting.
A alsa_ucm gets a index of "use case device" from get_use_case_index()
function.
But, get_use_case_index() function can be returned a wrong value
(dev_index = -22 used index of dev_list[] array) at booting time.
This patch avoids latent media server crash causing abnormal value
as using index of dev_list[] array.
Change-Id: I961465f99b994d3ab1b26ee74d6d0978159960f4
b/6984795
- Use ALOGD instead of ALOGE for debugging logs
- Use ALOGE only for error messages
Change-Id: Ifad36acbe93d48f2bdce3e29c2b06654daf08821
Signed-off-by: Iliyan Malchev <malchev@google.com>
Removed implementations of obsolete function get_supported_devices()
Audio HAL wrapper provides conversion between new and old device enums.
It exposes a rev 2.0 audio device API to the audio framework and allow
legacy implementation to use old device enums.
TODO: make sure that Qualcomm proprietary device IDs are defined properly.
Change-Id: I6779d6c9bccb531d70d84136cdc8d56208b5c934
Update implementation of AudioPolicyInterface to use the
audio_devices_t type of system/audio.h instead of the
device enum in AudioSystem.
Note that the affected file is currently disabled in the makefile.
Change-Id: I54f07aa3c803643ea530de0e4d27aee73a9fc1fc
Before tearing down codec, disable the MDM device first so that
slimbus channel is disconnected from MDM to avoid overflow on
codec slimbus interface
Change-Id: I20ef6fe97b3e72b6fe17243a55e4e20ed30df93c
Before tearing down codec, disable the MDM device first so that
slimbus channel is disconnected from MDM to avoid overflow on
codec slimbus interface
Change-Id: I20ef6fe97b3e72b6fe17243a55e4e20ed30df93c
- Separate audio input path can be set using input source of audio parameter
1. Voice Recognition
2. Camcording
3. etc.
Change-Id: I7ab3b529a8d39af412d10d2d7ab4ce111db967bb
- Dual MIC solution(Fluence) feature in Built-in MIC used scenarioes.
1. Handset
2. 3-Pole Headphones
Change-Id: I5cb7d909785ac583ced01276b987c4ba811d8404
Revert back to original libhardware_legacy audio hal headers from AOSP.
This makes corresponding code changes to disable features to match
audio hal implementation with standard libhardware_legacy audio hal.
Change-Id: Ibf1e50d3fffc8280ba417a26172c0f04206474e3