summaryrefslogtreecommitdiffstats
path: root/hal
diff options
context:
space:
mode:
authorEnrico Granata <egranata@google.com>2020-10-16 15:28:14 -0600
committerEnrico Granata <egranata@google.com>2020-10-16 16:34:13 -0600
commit184c3bc80638552574254cad6e90c8e6827cfd72 (patch)
tree03f276a6f7ecba9cf29368648fe1f99b48d1de98 /hal
parent2650f46b5f9a1e2b76ed617123a148c4986c1e53 (diff)
downloaddevice_google_trout-184c3bc80638552574254cad6e90c8e6827cfd72.tar.gz
device_google_trout-184c3bc80638552574254cad6e90c8e6827cfd72.tar.bz2
device_google_trout-184c3bc80638552574254cad6e90c8e6827cfd72.zip
Configure audio input sample rate to 48kHz
The reference platform HW+SW combo cannot support a sample rate other than 48000Hz for audio input. Configure the audio subsystem to select the right frequency. Bug: 171056897 Test: Google Assistant works Change-Id: I148e9eab619f394d1fbff911b55a92826f34aac0
Diffstat (limited to 'hal')
-rw-r--r--hal/audio/6.0/audio_policy_configuration.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/hal/audio/6.0/audio_policy_configuration.xml b/hal/audio/6.0/audio_policy_configuration.xml
index ed0f4a6..a1cf333 100644
--- a/hal/audio/6.0/audio_policy_configuration.xml
+++ b/hal/audio/6.0/audio_policy_configuration.xml
@@ -134,7 +134,7 @@
</mixPort>
<mixPort name="primary input" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
- samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
+ samplingRates="48000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
</mixPort>
<mixPort name="mixport_tuner0" role="sink">
@@ -246,17 +246,17 @@
</devicePort>
<devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
- samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
+ samplingRates="48000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
</devicePort>
<devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
- samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
+ samplingRates="48000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
</devicePort>
<devicePort tagName="Echo-Reference Mic" type="AUDIO_DEVICE_IN_ECHO_REFERENCE" role="source">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
- samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
+ samplingRates="48000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
</devicePort>
<devicePort tagName="FM Tuner" type="AUDIO_DEVICE_IN_FM_TUNER" role="source"