Commit Graph

530 Commits

Author SHA1 Message Date
Linux Build Service Account 26998c9f2d Merge "hal: In-call recording and In-call music support on APQ targets" 2013-11-27 15:07:29 -08:00
Linux Build Service Account b9a5c49716 Merge "hal: Add the correct pcm device for compress capture." 2013-11-27 07:59:26 -08:00
Mingming Yin 10fef6a82e hal: fix channel mask for m-ch offload playback
- Update channel mask with compress parameters for
  compress offload playback on HDMI device

Change-Id: I89263f56923588fcb906facfd4ae9ebf95203743
2013-11-26 17:23:04 -08:00
Vimal Puthanveed 5b4d3f10ea hal: Added support for HFP
- Added setparameter to be set from hfp app to enable
   and disable hfp session.
 - Implemeted start and stop hfp session which takes
   care of switching device and setting the session

Change-Id: Ie8697328ccbfee09d0d162f6fad01ddb552e4f83
2013-11-25 16:39:51 -08:00
Banajit Goswami d60ca7f237 hal: update devices for APQ8084 cdp and liquid
APQ8084 CDP and Liquid might use a different set of devices
compared to MTP device for the same use case. Update device
list to use the right set of mixer controls for use cases
for APQ8084 CDP and Liquid

Change-Id: Ia40c31bc6cd94155d2b6dcc966bf4524906ea687
2013-11-25 12:55:53 -08:00
Duy Truong fae1962952 Update copyright to The Linux Foundation
Change-Id: Ibaced495ccbe2ef8b53e7d5101dfe59855b5476b
2013-11-24 02:17:54 -08:00
Linux Build Service Account c6d28bad20 Merge "hal: add Dolby DD+ support for AC3/EAC3" 2013-11-22 21:10:24 -08:00
Mingming Yin 9031010564 hal: add Dolby DD+ support for AC3/EAC3
- Enhance offload formats to support AC3/EAC3.
- update HMDI profile check to make sure that
  Dolby playback goes through compress offload
  path.

Change-Id: Id8d1738305c117ccdf01c61bb5f4dd17e106b40b
2013-11-22 14:12:24 -08:00
Vidyakumar Athota 2850d5327d hal: In-call recording and In-call music support on APQ targets
-In-call recording feature support is added in APQ.
-In-call music delivery support is added in APQ.

Change-Id: Id473eac87da33f1f566b6910ec1feadcd3f08317
2013-11-22 11:17:57 -08:00
Linux Build Service Account b616a42fcb Merge "hal: notify listen while enabling/disabling snd device" 2013-11-21 23:16:14 -08:00
Aviral Gupta d21e583299 hal: Add audio support for 8092
- Add support for OMX audio encoder components for mpq8092.

Change-Id: I7a652581fd48fc22c025193d2c825b6e747edcfe
2013-11-22 11:45:21 +05:30
Linux Build Service Account b229152908 Merge "hal: Fix incorrect FM volume after reboot" 2013-11-21 13:56:06 -08:00
Linux Build Service Account 4bae69ce38 Merge "hal: add get_parameter support slowtalk" 2013-11-21 13:53:21 -08:00
Kiran Kandi de144c8495 hal: notify listen while enabling/disabling snd device
Listen needs be stopped when audio capture is active. Also
Listen needs to be started again after audio capture becomes
inactive. Stop and start listen based on audio capture device.

Change-Id: I05ca7cccd59b43a163604881bd9c6ee10cc8fba3
Depends-on: 510494
2013-11-21 11:45:19 -08:00
Linux Build Service Account 15d574ec25 Merge "hal: Correct the multi-channel output usecase selection" 2013-11-20 20:12:37 -08:00
Linux Build Service Account 81d733416c Merge "hal: Fix incall recording with AMR-WB format" 2013-11-20 20:12:35 -08:00
Ravi Kumar Alamanda cb065748f9 hal: Fix incorrect FM volume after reboot
Reboot the phone, start FM playback and it plays back at
max volume regardless of previous Media volume.
The audio HAL is caching the volume that is being sent to
driver after conversion.
Fix the issue by caching the value set by the policy manager.

Change-Id: I2c416fc72d354b368890afcdd51b83e662b0ce6e
CRs-Fixed: 579377
2013-11-20 18:48:01 -08:00
Shiv Maliyappanahalli 9d8992981c hal: add get_parameter support slowtalk
Add support for get_parameter so that slow talk
value can be retrieved by apps.

CRs-Fixed: 579154
Change-Id: Ia91e1ec1ac2e5b71041332529ef3d871e04800c3
2013-11-20 18:05:37 -08:00
Linux Build Service Account bd470a375d Merge "hal: change voice call sequence on APQ targets" 2013-11-20 15:29:41 -08:00
Ravi Kumar Alamanda 86b0e2b6ff hal: Correct the multi-channel output usecase selection
Both Multi-channel output on HDMI and Compress offload playback on
HDMI use cases request for a stream with AUDIO_OUTPUT_FLAG_DIRECT.
The current logic would then result selection MULTI_CH usecase.
Fix this by checking for complete match of flags to select the
use case.

Change-Id: I66df94af6c3b837a6c8054282364e1acf78e6e0f
2013-11-20 15:00:03 -08:00
Helen Zeng fe095b41c8 hal: Fix incall recording with AMR-WB format
Select AMR-WB and start incall recording, the audio quality is bad.
The root cause is that the sample rate is set to 8k not 16k for AMR-WB.
Use audio record configure instead of voice configure for incall recording.

Change-Id: Ib71e0e8d1f2c5eb72db3260110e55179e415fa26
CRs-Fixed: 576412
2013-11-20 11:37:53 -08:00
Krishnankutty Kolathappilly 11806dbf22 hal: Add the correct pcm device for compress capture.
The dai-link id is 20 for compress capture on 8x26. Add the correct id
for 8x26.

Change-Id: Ie41b2c039816a6014ac32af4f191c2e3aaad37a1
2013-11-20 10:42:18 -08:00
Linux Build Service Account 9f54827a45 Merge "audio: Add new Audio daemon process" 2013-11-20 06:14:15 -08:00
Fred Oh 144d87459c audio: Add new Audio daemon process
- Add new audio daemon process.
 - Pupose of this daemon is to monitor and report changes ADSP
   processor state to audio framework/Audio flinger.
 - Specific sysfs node file on device indicates ADSP processor
   state as ONLINE or OFFLINE

Change-Id: Ibad54ea93cbb4fbc59ba599c76541c1f255d4c48
2013-11-19 23:57:17 -08:00
Vidyakumar Athota 1fd2179b5f hal: change voice call sequence on APQ targets
Send device disable command to external modem before voice call
mixer controls are disabled on APQ side. Enable device command
also should be sent only after enabling mixer controls on APQ side.

Change-Id: I2e4dc321b16f695564460771b3656cd2c4a089a9
2013-11-19 17:10:58 -08:00
Linux Build Service Account eafe181203 Merge "hal: Add support for compressed capture" 2013-11-19 09:12:57 -08:00
Linux Build Service Account f9a9dfe6ab Merge "hal: Add support for compressed voip" 2013-11-19 09:12:57 -08:00
Mingming Yin e62d784d2d hal: Add support for compressed capture
- Add support for AMR-WB compressed capture.

Change-Id: Ief591c5d1ccc6f8afb408abfff447787ee7bd7aa
2013-11-18 14:56:53 -08:00
Narsinga Rao Chella 05573b74bf hal: Add support for compressed voip
Add support to enable voip calls using compressed
audio formats.

Change-Id: If20493b75befbcc56945e4309c8f01384948a7b5
2013-11-18 14:47:49 -08:00
Linux Build Service Account edf855df10 Merge "hal: Add audio support for APQ8084" 2013-11-16 15:27:25 -08:00
Linux Build Service Account 161acc842c Merge "hal: Update speaker ACDB ID value" 2013-11-16 08:58:14 -08:00
Linux Build Service Account 03819070ae Merge "hal: Fix android music app crash when turning ANC OFF" 2013-11-16 08:58:08 -08:00
Apoorv Raghuvanshi c053654496 hal: Fix android music app crash when turning ANC OFF
- Music app crashes when turning ANC OFF during audio
  playback
- Fix by adding device switch logic on set param request
  for ANC enable
- Fix for broken AAC recording due to missing fluence
  channel count check

Change-Id: I8035d7efd47d4aec278f6ee8c366234982b14222
CRs-fixed: 570800
2013-11-15 12:17:11 -08:00
Linux Build Service Account c497a3ca34 Merge "hal: add voice call support on apq8084" 2013-11-15 03:14:44 -08:00
Vidyakumar Athota c29d4abe51 hal: Update speaker ACDB ID value
Currently stereo ACDB ID is used for speaker device but
8974 and 8084 has mono speaker so update correct ACDB ID

Change-Id: Id9a18f698456a2cdcf75619c6e28648317f58fef
2013-11-14 17:02:55 -08:00
Banajit Goswami c30f96d2b6 hal: Add audio support for APQ8084
- Add support for OMX audio encoder components for apq8084.

Change-Id: I0cf2bba74fe9a90b2dd9c9b96f0f8f3cf28de743
2013-11-14 13:14:17 -08:00
Linux Build Service Account abca4b12c5 Merge "hal: Use deep buffer output as primary" 2013-11-13 17:11:21 -08:00
Vidyakumar Athota d9d9ff34fa hal: add voice call support on apq8084
APQ8084 uses external modem to make voice calls.
APQ uses CSD QMI interface to communicate with external
modem. Add csd client apis to support voice calls

Change-Id: I11fe0cc614ee38c42e95b40d5cd5e2d8b3afd43a
2013-11-13 16:56:22 -08:00
Linux Build Service Account a0c628f412 Merge "hal: end all calls when setmode(AUDIO_MODE_NORMAL) is called" 2013-11-13 12:59:42 -08:00
Ravi Kumar Alamanda 8bba9e957f hal: Fix the audio loss issue on codec back end
- Start music playback, plug in and plug out headset and press
  'Next' button in the Music app immediately. Repeating these steps
  result complete loss of audio on HW codec.
- When headset is pluged out and Next is pressed immediately, the
  audio HAL triggers audio routing change from Headset to Speaker,
  and closure of compress playback driver. The later is not lock
  protected which result un protected access of back end information
  in the ALSA framework. This leads to incorrect routing and hence
  loss of audio. It is also observed that sometimes it could lead
  to crash in kernel and phone reboots.
- Fix by ensuring that the kernel driver close is also lock protected
  along with other routing events.

Bug: 11088400
Change-Id: I785effb09e5cef7ba20ee43e0ef91dc296d4e58a
2013-11-12 11:29:40 -08:00
Linux Build Service Account f80ab65f28 Merge "hal: Add support for AEC and NS audio effects" 2013-11-11 16:20:15 -08:00
Linux Build Service Account 2de9747f64 Merge "hal: Update devices that are different across variants." 2013-11-11 16:20:14 -08:00
Shiv Maliyappanahalli 7a2545c8b3 hal: Fix voice calls starting on speaker unintendedly
If setParameters(vsid, callstate) call is processed before
setparameter(routing), voice calls will be started on speaker.
Fix by not starting voice calls by checking if the primary output
device is speaker.

Change-Id: If3ecb83bbcb02d5da40d66340276263413adabc9
2013-11-11 14:59:08 -08:00
Shiv Maliyappanahalli 3bb7358558 hal: end all calls when setmode(AUDIO_MODE_NORMAL) is called
Telephony will call set_mode(AUDIO_MODE_NORMAL) when a
call is ended which will trigger audio policy manager setting
routing with audio usecase compatible device. Voice calls can
still be active if RIL has not yet called
setparameters(vsid,callstate). This would result in routing
voice call usecases with incompatible device for voice calls.
Fix this by ending all voice calls when set_mode(MODE_NORMAL)
is called.

Change-Id: Id2c9f2ff9ed46969e5cbd27b525b81735c1d49d8
2013-11-11 13:36:11 -08:00
Ravi Kumar Alamanda 198185e994 hal: Add support for AEC and NS audio effects
- Add sound devices needed to enable/disable AEC and NS
  audio effects on voice communication and voice recognition
  usecases.

Change-Id: I53ef3fc84e9ad43852cb22786731594f3e598390
2013-11-09 23:58:54 -08:00
Krishnankutty Kolathappilly d801ae34b5 hal: Update devices that are different across variants.
-Update devices that are different across 8974/8x26 variants.
-Use extension as cdp for 8974 cdp device instead of liquid.

Change-Id: Ic0844577743303dc6bd1508a40beeb616abb76d3
2013-11-09 23:26:22 -08:00
Linux Build Service Account 9381e58a75 Merge "hal : Fix for stability offload issues." 2013-11-09 21:47:36 -08:00
Linux Build Service Account f41dcba99f Merge "hal: Add support for fluence in regular audio recording" 2013-11-09 21:47:28 -08:00
Linux Build Service Account df817f5c34 Merge "hal: Remove mobile carrier specific ACDB devices" 2013-11-09 21:47:27 -08:00
Linux Build Service Account e04e27fa07 Merge "hal: Add support for speaker protection" 2013-11-09 21:47:27 -08:00