From ea19593cd9cccccad1b755cc571af1c29db6ca94 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Fri, 13 Apr 2012 16:58:17 -0700 Subject: audio: add support for deep PCM buffering Implement one output stream with short buffers and one output stream with deep buffers. The stream with short buffers is selected for most use cases and provides short latency. It uses TONES_DL port and IOCTL write mode. The stream with deep buffers is used for music playback. It uses MM_DL port and MMAP NOIRQ write mode. The deep buffer stream is not used when the device selection is BT SCO, HDMI or SPDIF. The echo reference is only taken from the short buffer stream. Change-Id: I60ef720e52e96970b8b6618f9f43f24baadce60b --- audio/audio_policy.conf | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'audio/audio_policy.conf') diff --git a/audio/audio_policy.conf b/audio/audio_policy.conf index 1e30270..a2971b0 100644 --- a/audio/audio_policy.conf +++ b/audio/audio_policy.conf @@ -29,6 +29,13 @@ audio_hw_modules { devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET flags AUDIO_OUTPUT_FLAG_PRIMARY } + deep_buffer { + sampling_rates 44100 + channel_masks AUDIO_CHANNEL_OUT_STEREO + formats AUDIO_FORMAT_PCM_16_BIT + devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE + flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER + } } inputs { primary { -- cgit v1.1