From: Krisztian Litkey Date: Thu, 14 Feb 2013 17:13:25 +0000 (+0200) Subject: murphy support: tag the media stream for pid-based resource-set identification. X-Git-Tag: submit/2.0alpha/20130219.195542~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f04db198543b1216e0cb997eb6951908f6ef479;p=profile%2Fivi%2Favsystem.git murphy support: tag the media stream for pid-based resource-set identification. --- diff --git a/avsys-audio-pasimple.c b/avsys-audio-pasimple.c index 07918d9..9c8beb1 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 */ @@ -161,6 +163,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");