From 721b2eef1aa9c1ec78541f2c7c1f0112584825bd Mon Sep 17 00:00:00 2001 From: Ben Edmunds Date: Sun, 20 Jul 2014 21:32:00 +0200 Subject: P51XX: Add audio.r_submix.default for casting Change-Id: Ic284d19ac5ada7ea23a03bfe1b8ff9f2697f1fe3 --- configs/audio_policy.conf | 20 +++++++++++++++++++- p51xx-common.mk | 1 + 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/configs/audio_policy.conf b/configs/audio_policy.conf index c83707b..19e57f1 100644 --- a/configs/audio_policy.conf +++ b/configs/audio_policy.conf @@ -5,7 +5,7 @@ global_configuration { attached_output_devices AUDIO_DEVICE_OUT_SPEAKER default_output_device AUDIO_DEVICE_OUT_SPEAKER - attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC + attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_REMOTE_SUBMIX } # audio hardware module section: contains descriptors for all audio hw modules present on the @@ -72,4 +72,22 @@ audio_hw_modules { } } } + r_submix { + outputs { + submix { + sampling_rates 48000 + channel_masks AUDIO_CHANNEL_OUT_STEREO + formats AUDIO_FORMAT_PCM_16_BIT + devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX + } + } + inputs { + submix { + sampling_rates 48000 + channel_masks AUDIO_CHANNEL_IN_STEREO + formats AUDIO_FORMAT_PCM_16_BIT + devices AUDIO_DEVICE_IN_REMOTE_SUBMIX + } + } + } } diff --git a/p51xx-common.mk b/p51xx-common.mk index 3ddab35..b14a4ae 100755 --- a/p51xx-common.mk +++ b/p51xx-common.mk @@ -63,6 +63,7 @@ PRODUCT_COPY_FILES += \ # Packages PRODUCT_PACKAGES += \ audio.primary.piranha \ + audio.r_submix.default \ camera.piranha \ hwcomposer.piranha \ lights.piranha \ -- cgit v1.1