Commit Graph

572 Commits

Author SHA1 Message Date
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 d2ee8250b4 hal_mpq: Add the SPDIF device entry
Add the SPDIF device entry.

Change-Id: I865c65a150e713586adebb1541055feacaadcdf0
2014-01-10 09:00:54 +05:30
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
Jay Wang 3e1319dac2 hal: mpq: configure HDMI channel number
Fixed the issue that HDMI channel number was not configured
from audio HAL

Change-Id: Ibd141befb677ef4a00c4c4a14f0d6e58c225acbd
2013-12-21 16:05:07 -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
Krishnankutty Kolathappilly 4b7fdaaf6b policy_hal: Do not allow sonification for USB headset.
- 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
2013-12-18 17:20:31 -08:00
Krishnankutty Kolathappilly eb78be7e65 hal: set gapless metadata for compress offload playback
-If any of the  metadata parameters are set from the framework.
 set the gapless metadata to one.

CRs-Fixed: 588353
Change-Id: I66a79d3f64515d108585527496a754c06a441560
2013-12-18 17:19:05 -08:00
Vicky Sehrawat f55b03c5d4 audio: Add support for 8974 Voice2
Add the Voice2 pcm ID to enable DSDS on 8974.

CRs-fixed: 587066
Change-Id: Ifd134313a49af601f4e0f1d66ad0b4ff8596609d
2013-12-18 17:09:41 -08:00
Haynes Mathew George bf14371af9 hal: Avoid duplicate primary outputs
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
2013-12-18 11:21:04 -08:00
Linux Build Service Account 694cb33897 Merge "hal: Detect sound card dynamically" 2013-12-17 18:26:19 -08:00
Mingming Yin eeb9024bef policy_hal: remove unused function isVirtualInputDevice
- 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
2013-12-17 15:24:17 -08:00
Apoorv Raghuvanshi 6e57d7e4b8 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-17 14:21:56 -08:00
Linux Build Service Account 2972723b12 Merge "audio: hal: Fix to use correct EC_REF_RX" 2013-12-17 12:32:17 -08:00