From e1d1fd9a55c4fa1683b38ef34bc615ab4808a1d1 Mon Sep 17 00:00:00 2001 From: llololo Date: Mon, 11 Oct 2021 13:42:56 +0800 Subject: [PATCH] sdm710-common: audio: Add new flag name to compress offload case Add AUDIO_OUTPUT_FLAG_GAPLESS_OFFLOAD to compress offload case. Bug: 188113788 Test: Play compress offload music and check app type from logcat Change-Id: If31a50ffafb43cb350c84fcc60774af116f30ff8 --- audio/audio_output_policy.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/audio_output_policy.conf b/audio/audio_output_policy.conf index 305664f..5829156 100644 --- a/audio/audio_output_policy.conf +++ b/audio/audio_output_policy.conf @@ -68,14 +68,14 @@ voip_rx { app_type 69941 } compress_offload_16 { - flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING + flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING|AUDIO_OUTPUT_FLAG_GAPLESS_OFFLOAD formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_16_BIT_OFFLOAD|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2 sampling_rates 44100|48000|88200|96000|176400|192000 bit_width 16 app_type 69936 } compress_offload_24 { - flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING + flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING|AUDIO_OUTPUT_FLAG_GAPLESS_OFFLOAD formats AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO sampling_rates 44100|48000|88200|96000|176400|192000 bit_width 24