Commit Graph

80 Commits

Author SHA1 Message Date
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
Naresh Tanniru f129015268 QMAA: Add support for HAL module disable
- Disable audio HAL modules compilation
  based on QMAA flag

Change-Id: I3ec8c82bfcf699a3bbf5e7133480a4bda1240a5a
2018-12-18 23:02:27 +05:30
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
Naresh Tanniru cb5b578917 Merge e1f65e84d3 on remote branch
Change-Id: I5cb17e69a3b1e4fa78b7a130cbabc8bc7b11932b
2018-10-15 17:00:56 +05:30
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
Sachin Mohan Gadag 5030d3425f 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-04-20 01:10:57 -07:00
Naresh Tanniru 42e0e60bac hal: Rename sdm670 to sdm710.
Change-Id: Ic30a5e1c5afb883dd60eac4b944bb75ea59cabb1
2018-04-10 17:55:13 +05:30
Linux Build Service Account 689a4b5f97 Merge "mm-audio: aenc: Update log level property name" 2018-04-07 03:59:52 -07:00
Linux Build Service Account bbe310d370 Merge "audio: Fix compilation issue" into audio-hal.lnx.4.0 2018-04-02 01:58:09 -07:00
Preetam Singh Ranawat 905c7209f8 mm-audio: Fix error for already destroyed mutexes.
-Avoid destruction of already destroyed mutexes.

Change-Id: I90ac8839d4f3cca66d0de356c4eb2f7d9c3b884f
2018-03-31 19:00:38 +05:30
Garmond Leung 2d6b451d24 mm-audio: aenc: Update log level property name
Update to use vendor property name.

CRs-Fixed: 2213067

Change-Id: I1c666788345dbbe2b679496d364435eb39ca3e73
2018-03-26 14:22:30 -07:00
Satish Babu Patakokila 16d5b606a7 hal: Enable compilation of 8937 on 4.0 component
- Enable compilation of 8937 on 4.0 component

Change-Id: Ia84a80dd115bc5a7bb1716e104b2dd2e13539777
2018-03-22 11:22:50 +05:30
Sachin Mohan Gadag 0d2d39af15 audio: Fix compilation issue
Add audio-driver headers files path to search
directory list during compilation process.

Change-Id: Ie7c5b50a7bcdfb62af33f83dec64936c6b53cabf
2018-03-19 12:18:26 +05:30
Satish Babu Patakokila 43431ff511 hal: Add support for SDM450
Add support for SDM450 in the makefiles to enable dlkm
compilation.
SDM450 uses same target name as msm8953.

Change-Id: I62ef0d856894ebce62997720dbf2620449f1865c
2018-03-14 19:15:47 +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
Linux Build Service Account b34a9950b7 Merge "hal: Update property name to reflect proper name convention" 2018-02-28 18:39:05 -08:00
Banajit Goswami b8af9a6d83 hal: add audio kernel header dependency only for msmnile
Add audio kernel headers dependency only for msmnile target.

Change-Id: Ie5e6116c4fadcf2b296cd56dbe8a1382d4a3508c
2018-02-24 12:57:55 -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
Garmond Leung 1a7c7f0d32 hal: Update property name to reflect proper name convention
Update property name for qaf m8 library and g711 encoder to
comply with Treble naming convention.

CRs-Fixed: 2183365

Change-Id: Ieb2bf02ca70e44e2852e2dadf89b72d47941ca4d
2018-02-12 22:28:01 -08:00
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
Soumil Shah 196157e2ec HACK: Modify .mk files to avoid strict compiler errors
Change-Id: I95dd11f96d8aaad31078b599eca1745be912b488
2018-01-22 17:39:48 -08:00
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
Sachin Mohan Gadag 364932c70f audio: Make repetitive logs silent
Define NDEBUG Macro in Makefile to avoid
ALOGV logs to be printed on shell.
Move repetitive logs under ALOGV log level.

CRs-Fixed: 2135642
Change-Id: Id573300504cdb15aea285ec33a08319155cff189
2017-12-07 17:22:05 +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
Linux Build Service Account 590a3d9797 Merge "aenc-aac: Support get_parameter query for profile type" 2017-10-09 05:42:41 -07:00
Satya Krishna Pindiproli 535a0c2160 aenc-aac: Support get_parameter query for profile type
Add support for get_parameter query for profile type.

Change-Id: I94defa4346b49ee96037154818a5081cbb050704
2017-09-22 07:22:28 +05:30
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
Linux Build Service Account dbcf4c75c3 Merge "hal: audio-test: Move omx tests mm-audio-internal" 2017-05-05 11:24:54 -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
Aalique Grahame 8068045fc2 aenc-aac: bounds checking
Add bounds checking for buffers

CRs-Fixed: 2013236
Change-Id: I0e1f75ea307088b92e87b99f8b614afbcd0f1c82
2017-05-05 02:39:17 -07:00
Arun Kumar Dasari 0e9858058e mm-audio: amrnb: update test app to handle invalid params
Update test app to report error if bandmode and dtxenable
are not in range. Also update amrwb max framelength to 64 as
amrwb maximum framesize is 64.

Change-Id: Ibd7470a574a0e1fcacd6c15f13b1e98b9963ea73
2017-01-05 22:08:16 -08:00