Commit Graph

1295 Commits

Author SHA1 Message Date
Mingming Yin 89c6a7f457 audio: renaming thulium to msm8996
Use appropriate SOC name.

Change-Id: I08e17ec9b240869c5357ad181f1fb17a0d06b969
2015-03-24 11:56:14 -07:00
Linux Build Service Account 94a5bdc428 Merge "hal: change dts notifier nodes path to satisfy seandroid policy" 2015-03-23 19:24:43 -07:00
Linux Build Service Account 256de84aa4 Merge "hal: fix DTS HPX fade during pause and resume" 2015-03-23 19:24:43 -07:00
Linux Build Service Account ed6b0abc33 Merge "hal: Merge 8994 platform changes to 8916." 2015-03-23 19:24:43 -07:00
Dhanalakshmi Siddani 79b9859f87 hal: change dts notifier nodes path to satisfy seandroid policy
Change dts notifier nodes path to /data/misc/dts/ to
satisfy seandroid policy.
Also remove AudioUtil source and header file from this project
as writing to route node is already moved to AudioPolicyManager.

Change-Id: I656e28077a6224b25e26d7476401bfb11fd141c8
2015-03-23 11:59:02 +05:30
Dhanalakshmi Siddani 79415e7093 hal: fix DTS HPX fade during pause and resume
During pause/resume, don't send DTS HPX fade-out and fade-in
to all active streams, we should only send to the one that is
pausing or resuming.

Change-Id: Ib527e0be29e81a38f702152b1263a140de773145
CRs-fixed: 780001
2015-03-23 11:54:47 +05:30
Preetam Singh Ranawat 8bde2c5026 hal: Merge 8994 platform changes to 8916.
Change-Id: I5ffd3937d92988cc8119131c4522d0c6db87d247
2015-03-20 12:01:29 +05:30
Linux Build Service Account 6ab6e56240 Merge "hal: add support to use low lantecy as primay output" 2015-03-19 07:17:47 -07:00
Linux Build Service Account 4df9f88983 Merge "hal: Fix for acdb id mismatch on device switch" 2015-03-18 15:05:08 -07:00
Naresh Tanniru cc7c4dea28 hal: Fix for acdb id mismatch on device switch
- On resuming the playback after headset removal, hal uses the
  stream out device which is not updated one to get the snd out
  device for sending acdb cal data.So it sends the wrong acdb id.

- Use the snd device associated with usecase to get the acdb id.

Change-Id: I4057b21e27e5d4836b4e8954cf71bf88c235ae7f
2015-03-17 21:34:17 -07:00
Linux Build Service Account fa3fe6bbd6 Merge "audio_hal: increase written frames size when HAL is in SSR" 2015-03-17 17:52:57 -07:00
Mingming Yin 08c7e31b61 hal: add support to use low lantecy as primay output
- Add support to use low lantency output as primary
  output when AUDIO_USE_LL_AS_PRIMARY_OUTPUT is enabled

Change-Id: Ie7faf9f7af4c97b7afdda8084b7acf162abbc0b6
2015-03-16 18:10:58 -07:00
Zhou Song 0b2e5dc8a5 audio_hal: increase written frames size when HAL is in SSR
Written PCM frames count is not increased when HAL stays in SSR,
it can make mismatch with the written framecount in AudioFlinger,
so rendered frames count return from AudioFlinger is not correct.
Then A/V sync will be missed since the played audio duration is
calculated by rendered frames count.

Increase the written frames count even the frames are not written
to the PCM driver during SSR.

CRs-Fixed: 791738

Change-Id: I53cfeae9294ae1f5a6466a749da90d1f8ef297cb
2015-03-16 22:08:09 +08:00
Weiyin Jiang 18ac4e97ce hal: enable wma/wmapro offload
Add wma specific parameters as to enable wma offloading.

Change-Id: Icdda981dd62c670cef6d4172cab2aeca6381c2af
2015-03-16 18:23:55 +08:00
Linux Build Service Account 52f8653ddb Merge "hal: update target name for thulium" 2015-03-13 12:03:12 -07:00
Linux Build Service Account 2497528567 Merge "hal: fix klockwork failures in audio hal" 2015-03-13 01:52:23 -07:00
Linux Build Service Account e16571dea7 Merge "hal: update feature flag for HDMI EDID" 2015-03-13 01:52:22 -07:00
Banajit Goswami 20f40781ca hal: update target name for thulium
Use target name as msmthulium instead of thulium. Update the
target names and sound card names.

Change-Id: Ibf395980183d39e6cae83b2684b07bfc62d6b339
2015-03-11 15:25:04 -07:00
Linux Build Service Account d7e37a3aff Merge "hal: Fix alignement of of buffer sent to DSP" 2015-03-10 16:31:23 -07:00
Mingming Yin e5bf837d36 hal: update feature flag for HDMI EDID
- Compile edid.c when AUDIO_FEATURE_ENABLED_HDMI_EDID
  is enabled.

Change-Id: I2ff1fd591fe2e5693271f37179e0e7a9fbe70e4a
2015-03-10 15:57:11 -07:00
Linux Build Service Account f7f19b91ca Merge "hal: Update pcm_open flag for VOIP" 2015-03-07 05:40:23 -08:00
Linux Build Service Account d6e93eaccc Merge "hal: dev_arbi: support more audio devices for arbitration" 2015-03-07 05:40:23 -08:00
Linux Build Service Account c8f118fd65 Merge "hal: fix dts logging for fade node" 2015-03-07 05:40:23 -08:00
Linux Build Service Account bd5401d436 Merge "hal: Reduce offload latency and log spam" 2015-03-07 05:40:22 -08:00
Linux Build Service Account 8d39aef8e9 Merge "hal: set maximum polling time to 1000 ms" 2015-03-07 05:40:22 -08:00
Linux Build Service Account 2ca22d8418 Merge "hal: enable compilation of EDID for Thulium target" 2015-03-07 05:40:22 -08:00
Mingming Yin 7b762e7cd6 hal: fix klockwork failures in audio hal
- Fix klockwork failures in audio_hw.c and platform.c

Change-Id: I4a3b7e11c9050c3b1f0fe4e3d564b879065b3203
2015-03-06 10:36:01 -08:00
Fred Oh 3f43e74db7 hal: set maximum polling time to 1000 ms
Since small bufs uses blocking writes, a write will be blocked for
the default max poll time (20s) in the event of an SSR.Reduce the poll
time to observe and deal with SSR faster.

Change-Id: I8693a55596bc9578f9b5a04469d12155f191dcf1
2015-03-04 18:42:34 -08:00
Pavan Chikkala 51b4b9a62e hal: Update pcm_open flag for VOIP
- By default CLOCK_REALTIME is used.
- Change the clock type to CLOCK_MONOTONIC
  to synchronize the framework and VOIP driver
  clock and timestamps.

Change-Id: I8ab64e948cea5d027bf28c4e101ff517fda3558c
2015-03-04 18:07:03 -08:00
Alexy Joseph 01e54e6191 hal: Reduce offload latency and log spam
Offload latency is set to 96. Change
it to 50 to reflect the rendering latency more correctly
Modify pcm offload latency to return offload
latency rather than the latency based on buffering
since volume is applied immediately for offload use
cases. Also reduce log spam in offload use cases

Change-Id: If28d49d66e8f989074c4c7eaec523855e9f4290a
CRs-Fixed: 787448
2015-03-03 19:01:03 -08:00
Alexy Joseph ca2b3e1abd hal: fix dts logging for fade node
fix dts logging for fade node

CRs-fixed: 770926
Change-Id: Icc9d6043d5df634f7012fb8eb68f46f52466c233
2015-03-03 13:20:41 -08:00
Banajit Goswami 0bffa44de5 hal: enable compilation of EDID for Thulium target
Thulium target has support for HDMI. Enabled compilation of
file for HDMI EDID support on Thulium target.

Change-Id: I605f4c57a14ff9fcfa064a9ebda996cef349f91b
2015-03-03 10:38:41 -08:00
Linux Build Service Account e0b22e0eb2 Merge "hal: Add support for voice call over USB Headset" 2015-03-02 23:29:51 -08:00
Ravit Dennis aaee49c88a hal: dev_arbi: support more audio devices for arbitration
Add support for more audio devices for RX arbitration,
including speaker, headphones and the combo
speaker/headphones device.

Change-Id: I822fa0b70033ab067f50f7a019a21ef2e300a665
2015-03-02 06:59:47 -08:00
Linux Build Service Account ca12e47154 Merge "hal: Fix bit width for 24 bit PCM offload playback" 2015-02-28 23:28:56 -08:00
Linux Build Service Account b91559ab30 Merge "visualizer: do not apply calibration on audio routed to afe proxy" 2015-02-28 23:28:56 -08:00
Preetam Singh Ranawat 7112f3b1f2 hal: Add support for voice call over USB Headset
Add new rx and tx devices in order to route voice call to
afe proxy ports from where the data can be picked real time
using proxy playback and record usecases.

Change-Id: I0a26e4644588885934f36558312cbd846c38084f
2015-02-27 16:36:06 +05:30
Amit Shekhar 45fbfa93cc hal: Fix alignement of of buffer sent to DSP
Currently, ALIGN macro can align properly only if the buffer size
is a power of 2.
To have same PCM samples for all channels, the buffer size requires to
be multiple of (number of channels * bytes per sample).
For writes to succeed, the buffer must be written at address which is
multiple of 32.
Alignment of 96 satsfies both of the above requirements.

Change-Id: I5ab33ef198b5b8f18ae9f09c4361e5cff84e700e
CRs-Fixed: 795936
2015-02-26 17:48:00 -08:00
Ravi Kumar Alamanda 518bcbb6ab visualizer: do not apply calibration on audio routed to afe proxy
When compress offload playback is active, if the Visualizer effect
is enabled, decoded PCM audio is routed to AFE Proxy port and
read from it by the Visualizer wrapper library. When audio is routed
to proxy port, current output device specific calibration is also
being applied which is not desired.
Avoid this by sending default audio calibration i.e. no post-processing
to be applied the data.

Change-Id: Id576c4ed7bbb482683074e3e33aa5760b7597d37
2015-02-26 13:59:24 -08:00
Linux Build Service Account b58ff9b91d Merge "hal: Fix incorrect device selection for incall recording" 2015-02-25 17:06:20 -08:00
Vidyakumar Athota c1d39c983c hal: Fix bit width for 24 bit PCM offload playback
PCM offload bit width is selected as 16 bit even for 24 bit pcm offload
playback streams if QTI_FLAC_DECODER flag is not defined. Fix this issue
by defining appropriate flag PCM_OFFLOAD_ENABLED_24.

Change-Id: I82169252770b764344bf4531fb994e2195244dde
2015-02-25 15:14:26 -08:00
Shiv Maliyappanahalli 4d2d97cd24 hal: Fix incorrect device selection for incall recording
Incall recording usecase should select non-fluence
device in audio path to avoid recorded data from
getting cancelled in audio path when fluence is
enabled.
Fix by adding missing break for the case statements.

Change-Id: I3832013423956683f403c8322d0547325c336c73
2015-02-23 17:20:50 -08:00
Linux Build Service Account e1a7c4cbc2 Merge "hal: Fixes for the issues reported by KlocWork" 2015-02-21 20:27:15 -08:00
bait_dispatcher_monitor_system 3c4160dd32 Merge "audio: Support for compress offload recovery" 2015-02-19 22:48:47 -08:00
bait_dispatcher_monitor_system 4e207d383a Merge "hal: compile HAL for msm8992" 2015-02-19 22:48:35 -08:00
Chaithanya Krishna Bacharaju db6236ab5f hal: Fixes for the issues reported by KlocWork
-Fixes for KW issues reported which may cause NULL dereference:
283559, 293531, 293533, 309145

Change-Id: Ic0a1e891ba7a013ed48f1e5c82d4051f8e8b5a9d
2015-02-19 19:38:19 -08:00
Fred Oh 73174f912f hal: compile HAL for msm8992
By mistake msm8992 was replaced with msm8909. Fix it to compile HAL for msm8992.

Change-Id: I587d7aaa44b885457bf3832bed5a6d5337ecb505
2015-02-18 18:16:00 -08:00
Linux Build Service Account 1d92da0071 Merge "audio: stop reading sound trigger lab data on SSR" 2015-02-13 08:28:32 -08:00
Bharath Ramachandramurthy 837535b957 audio: stop reading sound trigger lab data on SSR
While sound trigger lab data being read, if CPE SSR
happens the pcm read returns -ENETRESET. Instead of
updating the sound card sate, mark the sound trigger
state as inactive to avoid reading the lab data from
driver. Marking the session as inactive handle both
CPE and ADSP SSR scenarios where HAL is prevented
to read from kernel.

Change-Id: Id82eed597c01265a7d26f17e5ac3c5cd0e17adbf
CRs-fixed: 790726
2015-02-12 22:37:05 -08:00
Linux Build Service Account 2d3bb44603 Merge "hal: add quad mic support for audio recording and VoIP calls" 2015-02-12 09:58:02 -08:00