Commit Graph

263 Commits

Author SHA1 Message Date
Balázs Triszka 5f1a003329
hal: Add open source HAL for Elliptic Ultrasound
Author: Balázs Triszka <balika011@gmail.com>
Date:   Thu May 11 03:19:29 2017 +0200

    msm8998: ultrasound: Initial open source hal for Elliptic Ultrasound

    * Needed for proximity sensor on Xiaomi Mi MIX

    [Arasthel]: Change PCM id for Mi MIX 2 implementation

    Change-Id: Iaef2266bc1b853d7a9d1e2a906014c6c91019d5f
    Signed-off-by: Balázs Triszka <balika011@gmail.com>

Author: Michael Bestas <mkbestas@lineageos.org>
Date:   Sat Feb 10 00:28:00 2018 +0200

    msm8998: ultrasound: Remove unused code

     * Params ultrasound_set_manual_calibration and ultrasound_set_sensitivity
       do not exist.

    Change-Id: I0004949db19b6ab7d49f20e422984e06a970cfe9

Author: Demon Singur <demonsingur@gmail.com>
Date:   Sat Apr 21 09:08:03 2018 +0000

    msm8998: hal: Update ultrasound route hacks

    Change-Id: If002503dfba0f005f73a4455d68bbcce9d2f617e

Change-Id: I119316f264afbda9faf24950edfbca3891aa9769

Author: Vol Zhdanov <wight554@gmail.com>
Date:   Fri Feb 1 02:16:26 2019 +0000

    hal: fix channels swap for elliptic ultrasound devices

    Change-Id: Id45b075c4ad098c95fcb617da10c56d38565b9c8

Change-Id: Icb18f5b41483d33188be103e13b6c915b6e681b8
2024-10-11 16:10:38 +00:00
Michael Bestas f9a2a65c2e
Merge tag 'LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0' into staging/lineage-21.0_merge-LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0
"LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0"

* tag 'LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0':
  hal: disable unused feature to reduce memory footprint
  configs:rb3gen2: add speaker-and-hdmi path for low-latency-playback
  configs: create blocklist for audio to load different framework ko files
  configs:removed unsupported sched_boost param for perf opt
  hal: fix libadm.so right path in LE platform
  hal: rb3gen2: Enable use of hdmi for voip/voice
  primary-hal: Fix stability issues
  audio-hal: Enable AUDIO_FEATURE_ENABLED_DAEMON_SUPPORT for msmnile_gvmq_vcu
  configs: rb3gen2: modified format for mixer_paths_yupikidprb3
  configs : rb3gen2: added support for HDMI In backend interface
  configs : rb3gen2: added support for HDMI backend interface
  config: activate AUDIO_USE_STUB_HAL for audiolite
  hal: add support for rb3gen2 specific audio platform xml
  HAL: Fix for crash due to structure mismatch during st deinit
  hal: sndmonitor: Fix for Code vulnerability
  hal: disable unused feature to reduce memory footprint

 Conflicts:
	configs/lahaina/lahaina.mk
	hal/Android.mk

Change-Id: I77e701d2bf4e52d94b40a1e2e495df6b4995e144
2024-03-29 12:11:48 +02:00
Xiaowu Liu-GV c43e36fcd2 hal: fix libadm.so right path in LE platform
/usr/lib64 not exists in LE, ADM_LIBRARY_PATH
change to /usr/lib.

if libadm.so unavailable, caused below chains:
1. struct stream_in::real_time will be false
2. will not attach flag PCM_MMAP while pcm_open

if we now use ULL_NOIRQ(FE: MultiMedia8) device to
open capture, mmap func will not called, and
pcm_prepare failed.

Change-Id: I02baa9df0491a508163dd70ba34ed9634ea0ed93
2024-01-18 23:59:15 -08:00
Bruno Martins 32b7a1b288 Merge tag 'LA.UM.9.14.r1-23600-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/hardware/qcom/audio into lineage-21.0-caf-sm8350
"LA.UM.9.14.r1-23600-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-23600-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/hardware/qcom/audio:
  audio-HAL: Fix for KW static analysis issues
  audiohal: fix right audio platform xml file for rb3 gen2
  Removed not used audio properties from audio-hal.
  audio-hal: Fix kw issue
  hal: add support for hfp on qcs6490
  configs: rb3gen2: add support for HDMI out on rb3gen2 platform
  hal: add support of HDMI external display for rb3gen2
  hal: Extract source track meta data for 2mic
  configs: rb3gen2: add support for 2/3/4 mic on rb3gen2 platform
  hal: update mixer path files for Rb3Gen2 IOT with FV13 tuning
  configs: RB3Gen2: add support for dual mic on RB3Gen2 platform.
  hal: add support for rb3gen2 specific mixer xml
  audio-hal: modify out_set_mmap_volume sequence
  configs: msmsteppe_au: Update audio hal to 7.0
  msmnile-tb bringup change.
  config: 64bit suppor for msmsteppe auto

Change-Id: Ib536a3c77ee22d4d3f0a922f7a45c3b4b3734311
2024-01-04 22:20:12 +00:00
Yanhong Wu 2c3085c45d hal: add support of HDMI external display for rb3gen2
- add support for HDMI external display
- add stereo channel support for hdmi
- add mechanism to get controller and stream index for hdmi display

Change-Id: I12d60fd6cb3bfcd1d8264fbcdc4bdac808403eca
2023-11-09 00:12:02 -08:00
Michael Bestas 38a54430a6
Merge tag 'LA.UM.9.14.r1-22900.01-LAHAINA.QSSI14.0' into staging/lineage-20.0_merge-LA.UM.9.14.r1-22900.01-LAHAINA.QSSI14.0
"LA.UM.9.14.r1-22900.01-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-22900.01-LAHAINA.QSSI14.0': (24 commits)
  audio-hal: select right input device while enable fluence
  hal: update copyrights in DOA source track files
  hal: Add HDMI-in mixer_paths for RB3gen2
  hal: update copyrights in DOA source track files
  audio-hal: fixes for VTS hal v7.0
  hal: Update audio hal to 7.0
  configs: Update audio hal to 7.0
  hal:  KW fixes for NULL checks and invalid index
  configs: Rb3Gen2: enable support for stt meta test app
  hal: Extract source track meta data
  hal: Update 64-bit vendor HAL path
  configs: Rb3Gen2: Install STT meta test app
  hal: update copyrights in acdb files
  configs: RB3Gen2: add support for handset mic FNN on RB3Gen2
  Enable MMAP Exclusive attributes to support MMAP usecase for AAudio.
  hal: use list_for_each_safe instead of list_for_each
  hal: add support for 3 mic and 2 mic for FNN model
  config: Add NN models required for Fluence v13
  config: Enable 64-bit lib for extension features
  HAL: Support Mute and Unmute feature for compress offload path
  ...

 Conflicts:
	configs/msmsteppe_au/msmsteppe_au.mk

Change-Id: I95b41d5ba9db6786aa9669f9761d54bc445bc0a3
2023-10-16 16:36:06 +03:00
Subhadra Jagadeesan c54efee758 config: Enable 64-bit lib for extension features
Changes to support 64-bit libs path used across audio
extensions and also in effect conf for 64-bit platform feature.

Change-Id: I80cc7bf64e90ce001b755ba4f16f2e9fe45ecdf1
2023-07-24 20:55:34 +05:30
Michael Bestas a4238620e7
Merge tag 'LA.UM.9.14.r1-22000-LAHAINA.QSSI12.0' into staging/lineage-20.0_merge-LA.UM.9.14.r1-22000-LAHAINA.QSSI12.0
"LA.UM.9.14.r1-22000-LAHAINA.QSSI12.0"

* tag 'LA.UM.9.14.r1-22000-LAHAINA.QSSI12.0':
  Revert " config: msmnile_au: Correct VA audiopolicy config path"
  hal: Add check for compress-offload streams in open
  hal: Audio elite make card_state path compatible for 5.4/5.15
  config: msmnile_au: Correct VA audiopolicy config path
  msmnile_au: Enable audiocontrol service for Android U
  hal : update copyright markings
  hal: fix sound leak when receiving voip call
  audio: hal: add channel count check for channel mask update
  audio-hal: enable low latency support for playback usecase and primary output support for HFP
  audio-hal: enable app type cfg sampling rate support for nav_guidance, and alert bus
  audio-hal: skip get_priority_input for record usecase
  audio-hal: Incorrect ACDB device selected for capture usecases.
  audio-hal: Add carplay low latency concurrent playback and record usecase support
  audio-hal: enable low latency support for playback and record usecase with voice comm usage
  Revert "Audio-HAL:Disable the mmap for HQX because, there is no support for mmap"
  configs: add libacdbloadersocketclient

 Conflicts:
	configs/msmnile_au/msmnile_au.mk

Change-Id: If2efdb65985f1f53d45afa66e328815513544e7d
2023-07-11 16:23:57 +03:00
Kogara Naveen Kumar c575823bac audio-hal: Add carplay low latency concurrent playback and record usecase support
Enable carplay low latency concurrent playback and record usecase support in audio hal

Suggested-by: Shital Jadhav (Temp) <shitjadh@qti.qualcomm.com>

Change-Id: Ia778aff601b5fc83deb7e873742573fde8329d16
Signed-off-by: Kogara Naveen Kumar <quic_nkogara@quicinc.com>
Signed-off-by: sasevs <quic_sasevs@quicinc.com>
2023-04-04 14:22:46 +05:30
Kogara Naveen Kumar 65828fec76 audio-hal: enable low latency support for playback and record usecase with voice comm usage
Enable low latency support for phone bus playback and record usecase
with voice comm usage for 8, 16, 24, 32 and 48KHz sample rates

Change-Id: I11c85989176dd6db71f56399f0f17acef99ebca8
Signed-off-by: Kogara Naveen Kumar <quic_nkogara@quicinc.com>
2023-04-04 14:10:18 +05:30
Michael Bestas 54fde3da65
Merge tag 'LA.UM.9.14.r1-21200-LAHAINA.QSSI13.0' into staging/lineage-20.0_merge-LA.UM.9.14.r1-21200-LAHAINA.QSSI13.0
"LA.UM.9.14.r1-21200-LAHAINA.QSSI13.0"

* tag 'LA.UM.9.14.r1-21200-LAHAINA.QSSI13.0': (22 commits)
  hal: msm8974: Add speaker protection for qcs6490
  hal : prevent buffer mute for fm usecase
  HAL: Restrict calls to ADM for low-latency and ultra low-latency usecase
  hal : enable tinyalsa from vendor path
  configs: remove direct flag for VOIP RX
  configs: remove direct flag for VOIP RX
  audio: hal: update proper return value
  hal: enable audio hal for qcs6490
  audio-hal: AudioEffect reply overflow
  hal: Fix compile issues for android U.
  configs: msmnile_au: enable mmap for more bus
  msmnile_au_ar : lunch combo changes
  audio: hal: Avoid deallocated memory access
  Audio-HAL:Disable the mmap for HQX because, there is no support for mmap
  Configs: include audio control hal service
  configs: lahaina: Marking added
  msmnile_au_km4 : lunch combo changes
  sdmsteppe: New audio config for qcs610 ODK
  configs: lahaina: Add missing QuIC Clear BSD marking
  HAL: Converting PCM enum to AUDIO FORMAT enum
  ...

 Conflicts:
	configs/msmnile_au/msmnile_au.mk

Change-Id: I53930272f7ac3137d0d1a27a90b72795960ab4d6
2023-03-24 03:12:27 +02:00
Raghu Bankapur 37cbf38ee5 HAL: Converting PCM enum to AUDIO FORMAT enum
Add function for PCM FORMAT enum to AUDIO FORMAT enum conversion.

Change-Id: I0fc3c1adfe3aec6b309b790db8be537d50cee0ae
Signed-off-by: Raghu Bankapur <quic_rbankapu@quicinc.com>
2022-12-01 09:50:18 +05:30
Michael Bestas 3f9cd63635
Merge tag 'LA.UM.9.14.r1-20500-LAHAINA.QSSI13.0' into staging/lineage-20.0_merge-LA.UM.9.14.r1-20500-LAHAINA.QSSI13.0
"LA.UM.9.14.r1-20500-LAHAINA.QSSI13.0"

# By Krishna Kishor Jha (5) and others
# Via Gerrit - the friendly Code Review server (14) and others
* tag 'LA.UM.9.14.r1-20500-LAHAINA.QSSI13.0': (25 commits)
  audio-hal: changes for fm tuner
  configs: Add support for Qti AudioControl HAL
  audio-hal: skip source priority for fm usecase
  configs: Add card-defs-dummy.xml for elite and ar co-exit
  hal: Adding support for AudioControl HAL's mute and duck features
  audio-hal: changes to fix in-call volume issue
  audio: hal: Avoid input device check for playback use case
  ahal: removing unused libs
  audio-hal: fix build error
  audio: hal: Avoid input device check for playback use case
  audio-policy: adding new mix port
  audio: hal: correction in hex_mic enum value
  configs: new mixer control for enabling/disabling paired rx port
  configs: modify PLATFORM_VERSION to 13
  audio-hal: fix for kw issue
  configs: Remove unused "libvolumelistener.so" lib in audio_effects
  audio: hal: add support for combo backend capture
  audio-hal: Disable non automotive features
  [AUDIO-HAL] Enable VA flag and libqti-tinycompress
  configs: set ENABLED_AUDIO_PARSERS
  ...

 Conflicts:
	hal/audio_hw.c

Change-Id: Iabd6cf29589e84f955fc45fb7e5a1a3104d53860
2022-10-05 18:30:37 +03:00
Michael Bestas 382f577a72
Merge tag 'LA.UM.9.14.r1-19800-LAHAINA.QSSI13.0' into staging/lineage-19.1_merge-LA.UM.9.14.r1-19800-LAHAINA.QSSI13.0
"LA.UM.9.14.r1-19800-LAHAINA.QSSI13.0"

# By Kogara Naveen Kumar (4) and others
# Via Gerrit - the friendly Code Review server (28) and others
* tag 'LA.UM.9.14.r1-19800-LAHAINA.QSSI13.0': (38 commits)
  primary-hal: Fix double free of fds
  configs: set ENABLED_AUDIO_PARSERS
  primary-hal: Fix issues found in static analysis
  HAL: Restrict calls to ADM for low-latency usecase
  hal: Add clear_devices to avoid memory leakage
  audio-hal/primary-hal:  Enable snd card monitor
  primary-hal: BT a2dp build error fix
  ahal: RTD improvement
  audio-hal: Fix for the Voip TX usecase getting muted
  hal: add support for hfp on qcs610 platform
  audio-hal: Enable compilation of parser for QCS610
  audio-hal: configs: enable value-added feature
  hal: enable audio hal for kona
  K5.15 Audio Techpack, fix for compilation issues.
  configs: msmsteppe: enable sound trigger hidl hal 2.3
  configs : Add support for AAC multichannel
  audio-hal: add tinycompress soong build flags
  hal: Add SpkrMono WSA support
  hal: msm8974: Add speaker protetion on bengal
  hal: Add speaker protetion support on LE
  ...

Change-Id: Iacb69a37363ca5ce43064c3465c9ff05b9502b6f
2022-06-25 13:40:58 +03:00
Avinash Chandra d7296d4795 audio: hal: add support for combo backend capture
-Add support to capture 10 channel audio from two backends
 6 channel from SLIM_0_TX and 4 channel from TERT_MI2S_TX.

-add support for SOURCE_DEC_TYPE to support 10 channel
 generic mic capture.

Change-Id: I4fdfb7fa07d916426a0f11d88506039d0556bac7
2022-06-20 09:00:25 -07:00
qctecmdr 4269c5c9c0 Merge "hal: Adds support for alerts bus" 2022-06-08 21:57:25 -07:00
Susan Wang 117cf6f3e1 hal: Adds support for alerts bus
- Adds snd device, acdb id, and
  usecase for new alerts output bus
- Sets alerts output bus to use
  pcm device 59 (MM31)
- Alerts bus will only be used
  by automotive

Change-Id: I8932dfb646d301eec2d830a560f98a194e1e59fb
2022-06-03 14:03:41 -07:00
Daniel Hillenbrand 1787395906 hal: Support the audio amplifier hook
* Original legacy HAL commit:
  Ib236598a5888b2af19bcfb81e285f644a0e84c0d
* Example: http://review.cyanogenmod.org/38221

 (cyanogen: Refactored to be an audio_extn)

Change-Id: Ic944a9f7059c78b79322dae9c787cdd8bb029cff

audio: add amplifier stream start/standby operations

Change-Id: I5de7ad7a0467e7cf822c9c0870a755c03d05e884

hal: Convert libaudioamp to audio_amplifier HAL

Change-Id: I1d0f63a46989d1792d7a5e08d2bdb6344ebafa31

hal: Notify amplifier of device enable/disable

Change-Id: Ice808c9b55a9e3bc8bafe5ca3ff555377d38dd8f

hal: enable amplifier earlier

Change-Id: Id876e8f836e3ce1ee5f8186ca9c0e6ef5f37182c

hal: only open the amplifier once

Change-Id: Ie9bbff74123e90b71e95809a84dcb3bbe9ba82fe

hal: notify amplifier of parameter changes

Change-Id: Iecc020c0347ae7c43d27183186e06dcefef7a0dd

hal: Clean up audio amplifier usage

 * Externalize it into an extension file similar to the rest.

Change-Id: I03de7efa9bab8870099028170fa471dfffe1ce84

audio: add amplifier hooks for stream parameter manipulation

hal: Use log/log.h instead of cutils/log.h

Change-Id: I6e52524cc650eea234fbcf64ed17104dd8a3f001

[Pig]: Clang-format

audio_amplifier: Add new hook for setting amp feedback

Change-Id: I6de5e9c9dbbb6214b166f30628734aeb406c8a2a

Change-Id: I16a76475cb58a710d229648d77024379bfc499d5
2022-03-17 21:04:26 -07:00
Shubhasini Sugumaran 3fde6584b7 hal: Add support to close streams on power policy callback
* Close existing streams during power policy disable callback

* Stop new streams from starting if current policy is in disabled state

Signed-off-by: Shubhasini Sugumaran <quic_c_shubsu@quicinc.com>
Change-Id: I4960e336f03086d1322708e155a4a4f02098b3fb
2022-03-14 09:45:46 +05:30
qctecmdr 8d6edc6029 Merge "audio-hal: soft step volume params controls" 2022-03-03 19:42:33 -08:00
Krishna Kishor Jha 10ad39f249 audio-hal: soft step volume params controls
set/get soft step volume control params values dynamically
for each usecase. each usecase can set different params values.
these values are set to module through mixer command.

Change-Id: I8ae200046ca5ab1ce253fc43e241d794fbb52183
Signed-off-by: Krishna Kishor Jha <quic_kkishorj@quicinc.com>
2022-02-25 15:19:51 +05:30
Krishna Kishor Jha 0f4d848dca audio-hal: Add concurrent audio pcm record support
Enable three concurrent record support in audio hal

Suggested-by: Karthik D K <kdk@qti.qualcomm.com>

Change-Id: I1d3fd3c50bbe6c92fb968af13b65ac98a940c66d
Signed-off-by: Krishna Kishor Jha <quic_kkishorj@quicinc.com>
2022-02-22 20:15:17 +05:30
Dechen Chai 22768459bd hal: fix hal build error for LE platform
Fix hal build error for LE platform

Change-Id: Ib64f17f1cd11aa761c240f2cf0e8855349db579d
2021-08-20 01:07:09 -07:00
Kunlei Zhang a3c4cb0ed9 hal: add API to pass FNN usecase status to acdb-loader
Add API to allow FNN usecase status to be passed to
acdb-loader allowing persist cal block to be set
based on the FNN usecase status.

Change-Id: Ib9ce1c627eff26e873e1fd88fa2e19e6635a38e1
2021-03-30 16:18:37 +08:00
qctecmdr fc941a4451 Merge "hal: make latch lock recursive" 2021-03-23 00:36:34 -07:00
Weiyin Jiang 906db3cb51 hal: make latch lock recursive
Make latch lock recursive.

Change-Id: I9bc7d5ea6488b2af492d67efeb0fd494c85a7c83
2021-03-18 02:12:13 -07:00
Susan Wang e395956d79 hal: Enable use of ECHO_REFERENCE in AHAL
- Enables echo ref audio source and audio device
- Opens a separate echo reference stream for auto
- Captures echo reference from codec loopback

Change-Id: I95cbd85296ad647149fcf00a297c729ab22ef272
2021-03-16 11:56:19 -04:00
Susan Wang 6dd13096c1 hal: Remove in_get_stream and out_get_stream
Remove in_get_stream and out_get_stream and
add in_ctxt and out_ctxt members to stream_in/out
structs to track and directly access stream contexts.
Mitigate race conditions with the active_in/outputs_list
when in/out_get_stream reads the list.

Change-Id: Iefc77d3c862b16dce8086e1afba15cf0210155b4
2021-02-23 17:14:40 -08:00
Zhou Song baddf9f25f hal: mute stream and switch to speaker during a2dp suspend
During A2DP to SCO transition, in order to avoid audible
PCM data pumping to BT SoC during suspend, mute stream
from DSP and switch to speaker to tear down slimbus to
avoid glitches heard after SCO connection is established.

Change-Id: Iabe2216e574b462cfc179369e75007998a576480
2020-12-03 10:48:47 +08:00
Fei Tong affdf73100 HAL: Add synth enablement control
Add synth enablement control, create hostless loopback for synth playback case

Change-Id: I0d4da24975e2fe7f28f30adba1a604c85451eeaa
2020-11-02 08:23:13 -08:00
Huicheng Liu 1404ba18ab hal: add multizone input bus support for automotive
Add primary capture, front passenger capture and
rear seat capture support for multi-zone audio
support on automotive platform.

Change-Id: I36c9776381b4e08a237fd70efaa9c7475c3700a0
Signed-off-by: Huicheng Liu <huicliu@codeaurora.org>
2020-10-21 01:16:49 -04:00
Derek Chen a30a5f4ec9 hal: Add support for In-Car Communication usecase
* Add ICC library functionality in icc.c
* Add support in audio_extn to open and initialize icc library
* Add platform changes for device selection in ICC usecase
* Add support for sending ICC audio calibration/app type cfg

Suggested-by: Tahir Dawson <dawson@qti.qualcomm.com>
Change-Id: I26937da282fcdd31d59a54b180dca5d7740fbfb0
2020-10-08 18:45:33 -04:00
Weiyin Jiang 280ea745d3 a2dp: fix race condition during a2dp suspend and reconfig
Device lock is released during a2dp suspend and re-config scenario,
which results into race condition.

Introduce a latch lock for the following reasons.
- We don't have to hold the out->lock that is too large granularity,
  if we only care about certain fields in stream structure.
  latch lock is of small granularity.
- out->lock can only be held after adev->lock, which makes it impossible
  to loop through the adev->usecase_list and operate on usecase streams.
  latch lock can be held after out->lock and adev->lock.

CRs-Fixed: 2770070
Change-Id: I58584820f924ce4c7e723899cb2595aa3adfd5b3
2020-09-22 12:39:45 +05:30
Revathi Uddaraju d9f23d9bf7 hal: Add support for voip record low-latency
Add support for voip record low-latency path if app requests
for audio record with fast flag.

Change-Id: I2152a796cdb8c29142315c23cad7ec32f771f6b3
2020-08-06 12:04:49 +05:30
Revathi Uddaraju b26e393fb0 hal: retry a2dp path start up when failed
Check if a2dp path start failed and do retry from
out_write to recover the path is possible, which
can avoid blocking write if path set up failed.

Bug: 148926518
Change-Id: I479386e1760b214c1be31d34449a068e41ff5ced
2020-06-24 21:32:34 +05:30
Meng Wang 51d8c2a223 hal: update haptics PCM ID
Update haptics PCM ID according to the pcm id set in
audio_platform_info.xml.

Change-Id: Ib6a208449a16f595a0ef9d1a4281aa8e96e088c2
2020-05-12 16:43:45 +08:00
qctecmdr 4cdb6a4ef2 Merge "hal: add new proxy usecase for hearding aid" 2020-05-06 05:12:31 -07:00
Derek Chen 1bcdc6b947 hal: add bus stream for front passenger zone
Add bus stream for front passenger zone playback
on automotive platform.

Primary zone         -> Mercury
Front passenger zone -> A2B1 (8CH DAC1) (ALL)
Rear seat zone       -> A2B2 (16CH DAC1&2) (SA81x5)
                        A2B1 (8CH DAC2) (SA6155)

Change-Id: Ib288f84c94d33f2f49d45b32d6810e0b91db967f
2020-04-28 11:16:03 -07:00
Andy Hung c6bfd4a648 Add startup time from idle statistics
Test: audioflinger dumpsys
Bug: 135729709
Bug: 124765214
Change-Id: I443f18fc80595810cf10d990a237139f8d35241c
(cherry picked from commit 81f79936b6dce64f6f7630a3b5cf8270f270d260)
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
2020-04-08 15:03:11 -07:00
Andy Hung a1f48fa465 Track alsa buffer underruns
Test: audioflinger dumpsys with instrumented sleeps
Bug: 135729709
Bug: 124764221
Change-Id: I43e21c03320ec598d970914d4569e404878a7894
(cherry picked from commit 1f203ea4bfd70695a5d1f3794a8bff9448a4f40b)
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
2020-04-08 15:03:02 -07:00
Zhou Song 62ea02871b hal: add new proxy usecase for hearding aid
Add a dedicated proxy usecase for hearing aid.

Change-Id: Iacc828f23393e3b44e9eefed89bbb365240a9813
2020-03-27 16:46:14 +08:00
Jaideep Sharma 477917f32c hal: add support for callscreening.
handle newly added callscreening mode, provide support for device selection
as per this new mode.

Change-Id: I3c57c9edd38cf4347d11c871e1878a4536936edc
2020-03-19 11:24:48 +05:30
qctecmdr 2a11cb2903 Merge "hal: update audio patch handling in auto hal" 2020-03-13 07:10:38 -07:00
qctecmdr ea77ce2e51 Merge "hal: add device compare util for type and address" 2020-03-11 04:25:37 -07:00
Jaideep Sharma d305a4acdd hal: fix concurrent call-recordings with normal recordings .
if one recording is ongoing then currently second open_input_stream
takes uc for compress record.However, if this input is opened for
call recording then it changes the usecase in-between for
call recording leading to a state where inputs are configured
at c_in but not reset because of this in-between change of usecase.
for virtual sources like uplink, downlink, which actually don't record
form hardware input source,  don't assign a compress usecase.

Change-Id: I154446fe867af63f0f6e0cb0de6d4a567658050f
2020-02-28 15:56:10 +05:30
Derek Chen 6c0f3de886 hal: update audio patch handling in auto hal
Update audio patch in automotive HAL extension
to support device to device patch only.
Remove playback or capture patch as they are
supported at audio hw level.

Change-Id: If3cf097e4ed010548e1d3ab421611490f284157b
2020-02-26 16:06:30 -08:00
Derek Chen 5f67a9480c hal: add device compare util for type and address
Add device comparasion utility for type and
address validation within device list.
Update bus device and address check with this
for audio port gain configuration on automotive
platform.

Change-Id: Ic2d4522ecb61179198766e2bb8e2d644b3a3d950
2020-02-24 23:48:58 -08:00
Aniket Kumar Lata bc7748481d hal: Update synchronization and error handling for audio patches
Since we are storing patch info and stream info
pointers and not copies, it is possible to change
the pointer value once adev lock is released.
Remove individual locks for patch and stream info
and instead use adev lock to control access.
Also, update error handling for audio patches.

Change-Id: I4538c37f2235cfcbbdb75232307ba3f5af2a324a
2020-01-21 07:43:53 -08:00
Aniket Kumar Lata 0e6e1e5e30 hal: Remove storage of audio device on bitfields
Audio devices were stored in HAL on variables with
type audio_devices_t. This change removes the storage
of multiple devices on a bitfield. Device comparisons,
assigments, removal have been updated. Helper functions
have been introduced for device operations.

Change-Id: I9ce8b0f9bdc542c386cbfe45b685158cc51d47b6
2020-01-21 07:30:16 -08:00
Aniket Kumar Lata 1fda943d0f hal: Add support for audio patches in HAL
Implement create_audio_patch and release_audio_patch
APIs for stream routing. Framework will
call these APIs instead of set_parameters to update
routing for a stream.
Increment HAL major version to 3.

Change-Id: Ife914f3277f2b3aa02e88e722d191c3f930e8095
2020-01-09 16:39:24 -08:00