Commit Graph

5050 Commits

Author SHA1 Message Date
SathishKumar Mani 9efed76df6 audio: enable necessary audio logs for debugging purpose
- Remove LOCAL_LOGD flag and enable audio necessary logs

Change-Id: Ia767ff8deaae4aa27252450eb94c64506cb8a495
2012-09-18 20:37:23 -07:00
The Android Automerger 8b9ec98dfd merge in jb-mr1-release history after reset to jb-mr1-dev 2012-09-18 06:59:54 -07:00
SathishKumar Mani 2aa250712d audio: remove redundant configuration files from audio HAL
- Remove UCM files from audio HAL
- Related files are stored in OEM folder under device

Change-Id: I0f86e57e33a16fc543b2cc81145426b6724be6f2
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-09-17 18:20:43 -07:00
SathishKumar Mani e9c7854606 alsa_sound: Decrease the lowlatency playback buffersize to 1024 bytes
- Decrease the lowlatency playback buffersize to 1024 bytes
  and latency to 11ms.

Change-Id: I39e0580846fcf53cb4d2a708b53c39abc6e62469
2012-09-17 18:20:18 -07:00
Glenn Kasten 304e61b784 Remove audio_policy.conf here
Use device/... version instead

Bug: 7172210
Change-Id: I8835e6b924758565c139f58e84a6585247c15730
2012-09-17 17:33:11 -07:00
The Android Automerger f9e4091e03 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-09-16 06:59:52 -07:00
SathishKumar Mani 5ff7a02ca4 audio: Remove HAL, UCM dependency on acdb and csd client modules
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>
2012-09-14 17:29:31 -07:00
The Android Automerger 9ea52b2d34 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-09-14 07:11:58 -07:00
ty.lee d4f2d06912 audio: fix problem of routing device 0 after A2DP play
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
2012-09-13 21:13:43 -07:00
SathishKumar Mani e42406e02e alsa_sound: Remove pcm stream close for flushing buffers
- 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
2012-09-13 19:22:53 -07:00
The Android Automerger 308dc9a1a8 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-09-13 06:59:56 -07:00
SathishKumar Mani 018d1c5b57 alsa_sound: increase deep-buffer playback buffer size and latency
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>
2012-09-12 22:51:28 -07:00
SathishKumar Mani 8861338c2a alsa_sound: add support for low latency playback and recording
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>
2012-09-12 22:45:33 -07:00
The Android Automerger 92ce81d8ae merge in jb-mr1-release history after reset to jb-mr1-dev 2012-09-12 06:59:53 -07:00
ty.lee 94de74c945 audio: avoid latent media server crash during device is booting
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
2012-09-11 17:58:51 -07:00
SathishKumar Mani 0a01991479 audio: fix for log spamming from ALSA
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>
2012-09-11 12:48:57 -07:00
Ajay Dudani 8a9785b5e6 Reduce debug logs for some normal usecases
b/6984795

Change-Id: Ic5c53a458fc1f72cbe7269e58374412200fb6ff8
2012-09-11 08:12:42 -07:00
The Android Automerger f742751fd3 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-09-09 07:00:39 -07:00
Eric Laurent 7801df9b35 audio: changes for audio device API 2.0.
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
2012-09-06 14:53:03 -07:00
The Android Automerger 39a9790972 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-09-05 06:34:05 -07:00
Glenn Kasten a4e236767e Revert "audio: fix harmoic caused by resampler in high frequency"
This reverts commit 2e7101d04a.
2012-08-29 12:43:55 -07:00
The Android Automerger 13e874988a merge in jb-mr1-release history after reset to jb-mr1-dev 2012-08-29 06:33:54 -07:00
ehgrace.kim 15defbaaf7 audio: add the headset tx
Change-Id: If15ef8362dd2800c41fb945b96488844db29e5db
2012-08-28 22:12:19 -07:00
Iliyan Malchev 30f8dc20ad Merge "audio: add the headset tx" into jb-mr1-dev 2012-08-28 15:11:36 -07:00
ehgrace.kim 249f87d48a audio: add the headset tx
Change-Id: If15ef8362dd2800c41fb945b96488844db29e5db
2012-08-28 13:45:07 -07:00
Jean-Michel Trivi 50b9a1eb11 Merge "Update (disabled) audio policy implementation to new interface" into jb-mr1-dev 2012-08-28 10:44:28 -07:00
The Android Automerger a6ec2c4e60 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-08-28 06:33:56 -07:00
ty.lee a97e6f6575 audio: fix parameter for tty_mode
Change-Id: Ic386415a1a62e133bbd5e9726240afd7e4dc301f
2012-08-27 14:07:08 -07:00
ty.lee e6be9bd48a audio: fix fluence acdb id
Change-Id: I322bd9f04badc9c33de618b58d47894f39abdce1
2012-08-27 14:06:05 -07:00
ty.lee 2e7101d04a audio: fix harmoic caused by resampler in high frequency
Change-Id: I437577e9b56c4559d843fe2b97e60d4a9b520b25
2012-08-27 14:05:20 -07:00
Jean-Michel Trivi e195436fce Update (disabled) audio policy implementation to new interface
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
2012-08-27 11:55:19 -07:00
Ajay Dudani fb65fc8a29 hardware/alsa_sound: Change the device disable sequence
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
2012-08-24 01:20:57 -07:00
Ajay Dudani 91bf891a50 hardware/alsa_sound: Change the device disable sequence
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
2012-08-23 23:04:46 -07:00
SathishKumar Mani d1c97008da libalsa-intf: Add support for low-latency playback/recording
- Add mixer controls to support low latency playback
and recording
- Add usecase verb, modifier for low latency Rx and Tx
- Add low latency Rx and Tx capabilties in UCM

Change-Id: Icb26577f7a03886e9bdef06d9d742efced05bfee
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-08-21 09:37:34 -07:00
ehgrace.kim 4bb2a8f5b0 audio: enable the audio calibration for APQ side
For audio calibration of Multimedia, add the libacdbloader

Change-Id: If822f486f10aeed33a537710ff4d5075225cba8a
2012-08-21 09:08:06 -07:00
ehgrace.kim db7a5cc416 audio: enable the QACT connection
Change-Id: Icb98d638f30f21be834d8e65883420425b31537a
2012-08-07 16:15:15 -07:00
ty.lee 74060dee8c audio: add separate audio Input path feature
- Separate audio input path can be set using input source of audio parameter
    1. Voice Recognition
    2. Camcording
    3. etc.

Change-Id: I7ab3b529a8d39af412d10d2d7ab4ce111db967bb
2012-08-07 15:44:56 -07:00
ty.lee 924f79851a audio: add Dual MIC scenario in call feature
- Dual MIC solution(Fluence) feature in Built-in MIC used scenarioes.
    1. Handset
    2. 3-Pole Headphones

Change-Id: I5cb7d909785ac583ced01276b987c4ba811d8404
2012-08-07 12:41:06 -07:00
ty.lee 10dfa85915 audio: change output device in speaker phone call
Change-Id: Ie2c6e1f1e483fdb6caaeccf09d85dd3413945799
2012-08-07 12:17:18 -07:00
Ajay Dudani 86c852bd4e alsa: Wrap verbose logs around LOCAL_LOGD and keep them disabled
Change-Id: I52f432ff0d9a0af7a050eac83131556afeab0af9
2012-07-20 06:39:33 -07:00
Ajay Dudani 92919435cb alsa_sound: enable csd-client for fusion3 voice call
Change-Id: Ibefe43d9dc669af74c88b8f4054af7ca5ce2caac
2012-07-06 12:20:17 -07:00
Ajay Dudani 498654c8b2 Add supported devices for primary input and output
Change-Id: I225bbee57b05ee94e8fdaa00fe08afc61fd42fca
2012-07-06 12:19:36 -07:00
ehgrace.kim 91e9fad9df audio: modify the SPEAKER_RX_ACDB to support both MONO and STEREO speaker
Change-Id: I2e66f430b18ecfa3bfcdbb7c9f6d50354e2d0709
2012-07-04 09:23:41 -07:00
Sungmin Choi c1748db63c Revert "audio: fix the audio ucm file"
This reverts commit 31e69ccf00.
2012-07-02 15:17:49 -07:00
Iliyan Malchev 3bf1700cac hardware/qcom/audio: fix build for other targets
Change-Id: I4f5c999f6cc215ded54eb6f4b9ea54666c51b7a0
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-06-29 16:55:10 -07:00
ehgrace.kim 31e69ccf00 audio: fix the audio ucm file
Change-Id: I2435ac3af619610b3b18b34f68339058c10fb4a4
2012-06-28 13:13:41 -07:00
Ajay Dudani 9746c4758b audio: Updates to comply with standard libhardware_legacy audio hal
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
2012-06-21 12:06:48 -07:00
Iliyan Malchev 4113f34dfb working msm8960 audio.primary and audio_policy HALs
These HALs build on JB and work on mako

Change-Id: I89bff4f1269d47a33d8e2a53a0b65d69aaf53240
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-06-13 13:11:56 -07:00
Iliyan Malchev 4765c43949 initial audio HAL implementation for mako
alsa_sound is imported from codeaurora at:

c1217338f349fe746e0933fcf9b1b288b532808d

[remote "quic"]
        url = git://git-android.quicinc.com/platform/hardware/alsa_sound.git
        review = review-android.quicinc.com
        projectname = platform/hardware/alsa_sound
        fetch = +refs/heads/*:refs/remotes/quic/*

Change-Id: Ic985cc3a1088c3957b6e2ac5537e2c36caaf7212
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-06-13 13:11:50 -07:00
Chad Jones 1e47753cbf Initial empty repository 2012-06-11 11:38:30 -07:00