Commit Graph

25 Commits

Author SHA1 Message Date
Vinay Verma addfa4a100 Fix VNDK Compilation Errors
VNDK restrictions doesn't includes standard headers by
default, add them explicitly.

Change-Id: Icafac6f07fcdf58fccaabde8d472509090fb3e6f
2018-05-08 05:17:02 -07:00
Linux Build Service Account 7f80e86aed Merge "hal: update system property names with vendor prefix." 2018-02-09 14:49:07 -08:00
Linux Build Service Account dd73a71d9e Merge "hal: Add NULL check for PCM streams in pass though module" 2018-02-09 08:43:07 -08:00
Satish Babu Patakokila 37e7c48319 hal: update system property names with vendor prefix.
Change-Id: Idf7f4a8f114acf8afc059e382d85c1611697efac
2018-02-08 11:52:19 +05:30
Naresh Tanniru ccd9f38fc2 hal: Add NULL check for PCM streams in pass though module
- HAL restart is observed for PCM stream playback
  over display port

- Codec info is not available for PCM stream on updating
  passthough type

- Add NULL check while updating stream configuration
  on pass through module

Change-Id: If8b0f6757610535aa079b88abfa505d5cd1a6e31
2018-02-06 04:18:55 -08:00
Harsh Bansal 14d472618a hal: passthough not working for IEC61937 HBR content
-For IEC61937 passthough, channel count is alwasy two.
-Channel cound should be eight for HBR content.
-Fix is done to read the channel count from the stream info.

Change-Id: Icb949a7a65031be7477c9c77974c0bdb47bdbd3f
2018-02-04 22:18:41 -08:00
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
Garmond Leung 438932f53a hal: Correct compilation errors in hal
Correct compilation errors due to merge of new changes

Change-Id: I83cea7c5d672d24b81bbb767eafc3e1564be561a
2017-10-04 19:35:18 -07:00
Harsh Bansal c83207cfc1 hal: passthru: Fix to avoid mute in DDP passthru
-Mute ovserved on HDMI sink while rendering
high bitrate DDP content
-Offload buffer size is just 2k,
increasing it to handle high bit rate content
-QAF: Session close is blocked if pcm stream open is failed
--This is fixed by cleaning up the pcm stream

Change-Id: Ibc0efd99194ba4039921029f52f580dc9db79503
2017-10-04 16:28:08 -07:00
Satish Babu Patakokila 5933e97e68 hal: Fix mute issue for unsupported sample rate in passthru mode
-Mute is observed when passthrough session is opened with
 unsupported sampling rate
-Return error when stream sampling rate is not supported
 by the sink during compress passthrough playback
-Add correct condiiton check for convert usecases

Change-Id: Iea236f5076617a583b7882741b76468294fac013
CRs-fixed: 2096943
2017-10-04 16:23:22 -07:00
Garmond Leung 317cbf171b audio: hal: Fixing compilation errors
Fixed type cast errors.

CRs-Fixed: 2106059

Change-Id: Iee7c2a176d1d928f7d0672fcb2363385ce553de9
2017-09-13 16:20:50 -07:00
Manish Dewangan 671a420087 audio: hal: Fix for DTSHD passthrough playback
-DTSHD passthrough is not working when drift correction is enabled.
-Drift correction enablement calls out_write(0) to start compress
 session. However DTSHD iec61937 transmission info parsing fails due
 to size zero write buffer.
-To fix this added
  -Changes to call dts parser when first valid buffer is enabled.
  -Changes to trigger select_device() to update backend configuration.
-Also added mixer path change to configure default HDMI backend
 configuration

Change-Id: I68b2c79ff008a7d081efa475c8b9782072f5ce03
2017-09-13 16:15:40 -07:00
Manish Dewangan 672001ffc1 audio: hal: Fix for passthrough playback issue.
-ip handler is getting triggered for dolby passthrough streams
 as audio_extn_passthru_is_direct_passthrough() is always returning false
 due to incorrect condition check.
-Added valid condition check for checking direct passthorugh.

Change-Id: Ieb0858b18ef7189ada8b263a8842576434902422
2017-09-13 16:15:21 -07:00
Nikhil Latukar 2e6f6244a8 audio: hal: Fix incorrect boundary check for intereactive audio
Fix incorrect boundary check for pan/scale/downmix controls.
Fix be_id being overridden because of incorrect indexing.

Change-Id: I96a2919a0a3df18a0cbaed48f27c1be43cdc68c8
CRs-fixed: 2091555
2017-09-13 16:15:12 -07:00
Harsh Bansal 0ab6b185fc hal: audio: dts-passthru: Stutter sound for DTS re-encoding
-DTS re-encoding give out core extension stream for which
hdmi sample rate should be 48000Hz.
Changing the default sample rate from 192000Hz to 48000Hz.

CRs-fixed: 2092398

Change-Id: Ida9af4089b80982f29d5583432ee7d3e536a0a59
2017-09-13 16:14:44 -07:00
Siddartha Shaik 15b84ea5e5 audio: hal: Check to enable IP handler interface
IP handler interface is disabled for direct
passthrough and enabled for all other usecases.

CRs-Fixed: 2088973
Change-Id: Idd11455777abea504203d632f1abdfb148b51a03
2017-09-01 00:22:45 -07:00
Manish Dewangan 37864bc1d9 audio: hal: update backend configuration for DTS passthrough
-For DTS passthrough usecase derive IEC61937 transmissing rate and
 channels from DTS frame parser as backend needs to be configured as
 per transmission rate and not based on stream sample rate and channels.

CRs-Fixed: 2049605
Change-Id: I9d5703d4b4d3485df629b9f169487e8be852ad7a
2017-08-15 14:52:03 -07:00
Aniket Kumar Lata 8fc67e65e2 hal: Update prefixes for audio system properties
Vendor created android system properties are required to have
vendor/qti prefix. Update vendor specific audio system
properties used in HAL.

CRs-Fixed: 2034869
Change-Id: Ibdb1d12fedee1ce12073e8b90fdec814318f3acf
2017-07-11 15:40:19 -07:00
Naresh Tanniru 928f0861f5 hal: Add support for IEC61937 HDMI pass-through
Add IEC61937 format for apq8098 compress pass-through.

Change-Id: I958509a7f7ab856092756e91e5e7f2eefeb70809
2017-06-08 19:28:03 +05:30
Revathi Uddaraju 1eac8b0e2d hal: Add support for dynamic logging
Changes to support dynamic logging in hal

Change-Id: I315c919bd940d8ccdb9103eb06bf67c1e3ff3f4b
2017-05-29 03:20:20 -07:00
Ben Romberger 1aaaf86b80 hal: Add support for TrueHD HDMI pass-through
Add TrueHD format for apq8098 compress pass-through.

Change-Id: Ica0e11aee535c6f7e21c26ab391e5e7bb71c6b02
2017-05-26 06:32:49 -07:00
Ashish Jain d84fd6a76e hal: Refactor HDMI backend configuration
-In current design HDMI backend configuration does not validate
incoming configuration against what is supported by the
connected sink ( using edid). This results in an incorrect
configuration of the HDMI backend, sometimes leading to no audio.
-Move HDMI backend configuration to
platform_check_and_set_codec_backend_cfg, this design ensures
that HDMI backend configuration happens with valid and only
supported parameters (sample rate, channels and bit width)
by the connected sink.
-Remove usleep from keep_alive and move to conditional timed wait,
this ensures to break from the keep_alive loop quickly, instead
of waiting for the complete usleep duration.

CRs-Fixed: 1039831
Change-Id: Id46ae76575f1b8169370cee817b505b97af8fe01
2016-08-16 23:28:21 -07:00
Satish Babu Patakokila 1caa1b7949 audio : refactoring of compress passthrough changes.
Add DTS fomat support for compress passthrough.
Code clean-up and refactoring.
Keep Alive fixes.
Disable Compress Passthrough and DAP by default.

Change-Id: Id0b67630077e06284b8a396be69ebe0c72747c90
2016-06-25 04:51:38 -07:00
Naresh Tanniru 20e8b021d6 audio: Fix compilation errors
Fix compilation errors in HAL and enable DOLBY_DDP as it is needed
for compress passthrough feature.

Change-Id: I05b5cb757acdb841dd48f0423426405ce8237356
2016-05-03 14:13:33 +05:30
Mingming Yin 218546574a hal: add support for compress passthrough
- Add support for compress passthrough.

Change-Id: I4934470ac8b23cb8de9b2d7d1b0014afe74b5a27
2016-04-29 10:07:58 +05:30