murphy support: tag the media stream for pid-based resource-set identification. submit/2.0/20130319.113011
authorKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 14 Feb 2013 17:13:25 +0000 (19:13 +0200)
committerIsmo Puustinen <ismo.puustinen@intel.com>
Mon, 11 Mar 2013 11:48:14 +0000 (13:48 +0200)
avsys-audio-pasimple.c

index bc71eb4..c30507c 100644 (file)
@@ -28,7 +28,9 @@
 #include "avsys-debug.h"
 
 #ifndef MURPHY_SUPPORT
-#define PA_PROP_MEDIA_POLICY   "media.policy"
+#define PA_PROP_MEDIA_POLICY    "media.policy"
+#else
+#define PA_PROP_RESOURCE_SET_ID "resource.set.id"
 #endif
 
 #define PA_SIMPLE_SAMPLES_PER_PERIOD_DEFAULT                           1536    /* frames */
@@ -176,6 +178,7 @@ int avsys_audio_pasimple_open_device(const int mode, const unsigned int format,
 
         avsys_info(AVAUDIO, ": set media role to '%s'\n", media_role);
         pa_proplist_sets(proplist, PA_PROP_MEDIA_ROLE, media_role);
+        pa_proplist_sets(proplist, PA_PROP_RESOURCE_SET_ID, "pid");
 #else
        if (policy == AVSYS_AUDIO_HANDLE_ROUTE_HANDSET_ONLY) {
                avsys_info(AVAUDIO, ": set media plicy to PHONE\n");