Commit Graph

120 Commits

Author SHA1 Message Date
Satish Babu Patakokila 210465d6d6 hal: Use DLKM feature flag to define include rule
-- Use the Flag instead of targets to define the include rule
-- Fix the dependencies being overwritten

Change-Id: I21eac3c741cf308cd38a80b1e5432fbdb4939198
2018-07-03 19:16:41 +05:30
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
Xiaoyu Ye 91553e693e hal: add audio support for msmnile
Add audio support for msmnile.

Change-Id: I742d9acbc42221476d1364e9c7bcce8a5d782bf4
2018-02-15 16:44:15 -08:00
Linux Build Service Account 5cf8f070f8 Merge "Bypass compilation errors due to compiler upgrade" 2018-02-12 12:19:18 -08:00
Srinivas Rao Narne 8ff4db57bd audio: header file fixes
Change-Id: Ifc2cd1f7f78c3cc386b06d346fcfb7b969fa3000
2018-02-09 14:26:33 -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
Soumil Shah 196157e2ec HACK: Modify .mk files to avoid strict compiler errors
Change-Id: I95dd11f96d8aaad31078b599eca1745be912b488
2018-01-22 17:39:48 -08:00
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
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
Linux Build Service Account acab0c268d Merge "configs: update mixer controls for sdm670" 2017-09-28 09:33:11 -07:00
Sharad Sangle f135684b03 Refractor msmpeafowl to sdm670
Change-Id: Icc9c1f4bf064779314dd0beee0cd030adbcd6775
2017-09-25 19:15:07 +05:30
Linux Build Service Account ea9a7c5248 Merge "Fix security vulnerability: Equalizer setParameter memory overflow" 2017-09-25 06:16:14 -07:00
Sharad Sangle d39232d3ce configs: Initial config files for msmpeafowl
All the config files for new target
msmpeafowl are added

Change-Id: I735fb89f2538643223cf2e5bf902f3ee3e5bb345
2017-09-19 01:25:58 +05:30
Linux Build Service Account 4364ba26b9 Merge "hal: accumulate written frames when error occurred during write" 2017-09-04 04:42:06 -07:00
Ramjee Singh 45929186ef volume_listener: Update prefixes for audio system properties
-Vendor created android properties are required to have
 vendor prefixes. Update vendor specific audio system
 property configs

Change-Id: I8a0e8a858eba6e63f134cbb0816704b2b75f521f
2017-08-29 16:26:34 -07:00
rago d8912a676b Fix security vulnerability: Equalizer setParameter memory overflow
Bug: 37563371
Test: use POC on bug or cts security test
Change-Id: Ia04f172fb21b11463ffa9ea023d69a3db01e0731
(cherry picked from commit 617cd5c7f46c2312c7253001c46e7eea4c0315e0)
(cherry picked from commit 9b4fd308a2c0858af5651a7884ec62f644ba65ed)
2017-08-29 03:18:18 -07:00
Aniket Kumar Lata 8e743e6262 post_proc: Fix compilation error for volume listener
Add a dependency on kernel for userspace module libvolumelistener.
The dependency flag ensures volume listener module will build after
kernel modules.

Change-Id: I4dcc97015484e78a2296dbe78f4ef226993d8f90
2017-08-22 11:15:21 -07:00
Vikram Panduranga 93f080ecd8 audio: Add dedicated streams for VoIP call
Add dedicated streams for VoIP usecase. This includes adding
a new direct output and input types that use audio playback
and record paths respectively. It falls back to compress VoIP
wherever this feature is not applicable.

Change-Id: I9b7654819b9d8deb00f8888fbfc31f0fbbae5266
2017-08-15 14:52:10 -07:00
Asish Bhattacharya 0b9bfb0bc6 hal: fix audio compilation for techpack.
Change-Id: Ifd3ddf97b7a642569bfbc99a00d48bc781590212
2017-08-04 20:35:17 +05:30
Ramjee Singh 63839665f4 configs: Update prefixes for audio system properties
Vendor created android properties are required to have
vendor prefixes. Update vendor specific audio system
property configs

CRs-Fixed: 2034869
Change-Id: Idbb72949950ccef98d1b997e8b3e1a58e3a007c6
2017-07-20 18:22:18 -07:00
Aniket Kumar Lata 8fc67e65e2 hal: Update prefixes for audio system properties
Vendor created android system properties are required to have
vendor/qti prefix. Update vendor specific audio system
properties used in HAL.

CRs-Fixed: 2034869
Change-Id: Ibdb1d12fedee1ce12073e8b90fdec814318f3acf
2017-07-11 15:40:19 -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
Linux Build Service Account 21002aef23 Merge "apq8098_latv: Initial commit for new target apq8098_latv." 2017-06-09 07:56:29 -07:00
Venkataraman Nerellapalli b8689ecac0 apq8098_latv: Initial commit for new target apq8098_latv.
Change-Id: Id07501d58dd1c1a9dd9af610caa2f4d7b4a0cd2b
2017-06-09 11:04:18 +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
Preetam Singh Ranawat fc7acd72d5 volume_listener: Fix MBDRC volume difference issue for combo use case
-change in MBDRC level based on volume is not getting applied on combo device
 usecase (speaker is one of the device) due to speaker only check.

-Modify logic to recompute and apply MBDRC level if one of the device in combo
 device is speaker

Change-Id: I18726af9d30c966fd04666305529a46cebee18c7
2017-05-15 00:10:27 -07:00
Weiyin Jiang 90ac1ea515 post_proc: return proper volume in reply data for offload effect
Since EFFECT_FLAG_VOLUME_CTRL flag is set in non offload effect
implementations, EFFECT_CMD_SET_VOLUME should be handled in the same
manner as AOSP effect bundle.

In order for volume control to work, return the received volume in the
reply data.

CRs-Fixed: 2033812
Change-Id: Iee4cd3b80c1470034a208f0c5a014f10042a1ce2
2017-04-14 01:15:08 -07:00
Soumil d9f5bfa0dd changing target name
Change-Id: I143a97500f86b5f6b0167629b7d1dbbd53f2a6cb
2017-04-07 12:44:42 -07:00
Xiaoyu Ye 0afc9239fb hal: Add audio support for msmskunk
Add audio support for msmskunk.

CRs-Fixed: 2011757
Change-Id: Ide76df039065e35e0ef0d49a4e044145967a3089
2017-03-29 18:47:44 -07:00
rago 3ef61e2ea6 Fix security vulnerability: Equalizer command might allow negative indexes
Bug: 32247948
Bug: 32438598
Bug: 32436341

Test: use POC on bug or cts security test

Change-Id: I56a92582687599b5b313dea1abcb8bcb19c7fc0e
(cherry picked from commit 3f37d4ef89f4f0eef9e201c5a91b7b2c77ed1071)
(cherry picked from commit ceb7b2d7a4c4cb8d03f166c61f5c7551c6c760aa)
(cherry picked from commit d72ea85c78a1a68bf99fd5804ad9784b4102fe57)
2017-01-05 18:05:59 -08:00
rago 0b38640dba Fix security vulnerability: Effect command might allow negative indexes
Bug: 32588016
Bug: 32585400

Test: Use POC bug or cts security test
Change-Id: I5ef8c756369d488ad5903c163584f24de63d73e3
(cherry picked from commit 500a9feaf816c719241de83f2ee65c8e2d7ff269)
(cherry picked from commit ed79f2cc961d7d35fdbbafdd235c1436bcd74358)
2017-01-05 18:05:41 -08:00
Weiyin Jiang a3719ac13b audio: qahw_effect_api: Initial version of QTI audio effect HAL
Initial version of QTI audio effect HAL Wrapper.

CRs-Fixed: 1081403
Change-Id: I12291cc7106f7530422891d1bee7e3d4530563c5
2017-01-04 13:44:28 +08:00
Arusha Goyal fda291525e msm: Rename msmfalcon to sdm660
Update the code name from msmfalcon to sdm660. As part of this, update
the filename containing "falcon" and files content containing "falcon".

Conflicts:
	configs/sdm660/sdm660.mk

Change-Id: I5fc11ffac2f21f11e2a7283cf7375bcf93c01623
2016-12-29 03:39:32 -08:00
Aniket Kumar Lata f56b64077f hal: add support to override volume gain to step mapping table
- if customer mapping is added in platform info file, use that
- in absence of customer table use default mapping

CRs-Fixed: 1089771
Change-Id: I4bf8bcf1913f16ad6298ff1f3fa5dd649c889b2a
2016-12-19 06:17:14 -08:00
Ben Romberger 22d4123dd4 hal: Rename all instances of msmcobalt to msm8998
Rename all instances of msmcobalt to msm8998. Rename
the config directory, defines, functions, and look for
the renamed target and soundcard.

Change-Id: Idbc4c5a425c837342069c2db17b6ec984021bf60
2016-11-21 19:51:58 -08:00
Linux Build Service Account a3684f9af1 Merge "post proc : volume listener : fix effect release crash" 2016-10-27 00:09:37 -07:00
Andy Hung eae4d56548 DO NOT MERGE Fix AudioEffect reply overflow
Bug: 28173666
Change-Id: I055af37a721b20c5da0f1ec4b02f630dcd5aee02
(cherry picked from commit 57fd9637536d40ec8c40a6bed76a71471dab0f64)
2016-08-04 10:20:10 -07:00
Eric Laurent fbef7f764d post proc : volume listener : fix effect release crash
Fix access to deleted effect context in vol_prc_lib_release()

Bug: 25753245.
Change-Id: I64ca99e4d5d09667be4c8c605f66700b9ae67949
(cherry picked from commit 93ab6fdda7b7557ccb34372670c30fa6178f8426)
(cherry picked from commit ebbb82365172337c6c250c6cac4e326970a9e351)
2016-08-01 13:59:33 -07:00
Dhananjay Kumar d3ab9f4269 Initial commit for new target - msmfalcon
Add intial commit to support build for msmfalcon.

CRs-Fixed: 1044042
Change-Id: Iac2f3e1d53c03864098cb7e074d4e7e8a2332290
2016-07-20 22:27:35 -07:00
Ashish Jain 5106d36bb0 audio: Enable 24 bit packed direct pcm support.
-Add support for 24 bit packed audio in audio hal.
-Disable gapless for AV playback and direct pcm usecase,
this ensures that the buffering in DSP is not more.
-Simulate rendered time stamp for direct pcm usecase
based on the number of frames written to the compress
driver, bufferring in the driver and DSP latency.
-Pass mixer instance to offload effects library to avoid
an unnecessary mixer_open call, this optimizes audio
start delay in compress playback.

Change-Id: I422a53af5632eaf6cc362a6c44f62ff8412965f7
2016-05-31 05:17:13 -07:00
Banajit Goswami 4c0dff2022 hal: add support for msmcobalt
Add initial audio support for MSMCOBALT target

Change-Id: I06cd6a558d8622c7b8ff82b5531478adea96e631
2016-04-14 09:13:13 -07:00
Dhanalakshmi Siddani 38b600fd1f hal: post_proc: Do not enable volume listener
- Volume listener is NPORed on bear chipsets.
- Remove feero, jacala and msmgold PL's from make file.

Change-Id: I6afd287a446d00b216a2a1c99e0a265f859c6f0e
CRs-Fixed: 993670
2016-04-13 22:45:18 -07:00
Preetam Singh Ranawat 5319430b65 hal : Fix data initialization and input validation errors
Initialize uninitialized variables and add null check to
 avoid following errors

 119251, 119255, 119256, 119257, 119258
 144012, 913366, 119249, 119250, 58938

Change-Id: I09d35977c9c3abf5819d5c72506c8d157158e212
2016-03-16 23:25:03 -07:00