Commit Graph

173 Commits

Author SHA1 Message Date
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
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
Naresh Tanniru cb5b578917 Merge e1f65e84d3 on remote branch
Change-Id: I5cb17e69a3b1e4fa78b7a130cbabc8bc7b11932b
2018-10-15 17:00:56 +05:30
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
Srikanth Nagineni d1736d27da hal: Fix for transcode loopback issues
- Transcode loopback test app hangs at the end.
- As a fix, modify the release code sequence.
- Also add transcode loopback for 32khz pcm clips.

CRs-fixed: 2146098, 2142169
Change-Id: If0ca17ec58f7fc4715d75af11a1c6de707aac21b
2017-12-20 13:15:41 +05:30
Dhanalakshmi Siddani 58ffd426a2 qahw_api: Fix compilation issue in QTI audio server
Fix compilation issues due to QTI audio server when QTI audio
server flag is disabled.

CRs-Fixed: 2161282
Change-Id: I34804608e801abcac99678993178a8771d54d22b
2017-12-20 10:57:32 +05:30
Sachin Mohan Gadag 25328bd102 audio: qahw: Fix compilation errors
Fix compilation errors such as
- unused parameter
- multiple declaration.
Also modify makefile to install images
in vendor partition.

Change-Id: I3d998eef91a16a890993449e92ef8f5443558c78
2017-12-18 03:18:37 -08:00
Sachin Mohan Gadag 0d2b1e411e audio: qahw_api: Remove pthread_cancel api
Remove pthread_cancel api, as it is not defined
android standard library. Adding pthread_kill api
to handle input command thread.

Change-Id: Ia9d7f3939f1f7a5851f6aa22fe0894acb814a902
2017-12-18 03:18:07 -08:00
Sachin Mohan Gadag 364932c70f audio: Make repetitive logs silent
Define NDEBUG Macro in Makefile to avoid
ALOGV logs to be printed on shell.
Move repetitive logs under ALOGV log level.

CRs-Fixed: 2135642
Change-Id: Id573300504cdb15aea285ec33a08319155cff189
2017-12-07 17:22:05 +05:30
Linux Build Service Account 8d5e5cbe50 Merge "hal: qap-test: Fix for dolby library path in QAP" 2017-12-01 20:49:49 -08:00
Linux Build Service Account 30a6da00c2 Merge "qahw: test: link the math library for qahw_api" 2017-11-24 23:25:15 -08:00
Linux Build Service Account 7dc7f41572 Merge "qahw: Add binder support for Audio HAL" 2017-11-24 23:25:07 -08:00
Satish Babu Patakokila 260ef59158 hal: qap-test: Fix for dolby library path in QAP
- In audio-ip-handler, fopen is used to calculate the size
  of encrypted dolby library. And fopen expects absolute
  path of the file to be opened.
- Changed to provide absolute dolby library path.

CRs-fixed: 2148462
Change-Id: I9ad2ff4fe86e584d1861e0c81775b8637c3d0732
2017-11-23 17:22:14 +05:30
Sidipotu Ashok 404f26d1f6 qahw: Add binder support for Audio HAL
- Bring in a new cpp source file which HAL clients talk to
- This code in turn makes the binder proxy/clients side calls
- The binder server calls into the existing qahw.c

Change-Id: I45625bcb2d8a2eb858c68d24f0cad3202d754244
2017-11-16 11:08:30 +05:30
Xiaoyu Ye 8901a64663 qahw: test: link the math library for qahw_api
Add a option flag in the makefile under qahw_api/test
to link the math library for qahw_api's source files.

Change-Id: Iad699ad8c93c46b7e352bb25268992d72eaccee0
2017-11-15 18:35:44 -08:00
Dhanalakshmi Siddani 80365d2338 qahw_api:test: Add changes to register for qas callback
Add changes to get notification to client when qas died.
Also fix memory leak issues.

Change-Id: I95a9e91bb6b288b7ce134a60fe650ed3afa78be4
2017-11-15 08:43:33 -08:00