Commit Graph

530 Commits

Author SHA1 Message Date
Linux Build Service Account d3072b6915 Merge "hal: fix incorrectly updated copyrights for source files" 2014-01-13 23:12:43 -08:00
Linux Build Service Account c53f56484b Merge "hal: fix no audio in qchat call with speaker as default device" 2014-01-13 23:12:16 -08:00
Linux Build Service Account 2372052070 Merge "hal_mpq: Fix the underrun issue in the offload playback" 2014-01-13 23:12:10 -08:00
Linux Build Service Account 87806a2940 Merge "hal: fix no audio when switching devices in voice concurrency" 2014-01-12 12:58:32 -08:00
Linux Build Service Account 59c0b4acd6 Merge "hal: audio routing enable in hfp case" 2014-01-11 19:20:55 -08:00
Linux Build Service Account bdaefe42d7 Merge "hal: avoid audio rerouting to different device when hfp is active" 2014-01-11 19:20:54 -08:00
Linux Build Service Account 8c99fa1da8 Merge "hal: handle combo output devices for voice call" 2014-01-11 13:58:06 -08:00
Shiv Maliyappanahalli 07a9ea232c hal: fix no audio in qchat call with speaker as default device
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
2014-01-10 16:27:18 -08:00
Shiv Maliyappanahalli 8911f28005 hal: fix incorrectly updated copyrights for source files
Fix incorrectly updated copyrights for source files.

Change-Id: If321f8fb0489f3088e867d4f200c6d1581ed9f57
2014-01-10 15:56:19 -08:00
Mingming Yin 4a72d65cef hal: handle combo output devices for voice call
- 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
2014-01-10 10:30:37 -08:00
Shiv Maliyappanahalli 80ac628638 hal: fix no audio when switching devices in voice concurrency
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
2014-01-10 10:05:03 -08:00
Aviral Gupta fdb08f41da hal_mpq: Fix the underrun issue in the offload playback
The cmd_pending variable was not updated correctly leading to the
underrun

Change-Id: Ic5a779c2caf737da097ce9165242f1bdbfa737aa
2014-01-10 08:59:53 +05:30
Linux Build Service Account 7cb06b30d7 Merge "hal: Disable gapless offload playback by default." 2014-01-09 15:55:42 -08:00
Linux Build Service Account 027f07bab5 Merge "hal: fix set_parameter() returning -2 error" 2014-01-09 15:54:57 -08:00
Linux Build Service Account 7954540556 Merge "hal: add support for all_call_states key" 2014-01-09 15:54:56 -08:00
Krishnankutty Kolathappilly b165a8aa28 hal: Disable gapless offload playback by default.
-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
2014-01-09 11:45:52 -08:00
Linux Build Service Account e88b020a55 Merge "hal: HFP support for setting sampling rate" 2014-01-09 06:20:50 -08:00
Linux Build Service Account 5a1b86f632 Merge "policy_hal: Do not allow sonification for USB headset." 2014-01-09 02:03:12 -08:00
Linux Build Service Account 3349c5f11f Merge "hal: set gapless metadata for compress offload playback" 2014-01-09 02:03:11 -08:00
Linux Build Service Account b1149352c6 Merge " hal: Correct pcm device ID for QCHAT session" 2014-01-09 02:03:00 -08:00
Vimal Puthanveed 21e5c767f7 hal: audio routing enable in hfp case
- When hfp is enabled make sure to reroute during device
   switch

CRs-Fixed: 595541
Change-Id: I680b4198a2d3baf257ae4bcfaf0c955eb62df3d9
2014-01-08 14:13:00 -08:00
Vimal Puthanveed 37b4a1cd95 hal: avoid audio rerouting to different device when hfp is active
- 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
2014-01-07 16:49:14 -08:00
Vimal Puthanveed 47e6485457 hal: HFP support for setting sampling rate
- Add support for setting sampling rate using setparameter. This
is to support 8000 or 16000 sampling rate set from BT

Change-Id: Ia6c7e530df0ba0226e492937e1c9acc70f6c6d13
2014-01-02 11:40:21 -08:00
Shiv Maliyappanahalli 3e064fdd0f hal: fix set_parameter() returning -2 error
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
2014-01-02 10:53:12 -08:00
Shiv Maliyappanahalli f93084982f hal: add support for all_call_states key
Add support for all_call_states which can be queried by
applications to know call states.

Change-Id: I5ba66186e9d9f6d5769a814f4c1e0627c6f6dd74
2014-01-02 10:24:37 -08:00
Linux Build Service Account 31e7e442a2 Merge "policy_hal: Fix to route the call to proper device" 2013-12-31 08:41:45 -08:00
Linux Build Service Account 16361ef4ef Merge "hal: remove assertion for unsupported sound card" 2013-12-31 08:41:37 -08:00
Venkata Narendra Kumar Gutta 8f84e9f2d3 hal: Correct pcm device ID for QCHAT session
Correct QCHAT pcm device ID of 8x10 as per the
  machine driver.

Change-Id: I7f782d08584f95941e6041c0b5e1661a4398c20e
2013-12-31 14:45:57 +05:30
Mingming Yin 834543bcfa hal: remove assertion for unsupported sound card
- Remove CHECK(0) for unsupported sound card to
  avoid boot up failure with USB headsets.

Change-Id: Ib41c48e2b50de042fe94a4c1db0890a39b6a03e2
CRs-Fixed: 580226
2013-12-30 15:55:51 -08:00
Linux Build Service Account 6fd52e8ddd Merge "hal: Add support for Volume Boost" 2013-12-29 09:59:36 -08:00
Linux Build Service Account f9656dc6d3 Merge "hal: Fix voice call with QUAD MIC" 2013-12-28 12:03:11 -08:00
Linux Build Service Account 3c1980a975 Merge "hal: fix for surround sound recording" 2013-12-28 12:03:04 -08:00
Linux Build Service Account f1bcf5d6ce Merge "hal: Fix slowtalk key value type" 2013-12-28 12:02:58 -08:00
Linux Build Service Account f5aef76b50 Merge "hal: Add property to configure the compress offload fragment size." 2013-12-23 11:57:48 -08:00
Linux Build Service Account 6b6a9eed87 Merge "audio: mpq: Add WMA, PCM and MP2 format for tunnel decode" 2013-12-21 15:59:29 -08:00
Linux Build Service Account 453a8ef78e Merge "audio: Add support for 8974 Voice2" 2013-12-21 08:20:59 -08:00
Linux Build Service Account 3f390a9fe5 Merge "mpq8092: Porting audio HAL changes" 2013-12-21 00:11:35 -08:00
Dhananjay Kumar 5a553e4210 audio: mpq: Add WMA, PCM and MP2 format for tunnel decode
Add WMA, PCM and MP2 as supported format for tunnel decode

Change-Id: I874305c17c1ac31ab89412bd5f05503b7844deea
2013-12-21 09:01:10 +05:30
Dhananjay Kumar 09cbbf0c1f mpq8092: Porting audio HAL changes
Porting audio HAL changes

Change-Id: I85e739ed231ee09ebf150da2ea3fd4f5d4aa3a24
2013-12-21 08:59:58 +05:30
Linux Build Service Account 72ce3a3212 Merge "policy_hal: remove unused function isVirtualInputDevice" 2013-12-20 16:58:20 -08:00
Linux Build Service Account c5a04b45d9 Merge "audio: Re-arrange member var initializations" 2013-12-20 16:58:16 -08:00
Linux Build Service Account 8ee5c46c33 Merge "hal: Avoid duplicate primary outputs" 2013-12-20 16:58:14 -08:00
Mingming Yin 49be803409 hal: fix for surround sound recording
- 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
2013-12-20 13:11:45 -08:00
Linux Build Service Account 15ecbd3984 Merge "hal: pass set parameters call to listen hal" 2013-12-20 09:45:24 -08:00
Linux Build Service Account 4952daa5a0 Merge "hal: Add audio support for 8092" 2013-12-20 09:44:17 -08:00
Linux Build Service Account fbe8b0697f Merge "hal: Fix for adev_open causing hang" 2013-12-19 18:55:54 -08:00
Ben Romberger c1dc70db70 hal: Add support for Volume Boost
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
2013-12-19 17:13:42 -08:00
Apoorv Raghuvanshi 499f1b22e1 hal: Fix for adev_open causing hang
- 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
2013-12-19 16:03:28 -08:00
Linux Build Service Account 4d456e42cd Merge "hal: Fix for adev_open causing hang" 2013-12-19 15:54:25 -08:00
Helen Zeng bbce4957f6 policy_hal: Fix to route the call to proper device
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
2013-12-19 09:59:00 -08:00