OSDN Git Service

Add required audio playback configurations
authorJoshua Lang <joshualang@google.com>
Fri, 30 Sep 2016 21:14:57 +0000 (14:14 -0700)
committerJoshua Lang <joshualang@google.com>
Thu, 19 Jan 2017 20:46:54 +0000 (12:46 -0800)
Adding required audio playback rates according to 6.0 CDD.

Test: Try to generate audio tracks at various rates
Bug: 31648354
Change-Id: I90271b9ffa15ccd89a77f149df888b9a71d4c676

audio_policy.conf

index f796f40..38b4e49 100644 (file)
@@ -27,8 +27,8 @@ audio_hw_modules {
   primary {
     outputs {
       primary {
-        sampling_rates 44100
-        channel_masks AUDIO_CHANNEL_OUT_STEREO
+        sampling_rates 8000|11025|16000|22050|24000|44100|48000
+        channel_masks AUDIO_CHANNEL_OUT_MONO|AUDIO_CHANNEL_OUT_STEREO
         formats AUDIO_FORMAT_PCM_16_BIT
         devices AUDIO_DEVICE_OUT_SPEAKER
         flags AUDIO_OUTPUT_FLAG_PRIMARY