Commit Graph

1295 Commits

Author SHA1 Message Date
Linux Build Service Account 75787e58f4 Merge "hal: Update atoi usage to atoll in case of large Numeric values" 2015-02-11 02:50:51 -08:00
Ashish Jain 1dff3214e7 hal: Update atoi usage to atoll in case of large Numeric values
-DMID can have value greater than the MAX value returned by atoi,
hence use atoll instead.
- This change is done to accommodate the change in atoi implementation
from Lolipop onwards.

Change-Id: I58b1ba4ff18642238eaa34f41dd4bd9eeb1a25a9
2015-02-10 18:59:48 +05:30
Linux Build Service Account c090660fdb Merge "hal: send additional param for gapless flac" 2015-02-10 02:30:04 -08:00
Linux Build Service Account de982ca5d5 Merge "hal/usb: Fix for Klocwork issues" 2015-02-09 08:12:58 -08:00
Linux Build Service Account 9b64651d5a Merge "hal: 8939: add support for 8939 skul device" 2015-02-09 08:12:57 -08:00
Karthik Reddy Katta d71b94b59e hal: add quad mic support for audio recording and VoIP calls
Add quad mic recording support for standalone audio recording
and for VoIP calls using audio path.

Change-Id: I10724b6350b9940b93971ac720747dee1a9936cb
2015-02-08 23:03:19 -08:00
Chaithanya Krishna Bacharaju 4f4b725b1c hal/usb: Fix for Klocwork issues
-Fix for the following issues reported by KW:
55753

Change-Id: Ic6361ad492d05ebf2c7b5a01313799ea4bd99298
2015-02-08 22:55:08 -08:00
Meng Wang cfefb8bf2a hal: 8939: add support for 8939 skul device
add entry for 8939 skul sound card name to load
the mixer controls for 8939.

Change-Id: I62ec602ab1d86c22c6262ebd66c45e208ea7b962
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2015-02-08 21:25:47 -08:00
Linux Build Service Account ae8d3573ce Merge "Merge remote-tracking branch 'quic/LA.BR.1' into HEAD" 2015-02-05 15:31:04 -08:00
Linux Build Service Account a91fba6617 Merge "hal: fix routing issue for voip use case" 2015-02-04 22:34:19 -08:00
Linux Build Service Account f0a70fcf6a Merge "hal: align fragment size to 24 instead of 1024 for PCM offload" 2015-02-04 05:26:58 -08:00
Preetam Singh Ranawat 2d0e463a86 Merge remote-tracking branch 'quic/LA.BR.1' into HEAD
* quic/LA.BR.1: (37 commits)
  hal: Performance mode during recording usecase
  audio: Support for compress offload recovery
  audio: Fix for clip skip issue during SSR
  hal: add checks for calibration buffer allocation failures
  mm-audio: aenc-aac: fix integer overflow for encoded buffer timestamp calculation
  hal: Add support for 8909 QRD skue
  hal: Fix for FM mute issue on start of FM record
  hal: Fix array length computation for backend id array.
  hal : set Non SA+ app type for PCM Capture
  hal : Fix for SA+ app type selection for PCM Capture usecase
  hal : Fix for SA+ app type selection for PCM Capture usecase
  hal: use 0 as default return value for out_get_render_position
  audio: hal: Add support for pm8916 on msm8909
  hal: Define a new combo device for AANC and Fluence
  hal: Define a new combo device for AANC and Fluence
  hal: use 0 as default return value for out_get_render_position
  hal: Update DS2 implementation to support ACDB based license mechanism
  hal : Overwrite the APP type for PCM RX and TX path
  audio: HAL to support for peripheral manager
  hal : Set the input device for VOIP calls using audio path
  ...
Conflicts:
	hal/Android.mk
	hal/audio_extn/audio_extn.c
	hal/audio_extn/audio_extn.h
	hal/audio_extn/dolby.c
	hal/audio_extn/utils.c
	hal/audio_hw.c
	hal/msm8916/hw_info.c
	hal/msm8916/platform.c
	hal/msm8974/platform.c
	hal/platform_api.h
Change-Id: Ibfa171e8f3af713dbb2cffbaf2ca2b0df3e8ae73
2015-02-02 12:41:14 +05:30
Amit Shekhar cbf04985fc hal: send additional param for gapless flac
Currently, metadata such as min/max block size is sent only for first
stream in FLAC gapless playback. This causes incorrect configuration
and, subsequently, framedrops in decoding of second stream and onwards
Sending additional parameters

Change-Id: I74abd18e7e5ebdce5a35e81d6af4d6f8107e07c9
CRs-Fixed: 781837
2015-01-30 11:26:04 -08:00
Alexy Joseph 3b79cccffa hal: align fragment size to 24 instead of 1024 for PCM offload
Aligning PCM buffer size to 1024 bytes is not required in case
of PCM offloading. It actually creates problem when playing
6 ch, 96KHz, 16-bit stream PCM in offload mode, due to aligning
PCM data becomes unequal for the six channels.
Align the buffer to LCM of 2, 4, 6, 8 i.e. 24.

Change-Id: I0823ca2ccdd5fceaf23a182b763a1d69f91f602f
2015-01-29 21:49:44 -08:00
Linux Build Service Account bd5ad8fcc4 Merge "hal: add support to query hpx state using getparameter" 2015-01-29 13:35:46 -08:00
Linux Build Service Account 65b3c12f9f Merge "hardware/qcom/audio: Integrate Eagle framework for HeadphoneX" 2015-01-29 13:35:45 -08:00
Linux Build Service Account 9984793cb0 Merge "Merge tag 'AU_LINUX_ANDROID_LA.BF64.1.05.00.00.021.095' into merge_branch" 2015-01-28 16:26:07 -08:00
Narsinga Rao Chella e7f33c1d2e hal: fix routing issue for voip use case
During device switch, all the use cases on a shared backend will
be derouted before disabling the current device and rerouted after
enabling the new sound device. Rerouting of voip use cases
was not taken care properly which is fixed now.

Change-Id: I394c0d34fe36d42ce615414ea0524a58c10a5f79
2015-01-28 15:23:34 -08:00
Shruthi Krishna 9b7e69036a AU_LINUX_ANDROID_LA.BF64.1.05.00.00.021.095 based on quic/aosp/LA.BF64.1
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEABECAAYFAlS+Y7EACgkQoUgPZYCpAfGhcQCgzFtFc1pVn2TUWr42hAfxqmcJ
 KNMAn0ijSKfcIWXQfCXYaiv3W7khSvRT
 =4cCU
 -----END PGP SIGNATURE-----

Merge tag 'AU_LINUX_ANDROID_LA.BF64.1.05.00.00.021.095' into merge_branch

AU_LINUX_ANDROID_LA.BF64.1.05.00.00.021.095 based on quic/aosp/LA.BF64.1

* tag 'AU_LINUX_ANDROID_LA.BF64.1.05.00.00.021.095': (30 commits)
  audio: Reject incall record request when mode is not IN_CALL
  mm-audio: aenc-aac: fix integer overflow for encoded buffer timestamp calculation
  hal: Add support for parsing hdmi edid information for msm8992
  hal: Fix glitch in audio playback during device switch
  hal: add support to query hpx state using getparameter
  hal: add all compressed formats for app type selection
  hal: Performance mode during recording usecase
  hal: fix null pointer de-reference
  hal : add 8992 for msm8992 audio
  post_proc: Support Headphone:X in offload and non tunnel modes
  post_proc: Add support for non-tunnel DSP audio effects
  audio: Avoid mute during AFE PROXY Usecase
  hal: Fix DTS HPX Get parameters
  hal: bug fixes for PCM offload
  hal: Fix progress bar issue during compress offload playback
  hal: Fix setting stream channel map properly
  hardware/qcom/audio: Integrate Eagle framework for HeadphoneX
  hal: Remove setting DAP bypass /DAP on from HAL
  hal: Avoid resetting device to speaker for HDMI passthrough case
  hal: Audio HAL / APM changes for HDMI passthrough
  ...

Conflicts:
	Android.mk
	hal/Android.mk
	hal/audio_extn/audio_extn.h
	hal/audio_extn/utils.c
	hal/audio_hw.c
	hal/voice.c

Change-Id: Ia92b2002486894e8711a48480324479fe114aeb6
2015-01-23 15:12:58 -08:00
Linux Build Service Account ca4688b303 Merge "hal: replace CLOCK_MONOTONIC with CLOCK_BOOTIME" 2015-01-22 22:43:03 -08:00
Fred Oh fbcd2c26f2 hal: replace CLOCK_MONOTONIC with CLOCK_BOOTIME
CLOCK_BOOTTIME is identical to CLOCK_MONOTONIC except it also includes
any time that the system is suspended.

Change-Id: I78e5136332a366a32b66a393ead29f2c5972f7d2
2015-01-22 13:26:44 -08:00
Linux Build Service Account baa3125935 Merge "hal: add checks for calibration buffer allocation failures" 2015-01-21 09:38:21 -08:00
Linux Build Service Account 1147f08d97 Merge "hal: Fix for FM mute issue on start of FM record" 2015-01-21 09:38:20 -08:00
Linux Build Service Account d1d62da9aa Merge "hal : Set the input device for VOIP calls using audio path" 2015-01-21 09:38:19 -08:00
Dhanalakshmi Siddani 3163a3f5ed audio: Support for compress offload recovery
- Add support to return error for compress time stamp query
  during SSR

 CRs-Fixed: 683288

Change-Id: Ie6849bbd3de9474fa556bfe4b183a10a44e4b3e8
2015-01-21 01:55:35 -08:00
Sidipotu Ashok 04ab3d3c9e hal: add checks for calibration buffer allocation failures
add check for calibration buffer allocations failures and
enhance debug messages in the calibration update funtions.

Change-Id: I08c48f57c4fe747af8c19d12c986a5b9279bca03
2015-01-21 01:54:27 -08:00
Naresh Tanniru 9e95c2424a hal: Fix for FM mute issue on start of FM record
- FM audio is muted on start of record session when
  playback record concurrency enabled

- Add support for FM playback device switch on
  record concurrency enabled

Change-Id: I51795dedf0f32c41c6a84889bb7f62ee21713720
2015-01-21 01:52:00 -08:00
Karthik Reddy Katta f621ec7bee hal : Set the input device for VOIP calls using audio path
For Voip calls using audio path ,the input devices is not
getting selected when output device is changed.
Removed the source type check to select the input device
when there is an active input and output device switch.

Change-Id: Iab7a6fddb3dda045fab94cd72de8e658721d9237
CRs-fixed: 712950
2015-01-21 01:41:17 -08:00
Linux Build Service Account 397d63698f Merge "hal: Fix glitch in audio playback during device switch" 2015-01-14 17:14:11 -08:00
Ravi Kumar Alamanda af66940383 hal: Fix glitch in audio playback during device switch
Currently the deep buffer path uses 4 * 20msec buffer.
During device switch the AudioPolicyManager delays routing
command by 2 * output latency (80msec) to ensure that all
the data written to driver/DSP is played out on current
device itself.
The stream side buffering in the DSP in legacy PCM mode is
95msec and hence the depth of pipeline is 80 + 95 = 175msec
which exceeds the device switch delay 160msec (2 * 80). So
the tail (data written to driver before headset plugin) is
heard on headset and perceived as glitch.
Ensure that the buffering in the kernel is greater than or
equal to the buffering in the DSP to fix the issue.

Change-Id: I01a3862d63ce4c258056620693dee08761c7e83f
CRs-Fixed: 771446
2015-01-13 17:26:16 -08:00
Linux Build Service Account 93bf1af38d Merge "hal: fix Rx path mute issue during incall recording" 2015-01-07 01:29:18 -08:00
Narsinga Rao Chella 2f92062aa9 hal: fix Rx path mute issue during incall recording
When MULTI_VOICE_SESSIONS feature flag is not enabled, the state of
incall recording stream is returned incorrectly. Fix the issue by
moving the corresponding piece of code from voice_extn.c to voice.c.

Change-Id: Id350bad65d12a4f165e80ee11cda3a8f342d38ee
2015-01-06 17:18:36 -08:00
Linux Build Service Account ae9ad12d97 Merge "audio: Reject incall record request when mode is not IN_CALL" 2015-01-05 16:02:07 -08:00
Linux Build Service Account a7326a8a64 Merge "mm-audio: aenc-aac: fix integer overflow for encoded buffer timestamp calculation" 2015-01-05 13:52:48 -08:00
Apoorv Raghuvanshi 064de8b1ef mm-audio: aenc-aac: fix integer overflow for encoded buffer timestamp calculation
Encoded buffer timestamp is 64 bit wide and is derived by multiplying
two 32 bit values, while calculating timestamp, these values are
multiplied with result stored in intermediate storage of 32 bit used
by compiler internally, this was associated with overflow if the result
is larger than max supported by 32 bit storage.
Changing m_frame_count to 64 bit will fix possible overflow for frame
count as well as force compiler to use intermediate variable of
required size.

Change-Id: I5ab709094d1c6b984d27f98327d3d8afa179fc92
CRs-Fixed: 767185
2015-01-05 08:55:44 -08:00
Linux Build Service Account 6c59b0a4da Merge "audio: Re-arrange member var initializations" 2014-12-23 05:57:16 -08:00
Pavan Chikkala c862f71d65 audio: Reject incall record request when mode is not IN_CALL
- If application selects AUDIO_SOURCE_VOICE_CALL when voice call is
  not active, audio HAL is selecting afe-proxy use case which is
  wrong. afe-proxy usecase/device expected to be selected during
  USB Voice call scenario only

- Fix is to fail opening the input stream with
  AUDIO_DEVICE_IN_TELEPHONY_RX or AUDIO_DEVICE_IN_VOICE_CALL if
  current mode is not IN_CALL

CRs-Fixed: 772386

Change-Id: I8ee3e72daec86e26d05b01a117d7a01f7f6b69a8
2014-12-22 03:42:11 -08:00
Linux Build Service Account e1785b18f5 Merge "hal: add support for thulium target" 2014-12-19 08:56:42 -08:00
Banajit Goswami 22582e755c hal: add support for thulium target
Adding thulium target support in makefile

Change-Id: Ibb33e9545a511ea85fc29cf56f72cd0b5d368e7e
2014-12-18 17:17:09 -08:00
Linux Build Service Account 0c7168146f Merge "hal: Add support for parsing hdmi edid information for msm8992" 2014-12-16 20:23:52 -08:00
Linux Build Service Account 4891727118 Merge "hal: Fix glitch in audio playback during device switch" 2014-12-16 07:12:26 -08:00
Linux Build Service Account e10479bae9 Merge "mm-audio: aenc-aac: fix integer overflow for encoded buffer timestamp calculation" 2014-12-16 07:12:25 -08:00
Apoorv Raghuvanshi 6cf0123128 mm-audio: aenc-aac: fix integer overflow for encoded buffer timestamp calculation
Encoded buffer timestamp is 64 bit wide and is derived by multiplying
two 32 bit values, while calculating timestamp, these values are
multiplied with result stored in intermediate storage of 32 bit used
by compiler internally, this was associated with overflow if the result
is larger than max supported by 32 bit storage.
Changing m_frame_count to 64 bit will fix possible overflow for frame
count as well as force compiler to use intermediate variable of
required size.

Change-Id: I5ab709094d1c6b984d27f98327d3d8afa179fc92
CRs-Fixed: 767185
2014-12-16 09:33:01 +05:30
Fred Oh 0ceca2a92a hal: Add support for parsing hdmi edid information for msm8992
add edid parsing for msm8992

Change-Id: I636118080e90f089767b89366b942ff38aba7302
2014-12-15 18:57:33 -08:00
Ravi Kumar Alamanda 739a765ce5 hal: Fix glitch in audio playback during device switch
Currently the deep buffer path uses 4 * 20msec buffer.
During device switch the AudioPolicyManager delays routing
command by 2 * output latency (80msec) to ensure that all
the data written to driver/DSP is played out on current
device itself.
The stream side buffering in the DSP in legacy PCM mode is
95msec and hence the depth of pipeline is 80 + 95 = 175msec
which exceeds the device switch delay 160msec (2 * 80). So
the tail (data written to driver before headset plugin) is
heard on headset and perceived as glitch.
Ensure that the buffering in the kernel is greater than or
equal to the buffering in the DSP to fix the issue.

Change-Id: I01a3862d63ce4c258056620693dee08761c7e83f
CRs-Fixed: 771446
2014-12-15 18:56:30 -08:00
Linux Build Service Account b092a9a350 Merge "hal: add all compressed formats for app type selection" 2014-12-12 22:38:44 -08:00
Linux Build Service Account 96a319a15b Merge "hal: add support to query hpx state using getparameter" 2014-12-12 22:38:40 -08:00
Linux Build Service Account 6d2bc62e80 Merge "hal: Performance mode during recording usecase" 2014-12-11 19:49:18 -08:00
Linux Build Service Account b47904437f Merge "post_proc: Support Headphone:X in offload and non tunnel modes" 2014-12-11 19:48:51 -08:00
Linux Build Service Account 8a6a893fa6 Merge "post_proc: Add support for non-tunnel DSP audio effects" 2014-12-11 19:48:50 -08:00