Commit Graph

776 Commits

Author SHA1 Message Date
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
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
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
Tanya Finkel 4594f75210 hal:Audio: Add support for SBC8084
Add variant devices and configuration of the sound card for SBC8084.

Change-Id: Ibad2fb77d041c4e6035b1c763b69db999f4c06c9
2014-02-13 15:10:17 +02: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
Linux Build Service Account 45f120dc24 Merge "hal: start voip driver independent of voip output stream" 2014-02-11 13:59:17 -08:00
Gopikrishnaiah Anandan f60ea3b318 mm-audio: Update bitrate based on profile and samplerate
As per AAC specification bitrate is a function of profile
and sample rate. Change ensures that bitrate will be programmed
as per the specification.

Change-Id: I188f7155c50c32b7c9945036c0ad0ef3f5ee164a
CRs-fixed: 606251
2014-02-11 11:34:27 -08:00
Linux Build Service Account 6bd9bbc7d2 Merge "hal: Add new CSD API to reduce in call device switch delay" 2014-02-11 05:20:33 -08:00
Linux Build Service Account 2d17e62fd1 Merge "Audio: Bear family(8916) audio HAL bringup changes" 2014-02-11 05:20:30 -08:00
Narsinga Rao Chella 7d5a3e8ffe hal: start voip driver independent of voip output stream
- Voip driver requires voip output stream to be opened
to start itself. But it is possible that some applications
may use voip input and normal audio output. Code changes are
done to handle this scenario.
- It is possible that some applications may use different
sample rates for voip input and voip output streams. It is
handled now in such a way that, if the sample rate of the
secondly opening stream does not match with that of the
first one, the second stream will not be allowed to open
voice path for VoIP.

Change-Id: Id9d86181eeee2c4ea0aa49a723ca92c1961a559b
CRs-fixed: 601785
2014-02-10 15:48:10 -08:00
Linux Build Service Account 4a9024d387 Merge "hal: Fix memory leak in HAL debug logs" 2014-02-08 09:39:08 -08:00
Linux Build Service Account 4aff5850e0 Merge "hal: Fix memory leak in listen module" 2014-02-08 09:39:07 -08:00
Vidyakumar Athota 545dbd3494 hal: Add new CSD API to reduce in call device switch delay
New CSD api is added to reduce device switch delay during voice call.
This api is called before enabling the devices so that csd voice call
sequence on MDM can run in parallel with device enable configuration
on APQ.

Change-Id: I9239ff21e1c07370516d0ed668e1e94af12f9eb2
2014-02-06 11:56:58 -08:00
Linux Build Service Account 2133453a8e Merge "hal: Fix input device selection for stereo recording" 2014-02-05 08:38:00 -08:00
Krishnankutty Kolathappilly 061a9499e2 hal: Fix memory leak in HAL debug logs
String returned from str_parms_to_str for set/get parameter in
debug logs is not de-allocated. Fix is to make sure the memory
allocated for set parameter key value pair is de-allocated.

CRs-Fixed: 610079
Change-Id: I5027d8f1741c9e7223e7b4721f8d5473404998d3
2014-02-03 15:19:05 -08:00