universal7580: audio_policy: Fix sample rates to 48kHz to avoid using the resampler...
authorDanny Wood <danwood76@gmail.com>
Fri, 25 Jan 2019 16:07:15 +0000 (16:07 +0000)
committerJan Altensen <info@stricted.net>
Fri, 16 Aug 2019 21:18:37 +0000 (23:18 +0200)
Change-Id: Ic692aef4ca86be8dbbcf3d08139c816d16c823cc

configs/audio/audio_policy.conf

index f036a0e2d2bf8aff6da86130a0a083b0c25f1d79..0733a783176f2e98c703c9f785f716f225a88db4 100644 (file)
@@ -39,7 +39,7 @@ audio_hw_modules {
     }
     inputs {
       primary {
-        sampling_rates 8000|11025|16000|22050|24000|32000|44100|48000
+        sampling_rates 48000
         channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_VOICE_UPLINK|AUDIO_CHANNEL_IN_VOICE_DNLINK
         formats AUDIO_FORMAT_PCM_16_BIT
         devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_FM|AUDIO_DEVICE_IN_VOICE_CALL|AUDIO_DEVICE_IN_THIRD_MIC|AUDIO_DEVICE_IN_DGTL_DOCK_HEADSET
@@ -49,7 +49,7 @@ audio_hw_modules {
   a2dp {
     outputs {
       a2dp {
-        sampling_rates 44100
+        sampling_rates 48000
         channel_masks AUDIO_CHANNEL_OUT_STEREO
         formats AUDIO_FORMAT_PCM_16_BIT
         devices AUDIO_DEVICE_OUT_ALL_A2DP
@@ -57,7 +57,7 @@ audio_hw_modules {
     }
     inputs {
       a2dp {
-        sampling_rates 44100|48000
+        sampling_rates 48000
         channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
         formats AUDIO_FORMAT_PCM_16_BIT
         devices AUDIO_DEVICE_IN_BLUETOOTH_A2DP
@@ -67,13 +67,13 @@ audio_hw_modules {
   usb {
     outputs {
       usb_accessory {
-        sampling_rates 44100
+        sampling_rates 48000
         channel_masks AUDIO_CHANNEL_OUT_STEREO
         formats AUDIO_FORMAT_PCM_16_BIT
         devices AUDIO_DEVICE_OUT_USB_ACCESSORY
       }
       usb_device {
-        sampling_rates 44100|48000
+        sampling_rates 48000
         channel_masks dynamic
         formats AUDIO_FORMAT_PCM_16_BIT
         devices AUDIO_DEVICE_OUT_USB_DEVICE|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET
@@ -109,7 +109,7 @@ audio_hw_modules {
   r_submix {
     outputs {
       submix {
-        sampling_rates 48000|44100
+        sampling_rates 48000
         channel_masks AUDIO_CHANNEL_OUT_STEREO
         formats AUDIO_FORMAT_PCM_16_BIT
         devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX
@@ -117,7 +117,7 @@ audio_hw_modules {
     }
     inputs {
       submix {
-        sampling_rates 48000|44100
+        sampling_rates 48000
         channel_masks AUDIO_CHANNEL_IN_STEREO
         formats AUDIO_FORMAT_PCM_16_BIT
         devices AUDIO_DEVICE_IN_REMOTE_SUBMIX