Commit Graph

31 Commits

Author SHA1 Message Date
Surendar Karka 287348c7ff audio: add support to query presentation position from DSP
Add support to query presentation position from DSP
in system time domain.

Change-Id: I475aeedb7a3691027698ca91747b801dff569d21
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-05-23 13:18:29 +05:30
Gangadhar S b02103418c hal: Dolby trumpet security changes
- ip-handler interface audio extension module changes to
  handle ADSP trumpet  security mechanism.
- Send the library ion fd to driver to assign the corresponding
  memory to DSP for decryption of the decoder library.
- adsp handler changes to handle COPP events from ADSP

Change-Id: I4e7628111bd482faa98c6d3ba9453d22c9dad755
2019-04-25 17:17:33 +05:30
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
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
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
Md Mansoor Ahmed db1b4f9cc9 hal: Update keep_alive to support silence playback on non-hdmi devices
Keep_alive can now handle silence playback on multiple concurrent
devices such as primary output devices as well as HDMI

Change-Id: I08cbec51394d23255e1a61928e0b2cad552b2ac0
Signed-off-by: Md Mansoor Ahmed <mansoor@codeaurora.org>
2018-01-29 21:00:33 -08:00
Manish Dewangan 338c50a293 audio-hal: 64 bit hal porting changes
-Use long for mixer control with integer type to match with
 kernel snd_ctl_elem_value definition.
-Use packed structure for mixer controls with byte type

Change-Id: I9fbb1d10c5ee212348b58fc4b27a3d74403d8bda
2017-10-23 15:03:03 +05:30
Varun Balaraj f3cc95c401 audio: hal: Fix incorrect boundary check for interactive audio
Fix incorrect boundary check for pan/scale/downmix controls.

Change-Id: I5887b28c576755ce44419691a371ee65a80ee714
2017-10-09 05:27:05 -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
Satish Babu Patakokila c3c5d43c4c hal: Add API to support device configuration
Add new API to set device configuration from Client.
Currently the device config is set from edid.
New API overwrites the default device config with
client provided values.

CRs-fixed: 2071954
Change-Id: I1f0918acf0a420f9c9d8a17bc070637199cb7105
2017-08-15 15:02:34 -07:00
Naresh Tanniru e715603426 hal: add ip-handler audio extension module
Add ip-handler interface audio extension module to
handle MS12 security mechanism.

Change-Id: I599325a5d0d7ae47eced243bead7ed2a4e25ebb0
2017-06-08 19:28:04 +05:30
Naresh Tanniru 6a643bc4ba hal: update adsp handler to handle multiple events
Update adsp handler logic to handle multiple events from ADSP

Change-Id: Icd2bf5ef7649e5781a8c3aae7aa0e3a42a43f11d
2017-06-08 19:28:04 +05:30
Naresh Tanniru 29bce4e5dd hal: qahw: Add support for Input channel map config
Add new set param api to configure input channel map to DSP

Change-Id: I47f8c165040be59c4da70b13b0cbc66c8802f71b
2017-06-08 19:27:54 +05:30
Naresh Tanniru 6160c71228 audio: hal: add DSP clock recovery support
-Changes to add DSP clock recovery support

Conflicts:
        qahw_api/test/qahw_playback_test.c
	    hal/audio_extn/utils.c

CRs-Fixed: 2036937
Change-Id: I32e18e415c4a7dfdc7ae13d0e50c1ca76d739cc0
2017-06-08 13:04:27 +05:30
Ben Romberger d771a7c8ca audio: hal: Add support for registering adsp events
Add support for AHAL clients to register for adsp events
and receive event callbacks when an event is triggered by adsp.

CRs-Fixed: 2023812
Change-Id: Ie22efee6e859c3d819ed3939e164cb7baebab71b
2017-05-18 21:24:23 +05:30
Manish Dewangan 14956cc959 audio: hal: support for out start delay
-Changes to add support for out start delay

Change-Id: I27a55267efa888925c837639cb3349c6e19da249
2017-05-17 02:31:28 -07:00
Manish Dewangan 27346045e7 audio: hal: support for audio render window
-Changes to add support for audio render window.

Change-Id: I40bb0d8061b8245999c37a485d3a7ee45108fac6
CRs-Fixed: 2009985
2017-05-17 02:31:21 -07:00
Linux Build Service Account 8ea782c359 Merge "audio: hal: Add AVD Drift Query support" 2017-03-08 03:34:48 -08:00
Alexy Joseph 5e4ccbc19e hal: Add support for ULLPP for proaudio
Give option to use ULLPP for proaudio use cases.
This is achieved by sending the required mixer control
and sending the app type to the NOIRQ driver.

CRS-Fixed: 1099039
Change-Id: Iff762fb6dd56641ca83a6ec91178731f5ba779d0
2017-03-01 20:56:39 -08:00
Manish Dewangan 3ccdea5392 audio: hal: Add AVD Drift Query support
- Add out set_param_data() and get_param_data() API.
- This API is needs to be used for client to set/get out stream
  specific params.
- Currently it only supports get/set of afew out params. Going forward all
  the new param needs to be supported by these APIs.
  In future key,value pair based set/get param API will be deprecated.
- Use get_param_data() API to query avtimer vs device drift support.
  Currently this API only supports drift query for HDMI device as for
  other device DSP can directly do the drift correction.

Change-Id: Iaec94b7220cdaa243d4b616fb727aae7179539d2
2017-02-27 19:26:40 +05:30
Dhanalakshmi Siddani 18737938db audio: Changes to support Aptx decoder in offload mode
Add support to send license key value and bt device address
to DSP. Add Aptx format related changes. Also add support for
struct based set params using set api.

CRs-Fixed: 1081424
Change-Id: I2877239e61d3841e6ae90af2d39fb0b93cc2b6db
2017-02-03 05:50:13 -08:00
Dhananjay Kumar 23a3bec886 audio: enable compilation of qahw_api on Android builds
-Fix compilation errors from qahw_api tests and enable
 compilation of qahw_api on Android builds.

Change-Id: Ifc05ea22f0fd9ac0e6f6e9b22a6c593841acc761
2017-01-24 05:33:47 -08:00
Dhananjay Kumar 9cc498b4a3 audio: miscellaneous fixes against iot changes
-Fix compilation warnings against tx app_type changes.
-Remove assignment of compress usecase outside compress
 input extension.
-Define input flag for compress record usage.

Change-Id: I36630c7f6524d494b76e0a3bd074185a01e19883
2016-12-23 12:02:21 +05:30
Sachin Mohan Gadag a3da380a82 audio: hal: Add new get_param_data api
Implement get_param_data api to store Sourcetracking
parameters in payload.

Change-Id: Idd8c3ddbe053237ea642c61dcc8441ed404e9c75
2016-12-06 04:54:55 -08:00
Dhananjay Kumar ee4d2004ba hal: add support for compressed recording
Add support for recording through commpressed driver.
Add qahw interface layer for non standard API implementation.

Change-Id: Id1689f2ccab9bb8b920098e9cda1083b7d3ec4da
2016-12-06 18:17:25 +05:30
Dhananjay Kumar 4d91c1a064 hal: add support for profile based app_type selection
Add support to use profile tag in app_type configuration.
Profile tag need to be mentioned with profile string and
same should be set to a stream using set param.
If no profile is set to the stream, matching would be done
only against app_type entries without profile tag keeping
backward compatibility.

Change-Id: I24f0b67d638517fe4f428c0d650fcc72c380faa1
2016-12-06 18:17:25 +05:30
Linux Build Service Account aa7e6f67b2 Merge "hal: add a new key to query for decoder viability" 2015-10-15 05:24:51 -07:00
Sidipotu Ashok 42483b6366 hal: add a new key to query for decoder viability
- Due to resource constraints some times a decoder playback cannot
be supported, for example HW decoders cannot be supported during
voice calls, this key can be queried to know about this.

- Bring in the this funtionality in HAL under the android prop
"voice.playback.conc.disabled"

Change-Id: Id6819b1b953c8ba9948c85218d98beb789f92631
CRs-Fixed: 902360
2015-09-25 10:44:29 +05:30
Chaithanya Krishna Bacharaju a70cb6a9e3 audio: hal: Add support to send codec specific data in gapless
Codec specific  metadata is sent only for first stream in gapless
playback.
This causes incorrect configuration to be set for second
stream and distortions are observed due to framedrops in adsp.
Add support to send codec specific format data of second stream
during gapless playback.

Use vorbis bitstream format info from metadata instead of hardcoding.
This avoids sending gapless metadata each time set parameters
is called during vorbis playback.

Set flag to send new metadata at start of session for first track
and for the next stream in gapless after return from partial drain.

Change-Id: I3d8be22a4e28c50335820cab1e2b924f3b3b2d1c
2015-09-22 23:34:39 -07:00
Satya Krishna Pindiproli 7047160e9a hal: add support to offload VORBIS, ALAC and APE formats
Send ALAC and APE specific data to DSP as part of the metadata
to support playback of ALAC and APE clips in offload mode.

Force vorbis offload run in transcoded bit stream mode.

Also move parsing of WMA and FLAC metadata to audio_extn.c
from audio_hw.c.

Change-Id: Ideccadff93d4c06e649cd535b8870e45ba26eaea
2015-05-12 15:52:03 +05:30
Mingming Yin 23c383c6aa hal: add extended audio definitions in hal
- Add audio_defs.h in hal for extended audio
  definitions.

Change-Id: I7d574a222d405d8c62d8b833d9ef413708f19639
2014-07-16 18:01:36 -07:00