Commit Graph

636 Commits

Author SHA1 Message Date
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
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
Linux Build Service Account 040c5e9442 Merge "hal: Support for multi-channel for AFE_PROXY" 2013-12-17 02:51:12 -08:00
Linux Build Service Account ad7a9d9a1f Merge "hal: HFP device id change due to reorder of dai link in kernel" 2013-12-16 15:03:27 -08:00
Vidyakumar Athota adfe4e3225 hal: Fix voice call with QUAD MIC
voice call using quad mic doesn't work.
Fix this by update quad mic acdb entry in the table.

Change-Id: I744ac2fe26e39e24f0b0c8f0eed337c86cd7bd6c
2013-12-16 14:58:36 -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
Vidyakumar Athota 3ade279a80 hal: Fix slowtalk key value type
Slowtalk key value is defined as string in upper layer but
HAL expects key value as type 'int' which causes type mismatch.
change slowtalk key value as string.

Change-Id: I66499436d1d09528e4f4b3079c39c9c1a0777385
2013-12-13 16:56:55 -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
Linux Build Service Account a67109fdfe Merge "hal: Remove repeated unwanted code" 2013-12-12 08:49:29 -08:00
Linux Build Service Account 93d696e6b0 Merge "qcom/audio: add kenel headers as dependency" 2013-12-12 08:49:15 -08:00
Linux Build Service Account 88042dcfaf Merge "hal: Device switch should happen only during anc enable/disable" 2013-12-12 00:08:34 -08:00
Vimal Puthanveed 584048b714 hal: HFP device id change due to reorder of dai link in kernel
- Front end Dai link for HFP was moved to group with all the
Front End Dai in kernel. Hence the device id would change.

Also cleanup of the code to match up other implementations

Change-Id: I0b5444190ddb8610c234a9608d53c3e845d86fd5
2013-12-11 19:49:41 -08:00
Vimal Puthanveed be677c346d hal: Device switch should happen only during anc enable/disable
-Device switch used to happend even if the setparameter was
not for AUDIO_PARAMETER_KEY_ANC since it was outside the if
condition. Hence move the switch device inside the condition.

Change-Id: I0f51356900709401bf2f1ea3c98b80861128aef3
CRs-Fixed: 575732
2013-12-11 17:46:07 -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
Laxminath Kasam 7294f5224b audio: hal: Fix to use correct EC_REF_RX
In 8610, we need to use I2S_RX as ec_ref_rx
parameter and for SLIM based targets use
SLIM_RX.

CRs-Fixed: 575647
Change-Id: Ia220498f302a58dc3dbd42b1874fa01f081ce3dd
2013-12-11 08:56:41 +05:30
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
Nagender 44733a4b2f qcom/audio: add kenel headers as dependency
Ensures that kernel headers are built before they are utilized.

Change-Id: Ie270bcf9ca0bb48a1a08c469f11e562953dbd5de
2013-12-08 00:05:20 -07: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
Kiran Kandi 735390cff9 hal: pass set parameters call to listen hal
Pass set parameters call to listen hal. Currently it used
to handle SSR in listen hal.

Change-Id: Ia8df94ca87916afff45fe4e3fd569f6268bc3560
2013-12-05 15:50:06 -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 cd91032a89 Merge "hal: apply bt-sco-wb samplerate mixer" 2013-12-05 01:22:26 -08:00
Linux Build Service Account 2d74b27e35 Merge "hal: Fix voice calls starting on speaker unintendedly" 2013-12-05 01:20:44 -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 bbf04216e0 Merge "mpq8092: Add bitstream files" 2013-12-04 19:31:29 -08:00
Linux Build Service Account 363030ccaf Merge "audio: mpq: Move audio output activities to audio_stream_out" 2013-12-04 19:31:29 -08:00
Linux Build Service Account a18abb5803 Merge "Initial mpq8092 HAL upload" 2013-12-04 19:31:28 -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 1874349565 Merge "post_proc: Support effects in DSP for tunnel mode playback" 2013-12-04 19:31:10 -08:00
Linux Build Service Account 4135538773 Merge "hal: Added support for HFP" 2013-12-04 19:31:09 -08:00
Vidyakumar Athota 67c4271190 hal: apply bt-sco-wb samplerate mixer
- BTSCO WB sample rate mixer control applied after AFE port opened.
  This results sample rate mismatch and voice call over BT SCO WB
  does not work
- Fix by apply the mixer control before AFE port opened

Change-Id: I7efa0db9a24d307780bde03032313ad1f454d6ac
2013-12-04 14:03:06 -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
Linux Build Service Account af56045db4 Merge "hal: update devices for APQ8084 cdp and liquid" 2013-12-03 14:07:58 -08:00