Commit Graph

824 Commits

Author SHA1 Message Date
Linux Build Service Account 64c81593c5 Merge "hal: Add support for turning fluence on/off" 2014-03-30 09:46:46 -07:00
Satish Babu Patakokila 6c9fe83047 hal/usb: Add initial volume setting for USB headset
Some USB headsets start at 0 volume because of this even
if the Media Player volume is maximum cannot hear any audio.
Initialize device volume before starting the playback.

Change-Id: Ie6940fae6fd7946ce0a90a142aaf110d829eea8f
CRs-Fixed: 639168
2014-03-28 02:00:08 -07:00
wjiang 95d74c2232 post_proc: disable effect immediately when routed to invalid devices
Offload effect is still perceived when invalid output device is
connected. We should send disable command immediately once phone is
routed to unexpected device and forbid effect enablement during
temporary disabled state.

Change-Id: I26d4ccfd77037a879622b0437ae3916ff0071a69
CRs-Fixed: 630408
2014-03-28 00:17:08 -07:00
Pavan Chikkala 785b693a0f audio: primary desc check for sonification
- Audio glitches on alarm expiry if alarm starts
  on screen lock/standby mode

- On alarm expiry alarm tone will start play on combo device
  &screen unlock tone try to play on headset which results
  multiple device switch, as a result audio glitches are audible

- Fix is to treat all non-music streams as sonification
  if sonfication strategy is used by primary desc which
  will avoid device switch

Change-Id: Ie280400d5f754a8d4bd8885b6836be5e120f8783
CRs-Fixed: 514467
Crs-Fixed: 626722
2014-03-28 12:44:54 +05:30
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
Linux Build Service Account 6b4a1bc9fe Merge "post_proc: disable Bassboost and Virtualizer for certain devices" 2014-03-26 11:10:41 -07:00
Linux Build Service Account 285a7a6d73 Merge "post_proc: reverb preset id is not mapped correctly" 2014-03-26 11:10:39 -07:00
Linux Build Service Account b4cf22e66e Merge "hal: add incall music uplink2 pcm id" 2014-03-26 07:43:56 -07:00
Linux Build Service Account 17759cd13d Merge "hal: apply TTY mode change for all voice use cases" 2014-03-26 07:42:39 -07:00
Walter Yang bf12ccf116 hal: Add 8916 qrd skui sound card detection
- Add 8916 qrd skui sound card detection

Change-Id: I786e7673194b4f173f7909d8916de91234972768
2014-03-26 11:54:44 +08:00
Pavan Chikkala 27226d44df audio: Disabled excessive logging in OMX AACEncoder
- Too many debug logs are enabled in AAC Encoder by default
- Fix is to disable all the logs except the error messages
  and logs indicating loading and unloading of the encoder

Change-Id: If4b37fb654b1c70796bfdc1c839839fab3ea20dc
CRs-Fixed: 619677
2014-03-25 00:01:24 -07:00
Linux Build Service Account 85a9de84e3 Merge "hal: Fix compilation issue when Dolby DS1 feature is disabled" 2014-03-24 14:32:09 -07:00
wjiang ee2ff9621d post_proc: disable Bassboost and Virtualizer for certain devices
WFD, Hdmi and usb audio are not intended to be applied with
SA+ bassboost and virtualizer, so add into invalid device list.

Change-Id: Ifcf9cdffb6657cf82bf903d16d4a3ae8471590f0
CRs-Fixed: 630408
2014-03-25 02:41:09 +08:00
wjiang ca2685b2a0 post_proc: reverb preset id is not mapped correctly
Array index is not correct and causes uninitialized value being used
when 'Plate' is chosen. Correct index to retrieve the right preset id.

Change-Id: I2ad058bc7dc5d9b74882da2f5d4c0e3570f9e952
CRs-Fixed: 630429
2014-03-25 02:39:34 +08:00
wjiang c37c260fa1 post_proc: Enable reverb in DSP to start effect
During switch to tunnel playback, reverb enable command is not sent to
DSP and causes reverb effect not applied continuously.

Send reverb enable params to DSP to start effects during switch.

Change-Id: I6e8bbdf4c1e5933be9a37413a4c4f1b7106fe6ba
CRs-Fixed: 637016
2014-03-24 23:47:23 +08: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
Narsinga Rao Chella 22d8d7acd1 hal: apply TTY mode change for all voice use cases
Update devices for Voice2, VoLTE and QCHAT sessions
based on the TTY mode. This change is needed to support
enabling/disabling and switching TTY mode during
voice call.

Change-Id: I4f1fde8ce6b20fad0d24e0cd963e2c3709ff25d5
CRs-fixed: 608183
2014-03-21 15:32:09 -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
Avinash Vaish a3886d297b hal: add incall music uplink2 pcm id
- There is no LCH tone playback on sub2 since the
  pcm ID and the DAI links are missing for 8974.
- Add pcm id for 8974.

Change-Id: I518d5eb3bfeaddd3b00281db064429087b10a37b
CRs-Fixed: 626562
2014-03-17 19:08:06 +05:30
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
Vidyakumar Athota c37f42a45b hal: update csd soft volume and mute controls
Update csd volume and mute controls with new apis which
takes ramp duration as a parameter. Set default mute
ramp duration to 20 ms.

Change-Id: Id8dcbc9bc12ac4e9c56962abc58b6bd1de0530a7
2014-03-11 12:03:26 -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