diff options
author | Anver sadhique <akurun@codeaurora.org> | 2021-02-16 12:50:38 +0530 |
---|---|---|
committer | Anver sadhique <akurun@codeaurora.org> | 2021-03-02 11:20:42 +0530 |
commit | 9eaecc7ff86ea4d522cf14790185f78bd32d729b (patch) | |
tree | b2656698cfc9e90e8a5eae97920d0134f0b93748 | |
parent | c40897e56ed243285a82c5e0f0058f7ef6f49b60 (diff) |
configs : sdm845 :enable incall music and add incall music profile
add incall music profile in audio policy configuration
to provide incall music support from APM
Change-Id: I1e6144eae5e1bb56c61da14eed83015223346e89
-rw-r--r-- | configs/sdm845/audio_platform_info.xml | 4 | ||||
-rw-r--r-- | configs/sdm845/audio_policy_configuration.xml | 9 | ||||
-rw-r--r-- | configs/sdm845/sdm845.mk | 2 |
3 files changed, 11 insertions, 4 deletions
diff --git a/configs/sdm845/audio_platform_info.xml b/configs/sdm845/audio_platform_info.xml index 9d0c9e6d..b8c2ad8b 100644 --- a/configs/sdm845/audio_platform_info.xml +++ b/configs/sdm845/audio_platform_info.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<!-- Copyright (c) 2014, 2016-2020, The Linux Foundation. All rights reserved. --> +<!-- Copyright (c) 2014, 2016-2021, The Linux Foundation. All rights reserved. --> <!-- --> <!-- Redistribution and use in source and binary forms, with or without --> <!-- modification, are permitted provided that the following conditions are --> @@ -99,6 +99,8 @@ <usecase name="USECASE_INCALL_REC_UPLINK" type="in" id="27" /> <usecase name="USECASE_INCALL_REC_DOWNLINK" type="in" id="27" /> <usecase name="USECASE_INCALL_REC_UPLINK_AND_DOWNLINK" type="in" id="27" /> + <usecase name="USECASE_INCALL_MUSIC_UPLINK" type="out" id="27" /> + <usecase name="USECASE_INCALL_MUSIC_UPLINK2" type="out" id="27" /> </pcm_ids> <config_params> <param key="spkr_1_tz_name" value="wsatz.13"/> diff --git a/configs/sdm845/audio_policy_configuration.xml b/configs/sdm845/audio_policy_configuration.xml index d1e77a73..285ba026 100644 --- a/configs/sdm845/audio_policy_configuration.xml +++ b/configs/sdm845/audio_policy_configuration.xml @@ -21,7 +21,7 @@ <!-- version section contains a “version” tag in the form “major.minor” e.g version=”1.0” --> <!-- Global configuration Decalaration --> - <globalConfiguration speaker_drc_enabled="true"/> + <globalConfiguration speaker_drc_enabled="true" call_screen_mode_supported="true"/> <!-- Modules section: @@ -171,6 +171,11 @@ <profile name="" format="AUDIO_FORMAT_PCM_FLOAT" samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000" channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> + <mixPort name="incall_music_uplink" role="source" + flags="AUDIO_OUTPUT_FLAG_INCALL_MUSIC"> + <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" + samplingRates="8000,16000,48000" + channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> </mixPort> <mixPort name="primary input" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" @@ -343,7 +348,7 @@ <route type="mix" sink="USB Headset Out" sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/> <route type="mix" sink="Telephony Tx" - sources="voice_tx"/> + sources="voice_tx,incall_music_uplink"/> <route type="mix" sink="voice_rx" sources="Telephony Rx"/> <route type="mix" sink="primary input" diff --git a/configs/sdm845/sdm845.mk b/configs/sdm845/sdm845.mk index 4762cad8..0fefe53c 100644 --- a/configs/sdm845/sdm845.mk +++ b/configs/sdm845/sdm845.mk @@ -52,7 +52,7 @@ AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false AUDIO_FEATURE_ENABLED_HFP := true -AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false +AUDIO_FEATURE_ENABLED_INCALL_MUSIC := true AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true |