Commit Graph

139 Commits

Author SHA1 Message Date
Linux Build Service Account 6878144bc9 Merge "hal: Send device based parameters for DAP and DDP" 2014-01-20 12:02:34 -08:00
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 87806a2940 Merge "hal: fix no audio when switching devices in voice concurrency" 2014-01-12 12:58:32 -08:00
Subhash Chandra Bose Naripeddy 7690c56892 hal: Send device based parameters for DAP and DDP
Send device based parameters for DAP and DDP

Change-Id: I2cb977a573a3065f121d7aa096355ebda15f5948
2014-01-11 20:37:26 -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
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
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
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 3349c5f11f Merge "hal: set gapless metadata for compress offload playback" 2014-01-09 02:03:11 -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 f5aef76b50 Merge "hal: Add property to configure the compress offload fragment size." 2013-12-23 11:57:48 -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
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
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
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
Apoorv Raghuvanshi 84fa2fe20e hal: Detect sound card dynamically
- HAL always assumed SOUND_CARD/MIXER_CARD
  number to be zero. This could cause HAL
  not to load when some other card is
  detected earlier to HAL.
- Fix by removing these Macro(s) and reading
  correct sound card number runtime while loading
- Corrected its use cases across HAL replacing it
  with appropriate platform API

CRs-fixed: 580226

Change-Id: I4512e4a2f7f81d8415c3ba8ec393c96867e6d69a
2013-12-17 12:29:42 -08:00
Apoorv Raghuvanshi 947cb9053a hal: Support for multi-channel
for AFE_PROXY

- Add 5.1 and 7.1 channel support to
  AFE_PROXY device

Change-Id: I124af373f8823ae670a392fdedbfe26141a137e5
CRs-fixed: 585698
2013-12-13 17:07:40 -08:00
Krishnankutty Kolathappilly eff07efe6e hal: Add property to configure the compress offload fragment size.
Add property - audio.offload.buffer.size.kbytes to configure offload
fragment size. The maximum value for fragment size is 256k. Default
value is 32k. The minimum value is 8k.

Change-Id: I9b440a420270b27f5fdba9f82de6944da0afb9d2
2013-12-12 16:03:23 -08:00
Vimal Puthanveed 5a27e817c6 hal: Remove repeated unwanted code
- Remove the unwanted repeated code which happen during
merge

CRs-Fixed: 587086

Change-Id: If6c298b2006a2d130b2c88e4ca268eddea3acbcc
2013-12-11 17:45:02 -08:00
Linux Build Service Account b6645a4c78 Merge "Update copyright to The Linux Foundation" 2013-12-10 17:14:56 -08:00
Haynes Mathew George b9012ab54a audio: Re-arrange member var initializations
Rearrange initializations of some stream_out member
variables to prevent possible uninitialized use.

CRs-Fixed: 587676
Change-Id: I7018f38f29a19b130185b285f4acf22219e4228c
2013-12-10 14:13:51 -08:00
Linux Build Service Account ddad86113c Merge "hal: Use compress audio for incall recording with AMR WB" 2013-12-09 15:45:48 -08:00
Linux Build Service Account 7b54d4eeba Merge "Merge commit 'android-4.4.1_r1' into HEAD" 2013-12-07 00:25:51 -08:00
Linux Build Service Account 20d8342e99 Merge "hal: fix channel mask for m-ch offload playback" 2013-12-06 13:29:16 -08:00
Shruthi Krishna 116f1eccef Merge commit 'android-4.4.1_r1' into HEAD
* commit 'android-4.4.1_r1':
  hal: Fix the audio loss issue on codec back end
  hal: Fix for Audio Route issue when sound path changes
  audio: fix output flag test in open_output_stream

Conflicts:
	hal/audio_hw.c

Change-Id: Ib470b143c37ca7719757d20f37253cb256c26343
2013-12-06 11:15:52 -08:00
Helen Zeng e56b485b7a hal: Use compress audio for incall recording with AMR WB
Currently, AMR WB recording uses tunnel mode instead of
software encoding. Update audio hal to use compress audio
path to do incall recording with AMR WB format.

Change-Id: I93deb3dbc7dcd6a8d2b178334f8b43117ee6841c
CRs-Fixed: 581298
2013-12-05 12:14:55 -08:00
Linux Build Service Account a70cf2dca2 Merge "hal: Fix framesize issue for compress VoIP" 2013-12-05 01:19:38 -08:00
Linux Build Service Account 3f4c02d92b Merge "hal: Fix for recording during voice call over BT" 2013-12-04 19:32:01 -08:00
Linux Build Service Account e8221a5005 Merge "hal: Add support for audio effects in DSP for tunnel mode playback" 2013-12-04 19:31:11 -08:00
Linux Build Service Account 4135538773 Merge "hal: Added support for HFP" 2013-12-04 19:31:09 -08:00
Narsinga Rao Chella 1eceff805c hal: Fix framesize issue for compress VoIP
- Correct the framesize for 16KHz VoIP use cases
- Add proper checks to enable compress VoIP use case
- Add get_parameters() support to query audio mode

Change-Id: I470d538f1e136780264e81b509fb439baead603d
2013-12-03 20:39:44 -08:00
Helen Zeng 067b96b45c hal: Fix for recording during voice call over BT
Incall recording or Camcord recording is failed during
voice call over BT device. The reason is that SND_DEVICE_NONE
is as input, which causes the failure of getting
input snd device.
To solve the issue, update the condition check to get input snd
device and add the device is AUDIO_DEVICE_IN_VOICE_CALL check.

Change-Id: I59eecfa5bdbe68d54ff458a444d8fe981d312e2e
CRs-Fixed: 579927
2013-12-02 15:59:08 -08:00
Subhash Chandra Bose Naripeddy 1d08916721 hal: Add support for audio effects in DSP for tunnel mode playback
Add support to enable or disable audio post processing  effects
in DSP for tunnel mode playback.

Change-Id: I4e0b01ab4ae29d4b1c7986f2a6146e18e8bce2c1
2013-11-29 01:26:10 -08:00
Linux Build Service Account 26998c9f2d Merge "hal: In-call recording and In-call music support on APQ targets" 2013-11-27 15:07:29 -08:00
Mingming Yin 10fef6a82e hal: fix channel mask for m-ch offload playback
- Update channel mask with compress parameters for
  compress offload playback on HDMI device

Change-Id: I89263f56923588fcb906facfd4ae9ebf95203743
2013-11-26 17:23:04 -08:00
Vimal Puthanveed 5b4d3f10ea hal: Added support for HFP
- Added setparameter to be set from hfp app to enable
   and disable hfp session.
 - Implemeted start and stop hfp session which takes
   care of switching device and setting the session

Change-Id: Ie8697328ccbfee09d0d162f6fad01ddb552e4f83
2013-11-25 16:39:51 -08:00
Duy Truong fae1962952 Update copyright to The Linux Foundation
Change-Id: Ibaced495ccbe2ef8b53e7d5101dfe59855b5476b
2013-11-24 02:17:54 -08:00
Linux Build Service Account c6d28bad20 Merge "hal: add Dolby DD+ support for AC3/EAC3" 2013-11-22 21:10:24 -08:00
Mingming Yin 9031010564 hal: add Dolby DD+ support for AC3/EAC3
- Enhance offload formats to support AC3/EAC3.
- update HMDI profile check to make sure that
  Dolby playback goes through compress offload
  path.

Change-Id: Id8d1738305c117ccdf01c61bb5f4dd17e106b40b
2013-11-22 14:12:24 -08:00
Vidyakumar Athota 2850d5327d hal: In-call recording and In-call music support on APQ targets
-In-call recording feature support is added in APQ.
-In-call music delivery support is added in APQ.

Change-Id: Id473eac87da33f1f566b6910ec1feadcd3f08317
2013-11-22 11:17:57 -08:00
Kiran Kandi de144c8495 hal: notify listen while enabling/disabling snd device
Listen needs be stopped when audio capture is active. Also
Listen needs to be started again after audio capture becomes
inactive. Stop and start listen based on audio capture device.

Change-Id: I05ca7cccd59b43a163604881bd9c6ee10cc8fba3
Depends-on: 510494
2013-11-21 11:45:19 -08:00
Linux Build Service Account 15d574ec25 Merge "hal: Correct the multi-channel output usecase selection" 2013-11-20 20:12:37 -08:00