Commit Graph

20 Commits

Author SHA1 Message Date
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
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
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
Harsh Bansal d2599cf44c hal:qap: Fix to avoid hang at the end of playback
-Testapp not handling the EOS if it comes synchronously.
-Adding an eos flag to identify if EOS is received.

CRs-Fixed: 2134740

Change-Id: Ia040f022bbcd27dd40e143178d5bd747359e9ce3
2017-10-31 16:03:54 +05:30
Harsh Bansal 667fe31e45 hal:qap-test: fix for dts/dolby use cases in qap path
-fix to pick the 64 bit library if present
-Absolute path is only needed  when lib is not present in default
 path (/usr/lib or /usr/lib64) but as LE uses default path,
 absolute path is not needed.

-fix to wait for secondary stream eos

Change-Id: Ia392b4716bb323e0c98e81540dfe4062ab183fef
2017-10-31 03:23:03 -07:00
Varun Balaraj 3f4651f701 qahw_api:test: Add changes to set approriate PP config in QAP
Set output device pp config corresponding to DAP enable parameter.

Change-Id: I09bce7b7907897f74e0b93fb549ea1c321050500
2017-10-23 13:31:26 +05:30
Varun Balaraj e368b225c4 audio: hal_play_test: Changes to terminate the qap playback on signal
Added changes to terminate safely when sig interrupt is raised in QAP
playback path

Change-Id: I03acc49512c247ac4d25bdf531670ca77cf697ed
2017-10-09 05:24:59 -07:00
Varun Balaraj a3b186c3b0 hal_play_test: Change to use output configs to configure output
From qap to enable outputs on appropiate module, based on configs
instead of kvpairs. Add support to set channel map.

CRs-Fixed: 2103202
Change-Id: Ic1c3851604fc990ed76396a9c8d1ccd2aec591a4
2017-10-04 16:30:24 -07:00
Varun Balaraj 97cb440b9e hal_play_test: Fix for playback mute for playlist usecase
Stream count is reaching negative as a result session
close failed. Hence added a safe check.

CRs-Fixed: 2095262
Change-Id: Ib4cd448847d6b35ab0d58c4c980a15d9c95974d5
2017-10-04 16:25:18 -07:00
Harsh Bansal 6bf3b4ddcc hal:dts: Fixed high initial delay in re-encode path
-Ten to Twenty sec delay was observed in re-encode path
-Compressed fragment size was too small for DTS encoded content
-updated the fragment size

-Fix for run time media format change in QAP test app

Change-Id: If7fc06bfe4f40a00118dabced87b01964868af1e
2017-10-04 00:09:38 -07:00
Lakshman Chaluvaraju 1d519c6002 audio-hal: hal_play_test: Add changes to unload qap libs in session close
Change-Id: I8e5b24caff1ff246ebf3a75ad5c941084b99bbb8
2017-10-04 00:09:26 -07:00
Harsh Bansal e9ff317e13 hal: testapp: KPI: Correction in buffer-in time log
-KPI measurement was wrong due to incorrect time logging of input buffer.
-Time was logged when buffer is read from filesystem
-correcting the logging, now it is logged when it is
actually sent to the module.

Change-Id: I056783c49b2e792eb862bbff81d006b54d091812
2017-09-13 16:15:53 -07:00
Varun Balaraj 581032a32f hal_play_test: Fix to handle output config switch runtime
Adding changes to close and reopen the stream whenever new
config change event is received.
Increased the buffer size to support max frame size of 32k.

Change-Id: I3f62c1b17acbe92e2319a329b913e10f7117450e
2017-09-13 16:15:49 -07:00
Varun Balaraj c4c1466c7d hal_play_test: Fix for glitch in multichannel pcm playback
Amount of input data fed to MS12 in this usecase is very less,
which ends up in less amount of data at mixer_node. Hence increased
the amount of input data fed for pcm type.

Correcting parsing logic for play_list usecase.

Change-Id: I4e0e70ab7edfc8931df26a5e520a5dd35bfac5f3
2017-09-13 16:15:36 -07:00
Lakshman Chaluvaraju 370dc6ce86 audio-hal: qahw_api: Adding changes to get dsp latency for KPI
Change-Id: If24f85d0bb864a65b3733b8e8c4c8744a241a8f3
2017-09-13 16:15:25 -07:00
Varun Balaraj 2672dca6e8 hal_play_test: Fix for glitch while playback of DTS clip
Increased the size of input data sent to dts module for
 decoding.

Change-Id: Ife00750496597fefa3b2cce01722363fa20de64a
2017-09-13 16:14:47 -07:00
Sri Karri 27279e1162 hal_play_test: Added support for play list through qap
Change-Id: I43b236793c3ae072e83fa88c4d3e156d840f026d
2017-09-13 16:14:40 -07:00
Lakshman Chaluvaraju f34554b7ec hal_play_test:Added suppor for Combo device and Encode thrgouh QAP
Added support for combo device playback and Encoding input to
DD, DDP and DTS formats.
Modified the changes added for KPI measurement.

Change-Id: I687afdf9155d0bd83d7d0aa8d2f9072fa620ccb6
2017-09-13 16:14:37 -07:00
Nikhil Laturkar 40e7558ff3 hal_play_test : Support for Playback through QAP
Add support for Playback of Dolby and DTS formats through QAP
Add KPI support, add support to disable dump.

Depends-on: 2002598
Change-Id: If29faaeca545ce7809008f747f1d04807b105e9a
2017-09-13 16:13:54 -07:00