summaryrefslogtreecommitdiffstats
path: root/audio/audio_policy.conf
diff options
context:
space:
mode:
authorKyle Repinski <repinski23@gmail.com>2014-10-13 04:40:11 -0500
committerZiyan <jaraidaniel@gmail.com>2016-01-15 12:24:25 +0100
commitfc5a515f9b0f9a9c471edea3ad29bdf90e7fd37a (patch)
treeba39d80196d3ed719526738e6dbae86201d928b6 /audio/audio_policy.conf
parent0d513b93097790dc06121352c4822bf9cce363f5 (diff)
downloaddevice_samsung_tuna-fc5a515f9b0f9a9c471edea3ad29bdf90e7fd37a.zip
device_samsung_tuna-fc5a515f9b0f9a9c471edea3ad29bdf90e7fd37a.tar.gz
device_samsung_tuna-fc5a515f9b0f9a9c471edea3ad29bdf90e7fd37a.tar.bz2
tuna: Proper 48kHz audio support.
This fixes a bunch of annoying junk in the logcat about fast path being denied to UI sounds due to them having a 48000Hz sample rate. Also allows playback of 96kHz audio, as Android refuses to resample to anything lower than a divide by two.
Diffstat (limited to 'audio/audio_policy.conf')
-rw-r--r--audio/audio_policy.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/audio_policy.conf b/audio/audio_policy.conf
index a782448..3131fa7 100644
--- a/audio/audio_policy.conf
+++ b/audio/audio_policy.conf
@@ -23,14 +23,14 @@ audio_hw_modules {
primary {
outputs {
primary {
- sampling_rates 44100
+ sampling_rates 44100|48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
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
+ sampling_rates 44100|48000
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