Commit Graph

19 Commits

Author SHA1 Message Date
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