Commit Graph

636 Commits

Author SHA1 Message Date
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
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
Linux Build Service Account 5cb057ba4d Merge "post_proc: include audio_effects.h from kernel exported headers" 2014-02-22 04:28:57 -08:00
Subhash Chandra Bose Naripeddy 090a2aa3f3 post_proc: include audio_effects.h from kernel exported headers
Currently, audio_effects.h header file is included with reference
to the absolute path. Instead, reference it from the kernel
exported headers.

Change-Id: I83880e0947e8b6a334b11c952fe8182b49ef5090
2014-02-20 12:33:11 -08:00
Linux Build Service Account 084ff19cd7 Merge "hal: Add support for PCM in offload path" 2014-02-19 05:27:07 -08:00
Satya Krishna Pindiproli 813feda6fe hal: Add chipset specific HFP device IDs
Different chipsets have different device IDs as the front end
dai links are specific to chipsets. Ensure that the right device
IDs are used based on the chipset.

CRs-Fixed: 611132
Change-Id: If7d1a0de30653ed85d52bcb35fd13b0cc7282657
2014-02-19 17:44:55 +05:30
Linux Build Service Account 5e8824497d Merge "hal: Updated APIs to support Listen Multisession" 2014-02-17 17:47:10 -08:00
Linux Build Service Account 4a7114eca8 Merge "Audio: 8916 Audio HAL bringup changes" 2014-02-17 11:10:27 -08:00
Naresh Tanniru 3248281dd3 Audio: 8916 Audio HAL bringup changes
- Remove 8916 platform specific folder

- use common platform specific files for
  B family & 8916 targets

Change-Id: Icdc20fa289d3aaa2080346e1305b0faec1bbd233
2014-02-17 13:48:03 +05:30
Linux Build Service Account 925b88da5d Merge "hal: fix a bug introduced as part of changes done for fixing memroy leak" 2014-02-13 23:07:52 -08:00
Linux Build Service Account f142f1b97d Merge "hal: send custom stereo state to driver" 2014-02-13 19:50:37 -08:00
Narsinga Rao Chella cde45d1376 hal: fix a bug introduced as part of changes done for fixing memroy leak
The return value of platform_get_parameters() is getting freed up
wrongly which is fixed now. This bug was introduced as part of the
gerrit-id 611791.

Change-Id: I61e4f5abc732fbe84702452e27cde7c1c36f77e6
2014-02-13 11:44:31 -08:00
ApurupaPattapu c6a3a9e6ed hal: Add support for PCM in offload path
- Translate PCM Offload format to pcm codec id
- Set 16/24 sub format id in compress params format
- Calculate offload fragment size for pcm
- Move offload calculation functions to platform file
- Update audio policy manager isOffloadSupported
  for pcm offload profile. Use audio.offload.pcm.enable

Change-Id: I2064d646b66e8283fce2cc736e96fb93cba0a552
2014-02-13 11:35:34 -08:00
Bharath Ramachandramurthy 144f10beed hal: Updated APIs to support Listen Multisession
Update open_listen_session API to add listen_open_params.

Change-Id: I203ef38676332a3054933750d200f1df36f0d097
2014-02-12 16:23:52 -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 0ae78608d5 Merge "hal: Minor usb stability fix" 2014-02-12 13:02:38 -08:00
Linux Build Service Account 1c1ce6efd3 Merge "Audio: Bear family(8916) audio HAL bringup changes" 2014-02-12 13:02:24 -08:00
Naresh Tanniru 063300b04b Audio: Bear family(8916) audio HAL bringup changes
- Updated  new API for voice call device config on 8x16

Change-Id: I03af1d2761288763d2db33469de5f9d476f4b527
2014-02-12 21:27:31 +05:30
Jitendra Singh Naruka 9a6a8d46dd hal: send custom stereo state to driver
Update custom stereo state to driver as received from Apps

Change-Id: Ifc3f448aecec15e7055440786338b1bbf1ddf68b
2014-02-11 19:10:29 -08:00