Commit Graph

3856 Commits

Author SHA1 Message Date
Ralf Herz 512d812990 hal: fmt_change_test app for format change detection on qcs405
Add fmt_change_test app to capture SPDIF or HDMI audio according
to detected format.
Listen to format change events and open new file on each change.

Change-Id: Iaace7f4c8c0a94418f326ae8d403cd14741d484f
2018-10-17 14:02:48 +02:00
Linux Build Service Account 9c8de88f06 Merge "hal: post_proc: make definition of instance id independent" 2018-10-16 07:23:21 -07:00
Linux Build Service Account 7422d5f38d Merge "hal: Fix input buffer size for fractional rate 24bit capture" 2018-10-15 08:16:02 -07:00
Linux Build Service Account 9220acfd74 Merge "hal: add support for tdm variant of qcs405" 2018-10-15 08:16:01 -07:00
Linux Build Service Account d5812e78eb Merge "hal: Support Multichannel Speaker playback" 2018-10-15 08:15:59 -07:00
Linux Build Service Account b8c55cefb1 Merge "hal: Add new parameter in SA+ effects and resolve compilation issue" 2018-10-15 08:15:56 -07:00
Linux Build Service Account ba8507f52a Merge "hal: platform: Invoke acdb deallocate api" 2018-10-15 08:15:53 -07:00
Vignesh Kulothungan 1beac7c31b hal: post_proc: make definition of instance id independent
Definition of instance id is misplaced inside definition of
hardware accelerated effects in makefile. Moving definition of
instance id outside to break the dependency. When instance id
flag is disabled, it causes acdb_audio_cal_cfg_t structure size
mismatch between HAL and ACDB loader.

CRs-Fixed: 2315791
Change-Id: Iedb50b10f03193c67494cdfc30223f1bd93a8c90
2018-10-12 11:28:34 -07:00
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
Trinath Thammishetty efab619766 hal: Add new parameter in SA+ effects and resolve compilation issue
Add new parameter in SA+ effects to get latency introduced
by each effect. Use #ifdef instead of #if in environmentalreverb header
file since _cplusplus macro not being defined is raising errors.

Change-Id: I0d5e410414502ac2bef77f1cbd7b041e4f26844d
2018-10-11 13:28:21 +05:30
Ralf Herz bd08d63c19 hal: Fix input buffer size for fractional rate 24bit capture
The input buffer size from ADSP must be a multiple of 32 bytes and a
multiple of the frame_size. For fractional sample rates (eg. 44.1kHz)
with 24bit packed samples, 32 is not the smallest common multiple.

Change-Id: Ifcef1daa4f43e90fdb30873192c0047677ae3c00
2018-10-11 09:28:07 +02:00
Dieter Luecking b9c5999543 hal: qahw_test: Printout channel mask
For multichannel playback the corresponding channel mask is
printed in order to check for any mismatch.

Change-Id: I2cec1cc409d5044d05de7a6a5623a263573b331d
2018-10-10 23:17:10 -07:00
Aditya Bavanari 7076ff445c hal: platform: Invoke acdb deallocate api
Invoke acdb deallocate api during audiohal
unload process.

Change-Id: Id7d8f456597f8a9b28e54ef20d70b1747f394605
2018-10-10 22:00:18 -07:00
Ramu Gottipati e1f65e84d3 qahw_api: Fix for measure KPI latency values test app issue
- To measure KPI latency values, second fclose of fd_latency_node
  in test app causing segmentation fault.
- To fix this, remove double fclose for fd_latency_node.

Change-Id: I2b19d9f18eff7a63074aa01092afb06064f6723b
2018-10-05 02:00:50 -07:00
Gerrit - the friendly Code Review server 019817dfe9 Merge changes into audio-hal.lnx.4.0 2018-10-04 05:00:29 -07:00
Linux Build Service Account ae79077d65 Merge "hal: Add volume control for pcm playback" 2018-10-04 04:56:13 -07:00
Linux Build Service Account fba2b46dea Merge "hal: fix null pointer references and data initialization errors" 2018-10-04 04:56:10 -07:00
Linux Build Service Account 670852892f Merge "configs: Enable flag to compile test apps in vendor image" 2018-10-04 04:56:07 -07:00
Linux Build Service Account 5cbab322f2 Merge "hal: Fix SPDIF/HDMI PCM capture in qcs405" 2018-10-04 04:56:05 -07:00
Dhanalakshmi Siddani b82be378a0 configs: Enable flag to compile test apps in vendor image
Enable COMPILE_HAL_TEST_APPS_IN_VENDOR_IMAGE flag to compile
HAL test apps and libs as part of vendor image.

CRs-Fixed: 2273661
Change-Id: I56326bff4b1c089b51428b973cb96e75ce6ec5e7
2018-09-30 23:01:34 -07:00
Dhananjay Kumar b34c5c13db hal: add support for tdm variant of qcs405
Add support to load mixer control and platform info xml files
required for tdm variant of qcs405.

Change-Id: I9da96b2b59e393130dda6512a6e0126de59149e5
2018-09-28 00:54:00 -07:00
Linux Build Service Account f3df38ded8 Merge "hal: Add support for spdif-in in transcode loopback usecase" 2018-09-27 06:08:21 -07:00
Ralf Herz 76b455c910 hal: Fix SPDIF/HDMI PCM capture in qcs405
Use an ACDB ID for unmodified PCM capture for SPDIF/HDMI.
Use dedicated audio device for HDMI ARC.

Change-Id: Ia59c2e587e7951d5fb9a251120189cf9404c0863
2018-09-27 11:26:40 +02:00
Jhansi Konathala 902fc41b69 hal: fix null pointer references and data initialization errors
- add null pointer check and initialize uninitialized variables

CRs-Fixed: 2312146
Change-Id: I5f260b327492e1373ed143dd8dcf243154fd7818
2018-09-27 00:46:37 -07:00
Ramu Gottipati 97bdcfb78a hal: Add volume control for pcm playback
- LE needs volume control support for deep-buffer
  and low-latency usecases.

Change-Id: I8fab52d051655c6502adf3585d49f0cd365ec0cf
2018-09-26 11:43:18 +05:30
Linux Build Service Account a505f5f617 Merge "hal: soundtrigger: update stream status callback to include device info" 2018-09-25 07:50:31 -07:00
Linux Build Service Account 777d4acbc8 Merge "hal: add line in/out transcode loopback support" 2018-09-25 07:50:15 -07:00
Linux Build Service Account bc902db598 Merge "hal: Fix usecase transcode loopback usecase id" 2018-09-25 07:50:13 -07:00
Deeraj Soman 0002d9f52d hal: Add support for spdif-in in transcode loopback usecase
Add support for spdif source in transcode loopback usecase.
Transcode loopback was supported only for HDMI source earlier.
adding support for SPDIF source for new targets.

Change-Id: I13c23d13ac2afd6b011ade961b4fece6da6bf115
2018-09-25 09:39:18 +05:30
Linux Build Service Account 28a0250b59 Merge "hal: Configure backend with 24-bit for 24-bit playback" 2018-09-24 08:50:45 -07:00
Deeraj Soman 6623f33bf4 hal: Fix usecase transcode loopback usecase id
Fix transcode loopback rx usecase id

Change-Id: I308940d5490d3685f6ac57cf3f9a0692286fd8e3
2018-09-24 16:33:53 +05:30
Surendar Karka 2e8bb02d78 hal: add line in/out transcode loopback support
Adding hal changes to support line in/out transcode
loopback support.

Change-Id: I196f9180e3ef7543cca288bf1582bb298fbb6313
2018-09-24 00:53:00 -07:00
Surendar Karka d3514859f7 qahw_api: add source device support in transcode loopback test app
Adding support to set source device support in transcode
loopback driver.

Change-Id: I727aa9de5bf3091a8fd2e27e0ae163b2ac5638b1
2018-09-24 00:47:11 -07:00
Surendar Karka 93cd25a9f9 hal: separate transcode loopback usecase for Tx and Rx
- In transcode loopback usecase source device is fixed
  with HDMI device and backend is not configurable.
- Separate transcode loopback usecase for Rx and Tx
  to select the backend based on the source device.

Change-Id: Icbed33fe748ab5f9fc4ace3ada605ba25ad2c51c
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-09-24 13:13:56 +05:30
Dhananjay Kumar 03536d719e hal: soundtrigger: update stream status callback to include device info
Update soundtrigger stream status callback to include device info.
The device info included in status callback can be used by sthal
to select ec reference.

Change-Id: Ia5973ce287300bab4b505269829332e60cf9e7f4
2018-09-21 06:11:19 -07:00
Linux Build Service Account 7b1a096792 Merge "audio: check for USB device state when opening in/out stream" 2018-09-20 23:39:23 -07:00
Linux Build Service Account fe514bae7f Merge "qahw: add channel position for all channels supported by adsp" 2018-09-20 23:39:21 -07:00
Ramu Gottipati 074fa4df34 hal: Configure backend with 24-bit for 24-bit playback
- For 24bit stream backend is getting configured to
  32bit which is undesirable.
- To fix this, changes are done to configure backend
  as 24bit for 24bit stream and 32bit for 32bit stream.

Change-Id: If4186d2e476c745f584903edc02818eb0af6ee12
2018-09-19 18:02:33 +05:30
Weiyin Jiang f6ba0ba1e7 audio: check for USB device state when opening in/out stream
Check for USB headset device state when opening in/out stream,
and report error if USB headset is not in connected state. That's
to handle error condition gracefully to avoid further crashes in
audio flinger.

Change-Id: Ib33489fec00ac0b5c500fc1fa2dbeb021b51cbef
CRs-Fixed: 2261252
2018-09-18 03:10:46 -07:00
Trinath Thammishetty cbd1905cea hal: Enable effects for hardware loopback
Add support for hardware loopback usecase in audiohal.

Change-Id: I97c14acca5961b9d9ac23fe04c8d9782c44fa646
2018-09-14 15:20:01 +05:30
Manish Dewangan 4affcfeb27 qahw: add channel position for all channels supported by adsp
Change-Id: Ifc9a5fd5ebc0b0ad31a2029fc308060a7fe03f01
2018-09-10 13:45:57 +05:30
Dhanalakshmi Siddani a08b7aa5b2 configs: Enable custom stereo flag for APQ8009
Enable custom stereo flag to support multichannel
to mono conversion.

CRs-Fixed: 2273661
Change-Id: Ic8b4bbe1ab7cee9a7370fa6cadc8ccf35c1c9559
2018-09-04 23:36:41 -07:00
Linux Build Service Account 946d2e1351 Merge "hal: msm8974: Select platform info xml for qcs405 WSA" 2018-09-04 23:29:13 -07:00
Linux Build Service Account d61a52b94f Merge "configs: Correct EC capture mixer control sequence" 2018-09-04 23:29:11 -07:00
Linux Build Service Account 7f4bb84f11 Merge "hal: use handset-mic as input device when USB headset is unplugged." 2018-09-04 23:29:08 -07:00
Ramu Gottipati 54ed9482c4 hal: msm8974: Select platform info xml for qcs405 WSA
- CSRA is replaced with WSA as CSRA can go with default
  config whereas WSA would need specific config.

Change-Id: I5e358846b01dca00a5523b253744556da9a39070
2018-09-03 08:10:23 -07:00
Linux Build Service Account 188857507d Merge "hal: reset backend sample rate if device backend is not supported" 2018-09-03 01:29:23 -07:00
Dhanalakshmi Siddani d2078d2860 configs: Correct EC capture mixer control sequence
ADM close is not happening for EC capture session as port id
is getting reset.
Correct mixer controls sequence to fix the issue.

Change-Id: Ic4161812285a4921fdfb835e514fb30f8b39bd05
2018-08-29 22:02:22 -07:00
Linux Build Service Account 8e1d9b1111 Merge "configs: add missing path for hifi-record" 2018-08-29 08:01:03 -07:00
Linux Build Service Account a4cea8c7c8 Merge "configs: Add fluence profiles and properties" 2018-08-29 06:52:15 -07:00