Commit Graph

183 Commits

Author SHA1 Message Date
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
Linux Build Service Account 132d8fc6b3 Merge "hal: miscellaneous fixes" 2014-08-05 13:53:57 -07:00
Linux Build Service Account 2fcabb355a Merge "hal: add DSDA support on APQ targets" 2014-08-05 00:14:22 -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
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 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
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
Dhananjay Kumar 45b71743aa hal: Add support for listen playback concurrency
Add support for concurrency handling between number of
listen capture session and playback activity.

Change-Id: I4a0656f240c62f2cc6266a714a96fdcdc13ae9d8
2014-06-06 23:35:16 +05:30
Linux Build Service Account a2a804fd90 Merge "hal: remove extra space after 8994 snd card name" 2014-05-31 19:43:07 -07:00
Linux Build Service Account 750191e85b Merge "hal: Fix no Tx issue during multi party HFP calls" 2014-05-29 17:03:06 -07:00
Linux Build Service Account 5a688d0a32 Merge "hal: Add support for VoWLAN on MSM8974" 2014-05-27 18:45:54 -07:00
Subhash Chandra Bose Naripeddy 542746726d hal: send calibration parameters in stream route
The stream's output rendering policy requires calibration to be
sent when stream routing configuration is set instead of the
device enable as each stream can have it's own routing with
different calibration needs.

Change-Id: If8bd365c4a6c616ed86b9383ba540ee8e28c4079
2014-05-26 22:10:39 -07:00
Linux Build Service Account 37f1c5a90a Merge "hal: update voice PCM device IDs for msm8994" 2014-05-25 05:44:32 -07:00
Mingming Yin e5575ab837 hal: remove extra space after 8994 snd card name
- Remove extra space after 8994 snd card name

Change-Id: Ib4d885974a6e175c8b34a1ba4b90bb30de27a6fc
2014-05-23 11:00:34 -07:00
Linux Build Service Account 06f3a0bf79 Merge "hal: add support for msm8994" 2014-05-22 18:25:52 -07:00
Satya Krishna Pindiproli 071950fa9c hal: Fix no Tx issue during multi party HFP calls
- When an incoming MT HFP call is accepted during an ongoing
  MO HFP call, the MO call goes to held state. Later, if this held
  call is rejected, Tx is not heard at the far end of the incoming
  call from that moment.
- When the held call is rejected, the input device gets disabled due
  to which Tx samples are not captured.
- Fix the issue by ensuring that the input device is not set to none when
  HFP is active.

CRs-Fixed: 656928
Change-Id: Ie3f0886c0412bfdb3e450c54e9f4b651e992f84e
2014-05-21 14:53:27 +05:30
Narsinga Rao Chella c2b9999208 hal: update voice PCM device IDs for msm8994
New machine driver has been added for msm8994. Update PCM device IDs
for voice use cases accordingly. This change is needed to support
voice use cases on msm8994.

Change-Id: Iba5f9423fe99668ccfe3a692c2a3148977d4dfc2
2014-05-20 15:16:44 -07:00
Mingming Yin 0e1b2902c7 hal: add support for msm8994
- Adding msm8994 target support in makefile

Change-Id: Id924e4a7d5df21e605429d85c7c49ede00d7f402
2014-05-20 13:22:02 -07:00
Vicky Sehrawat 8456ae0d4d hal: Add support for VoWLAN on MSM8974
Update the VoWLAN pcm id for MSM8974

CRs-fixed: 662362
Change-Id: Ia0894fa1347f05e55993af91da91272af3161f83
2014-05-19 11:42:16 -07:00
Subhash Chandra Bose Naripeddy 19dc03b51f hal: configure playback stream rendering based on output policy
For the usecases where individual streams have to be rendered
through different post processing chain on DSP an output policy
is defined. The output configuration is read from the
output policy file based on the stream atrributes to render the
playback appropriately.

Change-Id: I095592013ffa5b04bea69254026ebb78e2934822
2014-05-18 21:04:42 -07:00
Dhananjay Kumar 89ea3bd9e5 hal: add support for dolby license validation
Add dolby audio_extn API's to set dolby license.
License needs to be set with dsp everytime it is loaded.

Change-Id: I21d58a21d65c823469d066f4ba5edc5b2660ea1e
2014-05-09 14:46:53 +05:30
Anish Kumar 02f899dc2c hal: Set echo reference from mixer file
Fix the set_echo_reference call.

Change-Id: I10609baeb0b3efce8c033be940733482fa565c71
2014-05-08 11:03:05 -07:00
Anish Kumar 4980fa1f8f hal: Set echo reference from mixer file
Set echo reference from mixer file.
Change-Id: I8b9d1209002ead0f82eb6052d41ab00ba41ce6a2
2014-05-02 14:54:48 -07:00
Linux Build Service Account 8471e80526 Merge "hal: Correct PCM offload fragment size" 2014-05-02 11:05:35 -07:00
Subhash Chandra Bose Naripeddy 16ff4f86f2 hal: Add support for multiple instances of offload playback
Add support for multiple offload playback instances

Change-Id: I9d35b68fc8ca27c4eeb3976eb508b06c5ad3ca8f
2014-04-28 10:43:03 -07:00
Linux Build Service Account 87f0102bcb Merge " hal: msm8974: Fix echo reference port for msm8x10" 2014-04-24 06:11:29 -07:00
Banajit Goswami 88d6cc5106 hal: add support for external FM volume control
APQ8084 uses an external chip for FM. Add support for
mixer control for external FM volume control.

Change-Id: I296d0b32fce632a296057e6d7b48698d9b0648fe
2014-04-20 00:52:05 -07:00
Venkata Narendra Kumar Gutta 65d5126b3b hal: msm8974: Fix echo reference port for msm8x10
Echo cancellation is not working in VoIP calls.

  Echo reference port is set as I2S_RX which inturn sets
  PRIMARY_I2S_RX as echo reference port while configuring
  ADM is causing the issue.

  8x10 is using SECONDARY_I2S_RX port in Rx path. Update
  the EC reference port accordingly.

  CRs-Fixed: 646310

Change-Id: If949c6c7487c36a02e5bcedb3c779f502592ce64
2014-04-17 16:50:09 +05:30
ApurupaPattapu b57da78a14 hal: Correct PCM offload fragment size
- Correct the fragment size to use bytes instead of bits
  per sample
- Use 80ms as pcm offload buffer duration for video streaming
  usecases and 1 sec for video + audio usecases

Change-Id: Iec8e24c2b158368742a55710a46da94ce5d3c170
2014-04-15 15:46:36 -07:00
Linux Build Service Account f2651901d0 Merge "hal: Update EC support for HPF usecase" 2014-04-15 12:55:31 -07:00
Linux Build Service Account dc940c8454 Merge "hal: adjust position of QCHAT FE DAI for APQ8084" 2014-04-15 12:55:21 -07:00
Banajit Goswami de0ea45ca5 hal: add support for AANC on handset for APQ8084
For APQ8084 voice call use-case, Adaptive ANC (AANC) is used
by sending an appropriate flag to CSD for enabled AANC.

Change-Id: Ifc4609c16ef3c5d905628ff22853fc44fd81a73a
2014-04-07 12:11:47 -07:00
Ashish Jain e40bf8d937 hal: Update EC support for HPF usecase
- Ensure reference device is set if audio is routed
to speaker/headset during HFP usecase.

Change-Id: Ia404aaa8ec8b80e9f4be14840dfef3bf9afef435
CRs-Fixed: 641513
2014-04-07 11:04:54 +05:30
Linux Build Service Account b0b915f801 Merge "audio: Update pcm device ids for VI feedback and Voice2" 2014-04-03 01:19:53 -07:00
Phani Kumar Uppalapati 9da60a230f audio: Update pcm device ids for VI feedback and Voice2
Due to changes in machine driver, the pcm ids for VI
feedback and Voice2 are changed, so update the PCM
ids to support these use cases.

CRs-Fixed: 642001
Change-Id: I1cb23b57448bdecc5229e39b866d1c056029f712
2014-04-02 15:13:49 -07:00
Linux Build Service Account 4c73dca05d Merge "hal: update bt-sco sample rate before device enable" 2014-04-02 10:22:41 -07:00
Linux Build Service Account 98a0a69d2f Merge "hal: enable speaker protection on APQ8084" 2014-04-02 10:21:22 -07:00
Karthik Reddy Katta d2e89eef25 hal: Fix for no LCH tone playback in DSDA
- Incorrect PCM device ID is being selected for
  incall music delivery usecase.
- Select proper PCM device for incall music uplink-2.

Change-Id: Ic53495790fbd4bf7eac3f45811f2a8973ea3c6d9
CRs-Fixed: 642160
2014-04-02 12:10:19 +05:30
Vidyakumar Athota 1c6419a169 hal: enable speaker protection on APQ8084
-Enable speaker protection compilation flag to support
 speaker protection feature for audio playback and voice
 calls on APQ8084
-Append speaker-protected backend name to usecase only
 for APQ8084 to differentiate with regular voice call as
 routing controls are different.

Change-Id: I92ed26c9df0dc2f152e2bbf8b29362e32fff9844
2014-04-01 17:45:13 -07:00
Linux Build Service Account d7976be430 Merge "hal:Audio: Add support for SBC8084" 2014-04-01 13:52:26 -07:00
Linux Build Service Account 64c81593c5 Merge "hal: Add support for turning fluence on/off" 2014-03-30 09:46:46 -07:00
Vidyakumar Athota 76ecc0de5c hal: update bt-sco sample rate before device enable
- Some BT solutions set sample rate only at the time of BT connection
  but not for every device switch. Due to this sample rate is not
  set properly after device switch.
- Update bt-sco sample rate before device enable instead of sample rate
  set parameters call.

Change-Id: I07cb0c186296b00a99713b67628fb87b2f134d32
2014-03-27 17:02:19 -07:00
Banajit Goswami bb2002f8d4 hal: adjust position of QCHAT FE DAI for APQ8084
With the introduction of Quaternary MI2S Hostless Front-end
DAI for APQ8084, QCHAT FE DAI has been moved to possible at
the bottom of the list. Update the position of the QCHAT FE
as per the new position.

Change-Id: I3f72db194cfee9a7d6a6ba04ff37a293639d6293
2014-03-27 13:51:33 -07:00
Venkata Narendra Kumar Gutta 88fd0bc938 hal: Add support for turning fluence on/off
- To turn on/off fluence we need to change the build prop
file and changes will take effect after reboot. There is no
option to turn it on/off without rebooting the target.
- Add set_params support to turn it on and off.
An option is given to user to select the dualmic fluence
based on which set_parms is invoked.

Change-Id: I51d580af820d8e0b1bd1384c941ffba3f96813ca
CRs-Fixed: 605087
2014-03-27 19:47:56 +05:30
Linux Build Service Account d4640f3f2b Merge "hal: update csd soft volume and mute controls" 2014-03-26 17:14:17 -07:00