Commit Graph

902 Commits

Author SHA1 Message Date
Linux Build Service Account 34affc6697 Merge "hal: Handle pcm_start failures for hfp" 2014-08-05 19:34:08 -07:00
Linux Build Service Account 132d8fc6b3 Merge "hal: miscellaneous fixes" 2014-08-05 13:53:57 -07:00
Satya Krishna Pindiproli ce903a07da hal: Handle pcm_start failures for hfp
- If pcm_start fails for any reason, hfp ignores the failure.
- This could lead to issues as the failures are not handled.
- Return appropriate error and break execution when pcm_start fails.

CRs-Fixed: 684608
Change-Id: Iad43b3d3e3e71e7191d41bbea317f2079d57784a
2014-08-05 10:27:01 -07:00
Linux Build Service Account 6420a92e4d Merge "hal: make file change to export audio_defs.h" 2014-08-05 00:14:27 -07:00
Linux Build Service Account 5bcf706e04 Merge "hal: fix to update voice call devices in apq8084" 2014-08-05 00:14:23 -07:00
Linux Build Service Account 2fcabb355a Merge "hal: add DSDA support on APQ targets" 2014-08-05 00:14:22 -07:00
Mingming Yin 5b7c0b3a3d hal: make file change to export audio_defs.h
- copy audio_defs.h to out target so that it
  can be included in AOSP code.

Change-Id: I84996dd8821a48a9ec71a1164764bf28b91cd390
2014-08-04 15:49:24 -07:00
Vidyakumar Athota 339342fb92 hal: fix to update voice call devices in apq8084
In APQ8084, Audio HAL needs to update voice call rx and tx
devices in csd client before call start otherwise csd client
sends default devices to MDM. Fix to update csd client devices.

Change-Id: I0a5a1689a92475f052d80a92003e3eacb68d2051
2014-08-04 13:28:02 -07:00
Linux Build Service Account 2e52c5740e Merge "hal: Enhance VoIP call auto recovery if SSR occurs during call" 2014-08-01 01:11:31 -07:00
Linux Build Service Account 8a2a226793 Merge "hal: VoIP call auto recovery if SSR happens during call" 2014-08-01 01:11:30 -07:00
Haynes Mathew George b51ceb1e78 hal: miscellaneous fixes
Fixes for the following issues reported by KW

21725, 21726, 21727, 21737, 21738, 21739, 21740, 21750,
21751, 21752, 25317, 30602, 32620, 36778, 41817, 41819,
50942, 54468, 54470, 54479, 55569, 54481, 55570, 55571,
58485, 85112, 85122, 85123

Change-Id: I9abef07db7ccdc19789a201eb268a97e1b360cad
2014-07-31 08:17:03 -07:00
Venkata Narendra Kumar Gutta ed0f94ff0a hal: Enhance VoIP call auto recovery if SSR occurs during call
Enhance support for VoIP auto recovery if SSR occurs during
the VoIP call.

Change-Id: Id69cb9d17fc78fd98754b19bf84539290ff54cd9
2014-07-31 08:11:17 -07:00
Venkata Narendra Kumar Gutta bc9c9ca6b0 hal: VoIP call auto recovery if SSR happens during call
Add support for VoIP call auto recovery if subsystem
restart(SSR) happens during VoIP call.

Change-Id: I5617c22b79548de668b28a97c116008e7c704dee
2014-07-31 08:10:50 -07:00
Linux Build Service Account 26f78bc71d Merge "hal: support for wide-band speech audio over BT" 2014-07-31 02:02:45 -07:00
Linux Build Service Account 819099ee1f Merge "Audio deamon: Add support of audio device events" 2014-07-30 21:02:02 -07:00
Linux Build Service Account e461c35b12 Merge "audio hal: enabling of the docking station speakers on liquid" 2014-07-30 21:02:01 -07:00
Mingming Yin 514a8bc220 hal: support for wide-band speech audio over BT
- Adding support for WB audio with BT devices
- Deprecate bt_samplrate" keyvalue pair which was
  used earlier to determine wide band speech useCase.

Change-Id: Idc766dc4d8ecf25818f16bccc48c6740b0dfce65
2014-07-30 11:23:21 +05:30
Tanya Finkel f8d52aab10 Audio deamon: Add support of audio device events
Audio daemon will catch the events regarding the audio device changes and
transfer them to audio HAL.

Change-Id: Ida6b26142ece472a6e127904a43890ee44632d75
2014-07-29 18:16:47 -07:00
Tanya Finkel b762e5013c audio hal: enabling of the docking station speakers on liquid
Liquid 8994 contains addition jack on docking station which is connected
to LO1 and LO2.

Change-Id: I53d1e176b8f60c4fcca3bb82ee7ae3199ec56ab7
2014-07-29 18:16:34 -07:00
Vidyakumar Athota 21b3bb9608 hal: add DSDA support on APQ targets
-This change adds DSDA support for APQ based targets
 where external modem is used for voice calls.
-Add new CSD API to support local call hold.

Change-Id: I7743a1df43dc1abac4e325ff104ec1bb64c9e12b
2014-07-29 17:08:28 -07:00
Linux Build Service Account dddca0f1f8 Merge "hal: add the stream to uc_info for speaker protection enablement" 2014-07-26 16:17:27 -07:00
Linux Build Service Account 57b95704e6 Merge "hal: Don't de-reference stream out in case of recording usecase" 2014-07-26 16:17:22 -07:00
Linux Build Service Account 2fed6b3362 Merge "hal: Add HFP volume mixer control on 8994" 2014-07-26 08:09:34 -07:00
Anish Kumar cc96e41e5c hal: add the stream to uc_info for speaker protection enablement
Stream was null causing data abort when speaker
protection is enabled. Set it to primary_output in case
of playback and set device in case of recording.

Change-Id: I4b532ad7d76adab75e1ef0719eaba197eb3d9379
2014-07-25 18:23:56 -07:00
Sudheer Papothi 19e43d00c5 hal: Add HFP volume mixer control on 8994
Add Hands Free Profile(HFP) volume mixer control on 8994.

Change-Id: Ib4de10eee392d2710264e57d3bd844f7557df0f4
2014-07-25 10:13:38 -07:00
Linux Build Service Account 6e3fddaab0 Merge "post_proc: Fix improper datatype of EQ preset band level value" 2014-07-24 21:53:48 -07:00
Linux Build Service Account ce2380720e Merge "hal: Speaker protection pre-emption fixes" 2014-07-24 21:53:43 -07:00
Linux Build Service Account 81ef1ddbe4 Merge "hal: Add/remove speaker protection usecase to/from global list" 2014-07-24 21:53:43 -07:00
Anish Kumar c8599f2106 hal: Don't de-reference stream out in case of recording usecase
We don't need to dereference out stream in case of playback.
So move it down so that it gets de-referenced only when needed.

Change-Id: I162346395f4bbb9b3ba04a8fc4b9f3433096ab1a
2014-07-24 16:32:37 -07:00
wjiang 1eae625ba7 post_proc: Fix improper datatype of EQ preset band level value
unsigned int causes negative band level turn out to be extreme large
value, which results in EQ works abnormally due to unexpected parameter
sent.

Change-Id: I81120c604f4e9f23b25d5a45a7b0294fea63d207
CRs-Fixed: 696825
2014-07-24 08:19:28 -07:00
Gopikrishnaiah Anandan e85d046e57 hal: Speaker protection pre-emption fixes
Speaker protection module should acquire the device lock for all global
operations. This change will ensure that the pre-conditions required for
calibration will be met and if any audio/voice usecase is started when
speaker calibration is being done,speaker protection thread should
cancel the calibration.

Change-Id: I0d5fa23657161ec971e851944a0045a01d8248ea
CRs-fixed: 688972
2014-07-24 08:19:10 -07:00
Gopikrishnaiah Anandan cc9bb14775 hal: Add/remove speaker protection usecase to/from global list
Audio hal maintains link list that contains all active audio/voice
usecases. When usecase is being started it shoule be be added to
list and removed when usecase is disabled.
Speaker protection usecases were not being added to the list which was
causing the speaker calibration pre-emption to fail. Change updates the
usecase list and ensures that device lock is not acquired when
calibration is being pre-empted

CRs-fixed: 688972
Change-Id: I377346243ceaaebfcf80673f367dbd8bb83d5381
2014-07-24 08:18:53 -07:00
Linux Build Service Account 22587eeeb5 Merge "Audio hal: Add support of audio external device events" 2014-07-21 17:15:42 -07:00
Linux Build Service Account 980cdf8f71 Merge "hal: Add FM volume change for 8994 target" 2014-07-21 17:15:41 -07:00
Tanya Finkel 0013005994 Audio hal: Add support of audio external device events
Update audio HAL to catch the external device key and update the device
appropriate to event.

Change-Id: I47e93cd2f75aa726a9323c4edb9a3d70bd4514c5
2014-07-21 10:30:52 -07:00
Sudheer Papothi cd994240de hal: Add FM volume change for 8994 target
Add FM volume change for 8994 target.

Change-Id: I86bf65723f8054b6588ea70575794a70c49a1147
2014-07-21 10:30:32 -07:00
Linux Build Service Account 1e7e779001 Merge "hal: enable speaker protection" 2014-07-18 02:22:41 -07:00
Linux Build Service Account 3c9fefad22 Merge "hal: add extended audio definitions in hal" 2014-07-18 02:22:19 -07:00
Linux Build Service Account 6489e2d7b3 Merge "hal: Add support for ferrum(8909) sound cards" 2014-07-18 02:22:17 -07:00
Dhananjay Kumar 2bb2fc10f0 hal: Add support for ferrum(8909) sound cards
-Add entry for ferrum(8909) sound card name

Change-Id: I64989e184b97f1ae0f1365da29b61297d579f6ac
2014-07-17 13:59:39 -07:00
Anish Kumar d80a139573 hal: enable speaker protection
',' was added accidentally causing speaker protection
not to be enabled. Remove that.

Change-Id: Ieb714a50d297a1c92970d559b5336a2275359164
2014-07-17 10:48:27 -07:00
Mingming Yin 23c383c6aa hal: add extended audio definitions in hal
- Add audio_defs.h in hal for extended audio
  definitions.

Change-Id: I7d574a222d405d8c62d8b833d9ef413708f19639
2014-07-16 18:01:36 -07:00
Linux Build Service Account f6d0f278d1 Merge "hal: update Dolby EAC3 audio format enum" 2014-07-16 04:26:56 -07:00
Linux Build Service Account 559aa91e77 Merge "Revert "policy_hal: Initial change for the new libaudiopolicymanager"" 2014-07-16 04:26:55 -07:00
Mingming Yin ae3530f8dd hal: update Dolby EAC3 audio format enum
- Update Dolby EAC3 audio format enum to
  AUDIO_FORMAT_E_AC3.
- This new format is introduced in AOSP code

Change-Id: Id1f524b430b086b881c74f6cb91c9823439a251a
2014-07-11 10:07:02 -07:00
Mingming Yin 0ae14ea561 Revert "policy_hal: Initial change for the new libaudiopolicymanager"
This reverts commit 0670f1668c

Change-Id: Ie03ef15f7f6d6e1cf88c4b39b0d9a0362c17a731
2014-07-09 17:55:56 -07:00
Linux Build Service Account 3b402c4b85 Merge "hal: SSR support for compress offload" 2014-07-09 17:16:30 -07:00
Naresh Tanniru d7205b68e6 hal: SSR support for compress offload
- reject offload request based on sound
  card state

Change-Id: I38256ce6163f948a9e9c14cb895de3f71529a0e9
2014-07-08 17:12:26 -07:00
Linux Build Service Account b68c9ac2ba Merge "hal: Fix improper input device selection for camcorder stereo recording" 2014-07-08 16:08:42 -07:00
Linux Build Service Account 6ef13ce4b6 Merge "hal: Permit device switch for primary output in a voip call" 2014-07-08 16:08:35 -07:00