Commit Graph

23 Commits

Author SHA1 Message Date
Aniket Kumar Lata 9c2fd895f1 hal: Fix device list initializations and comparisons
Update missing device list initializations.
Correct device list comparisons and assignments.

Change-Id: I19e2712972a86d7a9b1af1bd725156d2c36c3dd2
2020-01-28 08:57:16 -08:00
Aniket Kumar Lata 0e6e1e5e30 hal: Remove storage of audio device on bitfields
Audio devices were stored in HAL on variables with
type audio_devices_t. This change removes the storage
of multiple devices on a bitfield. Device comparisons,
assigments, removal have been updated. Helper functions
have been introduced for device operations.

Change-Id: I9ce8b0f9bdc542c386cbfe45b685158cc51d47b6
2020-01-21 07:30:16 -08:00
Weiyin Jiang 2995f669c0 hal: fix misc audio hal errors
Fix misc audio hal errors.

CRs-Fixed: 2436822
Change-Id: I078656c5a7a3a5a97c8044e716c5ca0fe8ff3ef4
2019-04-18 09:30:51 +08:00
Arun Mirpuri b1bec9c80b hal: enable dynamic audio HAL feature extensions
Move audio and voice extension feature to seperate
dynamic libraries. Loading these libraries will be
controlled from config store based on target. These
flags can be changed at runtime

Change-Id: I042450768243124ea80945efac0821984f96b9bf
2019-01-30 17:36:06 -08:00
Sachin Mohan Gadag 5c418d5609 hal: Disable keep alive feature by default
Disable keep alive feature by setting default property value
as true.

Change-Id: If8cd5c33fde243b9492888f5a0d662d28d93fea8
2018-10-24 17:53:55 +05:30
Dallas Delaney a8f3c6e602 hal: Replace wall time in QC HAL code
Replace clock reference from REALTIME (wall clock) to MONOTONIC . This is to
avoid getting impacted when system time is set backwards or forwards (either
through network or manually)

Change-Id: I989c7bd0adc80ffb40f65ec909295ca1d8501877
2018-04-20 17:03:12 -07:00
Satish Babu Patakokila 37e7c48319 hal: update system property names with vendor prefix.
Change-Id: Idf7f4a8f114acf8afc059e382d85c1611697efac
2018-02-08 11:52:19 +05:30
Md Mansoor Ahmed db1b4f9cc9 hal: Update keep_alive to support silence playback on non-hdmi devices
Keep_alive can now handle silence playback on multiple concurrent
devices such as primary output devices as well as HDMI

Change-Id: I08cbec51394d23255e1a61928e0b2cad552b2ac0
Signed-off-by: Md Mansoor Ahmed <mansoor@codeaurora.org>
2018-01-29 21:00:33 -08:00
Linux Build Service Account efb8a37e48 Merge "configs:apq8098: Move to sw decoder for non-dolby formats." 2017-11-10 19:25:51 -08:00
Tejaswini Devanaboyina 3d387e78ac audio: Fix compilation errors for LATV
- Fix build errors during LATV
  porting to 4.0 component.

Change-Id: I752785745592657d59cdedddd470ec11c342ee86
2017-11-10 13:06:36 +05:30
Linux Build Service Account 769c7d35e3 Merge "hal: check device type before handling connection/disconnection" 2017-11-03 09:01:41 -07:00
Linux Build Service Account 6a88a02680 Merge "audio-hal: 64 bit hal porting changes" 2017-10-30 11:37:38 -07:00
Manish Dewangan 338c50a293 audio-hal: 64 bit hal porting changes
-Use long for mixer control with integer type to match with
 kernel snd_ctl_elem_value definition.
-Use packed structure for mixer controls with byte type

Change-Id: I9fbb1d10c5ee212348b58fc4b27a3d74403d8bda
2017-10-23 15:03:03 +05:30
Zhou Song 681350a306 hal: check device type before handling connection/disconnection
Device is assumed to be an output device when handling connection
or disconnection. Besides the BIT_IN, as the input device could
share same bit definition with the output device, thus disconnecting
input device may cause output device disconnected unexpectly.

Check for device type to avoid mishandling.

Change-Id: Iab637220bd43d16bc2cabb53f610ed978e1e5fea
2017-10-20 13:18:40 +08:00
Gangadhar S 76927df824 hal: Enable keep alive for apq8098
- Fix compiler error on keep live module

Change-Id: I50e55578134489734fcf8fd04ad0deadc0dd634e
2017-10-17 08:00:58 -07:00
Manish Dewangan 5e2ad4a5d2 audio: hal: Add property to disable keep alive
-This property needs to be enabled for measuring KPI on hdmi device
 otherwise KPI values are not correct as keep alive thread insterts
 silence.

Change-Id: I25198d29962b0b85d38cbfa03b15d6189a080cbf
2017-09-13 16:16:05 -07:00
Pallavi 761ce6cdda hal: fix null pointer references and data initialization errors
- add null pointer check and initialize uninitialized variables

CRs-Fixed: 2075786
Change-Id: I3e983673f36005be795a0d3adb3c54b5dcf0f002
2017-08-15 15:02:20 -07:00
Revathi Uddaraju 1eac8b0e2d hal: Add support for dynamic logging
Changes to support dynamic logging in hal

Change-Id: I315c919bd940d8ccdb9103eb06bf67c1e3ff3f4b
2017-05-29 03:20:20 -07:00
Garmond Leung ade0f6d897 hal: Fix DisplayPort Passthrough Mixer Command
Address the incorrect mixer command being used
for setting the backend format

Change-Id: I871d3d731eb80e2cd24feaa116ad66dfd4dbfe4c
CRs-Fixed: 2002322
2017-02-09 02:31:54 -08:00
Shiv Maliyappanahalli c065640fb6 hal: enable audio over display port
Add support for audio over display port.

Change-Id: I3480d89c61ee5e5983715ec943fb02b1a9d5d151
2016-09-16 01:31:25 -07:00
Ashish Jain d84fd6a76e hal: Refactor HDMI backend configuration
-In current design HDMI backend configuration does not validate
incoming configuration against what is supported by the
connected sink ( using edid). This results in an incorrect
configuration of the HDMI backend, sometimes leading to no audio.
-Move HDMI backend configuration to
platform_check_and_set_codec_backend_cfg, this design ensures
that HDMI backend configuration happens with valid and only
supported parameters (sample rate, channels and bit width)
by the connected sink.
-Remove usleep from keep_alive and move to conditional timed wait,
this ensures to break from the keep_alive loop quickly, instead
of waiting for the complete usleep duration.

CRs-Fixed: 1039831
Change-Id: Id46ae76575f1b8169370cee817b505b97af8fe01
2016-08-16 23:28:21 -07:00
Satish Babu Patakokila 1caa1b7949 audio : refactoring of compress passthrough changes.
Add DTS fomat support for compress passthrough.
Code clean-up and refactoring.
Keep Alive fixes.
Disable Compress Passthrough and DAP by default.

Change-Id: Id0b67630077e06284b8a396be69ebe0c72747c90
2016-06-25 04:51:38 -07:00
Mingming Yin 218546574a hal: add support for compress passthrough
- Add support for compress passthrough.

Change-Id: I4934470ac8b23cb8de9b2d7d1b0014afe74b5a27
2016-04-29 10:07:58 +05:30