Commit Graph

653 Commits

Author SHA1 Message Date
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 85a9de84e3 Merge "hal: Fix compilation issue when Dolby DS1 feature is disabled" 2014-03-24 14:32:09 -07:00
Linux Build Service Account 767e35d981 Merge "hal: add support for Fluence Broadside" into kk 2014-03-21 20:20:55 -07:00
Linux Build Service Account ca2db26dd4 Merge "hal: Clear VI feedback cal after VI capture path is started" into kk 2014-03-21 20:20:54 -07:00
Ravi Kumar Alamanda cbf335417d hal: Fix compilation issue when Dolby DS1 feature is disabled
Correct the input arguments to fix the compile time issue when
the Dolby DS1 feature is disabled.

Change-Id: I85e77d8b6549a98b9635640820cfa78dd3c89df4
CRs-Fixed: 636548
2014-03-21 17:38:46 -07:00
Gopikrishnaiah Anandan e2761eb879 hal: Clear VI feedback cal after VI capture path is started
When speaker protection is enabled, afe TX common calibration will be
pointing to VI feedback calibration. If any TX capture usecase is started
by passing HAL(tinycap), recording will fail.
Speaker protection module will set the afe tx common cal block to
handset mic once VI feedback path is started. This will ensure that
capture usecases can be supported with speaker protection enabled and
HAL by passed.

Change-Id: I1716d66aa87591b7a7e456ed059c2f75de8a5f84
CRs-fixed: 620979
2014-03-21 12:01:33 -07:00
Linux Build Service Account 35b7d987ca Merge "hal: Add 8916 qrd skuh sound card detection" 2014-03-21 06:34:10 -07:00
Walter Yang 1cc4d36acd hal: Add 8916 qrd skuh sound card detection
- Remove 8916 skuaa/skuab sound card detection which is obsolete
  derived from 8x10 platform

- Add 8916 qrd skuh sound card detection

Change-Id: I5b60aa8ec8bebc8ae0d5306db2ae747492f380a7
2014-03-20 14:38:55 +08:00
Narsinga Rao Chella 61e0f9b9fc 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: I6682f72f8f47ce1f261511cb150e506de6f3dddb
CRs-fixed: 590495
2014-03-18 18:09:23 -07:00
Linux Build Service Account 48a220aec8 Merge "hal: update playback channel mapping for USB headset" 2014-03-15 10:09:10 -07:00
Linux Build Service Account e8cd776b58 Merge "hal: add support for device mute" 2014-03-14 07:44:12 -07:00
Linux Build Service Account 140302b6b1 Merge "hal: Add support for EC in regular audio recording" 2014-03-12 20:12:45 -07:00
Linux Build Service Account 6b9bb899fb Merge "Audio: Add routing option between HDMI speakers and device speakers" 2014-03-12 17:31:44 -07:00
Shiv Maliyappanahalli c6fd8eedbf hal: add support for device mute
Add support for muting the RX and TX devices without affecting
the voice stream. This feature is added to enable voice call
quality testing by carriers.

Change-Id: I4d0f599e44ae24ce02d29333f496ef18f889ac55
2014-03-12 15:00:57 -07:00
Mingming Yin 5a7c5d6dec hal: update playback channel mapping for USB headset
- Set proper USB headset channel mapping before
  starting playback.
- Update audio_extn_set_afe_proxy_channel_mixer
  to handle channel mapping based on channel count.

CRs-Fixed: 620828

Change-Id: I9660e3088bc747c30891b0aa7ec8d22096dd0fa2
2014-03-12 10:42:39 -07:00
Ravi Kumar Alamanda 7076b163f0 hal: Add support for EC in regular audio recording
- Ensure EC reference is set when the source is MIC and fluence is
  enabled in the regular audio recording path.

Change-Id: I6648f41fcc578ded13e4fecdb7ef35bc6b0579d4
CRs-Fixed: 628085
2014-03-12 10:22:57 -07:00
Linux Build Service Account 326843e6ab Merge "hal: update voice2 pcm device id for APQ target" 2014-03-11 19:31:19 -07:00
Linux Build Service Account 3075fcc2d8 Merge "Audio: Bear(8916) Audio HAL bringup changes" 2014-03-11 15:50:02 -07:00
Linux Build Service Account 8735d8d160 Merge "Audio: 8916 Audio HAL bringup changes" 2014-03-11 15:50:00 -07:00
Linux Build Service Account d841490f45 Merge "hal: Fix error in log message" 2014-03-10 23:37:22 -07:00
Linux Build Service Account 49019199f9 Merge "Audio: 8916 Audio HAL bringup changes" 2014-03-10 23:36:37 -07:00
Linux Build Service Account 498e764a18 Merge "hal: update hw_info with tomtom sound card" 2014-03-10 23:36:33 -07:00
Linux Build Service Account bc49f72011 Merge "hal: Add the missing sound device of voice_speaker" 2014-03-10 04:40:12 -07:00
Naresh Tanniru db72d1eb41 Audio: Bear(8916) Audio HAL bringup changes
- Added 8916 audio HAL spacific changes
  Merged 8916 BU changes to mainline

Change-Id: I8bfb06f328f1851d924d1b1219bc7317afa38b0d
2014-03-10 11:27:57 +05:30
Naresh Tanniru 87dfa98f9b Audio: 8916 Audio HAL bringup changes
-Add support for multiple hardware variants.

- Most of the targets supports multiple hardware variants such as
  MTP, CDP, Fluid, Liquid etc. The mixer paths for certain devices
  may vary on some of the variants. For example, the mixer controls
  for speaker device are different on msm8974 MTP and Fluid variants.

- Update audio HAL to select corresponding entry in the
  mixer_paths.xml file based on HW information.

Change-Id: Id957c44d55639b7c833a6c4c8caf162fcf8041f8
2014-03-10 11:12:24 +05:30
Naresh Tanniru e3b1845fab Audio: 8916 Audio HAL bringup changes
-Separate platform specific code from generic audio HAL code

-Platform specific code is:
    - platform initialization
    - pcm device selection
    - pcm stream configuration
    - sound device selection
    - acdb ID selection
    - HDMI configuration

Change-Id: I9b02d60035ea632776e59c9d953909d3b851f3d7
2014-03-10 11:11:48 +05:30
Linux Build Service Account 607c0340f1 Merge "hal: Add support for VoWLAN feature" 2014-03-08 07:10:49 -08:00
Vidyakumar Athota b4dbbbe6e8 hal: update hw_info with tomtom sound card
-8084 has two variants of soundcards taiko and tomtom.
-Add tomtom sound card name to hw_info

Change-Id: I5b03b6d77589b5491d922b6caa2146fdd43ebf08
CRs-Fixed: 627505
2014-03-07 12:26:13 -08:00
Linux Build Service Account 6a4a6b572e Merge "hal: add support for I2S based external modem" 2014-03-06 14:09:27 -08:00
Helen Zeng 96b08e6b33 hal: update voice2 pcm device id for APQ target
The pcm device id for voice2 call on APQ target is updated
to match the Voice2 Stub front-end dai sequence in machine
driver.

Change-Id: Id70f2e8ba5aa7762de616cd867a1e1ed60f9195e
2014-03-06 14:02:21 -08:00
Tanya Finkel de496d8d5f Audio: Add routing option between HDMI speakers and device speakers
Add option that routing  between HDMI audio output and device audio
output, when HDMI is connected.

Change-Id: I9bbe9b1cbee5b6659502dae386c086f37bef2120
2014-03-05 23:59:45 +02:00
ApurupaPattapu 31d09d7b00 hal: Fix error in log message
- Fix a compilation error in verbose log message

Change-Id: I2a977f1af7fd568372988f30c5b51b45619f65c3
2014-03-05 12:03:13 -08:00
Linux Build Service Account ac022ed60a Merge "mm-audio: Update bitrate based on profile and samplerate" 2014-03-05 03:45:55 -08:00
Linux Build Service Account 2f378012d7 Merge "hal: Update the correct channel count for dolby configuration" 2014-03-05 03:45:36 -08:00
Linux Build Service Account 052c452c4d Merge "post_proc: send ENABLE_FLAG directly to offload effect driver" 2014-03-04 09:01:54 -08:00
Helen Zeng 6a16ad7ed0 hal: add support for I2S based external modem
There are specific xml files used for I2S based external modem.
Add check to load the correct xml file.

For I2S based external modem, voice sample rate can be 8k or
16k based on vocoder type. Call csd client api to get the
correct sample rate to configure voice call.

Change-Id: Ie9799336620f49a890355be74fe1830eb348cabe
2014-03-03 14:16:24 -08:00
Linux Build Service Account a372462d1f Merge "hal: Enhance compress offload logging" 2014-03-01 16:19:56 -08:00
Linux Build Service Account 2ababc8f4b Merge "hal: load CSD library by checking number of modems" 2014-02-27 12:38:20 -08:00
wjiang d45948e215 post_proc: send ENABLE_FLAG directly to offload effect driver
Enable flag should be sent directly through offload effect driver to
adsp whenever bundle receives EFFECT_CMD_ENABLE. Otherwise enablement
will only take effect in adsp after subsequent parameters being set, and
that's not expected.

Change-Id: I5a8f936095b5667f0e04b9109b67eaa0faec3a69
2014-02-26 23:11:10 -08:00
Vicky Sehrawat 7e4fc158b3 hal: Add support for VoWLAN feature
Add VoWLAN pcm id, usecase to enable voice
over WLAN feature.

Change-Id: I2d10ff06342bfcbef15a4769ba90deaeb4218107
2014-02-26 22:50:21 -08:00
Linux Build Service Account 11f0f4f5af Merge "hal: Fix for down-mixing of multi-ch offload playback" 2014-02-26 17:34:43 -08:00
Linux Build Service Account 8120c4b71f Merge "hal: set Dolby DMID for low latency playback" 2014-02-26 17:34:38 -08:00
Linux Build Service Account 1a603dd3b8 Merge "hal: Check hfp usecase to differenciate between nb and wb" 2014-02-26 17:32:47 -08:00
Sidipotu Ashok 55820563ac hal: Enhance compress offload logging
Add/Enable msg logging
-Salient funtion calls to tinycompress
-Salient funtion calls from frameworks
-Events sent to frameworks
-miscellaneous important events

Change-Id: I493d98d3f3c1216f7c6030a539e01d1f2dd8c202
2014-02-26 15:31:37 +05:30
Helen Zeng 008aebd15a hal: load CSD library by checking number of modems
The method to get baseband through property will be deprecated.

Call ESOC API to get the number of modems within the platform.
Use the number of modems instead of baseband to decide whether
CSD library should be loaded.

Change-Id: I470616a6ce833a368783bba9442285a69491cbac
2014-02-25 17:08:35 -08:00
Mingming Yin 139f1077ad hal: Fix for down-mixing of multi-ch offload playback
- Check if multi-ch playback in offload path is active
 before re-configuring the HDMI channels

Change-Id: If3639ffbbbc56083f9d09257ea4fafdc2b204e76
CRs-Fixed: 622339
2014-02-25 15:03:50 -08:00
Mingming Yin c7d048aa11 hal: set Dolby DMID for low latency playback
- Remove additional check to set Dolby DMID
  for low latency playback. DMID should
  be set for all playback use cases.

Change-Id: Ia93e1b13cc61145148a1bf520a222f8e480b3e2b
CRs-Fixed: 620246
2014-02-25 13:34:07 -08:00
Krishnankutty Kolathappilly 0b2de1cf2f hal: Update the correct channel count for dolby configuration
-Wfd supports both 5.1 and stereo. Based on the sink capabilities
 update the correct channel count for dolby configuration for wfd.

CRs-Fixed: 609429
Change-Id: I85b81ba7db7134a6781007393f0f3c2adb5ea138
2014-02-24 11:31:35 -08:00
Walter Yang 1d50ce6031 hal: Add the missing sound device of voice_speaker
8x10 skuab uses lineout path instead of speaker. Add the missing
voice_speaker device in the array so that hal can select the
correct path for voice speaker in 8x10 skuab.

CRs-fixed: 621807
Change-Id: I5509184e368121cb1825392fce3860af20a9fa44
2014-02-23 20:02:09 -08:00
Linux Build Service Account a25101cc57 Merge "hal: Add chipset specific HFP device IDs" 2014-02-22 04:29:04 -08:00