Commit Graph

478 Commits

Author SHA1 Message Date
Vidyakumar Athota ad34d57000 hal: fix voice call device routing issue
adev->voice_device_set flag is to indicate voice call
device routing update from policymanager to HAL. It is
set to true in voice_start_call and reset in update_calls()
which causes mismatch in flag update during back to back
voice calls scenario. Update adev->voice_device_set flag
in voice_stop_call instead of update_calls(). Rename
voice_device_set flag to in_call for readability.

Change-Id: Ie07105671f254899890bdb4c0635c7dc1f55dbff
2014-08-08 16:56:47 -07:00
Linux Build Service Account 2543824db5 Merge "hal: Add support for Fluence Broadside" 2014-08-07 13:00:48 -07:00
Mingming Yin 3ee55c65a2 hal: Support for FLAC 24 bit format in offload path
- Add flac in supported codecs list
- Set FLAC codec specific parameters
- Set fragment size based on bit width and sampling rate
  for flac
- Configure backend to 24/16 bit based on the current
  usecases running

Change-Id: If013078e277fd3053fba6489345803f8f58bd86d
2014-08-06 11:42:43 -07:00
Karthik Reddy Katta d9fff86572 hal: Add support for Fluence Broadside
ADSP supports Fluence Broadside algorithm in Speaker Phone mode
for voice call and audio recording usecases. Add support for
the same in audio HAL.

Change-Id: Iaa6c2c4621bf0b93b9be92748f70a0fc33a74a90
2014-08-06 12:30:33 +05:30
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
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
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 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
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
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
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
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
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
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
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
Avinash Vaish 4d6167d205 hal: Permit device switch for primary output in a voip call
The device switch from speaker to earpiece or vice versa fails
during a QQ voip call. Currently, we use the same devices for
all usecases as that of voice/voip call and avoid switching the
same for other usecases when a voip/voice call is active. At
times, voip call has primary output which uses deep buffer path.
With current design in place, we do not permit device switch on
deep buffer path since voip call is active despite the rx on
primary output.
Do not select voip usecase devices if the output stream uses
primary output or in effect permit switching.

Change-Id: Ie61a7d7d8f27d55a393d173a724697045f66e1d6
CRs-Fixed: 685222
2014-07-08 11:44:38 -07:00
kunleiz 8f7e9e20a5 hal: Fix improper input device selection for camcorder stereo recording
- Same TX device would be seleted in camcorder and voice call.
- SND_DEVICE_IN_VOICE_SPEAKER_DMIC would be used for speaker mode when
  in call, which was same as camcorder used.Thus, the tuning updation
  in camcorder stereo recording would affect voice call performance.
- Fix by selecting SND_DEVICE_IN_HANDSET_STEREO_DMIC as input devices
  in camcorder, only when the fluence type is dual mic and the channel
  count is 2.

CRs-Fixed: 685263
Change-Id: Iba521f13a3d51e99f0f8ba4d8d4fd721975bc5ae
2014-07-08 11:43:48 -07:00
Naresh Tanniru 8065983e75 hal: SSR support for compress offload
- add support for time stamp error propagation
  to frameworks on compress driver error

- close active compress session on SSR

Change-Id: I9cbd3a6c271097b81c9b79e71573fda8d78c7dbf
2014-06-27 11:02:18 -07:00
Linux Build Service Account 2d15e305c8 Merge "hal: Fix 64 bit compilation error for usbaudio" 2014-06-25 19:27:04 -07:00
Asish Bhattacharya cb8e6d071a hal: Add support for 8939 sound cards
-Add entries for 8939 sound card names
 to load the mixer controls for tapan codec

Change-Id: I3ae685a510f93dadeddff82025c74e6cb4406505
2014-06-25 11:30:43 -07:00
Aravind Kumar 71ba22b502 hal: msm8939: use mixer paths mtp xml for 8939 mtp
The mtp 8939 hardware has a bug due to which the primary
mic is the top mic.
The change chooses the right mixer paths which takes care
of swapping the mics which uses the bottom mic for
primary mic.

Change-Id: I370268e98178acc8a41bc733d2df83def227c1fc
2014-06-24 11:36:10 -07:00
Linux Build Service Account 77076a5886 Merge "hal: Add support for multiple instances of offload playback" 2014-06-20 02:52:06 -07:00
Linux Build Service Account 61267c8a6c Merge "hal: Add 8916 qrd skuhf sound card detection" 2014-06-20 02:52:05 -07:00
Walter Yang 19f244a278 hal: Add 8916 qrd skuhf sound card detection
Add 8916 qrd skuhf sound card detection
Split mixer control for qrd skuhf.

CRs-Fixed: 681080
Change-Id: Ibfd15b8b7c365b3f8f22bc3e8b60e2a48f805c0b
2014-06-19 16:09:27 -07:00
Subhash Chandra Bose Naripeddy 1691081073 hal: Add support for multiple instances of offload playback
Add support for multiple offload playback instances for 8994
platform

Change-Id: I2098d06c3ea960626698d3f67640e2fe0c7020a9
2014-06-19 16:08:44 -07:00
Gopikrishnaiah Anandan 28e9ed3b2f hal: fix mutex unlock issue
If a audio/voice usecase is active, hal should re-try the speaker
calibration.Speaker portection mutex was not being unlocked for this
usecase which causes ANR.Change unlocks the mutex which fixes the issue.

CRs-fixed: 671620
Change-Id: Ic29697e29e96dba784941f4e29664b8c10f51e84
2014-06-19 16:08:06 -07:00
Apoorv Raghuvanshi 6f6bb61061 hal: Fix 64 bit compilation error for usbaudio
- Fix 64 bit compilation error int to pointer
  seen in usbaudio file

Change-Id: I7b7a3cb097c0c645514fd4de36146ccc49c24896
2014-06-18 12:36:26 -07:00