Commit Graph

3084 Commits

Author SHA1 Message Date
qctecmdr e4f3d00622 Merge "hal: msm8998 define max channel count to 8" 2019-10-12 08:51:39 -07:00
qctecmdr c2b0da3f46 Merge "hal: fix unsigned int overflow" 2019-10-12 08:49:36 -07:00
Weiyin Jiang 72197256b8 hal: fix unsigned int overflow
Fix unsigned int overflow.

CRs-Fixed: 2541532
Change-Id: I4b9448ee99c9160a233fdc8b156be228ceb91f60
2019-10-09 11:49:32 +08:00
Vikram Panduranga 022bbd1419 hal: call ACDB deinit when init fails
When ACDB initialization fails the deallocation
should be called in order to free up any resources
created during init.

Change-Id: I6220ea241361f1bb46b83c9b30087af8d663d6ac
2019-10-07 21:03:41 -07:00
Ramjee Singh a394f47724 hal: msm8998 define max channel count to 8
- Modify the max supported channel count to 8
  to support SSR and HiFi usecase

Change-Id: I7cfa834437a092f59143bb19a11156d88bb0e1bd
2019-10-07 00:04:06 -07:00
qctecmdr ec6c560aad Merge "hal: initial setup for bengal" 2019-10-03 20:01:36 -07:00
qctecmdr 70b059b007 Merge "hal: Fix ADM sampling rate for native playback." 2019-10-03 20:01:36 -07:00
qctecmdr 2be317c684 Merge "hal: Enable integer overflow sanitizer" 2019-09-30 23:31:56 -07:00
qctecmdr 86c64d7f0c Merge "hal: fix ASAN crash" 2019-09-30 23:27:38 -07:00
Preetam Singh Ranawat 590d04326c hal: Fix ADM sampling rate for native playback.
-ADM is being opened at 48Khz instead of 44.1Khz where single
 backend used for 48Khz and 44.1Khz playback.
-Add check for other headphone snd device which supports native
 playback.

Change-Id: If27906425d36fc02b0df011b21b8f9935dfe9159
2019-10-01 11:28:37 +05:30
qctecmdr c4acc925c1 Merge "Fix ASAN build error" 2019-09-27 09:10:05 -07:00
qctecmdr eea1c06073 Merge "A2dp: Send default channel mapping for TWS+ mono." 2019-09-27 09:06:07 -07:00
Weiyin Jiang f636479f1a hal: fix ASAN crash
Fix asan crash due to access usecase->stream.out without check type.

CRs-Fixed: 2534699
Change-Id: I24f3f86885a1949a02ba0eea230e1431a95b4713
2019-09-25 22:36:35 -07:00
Jaideep Sharma de870aaec4 hal: initial setup for bengal
Change-Id: I0d3b908937fdeb3d6b0a5677646e1876ef4ab06b
2019-09-26 10:54:04 +05:30
Vikram Panduranga 6ff1c956cd hal: Enable integer overflow sanitizer
Enable integer overflow sanitizer in audio HAL for kona.

Change-Id: I6aba4c636f2d467518281361259b1a7768ae34d7
2019-09-25 16:09:46 -07:00
qctecmdr 615c2d3a7d Merge "configs: Disable ambisonics capture by default on Kona" 2019-09-23 22:54:23 -07:00
qctecmdr 74081f6f6a Merge "hal: fix hifi filter snd device selection." 2019-09-23 22:52:13 -07:00
Jiangen Jiao 334224b80a Fix ASAN build error
CRs-Fixed: 2532665
Change-Id: I8c9fd1a89804a08eb22f2cefcffe1dd2660456ec
2019-09-22 23:28:28 -07:00
Linux Build Service Account 90315835ec Merge "hal : properly clear thread instances during vts" into audio-hal.lnx.6.0 2019-09-21 23:39:05 -07:00
Manisha Agarwal 5bb881ec19 A2dp: Send default channel mapping for TWS+ mono.
Audio loss observed when encoder configured with mono mode.

This occurs because when configuration of encoder with mono mode
happens 0 channel mapping is sent to ADSP which rejects it as invalid
channel mapping.

To avoid this send default stereo channel mapping for both mono and dual
mono case.

CRs-Fixed: 2528391
Change-Id: Ie8d04965fb43f1beea747b23ae86464f943afdae
2019-09-20 14:29:33 +05:30
Preetam Singh Ranawat 190d251fc7 hal: fix hifi filter snd device selection.
-hifi filter snd device is getting selected incorrectly
  in some cases as it is checked with APM output device 
  leading to playback failure
 -remove incorrect APM output device check for snd device
  hifi filter.


Change-Id: Ib694665b9395dffce74053f7dd399372a48ea5ac
2019-09-20 01:42:02 -07:00
qctecmdr 4d29504465 Merge "audio: hal: Fix cts-on-gsi test failure" 2019-09-20 00:19:48 -07:00
qctecmdr 0bef96e4d1 Merge "hal: Remove setting default values for slim_0_tx backend" 2019-09-20 00:17:26 -07:00
Fawad Shaukat e07c1b69ec configs: Disable ambisonics capture by default on Kona
-Set ambisonics record properties to false by default
-Change the properties to be persist
-Modify property get to use the new property names

Change-Id: Ie9ac14555dc56bbce65017fb861fe8c3218f8526
2019-09-19 17:04:55 -07:00
qctecmdr 36625e995d Merge "hal: Update PCM_OFFLOAD_PLAYBACK_LATENCY value" 2019-09-18 04:04:44 -07:00
qctecmdr fffc131c3d Merge "hal: remove sending apply audio path for speaker swap" 2019-09-18 03:58:12 -07:00
qctecmdr 0fdec0ce78 Merge "hal: fix integer overflow error in usb" 2019-09-18 03:55:29 -07:00
Sujin Panicker b062239038 hal: Remove setting default values for slim_0_tx backend
DEFAULT_CODEC_TX_BACKEND & SLIMBUS_0_TX shares the
same enum, causing overriding of sample rate & format.

Remove setting of default values for SLIMBUS_0_TX sample
rate & format since it is already taken care as part of
DEFAULT_CODEC_TX_BACKEND

CRs-Fixed: 2529031
Change-Id: I180af115f05d49d34059eaf177cc4a4121744d0e
2019-09-17 19:58:46 -07:00
qctecmdr 640a31f881 Merge "hal: tear down a2dp path for non-offloaded streams when suspended" 2019-09-17 02:17:25 -07:00
qctecmdr f465a6277c Merge "hal: enable mono clips for incall music delivery" 2019-09-17 00:55:30 -07:00
qctecmdr 076fa62c6c Merge "hal: fix bt sco and a2dp concurrency issues" 2019-09-17 00:53:28 -07:00
qctecmdr a610358a4d Merge "hal: kw fix for address pntr check in auto hal" 2019-09-17 00:48:35 -07:00
Sujin Panicker 19027261fc audio: hal: Fix cts-on-gsi test failure
With GSI, voip rx path is opened at bootup time. Due to
this pcm config is left unset with zero initialized pcm config
causing failure when vts test client tries to create voip track.

This change is to set valid pcm config, thereby sending out
valid pcm config values whenever the client requests even if
voip call is not started.

Change-Id: Ic36faea1f5599703a05f515d30354908015ecc36
2019-09-17 11:57:07 +05:30
qctecmdr 643cefec40 Merge "audio: Add 48khz sampling rate to spkr prot tx uc" 2019-09-14 05:38:54 -07:00
Vikram Panduranga 5c51bff55e hal: fix integer overflow error in usb
Adding a fix to address integer overflow in
usb.

Change-Id: I426baf59978e0b5e3eedc65857ed14b9111197a8
2019-09-13 16:43:44 -07:00
Vikram Panduranga 760f8a664e hal: remove sending apply audio path for speaker swap
For speaker swap channels, apply audio path  need not be
sent when swap is not requested or device switch is not
needed. Sending apply audio path will increment the ref
count in audio route which can lead to erroneous condition.

Change-Id: I64e3a867cd749c56d3432f1443f2cc4a92894374
2019-09-13 12:55:27 -07:00
Jaideep Sharma a2b4967c9e hal : properly clear thread instances during vts
hal VTS test cases opens and closes adev continuously for test case.
Battery Listener is initialized during adev_open but not properly deinitialized
during adev_close .
in battery_listener unregister all the reference which were registered during
init .

Change-Id: I9793f24f717ec760a79ee4316c227b25de30609e
2019-09-13 17:47:21 +05:30
Viraja Kommaraju 8987cd7a5d hal: kw fix for address pntr check in auto hal
KW fix for address pointer check before usage
in auto HAL.

Signed-off-by: E V Ravi <evenka@codeaurora.org>
Change-Id: I9b658a86e6f3bd9ee460af1f6bdb58de08842740
2019-09-12 11:30:05 -07:00
qctecmdr 97e8f8f6c7 Merge "hal: audio-feature-manager: disable all audio feature by default" 2019-09-12 04:17:44 -07:00
qctecmdr dc8fdabd2a Merge "a2dp: Remove unused macros" 2019-09-12 04:00:02 -07:00
qctecmdr 621b333bf8 Merge "hal: add audio feature flag for ssrec compilation" 2019-09-12 03:56:56 -07:00
qctecmdr 661ce86ba4 Merge "hal: update audio usecase support for snd device" 2019-09-12 03:53:56 -07:00
qctecmdr 21e45917f0 Merge "audio: Add HiFi Filter support" 2019-09-11 08:53:35 -07:00
qctecmdr 4bfde19d8f Merge "hal: fix DP-CTS failures" 2019-09-11 08:41:38 -07:00
qctecmdr be81f8e22d Merge "hal: enhance vndk fwk detection" 2019-09-11 08:39:03 -07:00
qctecmdr 91bd7c3d3e Merge "hal: Fix race condition in parsing platform info xml" 2019-09-11 08:36:02 -07:00
Yunfei Zhang a6cd66de07 hal: enable mono clips for incall music delivery
Currently ICMD output is set as stereo and do downmix to
mono when writing to driver, the speed of mono playback
will be doubled.

Do downmix for steteo clips only to fix it.

Change-Id: I654cad4348f2538e07b596ec7b00a5c8f53f537a
2019-09-09 10:39:08 -07:00
Derek Chen 543576533b hal: update audio usecase support for snd device
Update audio usecase support (offload/mmap etc.)
for snd device assignment.

Change-Id: Ifc41b127b5562e4f4003a220fbd4e43e947dd23c
2019-09-09 10:36:26 -07:00
Samyak Jain 2546f8a996 hal: Update PCM_OFFLOAD_PLAYBACK_LATENCY value
update PCM_OFFLOAD_PLAYBACK_LATENCY value to pcm offload
dsp path delay

Change-Id: Ia0ccfbd40254f172d9ae48eb5acab5cc322e936c
2019-09-09 01:06:12 -07:00
Kunlei Zhang d96af8ffb8 hal: fix bt sco and a2dp concurrency issues
When sco mic device is already active and
A2dpsuspened=false is received, then route
is switched to A2dp, but sco mic can still
keep active which means the BE is already
active, causing the slimbus configuration of
feedback path for A2dp to be ignored.
To fix this, tear down the input stream to
disable bt sco mic before enabling a2dp path.

Change-Id: I67f1e1ef03febb0bd3736509500195808dc1e53b
2019-09-09 14:44:30 +08:00