Commit Graph

185 Commits

Author SHA1 Message Date
Weiyin Jiang 2995f669c0 hal: fix misc audio hal errors
Fix misc audio hal errors.

CRs-Fixed: 2436822
Change-Id: I078656c5a7a3a5a97c8044e716c5ca0fe8ff3ef4
2019-04-18 09:30:51 +08:00
Harsh Bansal 25e627f1e9 hal: MS12: qap test app update
- updating qap hal test app to test new features of
MS12-1.3.2
- Added Support for Main2 Testing
- Added Support for OTT sound Testing
- Added Support to send init time params to MS12

Change-Id: I7713509b1bac11c04e7af8f3447624d1727b35f3
2019-03-19 22:26:22 -07:00
Surendar Karka 809f69e677 qahw_api: increase sleep duration for 5sec to optimize power
- Close socket fd to fix test app hang issue and increase the poll
  time from 5msec to forever.
- Increase the sleep duration to 5sec to optimize power.

Change-Id: Ia3ce0121547d65617b52496b7cb6e37ef05c6ce3
2019-02-20 21:41:48 -08:00
Surendar Karka 2febd45858 Merge commit 'd34f05cb6e67e28a4955332173950466edf0be3e' into audio-hal.lnx.5.1
Change-Id: I4656a1a78c2b1d4b4834b2fd538699f96e2aa90e
2018-12-13 17:57:12 +05:30
Linux Build Service Account 1512cf1bfc Merge "qahw_api: fix compilation error" 2018-12-12 07:42:02 -08:00
Josh Kirsch 998f62573b qahw_api: fix compilation error
Fix compilation error on
sdxprairie.

Change-Id: I99e5bacf1fba158b2400e1517b26b85d0545467b
2018-11-27 16:41:36 -08:00
Surendar Karka e1dc8749e3 audio: add linein to BT headset loopback support
- Add AUDIO_DEVICE_OUT_BLUETOOTH_A2DP as the sink
  device to support linein to BT headset loopback.
- set device_connect parameter in transcode loopback
  test app to load A2DP source IPC library.

Change-Id: Ib52fdf9aa966f50834ffa34884f5fa76053df15e
2018-11-23 01:23:33 -08:00
Surendar Karka 25b584c1b7 audio: add linein to BT headset loopback support
- Add AUDIO_DEVICE_OUT_BLUETOOTH_A2DP as the sink
  device to support linein to BT headset loopback.
- set device_connect parameter in transcode loopback
  test app to load A2DP source IPC library.

Change-Id: Ib52fdf9aa966f50834ffa34884f5fa76053df15e
2018-11-19 16:40:00 +05:30
Vatsal Bucha c09ae066d5 audio: Add flags to makefiles
Enable GCOV if config is set to true. Also
add gcov_flush in source files to get enhanced
code coverage.

Change-Id: I39776cc6d6f16cd23da05b66669eea22fc4cba81
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-11-14 13:25:50 +05:30
Linux Build Service Account 6e749d0b75 Merge "hal: Add new parameter in SA+ effects and resolve compilation issue" into audio-hal.lnx.5.1 2018-11-06 01:40:54 -08:00
Trinath Thammishetty 765efd2d2a 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-31 22:15:39 -07:00
Trinath Thammishetty 580f1de09e hal: add support for configuring render window
Add support to set render window in transcode loopback usecase.
Render window is used by DSP to take rendering decision, i.e,
whether input frame should be rendered, dropped or repeated.

Change-Id: I87560a8e437b33dcd15094f30a532b3ed3d3749f
2018-10-29 20:09:03 -07:00
Linux Build Service Account 32d50419a1 Merge "hal: add support for configuring render window" 2018-10-22 20:27:57 -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
Naresh Tanniru cb5b578917 Merge e1f65e84d3 on remote branch
Change-Id: I5cb17e69a3b1e4fa78b7a130cbabc8bc7b11932b
2018-10-15 17:00:56 +05:30
Trinath Thammishetty eafc4aad03 hal: add support for configuring render window
Add support to set render window in transcode loopback usecase.
Render window is used by DSP to take rendering decision, i.e,
whether input frame should be rendered, dropped or repeated.

Change-Id: I87560a8e437b33dcd15094f30a532b3ed3d3749f
2018-10-15 14:21:37 +05:30
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
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
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
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
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
Ramu Gottipati 36d6204d86 qahw_api: Add APE format support in test app
Change-Id: I30b36933a66cacb3a224151a7a5ddc10a6851b2e
2018-08-17 09:40:02 +05:30
Dhananjay Kumar 67732ee1c8 qahw_api: test: fix KW error in multi-record-test
Fix KW suspicious dereference of pointer reported by KW in
multi-record test.
The pointer being dereferenced cannot be null at this point
since failure case is fatal and exits the test before reaching
this code, so just removing the null check with is creating suspicion.

Change-Id: Icee262f7a11cfbc462cae4fb53134451f22787a9
2018-08-03 15:47:30 +05:30
Ralf Herz aec8026492 hal: support compressed capture with variable size packets
Compressed IEC 61937 capture uses variable size packets for data
transfer

Change-Id: I8e6baaf870f5f504c0c642cf44795334097bddbf
2018-07-27 14:42:41 +05:30
Linux Build Service Account 08fa34b1e2 Merge "qahw_api: test: Handle SIGTERM signal in test app" 2018-07-24 08:35:27 -07:00
Linux Build Service Account 5b1ef2759e Merge "qahw_api: Fix compile error in record test app" 2018-07-24 08:35:21 -07:00
Surendar Karka e4527e1a01 qahw_api: test: Handle SIGTERM signal in test app
Handle SIGTERM signal in test app if user kills the test app.

Change-Id: I1eaff7189e10d86e93e35bbe8e592271ef922148
2018-07-18 16:11:13 +05:30
Dhanalakshmi Siddani 69015f8c2a qahw_api: Fix compile error in record test app
Use correct format specifier while printing value to fix
compile error.

CRs-Fixed: 2273661
Change-Id: I542a7dff8c0c462ece5a420bae4a5f236cff8ff2
2018-07-17 21:00:47 +05:30
Trinath Thammishetty f38c71319e hal: Resolve compilation errors to enable effects.
Use #ifdef instead of #if in effects related header files
since _cplusplus macro not being defined is raising errors.

Change-Id: I207de40547d99dc98f3130e2514d02a84b485483
2018-07-11 01:55:58 -07:00
Linux Build Service Account aa3374fc79 Merge "hal: Check NULL pointer" into audio-hal.lnx.4.0 2018-06-13 03:47:35 -07:00
Erin Yan a093bf02e3 hal: Check NULL pointer
FILE pointer could be NULL if open failed, need check it before close it. And
it is good to set closed resource to NULL.

CRs-fixed: 2249886

Change-Id: Ieb9ecb032f061f0895fcf83df5baf042b346b985
2018-06-05 12:15:13 +08:00
Linux Build Service Account 34c0dbaa1e Merge "qahw_api: call unlinkToDeath to avoid segmentation fault" 2018-05-19 14:01:27 -07:00
Surendar Karka 79e7c952fa qahw_api: call unlinkToDeath to avoid segmentation fault
Segmentation fault is observed while client cleaning
up/closing the session as death notifier is not released.
Calling unlinkToDeath to avoid segmentation fault.

Change-Id: Ibc855396a25b80103302298306438e84c29eda23
2018-05-17 15:32:12 +05:30
Harsh Bansal 47f25406b2 hal-test-app:qap: stream event to notify input format
-New stream event is added to notiy any change in input
stream format.

CRs-fixed: 2239690

Change-Id: Ia5b468b80166bd59f3617c553341be1a60b8932f
2018-05-10 04:01:53 -07:00
Linux Build Service Account d4f002c251 Merge "hal: retrieve license info during init." 2018-05-09 22:06:09 -07:00
Surendar karka 3056979cf3 hal: retrieve license info during init.
FFV/Allplay requires licensing info during init.
 - Retrieve Product_Id using "meta_info_key" from platfrom xml file during HAL-Init.
 - Retrieve Product_License using "audio_calibration_info" from ACDB.
 - Extend QAHW GetParam API to access AllPlay License information.

Change-Id: Ie759f795d76e0038cba3f14ee9084f1c46b64c0a
2018-05-08 14:23:58 +05:30
Linux Build Service Account d6d24596d6 Merge "audio: add support for multichannel to dual mono conversion" 2018-05-05 12:23:57 -07:00
Surendar Karka f51b584d07 audio: add support for multichannel to dual mono conversion
Add support to set channel mix coffecients to convert from
multichannel to dual mono.

Change-Id: I2ecd8babfe53ca48b6e596dce0579e95879ce7e0
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-05-05 13:03:57 +05:30
Dallas Delaney a8f3c6e602 hal: Replace wall time in QC HAL code
Replace clock reference from REALTIME (wall clock) to MONOTONIC . This is to
avoid getting impacted when system time is set backwards or forwards (either
through network or manually)

Change-Id: I989c7bd0adc80ffb40f65ec909295ca1d8501877
2018-04-20 17:03:12 -07:00
Ramu Gottipati 62a6d4521d hal: test: Fix default audio recording issue with timestamp mode changes.
By default trying to do fopen without timestamp mode.
In this case it will fail. Fixing this fopen issue in this gerrit
by adding timestamp mode check.

Change-Id: I1e0e603080767452264c23b4588f563f581be8a0
2018-04-10 18:35:39 +05:30
Ramu Gottipati 7232fd2326 hal: test: Sample test app changes for timestamp recording
This change is made for to support timestamp mode recording
session in the test app and added one more extra flag to
support this use case.

Change-Id: Ic0e81c70a18e31e25e667f2b6f3f3eedee5a4bf8
2018-03-19 10:37:16 +05:30
Linux Build Service Account 223990e37c Merge "qahw_api: update value of aac latm format" 2018-02-28 18:39:02 -08:00
Surendar karka d4eacfb2fa qahw_api: update value of aac latm format
Update the value of the aac latm audio format in
hal_play_test app.

Change-Id: I7ae3babe4ba5414c1a9ed43a645d15acf5a81a18
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2018-02-26 15:58:04 +05:30
Harsh Bansal 67b2b0cfa4 HAL: QAP-Test: support for QAP associated decoding
-Adding support for qap associated decoding
this is needed when associated stream is separately
decoded in BD use case

Change-Id: Ib6ab9ed7846d32c05c615995ceb816b149303157
2018-02-09 10:09:59 +05:30
Harsh Bansal de6ecaa563 hal:qap-test: Support for input buffer available event
-This change includes test app changes to support event
mechanasim for getting buffer availability.
-As soon as module has the free space to copy the input
buffer, it will raise an event to the testapp notifing that a
new buffer can be sent.
-This will replace the exising polling mechanasim,
where testapp periodically queries the module to check if
a new input buffer can be sent or not.

Change-Id: I84f6f8a574f2589643733b4543348ad7992208c5
2018-02-04 21:54:18 -08:00
Linux Build Service Account 3b92b3e7f3 Merge "qahw_api: Propagate missing changes from 2.2.c4 to 4.0" 2018-01-03 13:12:13 -08:00
Harsh Bansal aeeafa6554 hal: testapp: pthread_exit resulting in abort
-In testapp code pthread_exit api is resulting in abort
for 64bit.
-As a fix, terminating the threads by calling return instead of
pthread_exit.

Change-Id: I2f686c3eda94470d33403b2e88d5110888995c60
2018-01-02 01:37:39 -08:00
Linux Build Service Account c6e9ca6176 Merge "hal: Fix for transcode loopback issues" 2017-12-29 00:42:50 -08:00
Trinath Thammishetty 85b1929d4e qahw_api: Propagate missing changes from 2.2.c4 to 4.0
Add support for audio effects through binder server
calls if QAS is enabled. Else the required APIs are
called directly.

Change-Id: I1f45ae89b839e69c49cbca407ddb05b7a02d3dc6
2017-12-29 11:58:40 +05:30
Linux Build Service Account 0257b78c80 Merge "qahw_api: Fix compilation issue in QTI audio server" 2017-12-20 03:27:59 -08:00