Commit Graph

40 Commits

Author SHA1 Message Date
Vikram Panduranga 1719d7c0c0 hal: Enable integer overflow sanitizer
Enable integer overflow sanitizer in audio HAL for kona.

Change-Id: I16a81af39c888f9e5c3c10187ad81d29035a8bc0
2019-05-31 13:38:27 -07:00
Meng Wang 9bdd2d373d hal: remove LOCAL_ADDITIONAL_DEPENDENCIES from makefile
LOCAL_ADDITIONAL_DEPENDENCIES must only contain paths and
should not be dependent on module names. And it should have been
taken care of with the dependency added on the new UAPI headers.

Change-Id: I3aea0282b26d072de85e25d1435862f94d19ca16
2019-01-27 23:24:50 -08:00
Vatsal Bucha c09ae066d5 audio: Add flags to makefiles
Enable GCOV if config is set to true. Also
add gcov_flush in source files to get enhanced
code coverage.

Change-Id: I39776cc6d6f16cd23da05b66669eea22fc4cba81
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-11-14 13:25:50 +05:30
Sachin Mohan Gadag 64faef1e4a mm-audio: Remove malloc allocation for ptr pointer
Currently free of ptr pointer is failing because
ptr pointer is not pointing to base address of malloc
function. Reason is, strtoul api stores the address
of the first invalid character of input string parameter
to ptr pointer. Hence removing malloc allocation is not
required as value of ptr pointer will be first invalid
input string address.

Change-Id: I612002b15594b666bf9053c3e49bc62a7efb86ee
2018-10-25 05:24:57 -07:00
Vinay Verma addfa4a100 Fix VNDK Compilation Errors
VNDK restrictions doesn't includes standard headers by
default, add them explicitly.

Change-Id: Icafac6f07fcdf58fccaabde8d472509090fb3e6f
2018-05-08 05:17:02 -07:00
Linux Build Service Account e3a4716245 Merge "hal: Replace wall time in QC HAL code" 2018-04-29 08:44:01 -07:00
Tanya Dixit 6e3bcccfc7 Initial android target definition for msmsteppe
Change-Id: I4c2f93bf5b109210bb27cbf9f2068d3cf260f3d9
2018-04-25 14:29:19 +05:30
Satish Babu Patakokila 2787cee866 hal: Enable compilation of 8937 on 4.0 component
- Enable compilation of 8937 on 4.0 component

Change-Id: Ia84a80dd115bc5a7bb1716e104b2dd2e13539777
2018-04-22 23:29:33 -07:00
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
Naresh Tanniru 42e0e60bac hal: Rename sdm670 to sdm710.
Change-Id: Ic30a5e1c5afb883dd60eac4b944bb75ea59cabb1
2018-04-10 17:55:13 +05:30
Banajit Goswami f289a83b18 hal: add audio kernel header dependency only for msmnile
Add audio kernel headers dependency only for msmnile target.

Change-Id: Ie5e6116c4fadcf2b296cd56dbe8a1382d4a3508c
2018-03-05 12:11:16 -08:00
Banajit Goswami 0ee0d3d88e hal: add audio kernel header dependency
Add dependency on audio kernel headers for cases where
audio kernel drivers are compiled as DLKM.

Change-Id: I65a45c3800df4f10481aca27be15f9be4a8a6438
2018-02-23 11:00:56 -08:00
Linux Build Service Account 5e4472f63a Merge "audio: Fix compilation error for encoders" 2018-02-20 18:51:51 -08:00
Preetam Singh Ranawat e1e6ca16ae audio: Fix compilation error for encoders
-Fix compilation error with Android upgrade.

Change-Id: I9caa378252b299f9a261f89e27e78de1a3fe6c76
2018-02-19 13:51:17 +05:30
Linux Build Service Account 5cf8f070f8 Merge "Bypass compilation errors due to compiler upgrade" 2018-02-12 12:19:18 -08:00
Linux Build Service Account 768d9276b7 Merge "hal : Add NULL check before dereferencing pointer" 2018-02-09 08:43:05 -08:00
Abhishek Arpure ce11235bcc Bypass compilation errors due to compiler upgrade
Bypass CLANG compilation errors by adding ignore flags

Change-Id: I99317ca2ccf5ee953ca5796e01db63dd396d622d
2018-02-05 21:31:51 -08:00
Preetam Singh Ranawat 109bb3c47c hal : Add NULL check before dereferencing pointer
-Add proper checks to fix NULL pointer dereference issues.

Change-Id: Idd3d165ac179d21745958710d28cfae43a50c793
2018-01-30 12:12:28 +05:30
Sachin Mohan Gadag 1d9cde948d audio: mm-audio: Pack encoders in vendor image
Pack encoder test app in vendor path.

Change-Id: I6da72829acf02f77af4a6d356f94c6d6b388bb99
2017-12-29 17:31:17 +05:30
Ashok Sidipotu 5accc8d04d audio: make sure audio hal compile for qcs605
Added target qcs605 in the make files to enable
compilation

Change-Id: I03caf5b62c55c08818bc89295170006c1987ca9b
2017-11-08 17:24:10 +05:30
Asish Bhattacharya d066587b04 hal: Add new path for dlkm
Add new header paths.

Change-Id: I413de5e738db4e35904df7a09c3a4cdad68079da
2017-10-31 17:21:19 +05:30
yidongh ddd67d43d5 hal: audio-test: remove code sections referring to audio-alsa
audio-alsa is removed from mm-audio, reomve code sections
referring to audio-alsa.

CRs-Fixed: 2126971
Change-Id: I50bd466a931a39846dc2fc5f136a38a9f64b2148
2017-10-25 19:12:12 -07:00
Sachin Mohan Gadag 10aefdac16 mm-audio: Fix Security Issues
Add validation for input paramters for test
app.

Change-Id: I36c7e1a9af42dede6bb21d4619c3c549fc4f2701
2017-09-12 19:57:31 +05:30
Preetam Singh Ranawat 83382efdec Revert "hal: audio-test: Move omx tests mm-audio-internal"
This reverts commit 2ce1027d13.

Also Fix NULL stream pointer LLVM issue by performing
NULL check before dereference the pointer

Change-Id: Ia2a8b3492b5424993e6c651555054d899f2ca3f2
2017-09-12 19:53:40 +05:30
Asish Bhattacharya 0b9bfb0bc6 hal: fix audio compilation for techpack.
Change-Id: Ifd3ddf97b7a642569bfbc99a00d48bc781590212
2017-08-04 20:35:17 +05:30
Aniket Kumar Lata 010009d1c1 mm-audio: aenc: Fix VTS failures for encoders
VTS does not expect Input/Output omx port to send OMX_EventCmdComplete.
The fix is to avoid sending OMX_EventCmdComplete. VTS will timeout and
handle the error properly.

Change-Id: I998cf2e4b9e4ecba9e9837e56683bf44cc57207b
CRs-Fixed: 2077073
2017-07-27 12:21:48 -07:00
Preetam Singh Ranawat ab52d5e894 mm-audio: Fix clang error for encoders
Change-Id: I13203ad8bc17889b0e391406e9deec4275fad808
2017-07-27 12:21:21 -07:00
Naresh Tanniru 10758b6746 hal: configs: effects: update conf & lib paths
- Update config & make files to
  /vendor path instead /system for
  system and vendor image support

Change-Id: I2c1886441e3d31b9eb4e66caba0d70030a4a8f27
2017-06-14 19:16:02 +05:30
Naresh Tanniru a717d88792 Revert "hal: configs: effects: Enable treble feature"
This reverts commit
 cab4a7d433.

Change-Id: Ic8a6827e5719b469dbd73af5934b9998d53c42c0
2017-06-14 19:03:09 +05:30
Naresh Tanniru cab4a7d433 hal: configs: effects: Enable treble feature
- All qcom proprietary modules should use
  /vendor path instead /system for
  treble compatibility

- Modify configs and android makefiles accordingly

Change-Id: I1a4db8c39b5e7585d1a4d60584d5b1672c9599ac
2017-06-07 05:29:25 -07:00
Aniket Kumar Lata 2ce1027d13 hal: audio-test: Move omx tests mm-audio-internal
Moving omx test applications for encoders and decoders to
mm-audio-internal.

CRs-Fixed: 2014832
Change-Id: I8df3703dc84f7f277258b036bd6df87946af6efb
2017-05-05 02:40:09 -07:00
Pavan Chikkala 15acd351dc mm-audio: Avoid command thread loop if omx component is stopped
When omx init and deinit are called in short duration,there
is a possibility that deinit is called before command thread
is started. omx_thread_stop closes respective pipe and waits
for the command thread to exit.
In a specific scenario, same pipe fd is allocated in another
module and command thread in omx continues to read from the
same pipe although it is closed by the main omx thread.
omx_thread_stop is blocked infinitely due to this reason

Fix is to set a flag in omx_thread_stop to avoid command
thread to go into the read loop if it is started after
omx_thread_stop is called

Change-Id: I4b9c4909c7178010568219fddcd05eaafdddc769
2016-07-14 03:26:54 -07:00
Mingming Yin 4051676fe3 mm-audio: omx: Fix handling of flush error on session not found
If the current session is not found in the driver, a special
error code is returned. On observing this error, stop waiting for a
response from the current (presumably) dead session to avoid
stalling indefinitely.

Change-Id: Ife1ace9c34178d15eff723a5634b4514cd1e1545
2016-02-09 00:52:07 -08:00
Linux Build Service Account d028157708 Merge "mm-audio: omx: Fix OMX encoders timestamp" 2015-08-09 00:22:22 -07:00
Ben Romberger 29f8d2918f mm-audio: omx: Fix OMX encoders timestamp
Timestamp format of encoder output structure
incorrect. Timestamp is of format of
least significant bits first. Encoder
out structure formated incorrectly to
expect most significant bits first.

Change-Id: I9cc152dfc8ccb6dc78f715461a2bece1fe2a7819
2015-07-21 17:00:17 -07:00
Dhanalakshmi Siddani 28cdd2ebac mm-audio: omx: post error to omx during SSR
Add support to post error to omx component for NT mode session
during SSR

Change-Id: I768793331e8dd79a886b80a3bcac8173e5da73ea
2015-07-16 20:00:42 -07:00
Mingming Yin a5374a3a8e hal: Remove unnecessary check in make file
- Remove unnecessary target check in make file
- Remove unnecessary mm-audio flag in OMX encoders

Change-Id: I4f8d660e145586e9bc7b4beebde921732e0fecf0
2014-06-30 16:12:04 -07:00
Manish Dewangan 80a1156bf7 mm-audio: Fix 64 bit compilation warnings
Fix compilation warnings seen with 64 bit lpdk builds

Change-Id: Ia82c54f81531c31569a96b8cdde48b7f7fc7a4b7
2014-05-30 16:31:04 +05:30
Karthik Reddy Katta be61caaa0a mm-audio: omx: add 64 bit support
-Changes to support omx encoders on 64 bit platform

Change-Id: I05749f619efaf66e107b1438635a38f92a11b523
2014-05-04 09:21:39 +05:30
Mingming Yin 486032d272 audio: audio encoder/decoder enhancement
- Enable decoder test app for AAC, AMR,
  AMRWB, and MP3 formats.
- Enable encoder for AMRWB, AAC, EVRC,
  and QCELP formats.

Change-Id: I0c75dcc4fb02044f127270a64d3578d62bf6eeda
2013-10-09 17:21:38 -07:00