From 313605458c737f7af23d2aef6ae91542c375bfe6 Mon Sep 17 00:00:00 2001 From: Mingshu pang Date: Wed, 3 Apr 2019 16:05:13 +0800 Subject: [PATCH] sdm710-common: audio: Remove Dolby formats by default. The AC3, EAC3 formats are supported only when license and respective decoders are present. Having these entries in policy configuration by default will unnecessarily trigger open_output_stream and then fail when decoders are not present. This results in glitches at the begining of playback of video clips with AC3 or EAC3 audio contents. Removed these entries to make the video playbck smooth with out any glitches. CRs-Fixed: 2428579 Change-Id: I41b7ef9d8e2c5f77c261067337f602d705e11c35 --- audio/audio_output_policy.conf | 2 +- audio/audio_policy_configuration.xml | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/audio/audio_output_policy.conf b/audio/audio_output_policy.conf index ba1fa51..45b53ba 100644 --- a/audio/audio_output_policy.conf +++ b/audio/audio_output_policy.conf @@ -76,7 +76,7 @@ voip_rx { } compress_passthrough { flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING|AUDIO_OUTPUT_FLAG_COMPRESS_PASSTHROUGH - formats AUDIO_FORMAT_AC3|AUDIO_FORMAT_E_AC3|AUDIO_FORMAT_E_AC3_JOC|AUDIO_FORMAT_DTS|AUDIO_FORMAT_DTS_HD|AUDIO_FORMAT_DSD + formats AUDIO_FORMAT_DTS|AUDIO_FORMAT_DTS_HD|AUDIO_FORMAT_DSD sampling_rates 32000|44100|48000|88200|96000|176400|192000|352800 bit_width 16 app_type 69941 diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index bf29ad1..44f5827 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -116,15 +116,6 @@ - - -