Commit Graph

399 Commits

Author SHA1 Message Date
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
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 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
Krishnankutty Kolathappilly dc4f757fac hal : Fix for stability offload issues.
-Disable and enable the device seperately from
 check_usecases_codec_backend function.
-Acquire device lock for pcm close. This prevents crash during
 headset device switch and fast forward.
-hw free is getting called from compress framework while runtime
 update is going on. The front end list could be cleared during
 runtime update and concurrent access of front end list could
 result a crash.

CRs-Fixed: 568710
Change-Id: Iccc2b9d3c175a5421cfc4d070b0af3906d9080c5
2013-11-09 13:02:04 -08:00
Ravi Kumar Alamanda b034ddb716 hal: Add support for fluence in regular audio recording
- Add support to enable dualmic fluence on regular audio capture
- Correct the ACDB ids for camcorder and voice recognition devices

CRs-Fixed: 568507

Change-Id: I5d24907db0bd8222a65827659bf5425015c7bd50
2013-11-09 11:10:32 -08:00
Ravi Kumar Alamanda ceb408232d hal: Remove mobile carrier specific ACDB devices
- There is no specific ACDB existing for T-Mobile on
  all A/B-family targets.
- The T-mobile specific implementation is from Nexus5 audio HAL
- Remove the related implementation which is not applicable

Change-Id: I0732dd174b8b61792fbc60905c191ac4ec1bbae0
2013-11-09 11:08:37 -08:00
Gopikrishnaiah Anandan f538cefc07 hal: Add support for speaker protection
- Speaker protection feature protects the speaker from
  overheating.

Change-Id: Ida4899534124eba203025915beba662e88a0f403
2013-11-09 10:58:54 -08:00
Linux Build Service Account ac203d58b0 Merge "hal: Fix audio playback issue on USB headset" 2013-11-08 19:38:41 -08:00
Ravi Kumar Alamanda fae4211e4f hal: Fix audio playback issue on USB headset
- Start music playback on USB headset. The playback is stopped
  after 3sec.
- A touch tone is played through low latency output path,  while
  selecting the song in the music app. This output goes to standy
  after 3sec. So the disable_snd_device() is called to reduce the
  ref count on usb headset device by 1. At this point the music
  playback (deep-buffer path) is still active. But the current
  implementation has uncondtionally calls usb_stop_playback()
  which results music playback to stop.
- Fix by ensuring the usb_stop_playback is called only when the
  device ref count goes to 0.
- Fix related minor stabilty issues

Change-Id: I979423458738e68da45973751cd918d4c1a924ea
CRs-Fixed: 572048
2013-11-08 14:32:57 -08:00
Linux Build Service Account 6afb9ced91 Merge "hal: Add support for AUXPCM BT" 2013-11-07 21:58:43 -08:00
Linux Build Service Account 1264bab70f Merge "hal: fix for audio record failures" 2013-11-07 16:12:59 -08:00
Damir Didjusto f1d46c784a hal: Add support for AUXPCM BT
Atheros BT chip uses AUXPCM instead of slimbus. Audio HAL has
to use different mixer paths file depending on whether it's
internal or external BT chip

Change-Id: I78ae70462fed42d4260ae37070ba23e81779c866
2013-11-07 14:20:36 -08:00
Mingming Yin ab42978617 hal: fix for audio record failures
- Audio record fails because FM usecase
  and device are always selected for
  normal record.
- Fix this issue by updating if condition
  checks for FM usecase and device.

Change-Id: I9aa5cfc29bc686c351cac177b41139d138b9835a
2013-11-07 11:44:40 -08:00
Linux Build Service Account debeb7b90a Merge "hal: Enable support for Listen voice wakeup feature" 2013-11-05 22:33:00 -08:00
Linux Build Service Account ed9c38bcde Merge "hal : Support for another instance of fm recording" 2013-11-05 16:59:26 -08:00
Kiran Kandi 910e186c70 hal: Enable support for Listen voice wakeup feature
enable the support for Listen voice wakeup feature by loading
listen hal library dynamically.

Change-Id: Ife8e71589620342e21b4c52751466edaccc536ef
2013-11-05 15:35:27 -08:00
Preetam Singh Ranawat de84f1a7fc hal : Support for another instance of fm recording
-Added support for one more instance of fm recording
    to play fm over a2dp.

Change-Id: I0c796c5acdc045327a8d43754e7530aab10097d9
2013-11-06 03:51:06 +05:30
Linux Build Service Account 7cc901bee3 Merge "hal: Fix for no audio recorded during voice downlink record with mic muted" 2013-11-05 10:28:30 -08:00
Linux Build Service Account 065f1bea5d Merge "hal: Add missing offload changes." 2013-11-05 10:28:07 -08:00
Linux Build Service Account 6095141d85 Merge "hal: Add support for multiple hardware variants" 2013-11-05 10:28:07 -08:00
Krishnankutty Kolathappilly a43f96ec77 hal: Add missing offload changes.
Compressed offload device number and entry from the device
table is missing due to merge issue. Add the device number
to fix offload playback issues.

Change-Id: Ia3eb0e3aaef1e1a73eda5d70bb8f16711ddd182f
2013-11-03 15:46:05 -08:00
Ravi Kumar Alamanda 48c921d4e8 hal: 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: I060f2e6c331344dd41417c19fb688ff27a129308

Conflicts:

	hal/Android.mk
2013-11-03 15:44:13 -08:00
Ravi Kumar Alamanda 8f715d9492 hal: Use deep buffer output as primary
- The audio content in video clips, YouTube content, etc
  are being rendered through low latency path as it was
  set as default output profile. This results more power
  consumption for video playback.
- Fix this using deep buffer path as default one and use
  low latency path only for those audio tracks that
  request with AUDIO_OUTPUT_FLAG_FAST.

Change-Id: I52fafa0ec2a312bc4383c813497830e6ded071bc
CRs-Fixed: 570389
2013-11-01 20:37:38 -07:00
Helen Zeng e0b186f934 hal: Fix for no audio recorded during voice downlink record with mic muted
If mic is muted, the recording buffer is reset,
then there is no audio recorded during voice downlink recording.
Don't reset the buffer if voice call is active.

Change-Id: I59d0543febcccf4a70dfbe713e0921e7bb9f2092
2013-10-31 17:14:10 -07:00
Linux Build Service Account 50f8776825 Merge "hal: compile voice extensions based on board config flag" 2013-10-30 21:00:35 -07:00
Linux Build Service Account 71b0d19fc6 Merge "hal: add incall music delivery feature" 2013-10-28 20:41:50 -07:00
Shiv Maliyappanahalli 303f51dd95 hal: compile voice extensions based on board config flag
Compile voice extensions based on the flag
AUDIO_FEATURE_DISABLED_MULTI_VOICE_SESSIONS defined
in BoardConfigVendor.mk.

Change-Id: I06c42bf4b79294fed2077c1d2771ed155f68de00
2013-10-28 16:29:12 -07:00
Linux Build Service Account ac439b73eb Merge "Merge remote-tracking branch into aosp" 2013-10-28 15:36:23 -07:00
Shiv Maliyappanahalli f3b9a42020 hal: add incall music delivery feature
In multisim scenarios, local call hold tone has to be played
to the uplink on the sub on local call hold. Add incall music
delivery feature so that call hold tones can be played to the
uplink.

Change-Id: I8cecf0139926a4bfee603c02542bbedc67720bf4
2013-10-28 12:45:41 -07:00
Shruthi Krishna ace1085d17 Merge remote-tracking branch into aosp
audio/hal: Configure HDMI channels based on output stream channels
  hal: Fix for Tx Mute issue when a new call accepted while in call
  Level measurement in offloaded visualizer
  audio: Presentation time enhancements
  implement get_presentation_position() for offloaded outputs
  audio : add new TMUS MCC and MNC list
  audio : add new TMUS MCC and MNC list
  audio : add new TMUS MCC and MNC list
  add offloaded audio visualizer
  audio: compress offload enhancements
  audio: enable AAC offload
  audio: set cached volume before starting voice call
  audio: set cached volume before starting voice call
  Implement HAL API get_presentation_position
  hal: force stop after drain.
  hal: Add support for Tunnel mode audio playback

Conflicts:
	Android.mk
	hal/audio_hw.c
	hal/audio_hw.h
	hal/msm8960/platform.c
	hal/msm8974/platform.c

Change-Id: I0c66fd6bae9b4974e1791f4e848c775d389da3d0
2013-10-25 14:32:12 -07:00