Commit Graph

1294 Commits

Author SHA1 Message Date
Mingming Yin dda29e60cb hal: fix resource leak issues in platform.c
- fix resource leak issues related to mixer
  controls and file handles

Change-Id: I3675da4504a93a084ad582e5e6eb7c75f38e736e
2016-02-04 23:00:20 -08:00
Naresh Tanniru 34a303cb34 hal: Remove alac, ape from hardware decoder list
- Alac, ape playback is not working during voice call

- DSP only decoders are not supported during voice call
  due to MIPS limitation

- Remove alac, ape codecs from DSP only decoder list
  as software OMX decoders are available

CRs-Fixed: 967679
Change-Id: I6df10e0033ebbe46f339fb934ca6c2df3622c901
2016-02-03 06:11:25 -08:00
Linux Build Service Account cab935a614 Merge "hal: Set sampling rate for stream_out" into av-userspace.lnx.1.0-dev.1.0 2016-02-03 02:18:38 -08:00
Leena Winterrowd d7a04cd281 hal: Set sampling rate for stream_out
Propagate sampling rate to platform_get_output_snd_device to
properly detect 44.1 kHz usecases. Also remove usage of
audio_devices_t in platform_set_echo reference as it does not
contain the sampling rate necessary for
platform_get_output_snd_device. Check device ref counts instead.

CRs-Fixed: 955740
Change-Id: Iaeb53fb362852416603cd57ba15da37b30973c0f
2016-02-02 07:25:13 -08:00
Satya Krishna Pindiproli 125900e9b6 hal: fix usecase selection in adev_open_output_stream
During an active multichannel WFD session, YouTube
streaming stutters and audio is not routed to headset
when it is plugged in at the source or to the speaker
when the session is paused at the sink.

Multichannel playback usecase gets selected for YouTube
streaming when it is started during a WFD session. When
a headset is plugged in or the session is paused from the sink,
as there are no default mixer controls for multi-channel-playback,
there is an error when they are set.

Fix the issue by not selecting multi-channel-playback usecase
if DIRECT_PCM flag is present when the output is opened. This
ensures that compress-offload-playback2 usecase gets selected
and as there are valid mixer controls for speaker and headset for
this usecase, audio routes to the appropriate device as expected
when there is a device switch.

CRs-Fixed: 961105
Change-Id: I0bb638a4ac3f219d0a161dbfccb3aa540910dfc2
2016-02-02 03:24:48 -08:00
Dhananjay Kumar eeb6b31f4c hal: fm: add parameter to set mute options
Add parameter to handle mute options, this is required to
control fm mute in device loopback mode without affecting
other music streams.

CRs-Fixed: 963849
Change-Id: I1729d0bd3cff40670444a8806a05c7304d4ca6aa
2016-01-28 21:50:43 +05:30
Linux Build Service Account 360591bdcd Merge "hal: fix for Fluence V5 ECNS failing to work with AANC" into av-userspace.lnx.1.0-dev.1.0 2016-01-28 04:44:25 -08:00
Leena Winterrowd 3c8fbaef40 hal: Validate active input before accessing source
- Ensure that the audio device's active input is valid before
  attempting to access the input source.

CRs-Fixed: 959009
Change-Id: If66cc1e3d5467bf7d03137fdbbffd724a57ecaf6
2016-01-22 18:26:06 +05:30
Shiv Maliyappanahalli dd287265de hal: fix for Fluence V5 ECNS failing to work with AANC
When AANC and fluence are both enabled, HAL select AANC based device
where fluence is disabled. Check for both AANC and Fluence flag and
select AANC and fluence enabled device.

Change-Id: Idb1ad2c9678144a955b8b2ce3506e02d00459b54
2016-01-22 04:07:16 -08:00
Linux Build Service Account 13b99aa192 Merge "hal: Fix closure of hardware dependent node" into av-userspace.lnx.1.0-dev.1.0 2016-01-20 04:35:46 -08:00
Linux Build Service Account d5322d2fe3 Merge "hal: close audio calibration fd" into av-userspace.lnx.1.0-dev.1.0 2016-01-20 04:31:26 -08:00
Linux Build Service Account 175d08e277 Merge "voice_extn: remove redundant check of mode when stop voice use case" into av-userspace.lnx.1.0-dev.1.0 2016-01-19 01:50:55 -08:00
Venkata Narendra Kumar Gutta e071e5ae78 hal: Fix closure of hardware dependent node
Closing of hardware dependent node immediately after sending the cal.
is causing issues as the driver release function being called inturn
resetting all the cal_bits. To fix this, close hardware dependent
node at platform deinit.

CRs-Fixed: 959131
Change-Id: If18e352971e92e82f4b67178924675a4a39c8460
2016-01-19 11:57:04 +05:30
Mingming Yin ef999a6409 hal: close audio calibration fd
- close audio calibration fd in
  audio_hwdep_send_cal.

Change-Id: Ib08ec8c6aef6d88bf4e4d413fb5d95e4167cce30
2016-01-13 11:13:59 +05:30
Dhananjay Kumar 24a4c7be3f hal: fix audio loss from concurrent usage of 44.1 native and anc support
- Audio loss is observed if anc feature is turned on/off dynamically
  during an 44.1 native playback session.
- Since 44.1 playback is not supported when anc is on, handle 44.1
  sessions before applying anc configuration.

Change-Id: I7239dae8529fa4f960ace6acd2fcb668510abe66
2016-01-11 04:53:08 -08:00
Zhou Song d50037291b voice_extn: remove redundant check of mode when stop voice use case
voice use case is still active when mode switched from MODE_IN_CALL
to MODE_IN_COMMUNICATION, while the output used for driving call is
NULL.

This could possibly makes segment fault in mediaserver when call
is activated before the output updated to valid value.

Change-Id: I070dd5e7a1c6d2883ea611588737b1f5c577b275
CRs-Fixed: 953010
2016-01-07 23:43:01 -08:00
Linux Build Service Account 26c67740c7 Merge "hal: spkr_prot: release adev lock during sleep" into av-userspace.lnx.1.0-dev.1.0 2016-01-07 22:26:43 -08:00
Linux Build Service Account 976093ef6e Merge "hal: Fix SSR issue for compress offload playback" into av-userspace.lnx.1.0-dev.1.0 2016-01-07 04:16:41 -08:00
Vidyakumar Athota 920dc03173 hal: spkr_prot: release adev lock during sleep
During speaker thermal calibration, read speaker temperature
5 times with one second sleep time with adev lock acquired.
If any playback starts during that time, it will wait for
adev lock till temperature reading is done. Unblock the
playback thread by release the adev lock during sleep.

Change-Id: I383248d9a701a98c776ca019b628adc22a145e60
2016-01-07 04:00:40 -08:00
Linux Build Service Account ed29baabc1 Merge "hal: spk_prot: remove speaker thermal zone name check" into av-userspace.lnx.1.0-dev.1.0 2016-01-07 03:53:59 -08:00
Linux Build Service Account 4e02254059 Merge "hal: add audio notification acknowledge feature" into av-userspace.lnx.1.0-dev.1.0 2016-01-07 03:53:55 -08:00
Linux Build Service Account db421ad1f2 Merge "hal: msm8916: Add single session voice call usecases and devices" into av-userspace.lnx.1.0-dev.1.0 2016-01-07 03:46:11 -08:00
Linux Build Service Account a119a7d187 Merge "hal: Fix illegal access of member variable without initialization" into av-userspace.lnx.1.0-dev.1.0 2016-01-06 06:33:15 -08:00
Mingming Yin c6e151114d hal: Fix SSR issue for compress offload playback
- Do not close compress sessions when sound card is
  offline.

Change-Id: Ia894fef132ef92390aa732e88ff27c51cb63c9b1
2016-01-05 18:47:23 -08:00
Vidyakumar Athota f98bbd0f10 hal: spk_prot: remove speaker thermal zone name check
Remove unnecessary speaker thermal zone name check in
set parameters. This is required to provide the flexibility
of swapping left and right speakers.

Change-Id: Id88aad98c392fe08744cd3380fe2b1d9d2affeb7
2016-01-05 18:44:46 -08:00
Mingming Yin 00611c3ce6 hal: add audio notification acknowledge feature
- Modify sysfs node to allow audio hal to acknowledge
  every HDMI connect/disconnect event.
- This makes audio hal and HDMI driver to be in sync
  with respect to notifications and avoid any fast
  plug-in/out notification issues.

Change-Id: I6aead358967c3e978f4f599de66c9884b28bf7e9
2016-01-05 18:41:14 -08:00
Venkata Narendra Kumar Gutta 0d293364a3 hal: msm8916: Add single session voice call usecases and devices
This reverts commit 306e607d1c and
added the functionality to support for single session voice call
usecases. PCM device id's for these usecases are updated in
audio_platform_info xml files.

Change-Id: I6229fecaeffe3158a1a22f5f6d98be1e3e997b48
2016-01-05 03:18:49 -08:00
Linux Build Service Account 54ae37c972 Merge "hal: get wsa881x temperature zone names using key value pair" into av-userspace.lnx.1.0-dev.1.0 2016-01-04 07:06:33 -08:00
Sudheer Papothi 6cc88425e3 hal: get wsa881x temperature zone names using key value pair
Use key value pair config parameters to set wsa881x temperature
zone sensor names in speaker protection module for getting
corresponding temperature zone handles.

Change-Id: I90d52a015c4cfc3937605d821cbc574ab0c2a75e
2016-01-04 12:39:00 +05:30
Linux Build Service Account fdaedc9f42 Merge "hal: add support for titanium sku3" into av-userspace.lnx.1.0-dev.1.0 2016-01-03 22:47:29 -08:00
Ashish Jain c02430d364 hal: Fix illegal access of member variable without initialization
-In case of record usecase, out stream is not initialized,
if still accessed might result in illegal memory access
leading to heap corruption.
-Ensure access to out stream only in case of playback usecase.
-Add check to send correct app type in case of feedback speaker
potection. refer change:I033034cad6eb1886e2afa7a6875d18c3391b46c1

Change-Id: Ia70a8d69beb3ce1cb6c742977bd4ec23df3b0b77
2016-01-04 10:42:43 +05:30
Xiaojun Sang 9cd237abbf hal: add support for titanium sku3
add entry for titanium sku3 sound card.

Change-Id: Ibc3a26c5751ff1145c10085e778fecddeadb6a3b
2016-01-04 10:45:02 +08:00
Naresh Tanniru 9042760ed1 HAL: Ferro-lite HAL bringup
- Add support for msmgold build variant

Change-Id: Ia84a8bf4bd99d10a7a9d0e678c65c1ce2b305982
2015-12-30 14:52:29 +05:30
Sidipotu Ashok e6f78cb2c6 hal: Changes to support true 44.1 Native playback
- add changes to support single BE mode on top of the
Double BE mode which is supported.

- support reading of version or mode from XML.

- add logic to switch between single and double BE
based on the mode in XML.

- define a new device for true native.

- add logic to read tasha codec version and allow
true native only for 2.0 version of codec

- enchance log msgs for better debugging.

Change-Id: I970487f16af32144ec26f967e8bfcb32d44d67a4
2015-12-28 05:00:00 -08:00
Naresh Tanniru 4d1e1a165f hal: Add support for msm8953 and msm8937
- Add msm8953 and msm8937 target variant
  sound card details

Change-Id: Ic3774c54d1fcdfc4125062c6cdf976262717bb12
2015-12-27 22:39:51 -08:00
Dhanalakshmi Siddani d9b48c6784 HAL: 8953 HAL bringup
Add support for 8953 build variant

Change-Id: Ic08ee32a3cbff3f2dc17ea9e46e9cc7f84bf4182
2015-12-23 01:35:16 -08:00
Xiaojun Sang 040cc9f842 hal: audio_extn: enable speaker protection for tasha
Add speaker protection support for wsa speaker.

Change-Id: I5468b2875d0fd028e5c32f25c15b5de0095e7007
2015-12-20 22:48:08 -08:00
Sharad Sangle 3dd5a4a5bb HAL: Identify the track offload session
The current logic for identifying the track offload
   session is using strlcat in wrong way, third parameter
   is given the string length to be appended, but in fact
   it should be the size of the destination buffer.

   Due to this the string returned is missing the last
   character, in case of "true", it contains "tru" due this
   the session is not considered as a track offload by the
   calling module. To fix this use sizeof of the destination
   buffer instead of string length of string to be appended.

Change-Id: I3d456aad2ca49095a0dfe5883f4374e22a437256
CRs-Fixed: 946670
2015-12-20 20:49:18 -08:00
Dhananjay Kumar d46331b931 hal: update 44.1 native playback support on bear platform
- Update bear family platform to extend 44.1 Native audio playback
  support on all msm variants having tasha and tashalite codec.

Change-Id: Ibfd1680f875c47254679a291ab54a3af6c54578c
2015-12-16 23:48:47 -08:00
Linux Build Service Account b0fa1791ef Merge "hal: Update format table with AAC ADTS formats." into av-userspace.lnx.1.0-dev.1.0 2015-12-14 21:55:49 -08:00
Naresh Tanniru c909398734 hal: Surround sound record enhancement
- Remove legacy 4 mic surround sound record support

- Add device specific check for SSR initialization

- Remove SSR lib deinit during standby to support
  sub system restart for surround sound record usecase

Change-Id: I1ead34e4b3acaa5e309e11dfa2c7ba4cbd374e3a
2015-12-14 21:45:06 -08:00
Ashish Jain e513a87243 hal: Update format table with AAC ADTS formats.
-Correct app type is not selected for AAC ADTS formats
as the entry for the same is missing in the reference
format table.
-Update the table with AAC ADTS formats which are offloaded.

Change-Id: Ifa2cedfd07d1120430aacb13350618d4a795e1df
2015-12-14 21:41:38 -08:00
Shiv Maliyappanahalli 5a10aea18d hal: Add support for 3-mic surround sound recording
Add support for stereo surround sound recording using 3 mics.

Change-Id: I741dd5507d72ac45dff8006d3875abe8dbdc2df2
2015-12-14 21:38:22 -08:00
Venkata Narendra Kumar Gutta 7c131ef8d2 hal: get wsa881x temperature zone names using key value pair
Use key value pair config parameters to set wsa881x temperature
zone sensor names in speaker protection module for getting
corresponding temperature zone handles.

Change-Id: I68561866d7c79a05ea81c331bc2fb3a36a63fb6f
2015-12-14 06:11:12 -08:00
Dhananjay Kumar 9125b2a775 policy_hal: fix improper voice-playback concurrency handling
- setPhoneState checks call-state in audio hal to filter out
  unworthy usage of this API.
- With M upgrade, change to update call-state with audio hal is
  removed, instead permission checks are introduced to prevent
  random usage of such APIs. But setPhoneState is still checking
  for this call-state causing improper concurrency handling.
- Fix the issue by removing state check from setPhoneState.
- Remove set and get for parameter "in_call" from voice_extn.

Change-Id: I92fe10c617d6158976a0e07eed3275acb0aadd15
2015-12-14 04:31:19 -08:00
Preetam Singh Ranawat 61716b1bcc Merge 9c4ba54b3e on remote branch
Change-Id: I5a80c57243eda5a4fdd98a233766cd622b4ef9a3
2015-12-14 11:55:32 +05:30
Karthik Reddy Katta 81c4261add hal: Use AUDIO_TX_MONO_COPP topology for incall record usecases
-Issue: Two sessions with fluence topology are created
in case of voice call + incall voice recording.
-Rootcause: To avoid fluence topology for incall
recording usecase when voice call is active, default
input device's audio calibration was used earlier.
But while re-organizing audio_extn_utils_send_audio_calibration()
incall recording usecase is not considered.
-Fix: Send default input device's audio calibration
for incall recording usecases

Change-Id: I0d3734be3c793d350b1c73d8f8fc4380bf06fe30
2015-12-07 03:57:16 -08:00
Preetam Singh Ranawat 9519e9c087 hal: add support for external codec
-Add support for tasha and tasha lite
-Rename device names for consistency.

Change-Id: I1f42c8d9c072355562584c3edf097c0372ef7bd9
2015-11-22 16:38:05 +05:30
Linux Build Service Account 413271ff7e Merge "hal: Fix condition for offload small buffer use" 2015-11-20 18:13:07 -08:00
Linux Build Service Account bf4916d496 Merge "HAL: Identify Track offload session" 2015-11-20 18:12:59 -08:00
Amit Shekhar 8a29093eb1 hal: Fix condition for offload small buffer use
Fix condition for offload small buffer use by masking format with
AUDIO_FORMAT_MAIN_MASK before comparing with AUDIO_FORMAT_PCM_OFFLOAD

Change-Id: Ia81fdc6061fbbf8c203bdfb3074730c6436fdf73
CRs-Fixed: 938198
2015-11-18 17:23:20 -08:00
Alexy Joseph 62142aa7f3 HAL: Identify Track offload session
Support getparameter to retrieve if a
particular output is associated with a track
offloaded session

Change-Id: Ibcc986514f802e59c514fdaa8b2d7f53841047a2
CRs-Fixed: 933740
2015-11-16 15:10:34 -08:00
Linux Build Service Account d9b741acaa Merge "hal: update apptype configuration logic for recording usecase" 2015-11-12 22:04:50 -08:00
Linux Build Service Account a0c9a4787f Merge "HAL: 8937 HAL bringup" 2015-11-06 07:34:56 -08:00
Naresh Tanniru 9c4ba54b3e hal: Add support for LINE out device
- Add support for AUDIO_DEVICE_OUT_LINE device.
  Treat it same as Wired Headphone device w.r.t.
  routing and acdb device.
  If the acdb or backend is different it can be
  updated using audio_platform_info.xml.

- Increase deep buffer period size to 40ms and
  with peroid count as 2

Change-Id: Ic0821a4f22f99d44e98c2bd48179edcaa2c9247e
2015-11-06 05:20:45 -08:00
Linux Build Service Account e13949c87d Merge "hal: Add performance lock during device switch" 2015-11-05 16:09:41 -08:00
Dhanalakshmi Siddani a31cee0d6c HAL: 8937 HAL bringup
Add support for 8937 build variant

Change-Id: I83904b41fcd77cba42d261f7e47a327f64333de4
2015-11-04 14:58:44 +05:30
Srikanth Uyyala a1e3235705 hal: update apptype configuration logic for recording usecase
General recording apptype is used for capture usecases

Change-Id: Ia90a3f05764be3acee21a3de55e94997bbe93b08
2015-11-03 18:47:03 -08:00
Linux Build Service Account 4267f97916 Merge "hal: Limit multichannel clips >48khz to 48Khz" 2015-11-03 08:23:15 -08:00
Linux Build Service Account 7157d2852c Merge "hal: fix compilation issues with audio FM extention" 2015-11-02 23:48:10 -08:00
Sudheer Papothi 2db15e0098 hal: Add performance lock during device switch
Add performance lock during device switch in audio playback
scenario. Acquiring performance lock will improve the device
switch latency. Change acquires performance lock during device
switch in audio playback scenario.

Change-Id: I28b951cb7180e2786d4c5037182169cfb48ba851
2015-11-03 00:50:18 +05:30
Linux Build Service Account 9fcfedce72 Merge "hal: add support for thorium sku1/sku2" 2015-11-01 03:21:34 -08:00
Linux Build Service Account 25bcd62e4f Merge "hal: audio_extn: fix pop noise when FM is interrupted by voice call" 2015-10-31 04:03:09 -07:00
Mingming Yin 12125e85ac hal: fix compilation issues with audio FM extention
- Update FM device references to match latest
  definitions to fix compilation of FM extention.
- Update FM feature flag for power optimization.

Change-Id: I17a9e240e552c4089d3e9c7a25e437fb5b5433f9
2015-10-30 10:17:54 -07:00
Linux Build Service Account bbc7dde467 Merge "hal: fix compilation issues with audio FM extention" 2015-10-29 23:33:06 -07:00
Linux Build Service Account afcab79dbc Merge "haL: audio_extn: fix pop noise when FM is interrupted by voice call" 2015-10-29 23:33:04 -07:00
Manish Dewangan 837dc465d1 hal: Limit multichannel clips >48khz to 48Khz
-Configuring copp and backend at 48Khz for multichannel
clips > 48khz
-This is to address ADSP MIPS concern for playback of multichannel
 clip with sample rate > 48khz with pp (SA+ or SA+_HPX)

Change-Id: Ic010ce212011519e729601d067f8ddb6737c6b28
2015-10-29 02:45:42 -07:00
Linux Build Service Account f9a1b8126a Merge "hal: expose offload functions only for offload playback" 2015-10-28 14:01:13 -07:00
Dhananjay Kumar cbe2b4f235 hal: fix compilation issues with audio FM extention
- Update FM device references to match latest
  definitions to fix compilation of FM extention.
- Update FM feature flag for power optimization.

Change-Id: I17a9e240e552c4089d3e9c7a25e437fb5b5433f9
2015-10-28 10:30:25 +05:30
Mingming Yin 882890f5c7 hal: expose offload functions only for offload playback
- Expose compress offload related functions only when
  AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD is set.
- Do not use them for direct PCM format to avoid unnecessary
  calls to compress driver.

CRs-Fixed: 913925
Change-Id: I8f93b1c697794e686d19c6c78823a095333b5369
2015-10-27 11:37:12 -07:00
Pavan Chikkala b76ed86bdb audio: Updated correct end point for Dolby
When check_usecases_codec_backend switches the device for all
usecases that share same codec backend, only out_snd_device
is set for that usecase but devices is still having the
old device. Wrong end point is passed to Dolby DS2 driver due
to this reason

Fix is to update the endpoint even when if routing is already done
for this usecase.

Change-Id: Ib2dd85a636bf840a22ea7116c5f84889d4218423
2015-10-27 01:23:26 -07:00
Dhananjay Kumar 41da25bcf8 haL: audio_extn: fix pop noise when FM is interrupted by voice call
Minor pop is observed when FM playback is stopped, this is due to
derouting of loopback devices while they still have audible data.
This is causing pops even when FM is stopped after playback, but
this pop is more perceivable in case of interruption by voice call.
Fix the issue by draining unmuted data before derouting FM playback.

Change-Id: If92e43f3a15f0a9cfdf2819827c7f7a0ba852e3d
2015-10-26 23:49:25 -07:00
Linux Build Service Account 6c6171bd58 Merge "hal: Add support for LINE out device" 2015-10-26 22:07:46 -07:00
Linux Build Service Account 3fef91081a Merge "policy_hal: hal: add support to enable Direct PCM" 2015-10-26 10:09:30 -07:00
Linux Build Service Account 583d17e4b8 Merge "hal: use a new key to query the DSP decoder availability" 2015-10-26 10:09:28 -07:00
Linux Build Service Account a490de6843 Merge "hal: Add HFP volume mixer control on MSM8996" 2015-10-25 04:27:51 -07:00
Linux Build Service Account ea413ba70c Merge "policy_hal: add support for multiple offload playback" 2015-10-23 19:12:50 -07:00
Linux Build Service Account 81a41f1fc9 Merge "hal: Add NULL check before freeing snd_card_name" 2015-10-23 19:12:47 -07:00
Ravi Kumar Alamanda 52de13c5d9 hal: Add support for LINE out device
Add support for AUDIO_DEVICE_OUT_LINE device. Treat it same
as Wired Headphone device w.r.t. routing and acdb device.
If the acdb or backend is different it can be updated using
audio_platform_info.xml.

Change-Id: I203f38b1629a837478da1ae304a67bb016b06fa7
CRs-Fixed: 929500
2015-10-23 11:14:15 -07:00
Xiaojun Sang 68b394495b hal: add support for thorium sku1/sku2
add entry for thorium sku1/sku2 sound card

Change-Id: I5a0d76a770bd9eed06af08b2be3975721d7f6920
2015-10-23 17:47:20 +08:00
Zhou Song be61ed01b1 hal: update in_call state to false when call stopped
Sometimes the mode of HAL may be not in AUDIO_MODE_NORMAL while
active call stopped, then it will return with incorrect call state
to APM.

Update the state to false regardless of the HAL mode when active
call stopped.

Change-Id: I8b1c356f65ec273802cda282b1500a3859e837ce
CRs-Fixed: 899756
2015-10-23 01:58:56 -07:00
Linux Build Service Account 78f1670a89 Merge "hal: Add performance lock for playback usecase" 2015-10-22 16:45:09 -07:00
Mingming Yin 4a4a8c81b2 policy_hal: add support for multiple offload playback
- Add support for multiple offload playback.
- Do not check for reuse of current offload playback
  session if multiple offload feature is enabled.
- Remove multiple offload feature flag to enable
  compilation by default.

Change-Id: I91a8797ec5e260975ffd022d56bca01bc832da80
2015-10-21 11:05:08 -07:00
Linux Build Service Account c7bc849073 Merge "hal: remove explicit direct pcm usecase" 2015-10-20 04:37:21 -07:00
Linux Build Service Account debd18765f Merge "hal: fix missing calibration issue for playback on speaker" 2015-10-20 04:37:21 -07:00
Sidipotu Ashok f490be5c26 hal: use a new key to query the DSP decoder availability
Use a new key to query the DSP decoder availability.

CRs-Fixed: 902360
Change-Id: I5ded92ec6d1727dd3068410ca32ff2e385ab0aa5
2015-10-20 11:04:13 +05:30
Sudheer Papothi fa9d228c71 hal: Add performance lock for playback usecase
Add performance lock during device path bringup in
playback usecase to reduce cold start output latency.

Change-Id: I2ff217beedb270f057fd4ea577a7a317ee1f20e6
2015-10-20 06:21:47 +05:30
Laxminath Kasam 265dde9ce5 hal: spk_prot: update initial calibration idle time check
To avoid tight loop during initial calibration, suspend
the calibration thread for 30sec and then wakeup to see
if minimum idle time is met.

Change-Id: Ic81597f404902954ac2585a6706542e1a32971d4
2015-10-19 11:27:03 -07:00
Banajit Goswami da77c4594a hal: Add HFP volume mixer control on MSM8996
MSM8996 target uses Primary AUXPCM for Hands Free
Profile(HFP). Update volume mixer control for HPF.

Change-Id: I412f5e6a71246d9002f002584c7fde07d35ee604
2015-10-16 15:01:16 -07:00
Ravi Kumar Alamanda 31c90df4f0 hal: Add NULL check before freeing snd_card_name
Ensure the pointer is valid before freeing to avoid
crash when a valid sound card is not found.

Change-Id: I2a2681935797e059b925c9f70f352aa603a41d9c
CRs-Fixed: 924286
2015-10-16 10:06:59 -07:00
Linux Build Service Account bb8dae5cbd Merge "hal: mark unused parameters correctly" 2015-10-16 04:42:10 -07:00
Naresh Tanniru 06f9943ba9 policy_hal: hal: add support to enable Direct PCM
- Add support for direct pcm output

- Add support for direct pcm in hal
  if output flag is direct_pcm choose compress offload path

- Add support for direct pcm in custom audio policy manager
  force add direct flag when we detect pcm track in music and
  game use case

Change-Id: Ie69c988ef9cd0477efa77611ceddccdd6b17a163
2015-10-16 11:42:14 +05:30
Linux Build Service Account aa7e6f67b2 Merge "hal: add a new key to query for decoder viability" 2015-10-15 05:24:51 -07:00
Ravi Kumar Alamanda 14c57d8f46 hal: update error handling for pcm_prepare failures
Return any errors from pcm_prepare in start input
or output streams and ensure the pcm device is closed.

CRs-Fixed: 914347

Change-Id: I168cad151ed3fa0d0d3281ec7aceb99ef58bc753
2015-10-14 06:24:43 -07:00
vivek mehta 446c39660b hal: remove explicit direct pcm usecase
- remove direct pcm offload usecase
- incase of direct pcm add support for one extra offload usecase

Change-Id: I75f68a8e85c8685091928c09df211e9d7939f342
2015-10-13 09:15:05 -07:00
Linux Build Service Account 3e9f240cb3 Merge "audio HAL: fix thread starvation" 2015-10-12 20:09:12 -07:00
Banajit Goswami 4dc87fb68f hal: mark unused parameters correctly
Some of the parameters passed to functions in older platforms
are not used anymore, though we maintain the platform code for
backward compatibility.
Mark the unused parameter explicitely as __unused.

Change-Id: I814f5f233590ecfd3e79bf58b97ad6d37be74601
2015-10-11 21:46:07 -07:00
Linux Build Service Account 8231e70665 Merge "hal: fix sound card name during platform initialization" 2015-10-09 22:35:29 -07:00
Linux Build Service Account 8055d14e09 Merge "hal: fix thread starvation" 2015-10-09 18:04:12 -07:00
Linux Build Service Account 6e3bff24a0 Merge "audio: Enable External HDMI support" 2015-10-09 18:04:03 -07:00