summaryrefslogtreecommitdiffstats
path: root/audio/audio_policy.conf
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-04-13 16:58:17 -0700
committerEric Laurent <elaurent@google.com>2012-04-30 18:05:40 -0700
commitea19593cd9cccccad1b755cc571af1c29db6ca94 (patch)
tree4fcf0859821746ac5ab2cc4475457114ca04f9bc /audio/audio_policy.conf
parenta756c0ecffbb3555c609a11cd78d0c2a5b8361b4 (diff)
downloaddevice_samsung_tuna-ea19593cd9cccccad1b755cc571af1c29db6ca94.zip
device_samsung_tuna-ea19593cd9cccccad1b755cc571af1c29db6ca94.tar.gz
device_samsung_tuna-ea19593cd9cccccad1b755cc571af1c29db6ca94.tar.bz2
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
Diffstat (limited to 'audio/audio_policy.conf')
-rw-r--r--audio/audio_policy.conf7
1 files changed, 7 insertions, 0 deletions
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 {