From bbf6f3f2638bfcded132e18834799677305a887f Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Thu, 14 Feb 2013 19:13:25 +0200 Subject: [PATCH] murphy support: tag the media stream for pid-based resource-set identification. --- avsys-audio-pasimple.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/avsys-audio-pasimple.c b/avsys-audio-pasimple.c index bc71eb4..c30507c 100644 --- a/avsys-audio-pasimple.c +++ b/avsys-audio-pasimple.c @@ -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"); -- 2.7.4