Commit Graph

54 Commits

Author SHA1 Message Date
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
Linux Build Service Account bbe310d370 Merge "audio: Fix compilation issue" into audio-hal.lnx.4.0 2018-04-02 01:58:09 -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 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
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
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
Linux Build Service Account 3db5c7992d Merge changes I4dde722b,Ic24860a2 into audio-userspace.lnx.2.2-dev
* changes:
  mm-audio: aac: modify aac encoding test app
  mm-audio: aac: modify aac encoding test app
2017-01-03 02:05:03 -08:00
Arun Kumar Dasari 0ebd10f622 mm-audio: aac: modify aac encoding test app
test app uses input pcm file sample rate for AAC encoding.
Modify test app to perform AAC encoding with sample rate
mentioned by user

Change-Id: I4dde722b8ae91a1312acdf0be63781e28868aa10
2017-01-02 02:27:31 -08:00
Arun Kumar Dasari ff7f7bea21 mm-audio: aac: modify aac encoding test app
modify aac test app to support pcm-mono to aac-stereo encoding
and pcm-stereo to aac-mono encoding

Change-Id: Ic24860a21bb537dc39eca03d2a7153ceff16baba
2017-01-02 02:27:09 -08:00
Arun Kumar Dasari d0faf2e03d mm-audio: avoid library version
avoid library version for amr, aac and g711

Change-Id: I5bddad988428d7788a27d7b323eb1c0036bcf572
2016-12-29 11:03:24 +05:30
Arun Kumar Dasari 7a705fb5e2 mm-audio : Add aac, amr and g711 encoders
Enable aac, amr and g711 encoders to LEUM

Change-Id: I31596ef7b63fec70b78e147dbd3362db7a9efb09
2016-10-27 09:14:35 -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
Dhanalakshmi Siddani 6fbf688771 mm-audio: omx: post error to omx during SSR
- Add support to post error to omx component if SSR is triggered
  during NT mode encoding, to close the session gracefully.

Change-Id: Ie28b808058a4ec4ac1e85b7db3d3e3a9ba93c717
2015-07-07 06:02:22 -07:00
Apoorv Raghuvanshi 064de8b1ef mm-audio: aenc-aac: fix integer overflow for encoded buffer timestamp calculation
Encoded buffer timestamp is 64 bit wide and is derived by multiplying
two 32 bit values, while calculating timestamp, these values are
multiplied with result stored in intermediate storage of 32 bit used
by compiler internally, this was associated with overflow if the result
is larger than max supported by 32 bit storage.
Changing m_frame_count to 64 bit will fix possible overflow for frame
count as well as force compiler to use intermediate variable of
required size.

Change-Id: I5ab709094d1c6b984d27f98327d3d8afa179fc92
CRs-Fixed: 767185
2015-01-05 08:55:44 -08: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
Haynes Mathew George 96def77dd0 mm-audio: aenc: timestamp fixes
Save timestamp of first ETB as anchor time and use it
as reference in calculating timestamp for all future FBDs

Change-Id: Id937ac169c878fccf7d6f8fa660cb9ec321d4afa
CRs-Fixed: 639731
2014-06-24 11:36:08 -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
Pavan Chikkala 27226d44df audio: Disabled excessive logging in OMX AACEncoder
- Too many debug logs are enabled in AAC Encoder by default
- Fix is to disable all the logs except the error messages
  and logs indicating loading and unloading of the encoder

Change-Id: If4b37fb654b1c70796bfdc1c839839fab3ea20dc
CRs-Fixed: 619677
2014-03-25 00:01:24 -07:00
Linux Build Service Account ac022ed60a Merge "mm-audio: Update bitrate based on profile and samplerate" 2014-03-05 03:45:55 -08:00
Gopikrishnaiah Anandan f60ea3b318 mm-audio: Update bitrate based on profile and samplerate
As per AAC specification bitrate is a function of profile
and sample rate. Change ensures that bitrate will be programmed
as per the specification.

Change-Id: I188f7155c50c32b7c9945036c0ad0ef3f5ee164a
CRs-fixed: 606251
2014-02-11 11:34:27 -08:00