Bluetooth : Support AVC target feature
[platform/upstream/pulseaudio.git] / src / pulsecore / sink.c
index 7a56869..6c4af87 100644 (file)
@@ -4058,3 +4058,27 @@ void pa_sink_set_reference_volume_direct(pa_sink *s, const pa_cvolume *volume) {
     pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
     pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_VOLUME_CHANGED], s);
 }
+
+#ifdef __TIZEN__
+/* Called from the main thread. */
+void pa_sink_set_avc_mode(pa_sink *s, pa_sink_avc_mode_t mode) {
+    pa_proplist *pl = NULL;
+
+    pa_assert(s);
+
+    pl = pa_proplist_new();
+    pa_proplist_setf(pl, "device.avc_mode", "%d", mode);
+    pa_sink_update_proplist(s, PA_UPDATE_REPLACE, pl);
+    pa_proplist_free(pl);
+
+    pa_log_info("setting avc mode = %d", mode);
+
+    s->avc_mode = mode;
+}
+
+pa_sink_avc_mode_t pa_sink_get_avc_mode(pa_sink *s) {
+    pa_assert(s);
+
+    return s->avc_mode;
+}
+#endif
\ No newline at end of file