Enable audio r_submix to P880

Change-Id: Ib1ea35491fcbb479fb4e5e306ea1e4da5662c72d
diff --git a/configs/audio_policy.conf b/configs/audio_policy.conf
index c23c767..68d4c9e 100644
--- a/configs/audio_policy.conf
+++ b/configs/audio_policy.conf
@@ -9,7 +9,7 @@
 global_configuration {
   attached_output_devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER
   default_output_device AUDIO_DEVICE_OUT_SPEAKER
-  attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC
+  attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_REMOTE_SUBMIX
 }
 
 # audio hardware module section: contains descriptors for all audio hw modules present on the
@@ -34,7 +34,7 @@
         flags AUDIO_OUTPUT_FLAG_PRIMARY
       }
       aux_ac3_dts_pass_through {
-        sampling_rates 44100|48000|32000
+        sampling_rates 32000|44100|48000
         channel_masks AUDIO_CHANNEL_OUT_STEREO
         formats AUDIO_FORMAT_IEC61937
         devices AUDIO_DEVICE_OUT_AUX_DIGITAL
@@ -71,4 +71,22 @@
     }
   }
 
+  r_submix {
+    outputs {
+      submix {
+        sampling_rates 44100|48000
+        channel_masks AUDIO_CHANNEL_OUT_STEREO
+        formats AUDIO_FORMAT_PCM_16_BIT
+        devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX
+      }
+    }
+   inputs {
+      submix {
+        sampling_rates 44100|48000
+        channel_masks AUDIO_CHANNEL_IN_STEREO
+        formats AUDIO_FORMAT_PCM_16_BIT
+        devices AUDIO_DEVICE_IN_REMOTE_SUBMIX
+      }
+    }
+  }
 }
diff --git a/p880.mk b/p880.mk
index 9ca8d17..eb0186c 100644
--- a/p880.mk
+++ b/p880.mk
@@ -102,6 +102,7 @@
 
 PRODUCT_PACKAGES += \
     audio.a2dp.default \
+    audio.r_submix.default \
     com.android.future.usb.accessory
 
 # NFC packages