Commit Graph

200 Commits

Author SHA1 Message Date
Hari Veerubhotla e56a5fa07a Initial Android target definition for trinket
Initial Android target definition for trinket
configuration files.

Change-Id: Ie1761dff7235a6625ebf4c378596c944a67d66ef
2019-02-18 23:17:10 -08:00
Linux Build Service Account aac0c301b3 Merge "hal: Add separate backend for headset-mic" 2019-02-06 01:32:09 -08:00
Samyak Jain b3f3ca5f82 hal: Add separate backend for headset-mic
Add separate backend for headset-mic
for concurrent record usecase.

Change-Id: Iba26751eb51c00a62016a47e0d3c726b155cf169
2019-02-01 03:21:30 -08:00
Meng Wang ef2f6e180b hal: add audio support for kona
Add audio support for kona.

Change-Id: Ib1eb05209ce3220e00fa15cddc5338b3f62871f9
2019-01-31 23:14:42 -08:00
Aalique Grahame 5ce7fbe767 audio: update feature files
Update the source files for ma_listener, cirrus_playback and
maxxaudio to latest versions.

CRs-Fixed: 2388992
Change-Id: I62eecf0356ee942d085ee94b848225a91704e688
2019-01-29 10:55:55 -08:00
jasmine cha 75fa6f02fb audio: porting MAXXAUDIO
- use effect module to monitor stream's volume
  - the control(maxxaudio) monitors active device and
    changed volume from HAL, and send audio calibration
    to acdb via acdb_loader.
  - support specific USB headset

  Enabled function:
  - LR channels swap
  - load external tuning table for volume preset feature

Bug: 74360112
Test: manual effect test, usb headset test
Change-Id: I9b35436d6abebcfa250beb4857dfa0be9248f2b5
(cherry picked from commit 270b7762c1c6c7b69400ba28a2ea2bed7af1906a)
2019-01-28 14:13:21 -08:00
Aalique Grahame 22e4910d3d audio: unify hal
Unify audio hal components

CRs-Fixed: 2380934
Change-Id: Iacafdc44d935de5f343240421a1572a0a3241bd0
2019-01-25 15:15:46 +05:30
Surendar Karka 2febd45858 Merge commit 'd34f05cb6e67e28a4955332173950466edf0be3e' into audio-hal.lnx.5.1
Change-Id: I4656a1a78c2b1d4b4834b2fd538699f96e2aa90e
2018-12-13 17:57:12 +05:30
Derek Chen 3e5b30a0fb hal: add support for hfp on auto platform
Add auto platform specific pcm device id and
playback volume control to support hfp with
dual asm loopback.

Change-Id: I6bd2ae63c8733dd770f48c1b2557c4d3d5a6b101
2018-11-29 15:10:44 -08:00
Florian Pfister 1a84f31db3 hal: add split A2DP sink support
- Add changes to support BT IPC sink library.
- Add mixer control support to send decoder configuration for
  split A2DP sink usecase.
- Add hw loopback support for split A2DP sink usecase.

Change-Id: I3b015385ce1fdd5c0cbf512fe06b73143a32ae2d
2018-10-31 03:06:34 -07:00
Naresh Tanniru cb5b578917 Merge e1f65e84d3 on remote branch
Change-Id: I5cb17e69a3b1e4fa78b7a130cbabc8bc7b11932b
2018-10-15 17:00:56 +05:30
Dieter Luecking 5d57defb10 hal: Support Multichannel Speaker playback
Until now speaker playback only supports stereo
and is limited to default sample rate.
Update code to support QCS405 configurations with
CSRA soundcards that can have up to 16 or 32 speaker
output channels and allow sample rates up to 384kHz.

Change-Id: Ib4ed5edafca6f8b15134ca66db4bf1ef719ec15d
2018-10-12 00:59:38 -07:00
Divya Narayanan Poojary 85d0a59463 hal: Fixed incall recording backend ids
During in call recording, input device is same as that of voice
use case but the backend used in routing driver is different.
Due to mismatch of backend ids, Wrong acdb id and app type are
being set in routing driver when adm port is opened.

Defined new devices for in call recording and used the new devices
to retrive the backend ids.

CRs-Fixed: 2183315
Change-Id: I278996185badad640e16f60730176916d81e3626
2018-09-20 14:55:00 +08:00
Karthikeyan Mani 07faa60a22 hal: Add USB 6ch recording support
Add USB 6 channel MIC device support to enable audio
recording over 6 channels from USB device.

Change-Id: Ice68b6901991266e331cbf7735e187a7d3ed38b3
2018-09-07 14:17:22 -07:00
Sharad Sangle cce650a1fd sm6150: Enable audio features in configs
Enable audio features in config file and
also add talos platfrom macro for some
definitions

Change-Id: I18e2e50ad5dad28b12f448ba3c8e3ccaaba2d6c4
2018-08-24 11:06:13 +05:30
Linux Build Service Account f8f05162d4 Merge "hal: support compressed capture with variable size packets" 2018-07-31 22:07:01 -07:00
Vignesh Kulothungan 80d87eefc1 hal: Add tmic devices to effect config table
Define module id for tmic devices.
Add tri mic handset and speaker devices to effect config
table.

CRs-Fixed: 2280317
Change-Id: Ia3d22f92a7b4fd483a54192f3119814c8c112229
2018-07-26 17:02:13 -07:00
Vignesh Kulothungan 033c7cb31f hal: Update Single mic device from Fluence to ECNS
- Single mic fluence devices are never used when fluence type is
  not enabled. When fluence is not enabled, single mic devices
  should use ECNS.
- Remove checks for fluence type to enable set echo reference for
  non fluence usecases.

CRs-Fixed: 2275470
Change-Id: I6d76e6332960663583a082c0de933854403255f5
2018-07-25 10:15:04 -07:00
Ralf Herz afb164f9c1 hal: add support for SPDIF and HDMI input for qcs405
Add support for SPDIF/HDMI/HDMI-ARC backend.

Change-Id: I24f307074f3ceed4d4f484e4482458084063da19
2018-07-25 20:48:12 +05:30
Ramu Gottipati 813ae98b02 hal: add support for LINE IN device
Vipertooth has hardware support for LINE IN device.
Adding support in audio hal to select line-in device.

Change-Id: Ia783ef986724a51a25a33f91df05b58984ecc87d
2018-07-25 02:42:25 -07:00
Naresh Tanniru dcb47c51ca hal: Add support to get active microphones on input stream
Add support to get active microphones on input stream.
Get microphone device id and channel map based on active
usecase and sound device. Active microphone characteristics
are retrieved from platform info using this device id.

Change-Id: I63ec99e70980869097fa896bc4b309fc0583fb3a
2018-06-26 07:50:50 -07:00
Vikram Panduranga 8c68e86602 hal: Add support for voice speaker stereo
Add device entries and additional support to enable
voice speaker stereo and stereo-protected features.

Change-Id: Iad40d6a297824181ed380a5a3f37254f58144de5
2018-06-15 12:08:05 -07:00
Dhananjay Kumar 75c9a0c578 hal: add support to compile audio hal for qcs405
Add platform and configure.ac changes to support audio hal
for qcs405 targets.

Change-Id: Ifa2c610420ef2e92729ef0dcd6eea09ae8c5cc70
2018-06-13 01:35:06 +05:30
Vikram Panduranga f0ca0b1a26 hal: Add tri-mic device entries
Add following speaker tri-mic device entries
in msm8974 and msm8916 platform files -
  SND_DEVICE_IN_VOICE_SPEAKER_TMIC, SND_DEVICE_IN_SPEAKER_TMIC_AEC,
  SND_DEVICE_IN_SPEAKER_TMIC_NS, SND_DEVICE_IN_SPEAKER_TMIC_AEC_NS.

Change-Id: I1e8a6b63e39d4c55abe1098aef2c9bc76fcc5cc0
2018-06-04 09:55:39 -07:00
Tanya Dixit 6e3bcccfc7 Initial android target definition for msmsteppe
Change-Id: I4c2f93bf5b109210bb27cbf9f2068d3cf260f3d9
2018-04-25 14:29:19 +05:30
Naresh Tanniru 42e0e60bac hal: Rename sdm670 to sdm710.
Change-Id: Ic30a5e1c5afb883dd60eac4b944bb75ea59cabb1
2018-04-10 17:55:13 +05:30
Divya Narayanan Poojary 356e01e8f4 hal: Fixed incall recording backend ids
During in call recording, input device is same as that of voice
use case but the backend used in routing driver is different.
Due to mismatch of backend ids, Wrong acdb id and app type are
being set in routing driver when adm port is opened.

Defined new devices for in call recording and used the new devices
to retrive the backend ids.

CRs-Fixed: 2183315
Change-Id: I278996185badad640e16f60730176916d81e3626
2018-02-26 22:51:30 -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 e289b3e163 Merge "hal: Update for support for SDXPOORWILLS" 2018-01-04 02:11:59 -08:00
Aditya Bavanari 4051c8d314 hal: add changes to support Fluence V8 feature
Add new sound devices and acdb device ids to
support Fluence V8 feature. Enable the sound
devices based on the tri mic fluence support
property.

CRs-Fixed: 2155314
Change-Id: Ibfcd022d69bdd11a280caee6d0f03e5909ed2961
2017-12-18 17:24:48 +05:30
Josh Kirsch f6932f7f30 hal: Update for support for SDXPOORWILLS
Add correct configurations and feature flags for SDXPOORWILLS

Change-Id: I84559e7d542ac7bef86128e188285f34a8d5aaa4
2017-12-12 11:31:01 -08:00
Linux Build Service Account 98983514f5 Merge "hal: add generic handset mic definitions" 2017-11-12 23:47:15 -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
Dhananjay Kumar 704ce6fbec hal: add generic handset mic definitions
-Add generic handset mic to support different use-cases
 on this single device using tx app_type config.
-The change is guarded with a system property which should
 be enabled only if tx app_type support is already available
 and generic device definition is added in acdb files.

Change-Id: I3fea2e12bd99a0d229fb5753d47dba2501ea528b
2017-11-01 13:15:34 -07:00
Aditya Bavanari 7b2c7b09c9 hal: Assign correct FM port for SDM670
Loopback gain setting failed in DSP due to invalid FM
port configuration. Assign correct FM backend port
to fix this issue.

CRs-Fixed: 2127308
Change-Id: Iaf8106f1dda40e84e8128331f1e3c0cc4556ea62
2017-10-17 12:48:58 +05:30
Vikram Panduranga df59cae166 hal: Add dynamic enablement of AEC/NS for VoIP
Add capability to dynamically enable or disable AEC/NS audio effects
on DSP for a VoIP call.

Change-Id: I9cb2b6cf95d936d770eda47bd87db02534f302b4
2017-10-11 14:08:38 -07:00
Haynes Mathew George 484e8d2aff audio: Dynamic USB profile changes
Add support for hifi playback and record usecase

CRs-Fixed: 2106614
Change-Id: Ic0d5c8907e9951e8205131060071101ca16a455b
2017-10-06 16:36:51 +05:30
Garmond Leung 438932f53a hal: Correct compilation errors in hal
Correct compilation errors due to merge of new changes

Change-Id: I83cea7c5d672d24b81bbb767eafc3e1564be561a
2017-10-04 19:35:18 -07:00
Garmond Leung e2433c38c9 hal: Add support for Fluence Far Field Voice
Add support for 6mic Fluence pre-processing of
captured stream using Far Field Voice (FFV) algorithm.

Change-Id: I7a643014f3e090482db7772dce2fc812fd469b2d
2017-10-04 16:28:44 -07:00
Linux Build Service Account 36efe25c99 Merge "configs: Initial config files for msmpeafowl" 2017-09-20 23:37:20 -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
Aniket Kumar Lata f0531e06e1 hal: Increase direct PCM buffer duration
- Increase direct PCM buffer duration (80ms) to receive
  linear time acks on write for fractional sample rates
- Fixes 44.1 Khz timestamp updates.

Change-Id: I0f657bae0d6e4645f2fcf2b37b97014b89544008
2017-09-14 00:07:03 -07:00
Ben Romberger 6c4d381b49 hal: Add matrix limiter support
Matrix limiter is used to prevent saturation
when mixing multiple audio streams. It is
enabled when both the BD output flag is set
and the property audio.matrix.limiter.enable
is set to true.

Change-Id: Ibf06bd2444874ae555e98a26ed645f2455a3e1a3
2017-09-05 11:08:36 -07:00
Linux Build Service Account 9ba5756894 Merge "configs: Add speaker and bt-sco combo device" 2017-09-04 04:42:12 -07:00
Varun Balaraj e49253e19a hal: Adding Pan-Scale, downmix mixer control support.
Add support in HAL to send mix matrix params using downmix,
Pan-Scale mixer controls. Add new interactive usecases and
also add support to open and teardown for interactive streams.
Add support in test app for supporting up to 9 concurrent
streams. Add support for mixer matrix params handling.

Change-Id: I0dc5b908ee779b2b2c526a67609c057f591f26e7
2017-08-29 16:26:38 -07:00
Haynes Mathew George 1608104d51 audio HAL: add support for MMAP IRQ mode streams.
Introduce MMAP NOIRQ in shared mode.

CRs-Fixed: 2071843
Change-Id: I79ee079475d23f01aaf730a488b79831fd070df1
2017-08-29 16:26:23 -07:00
kunleiz be6a8445f5 audio HAL: add support for BT_sco and speaker combo device.
Add support for BT_sco and speaker combo device in device
selection logic.

CRs-Fixed: 2081083
Change-Id: Iae738e4fa3e3da41de9f59803a3c7a1a5fbb849a
2017-08-22 23:44:45 -07:00
Siddartha Shaik 44dd770420 audio: hal: changes to support compressed input for transcode loopback
- Support compressed input format in transcode loopback extension
- Support compressed input format in target platform
- Test application changes to support pcm and compressed input formats

CRs-Fixed: 2061945
Change-Id: I693594164e05c09ffece8fa705149c7b45c2e5d3
Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
2017-08-15 15:18:32 -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
Aniket Kumar Lata 3e2e12392d audio: mode specific devices for USB
Add enums and selection for mode specific USB devices.

CRs-Fixed: 2062903
Change-Id: Ia7c2769bec79e84625d4b4e0f2b362fc96a72be1
2017-08-11 17:19:46 -07:00