Bluetooth : Support AVC target feature
[platform/upstream/pulseaudio.git] / src / pulsecore / sink.h
index b7d7659..7e967fe 100644 (file)
 
 #define PA_MAX_INPUTS_PER_SINK 256
 
+#ifdef __TIZEN__
+typedef enum pa_sink_avc_mode {
+    PA_SINK_AVC_OFF,
+    PA_SINK_AVC_SILENT,
+    PA_SINK_AVC_NORM,
+} pa_sink_avc_mode_t;
+#endif
+
 /* Returns true if sink is linked: registered and accessible from client side. */
 static inline bool PA_SINK_IS_LINKED(pa_sink_state_t x) {
     return x == PA_SINK_RUNNING || x == PA_SINK_IDLE || x == PA_SINK_SUSPENDED;
@@ -319,6 +327,7 @@ struct pa_sink {
     char *dump_path;
     void *device_item;
     bool use_internal_codec;
+    pa_sink_avc_mode_t avc_mode;
 #endif
     void *userdata;
 };
@@ -555,6 +564,12 @@ int64_t pa_sink_get_latency_within_thread(pa_sink *s, bool allow_negative);
  * s->reference_volume and fires change notifications. */
 void pa_sink_set_reference_volume_direct(pa_sink *s, const pa_cvolume *volume);
 
+
+#ifdef __TIZEN__
+void pa_sink_set_avc_mode(pa_sink *s, pa_sink_avc_mode_t mode);
+pa_sink_avc_mode_t pa_sink_get_avc_mode(pa_sink *s);
+#endif
+
 /* Verify that we called in IO context (aka 'thread context), or that
  * the sink is not yet set up, i.e. the thread not set up yet. See
  * pa_assert_io_context() in thread-mq.h for more information. */