Commit Graph

23 Commits

Author SHA1 Message Date
Dhananjay Kumar d3ab9f4269 Initial commit for new target - msmfalcon
Add intial commit to support build for msmfalcon.

CRs-Fixed: 1044042
Change-Id: Iac2f3e1d53c03864098cb7e074d4e7e8a2332290
2016-07-20 22:27:35 -07:00
Satya Krishna Pindiproli f1cd92b17e hal: fix compiler warnings which are now treated as errors
With CLANG enabled and -Wall & -Werror being set in
LOCAL_CFLAGS, all warnings are treated as errors.

This commit fixes all the warnings most of which are
about unused variables and functions.

Change-Id: I32c6593fa0ad6a4fdca5dc8e6c76982a146a8bc6
2016-04-19 18:12:23 +05:30
Banajit Goswami 4c0dff2022 hal: add support for msmcobalt
Add initial audio support for MSMCOBALT target

Change-Id: I06cd6a558d8622c7b8ff82b5531478adea96e631
2016-04-14 09:13:13 -07:00
Banajit Goswami da77c4594a hal: Add HFP volume mixer control on MSM8996
MSM8996 target uses Primary AUXPCM for Hands Free
Profile(HFP). Update volume mixer control for HPF.

Change-Id: I412f5e6a71246d9002f002584c7fde07d35ee604
2015-10-16 15:01:16 -07:00
Apoorv Raghuvanshi 924b3028b6 hal: Add codec EC reference support
- We need to set codec EC reference instead of MSM/AFE
  EC ref for Native audio usecase along with other
  usecases running on 48K port. In this scenario we
  will run two AFE ports, one regular port and the
  other port running at 44.1KHz and mixing done in codec.
  So set appropriate codec EC reference.

- One example of such usecase is VoIP over audio path
  and a 44.1KHz stream playback. But this change is generic
  enough to accommodate other possible usecases if any.

Change-Id: Ib980e36d111c1671303abe2b19341568d9fd2331
2015-08-07 17:32:42 -07:00
Venkata Narendra Kumar Gutta 1bbbf54aac hal: reset echo reference at the end of recording/VoIP sessions
Echo reference is not being reset currently at the end of
recording/VoIP session causing the echo reference not to
work in the further instances of recording/VoIP sessions.
Fix this by resetting echo reference while closing the input
stream used for recording/VoIP usecases.

CRs-Fixed: 717973
Change-Id: I761ba112952951777525b1bf102c9d6ccaad3269
2014-09-22 11:58:04 +05:30
Ravi Kumar Alamanda bdf1416c29 hal: fix unused param warnings
Fix unused param warnings.
Take care of coding style issues.
Remove unwanted code to set acdb_settings.
Fix compilation issues on 8960 platform.

Change-Id: Ifc72472b487abee83ff85e21fd324cee938973e9
2014-09-18 15:56:42 -07:00
Satya Krishna Pindiproli 3ed6d7929c hal: fix low volume issue during device switch in a hfp call
When an active hfp call is switched from the hands-free client
to the audio gateway and then back to the hands-free client,
voice is not heard at the client.

After the switch from the gateway to the client, the volume applied
is very low and hence is not audible.

Fix the issue by setting the volume properly.

CRs-Fixed: 720804
Change-Id: I4dfdff7d0b8e5763dc0a19d55531252994db90c3
2014-09-09 15:41:21 +05:30
Linux Build Service Account 34affc6697 Merge "hal: Handle pcm_start failures for hfp" 2014-08-05 19:34:08 -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
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
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
Haynes Mathew George 1376ca60d8 audio: Remove unused var and unnecessary code
Remove update_mixer (as its unused) and change function signatures
wherever used.
Remove code chunk to set BT sample rate before enabling device as
thats part of the mixer path file now.

Change-Id: I5eb3bce5183acf505596be2b0ec93cdbd728bdaa
CRs-Fixed: 581453
2014-04-29 14:54:21 -07:00
Amit Shekhar 967cab30e9 hal: HFP support for setting volume
-Add support for setting volume using setparameter.

Change-Id: Id614d719324ab6b280116fd952c3fa73844ce1b0
CRs-Fixed: 596437
2014-03-03 13:36:03 -08:00
Vimal Puthanveed 41fcff2bf7 hal: Check hfp usecase to differenciate between nb and wb
- Need to check if the hfp session is WB or not before
   setting the device to avoid rerouting.

CRs-Fixed: 605465
Change-Id: Ice6fd2776b89e5358004071b011ac304f35dbf58
2014-02-12 14:14:02 -08:00
Linux Build Service Account 59c0b4acd6 Merge "hal: audio routing enable in hfp case" 2014-01-11 19:20:55 -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
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
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
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 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