diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2022-01-31 00:42:27 -0800 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2022-01-31 00:42:27 -0800 |
commit | 217a9fa1ffd0b7a2a796983f0a8efb48cf7f6618 (patch) | |
tree | f56d5a9427b80c24e5ed8da1ab75fda7290d7f8d | |
parent | ea8133b617ab208a3b70727860e1d1acdc98db21 (diff) | |
parent | 604e437f6f1615172baf9b18e3e2dfe779597723 (diff) |
Merge 604e437f6f1615172baf9b18e3e2dfe779597723 on remote branch
Change-Id: Id8126d1d1a278ff50e432df87e7dd34dc98e87dc
-rwxr-xr-x | configs/atoll/audio_policy_configuration.xml | 14 | ||||
-rwxr-xr-x | configs/bengal/audio_policy_configuration.xml | 14 | ||||
-rw-r--r-- | configs/holi/audio_policy_configuration.xml | 14 | ||||
-rw-r--r-- | configs/kona/audio_policy_configuration.xml | 14 | ||||
-rw-r--r-- | configs/lahaina/audio_policy_configuration.xml | 12 | ||||
-rw-r--r-- | configs/lito/audio_policy_configuration.xml | 14 | ||||
-rw-r--r-- | configs/msm8909/audio_policy_configuration.xml | 4 | ||||
-rw-r--r-- | configs/msm8937/audio_policy_configuration.xml | 6 | ||||
-rw-r--r-- | configs/msm8953/audio_policy_configuration.xml | 6 | ||||
-rw-r--r-- | configs/msmnile/audio_policy_configuration.xml | 14 | ||||
-rw-r--r-- | configs/msmsteppe/audio_policy_configuration.xml | 14 | ||||
-rw-r--r-- | configs/sdm660/audio_policy_configuration.xml | 14 | ||||
-rw-r--r-- | configs/sdm710/audio_policy_configuration.xml | 14 | ||||
-rw-r--r-- | configs/sdm845/audio_policy_configuration.xml | 14 | ||||
-rwxr-xr-x | configs/trinket/audio_policy_configuration.xml | 14 | ||||
-rw-r--r-- | hal/audio_hw.c | 33 |
16 files changed, 93 insertions, 122 deletions
diff --git a/configs/atoll/audio_policy_configuration.xml b/configs/atoll/audio_policy_configuration.xml index 50762fcc..88b27235 100755 --- a/configs/atoll/audio_policy_configuration.xml +++ b/configs/atoll/audio_policy_configuration.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- Copyright (c) 2016-2020, The Linux Foundation. All rights reserved +<!-- Copyright (c) 2016-2022, The Linux Foundation. All rights reserved Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project @@ -80,8 +80,6 @@ <mixPort name="hifi_playback" role="source" /> <mixPort name="compress_passthrough" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> - <profile name="" format="dynamic" - samplingRates="dynamic" channelMasks="dynamic"/> </mixPort> <mixPort name="direct_pcm" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT"> @@ -187,7 +185,7 @@ channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> <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"/> + channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_2,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> </mixPort> <mixPort name="record_24" role="sink" maxOpenCount="2" maxActiveCount="2"> <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED" @@ -258,11 +256,11 @@ </devicePort> <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" @@ -285,11 +283,11 @@ </devicePort> <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <!-- Input devices declaration, i.e. Source DEVICE PORT --> diff --git a/configs/bengal/audio_policy_configuration.xml b/configs/bengal/audio_policy_configuration.xml index 1b4ac359..9da9c0e7 100755 --- a/configs/bengal/audio_policy_configuration.xml +++ b/configs/bengal/audio_policy_configuration.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- Copyright (c) 2016-2020, The Linux Foundation. All rights reserved +<!-- Copyright (c) 2016-2022, The Linux Foundation. All rights reserved Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project @@ -80,8 +80,6 @@ <mixPort name="hifi_playback" role="source" /> <mixPort name="compress_passthrough" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> - <profile name="" format="dynamic" - samplingRates="dynamic" channelMasks="dynamic"/> </mixPort> <mixPort name="direct_pcm" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT"> @@ -181,7 +179,7 @@ channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> <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"/> + channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_2,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> </mixPort> <mixPort name="record_24" role="sink" maxOpenCount="2" maxActiveCount="2"> <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED" @@ -257,11 +255,11 @@ </devicePort> <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" @@ -284,11 +282,11 @@ </devicePort> <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <!-- Input devices declaration, i.e. Source DEVICE PORT --> diff --git a/configs/holi/audio_policy_configuration.xml b/configs/holi/audio_policy_configuration.xml index 68e781b4..a584c754 100644 --- a/configs/holi/audio_policy_configuration.xml +++ b/configs/holi/audio_policy_configuration.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- Copyright (c) 2016-2020, The Linux Foundation. All rights reserved +<!-- Copyright (c) 2016-2021, The Linux Foundation. All rights reserved Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project @@ -84,8 +84,6 @@ <mixPort name="hifi_playback" role="source" /> <mixPort name="compress_passthrough" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> - <profile name="" format="dynamic" - samplingRates="dynamic" channelMasks="dynamic"/> </mixPort> <mixPort name="direct_pcm" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT"> @@ -196,7 +194,7 @@ channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> <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"/> + channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_2,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> </mixPort> <mixPort name="record_24" role="sink" maxOpenCount="2" maxActiveCount="2"> <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED" @@ -261,11 +259,11 @@ </devicePort> <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" @@ -288,11 +286,11 @@ </devicePort> <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <!-- Input devices declaration, i.e. Source DEVICE PORT --> diff --git a/configs/kona/audio_policy_configuration.xml b/configs/kona/audio_policy_configuration.xml index 6853fe89..b6054fa2 100644 --- a/configs/kona/audio_policy_configuration.xml +++ b/configs/kona/audio_policy_configuration.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- Copyright (c) 2016-2020, The Linux Foundation. All rights reserved +<!-- Copyright (c) 2016-2021, The Linux Foundation. All rights reserved Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project @@ -79,8 +79,6 @@ <mixPort name="hifi_playback" role="source" /> <mixPort name="compress_passthrough" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> - <profile name="" format="dynamic" - samplingRates="dynamic" channelMasks="dynamic"/> </mixPort> <mixPort name="direct_pcm" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT"> @@ -180,7 +178,7 @@ channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> <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"/> + channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_2,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> </mixPort> <mixPort name="record_24" role="sink" maxOpenCount="2" maxActiveCount="2"> <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED" @@ -256,11 +254,11 @@ </devicePort> <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" @@ -283,11 +281,11 @@ </devicePort> <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <!-- Input devices declaration, i.e. Source DEVICE PORT --> diff --git a/configs/lahaina/audio_policy_configuration.xml b/configs/lahaina/audio_policy_configuration.xml index ed4be08d..1149a6ab 100644 --- a/configs/lahaina/audio_policy_configuration.xml +++ b/configs/lahaina/audio_policy_configuration.xml @@ -84,8 +84,6 @@ <mixPort name="hifi_playback" role="source" /> <mixPort name="compress_passthrough" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> - <profile name="" format="dynamic" - samplingRates="dynamic" channelMasks="dynamic"/> </mixPort> <mixPort name="dsd_compress_passthrough" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> @@ -202,7 +200,7 @@ channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> <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"/> + channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_2,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> </mixPort> <mixPort name="record_24" role="sink" maxOpenCount="2" maxActiveCount="2"> <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED" @@ -267,11 +265,11 @@ </devicePort> <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" @@ -294,11 +292,11 @@ </devicePort> <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <!-- Input devices declaration, i.e. Source DEVICE PORT --> diff --git a/configs/lito/audio_policy_configuration.xml b/configs/lito/audio_policy_configuration.xml index e04dac35..79b8ee60 100644 --- a/configs/lito/audio_policy_configuration.xml +++ b/configs/lito/audio_policy_configuration.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- Copyright (c) 2016-2020, The Linux Foundation. All rights reserved +<!-- Copyright (c) 2016-2021, The Linux Foundation. All rights reserved Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project @@ -80,8 +80,6 @@ <mixPort name="hifi_playback" role="source" /> <mixPort name="compress_passthrough" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> - <profile name="" format="dynamic" - samplingRates="dynamic" channelMasks="dynamic"/> </mixPort> <mixPort name="direct_pcm" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT"> @@ -181,7 +179,7 @@ channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> <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"/> + channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_2,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> </mixPort> <mixPort name="record_24" role="sink" maxOpenCount="2" maxActiveCount="2"> <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED" @@ -257,11 +255,11 @@ </devicePort> <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" @@ -284,11 +282,11 @@ </devicePort> <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <!-- Input devices declaration, i.e. Source DEVICE PORT --> diff --git a/configs/msm8909/audio_policy_configuration.xml b/configs/msm8909/audio_policy_configuration.xml index d4dcd796..962f4307 100644 --- a/configs/msm8909/audio_policy_configuration.xml +++ b/configs/msm8909/audio_policy_configuration.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- Copyright (c) 2016-2017, The Linux Foundation. All rights reserved +<!-- Copyright (c) 2016-2017, 2022 The Linux Foundation. All rights reserved Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project @@ -164,7 +164,7 @@ </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" diff --git a/configs/msm8937/audio_policy_configuration.xml b/configs/msm8937/audio_policy_configuration.xml index 50db4831..3251ba7e 100644 --- a/configs/msm8937/audio_policy_configuration.xml +++ b/configs/msm8937/audio_policy_configuration.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- Copyright (c) 2016-2017, 2020, The Linux Foundation. All rights reserved +<!-- Copyright (c) 2016-2017, 2020, 2022, The Linux Foundation. All rights reserved Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project @@ -199,11 +199,11 @@ </devicePort> <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" diff --git a/configs/msm8953/audio_policy_configuration.xml b/configs/msm8953/audio_policy_configuration.xml index 00c2f313..f59db7ae 100644 --- a/configs/msm8953/audio_policy_configuration.xml +++ b/configs/msm8953/audio_policy_configuration.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- Copyright (c) 2016-2017, 2020 The Linux Foundation. All rights reserved +<!-- Copyright (c) 2016-2017, 2020, 2022, The Linux Foundation. All rights reserved Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project @@ -210,11 +210,11 @@ </devicePort> <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" diff --git a/configs/msmnile/audio_policy_configuration.xml b/configs/msmnile/audio_policy_configuration.xml index 7a8a230f..a8730dcb 100644 --- a/configs/msmnile/audio_policy_configuration.xml +++ b/configs/msmnile/audio_policy_configuration.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- Copyright (c) 2016-2020, The Linux Foundation. All rights reserved +<!-- Copyright (c) 2016-2022, The Linux Foundation. All rights reserved Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project @@ -80,8 +80,6 @@ <mixPort name="hifi_playback" role="source" /> <mixPort name="compress_passthrough" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> - <profile name="" format="dynamic" - samplingRates="dynamic" channelMasks="dynamic"/> </mixPort> <mixPort name="direct_pcm" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT"> @@ -187,7 +185,7 @@ channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> <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"/> + channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_2,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> </mixPort> <mixPort name="record_24" role="sink" maxOpenCount="2" maxActiveCount="2"> <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED" @@ -252,11 +250,11 @@ </devicePort> <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" @@ -279,11 +277,11 @@ </devicePort> <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <!-- Input devices declaration, i.e. Source DEVICE PORT --> diff --git a/configs/msmsteppe/audio_policy_configuration.xml b/configs/msmsteppe/audio_policy_configuration.xml index 4629b81a..f695454b 100644 --- a/configs/msmsteppe/audio_policy_configuration.xml +++ b/configs/msmsteppe/audio_policy_configuration.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- Copyright (c) 2016-2020, The Linux Foundation. All rights reserved +<!-- Copyright (c) 2016-2020, 2022, The Linux Foundation. All rights reserved Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project @@ -80,8 +80,6 @@ <mixPort name="hifi_playback" role="source" /> <mixPort name="compress_passthrough" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> - <profile name="" format="dynamic" - samplingRates="dynamic" channelMasks="dynamic"/> </mixPort> <mixPort name="direct_pcm" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT"> @@ -187,7 +185,7 @@ channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> <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"/> + channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_2,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> </mixPort> <mixPort name="record_24" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED" @@ -252,11 +250,11 @@ </devicePort> <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" @@ -279,11 +277,11 @@ </devicePort> <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <!-- Input devices declaration, i.e. Source DEVICE PORT --> diff --git a/configs/sdm660/audio_policy_configuration.xml b/configs/sdm660/audio_policy_configuration.xml index 2d401ba7..e41f5499 100644 --- a/configs/sdm660/audio_policy_configuration.xml +++ b/configs/sdm660/audio_policy_configuration.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- Copyright (c) 2016-2021 The Linux Foundation. All rights reserved +<!-- Copyright (c) 2016-2022 The Linux Foundation. All rights reserved Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project @@ -76,8 +76,6 @@ <mixPort name="hifi_playback" role="source" /> <mixPort name="compress_passthrough" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> - <profile name="" format="dynamic" - samplingRates="dynamic" channelMasks="dynamic"/> </mixPort> <mixPort name="direct_pcm" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT"> @@ -172,7 +170,7 @@ channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> <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"/> + channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_2,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> </mixPort> <mixPort name="voip_tx" role="sink" flags="AUDIO_INPUT_FLAG_VOIP_TX"> @@ -248,11 +246,11 @@ </devicePort> <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" @@ -275,11 +273,11 @@ </devicePort> <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <!-- Input devices declaration, i.e. Source DEVICE PORT --> diff --git a/configs/sdm710/audio_policy_configuration.xml b/configs/sdm710/audio_policy_configuration.xml index 57a3d7e6..2fb53f66 100644 --- a/configs/sdm710/audio_policy_configuration.xml +++ b/configs/sdm710/audio_policy_configuration.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- Copyright (c) 2016-2021, The Linux Foundation. All rights reserved +<!-- Copyright (c) 2016-2022, The Linux Foundation. All rights reserved Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project @@ -80,8 +80,6 @@ <mixPort name="hifi_playback" role="source" /> <mixPort name="compress_passthrough" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> - <profile name="" format="dynamic" - samplingRates="dynamic" channelMasks="dynamic"/> </mixPort> <mixPort name="direct_pcm" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT"> @@ -181,7 +179,7 @@ channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> <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"/> + channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_2,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> </mixPort> <mixPort name="voip_tx" role="sink" flags="AUDIO_INPUT_FLAG_VOIP_TX"> @@ -256,11 +254,11 @@ </devicePort> <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" @@ -283,11 +281,11 @@ </devicePort> <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <!-- Input devices declaration, i.e. Source DEVICE PORT --> diff --git a/configs/sdm845/audio_policy_configuration.xml b/configs/sdm845/audio_policy_configuration.xml index 9d726f5d..9d39a466 100644 --- a/configs/sdm845/audio_policy_configuration.xml +++ b/configs/sdm845/audio_policy_configuration.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- Copyright (c) 2016-2021, The Linux Foundation. All rights reserved +<!-- Copyright (c) 2016-2022, The Linux Foundation. All rights reserved Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project @@ -80,8 +80,6 @@ <mixPort name="hifi_playback" role="source" /> <mixPort name="compress_passthrough" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> - <profile name="" format="dynamic" - samplingRates="dynamic" channelMasks="dynamic"/> </mixPort> <mixPort name="direct_pcm" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT"> @@ -170,7 +168,7 @@ channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> <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"/> + channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_2,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> </mixPort> <mixPort name="incall_music_uplink" role="source" flags="AUDIO_OUTPUT_FLAG_INCALL_MUSIC"> @@ -251,11 +249,11 @@ </devicePort> <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" @@ -278,11 +276,11 @@ </devicePort> <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <!-- Input devices declaration, i.e. Source DEVICE PORT --> diff --git a/configs/trinket/audio_policy_configuration.xml b/configs/trinket/audio_policy_configuration.xml index aec4edb5..ed1007a5 100755 --- a/configs/trinket/audio_policy_configuration.xml +++ b/configs/trinket/audio_policy_configuration.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- Copyright (c) 2016-2020, The Linux Foundation. All rights reserved +<!-- Copyright (c) 2016-2020, 2022, The Linux Foundation. All rights reserved Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project @@ -80,8 +80,6 @@ <mixPort name="hifi_playback" role="source" /> <mixPort name="compress_passthrough" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> - <profile name="" format="dynamic" - samplingRates="dynamic" channelMasks="dynamic"/> </mixPort> <mixPort name="direct_pcm" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT"> @@ -187,7 +185,7 @@ channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> <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"/> + channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_2,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> </mixPort> <mixPort name="record_24" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED" @@ -258,11 +256,11 @@ </devicePort> <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" @@ -285,11 +283,11 @@ </devicePort> <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> + samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> </devicePort> <!-- Input devices declaration, i.e. Source DEVICE PORT --> diff --git a/hal/audio_hw.c b/hal/audio_hw.c index 6fbbee33..952116ac 100644 --- a/hal/audio_hw.c +++ b/hal/audio_hw.c @@ -1411,6 +1411,20 @@ int enable_snd_device(struct audio_device *adev, } if (SND_DEVICE_OUT_BT_A2DP == snd_device) { + + struct audio_usecase *usecase; + struct listnode *node; + /* Disable SCO Devices and enable handset mic for active input stream */ + list_for_each(node, &adev->usecase_list) { + usecase = node_to_item(node, struct audio_usecase, list); + if (usecase->stream.in && (usecase->type == PCM_CAPTURE) && + is_sco_in_device_type(&usecase->stream.in->device_list)) { + ALOGD("a2dp resumed, switch bt sco mic to handset mic"); + reassign_device_list(&usecase->stream.in->device_list, + AUDIO_DEVICE_IN_BUILTIN_MIC, ""); + select_devices(adev, usecase->id); + } + } if (audio_extn_a2dp_start_playback() < 0) { ALOGE(" fail to configure A2dp Source control path "); goto err; @@ -8780,25 +8794,6 @@ static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs) } } - ret = str_parms_get_str(parms, "A2dpSuspended", value, sizeof(value)); - if (ret >= 0) { - if (!strncmp(value, "false", 5) && - audio_extn_a2dp_source_is_suspended()) { - struct audio_usecase *usecase; - struct listnode *node; - list_for_each(node, &adev->usecase_list) { - usecase = node_to_item(node, struct audio_usecase, list); - if (usecase->stream.in && (usecase->type == PCM_CAPTURE) && - is_sco_in_device_type(&usecase->stream.in->device_list)) { - ALOGD("a2dp resumed, switch bt sco mic to handset mic"); - reassign_device_list(&usecase->stream.in->device_list, - AUDIO_DEVICE_IN_BUILTIN_MIC, ""); - select_devices(adev, usecase->id); - } - } - } - } - status = voice_set_parameters(adev, parms); if (status != 0) goto done; |