summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2012-04-18 11:41:48 +0200
committerDavid Henningsson <david.henningsson@canonical.com>2012-04-18 11:41:48 +0200
commit38b24e40fcc689e074421e78bbb5778d5e4258fc (patch)
tree8f922a8d54be4d80c7582037bb1d7db3da9c693a
parent9e55b29c2803943173a71554241477845abfd6e5 (diff)
sink/source.h: Clarify set_port comment
State which thread calls set_port in which scenario. Reported-by: Jyri Sasha <oku@iki.fi> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
-rw-r--r--src/pulsecore/sink.h4
-rw-r--r--src/pulsecore/source.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pulsecore/sink.h b/src/pulsecore/sink.h
index 9bc80475..0b5048a9 100644
--- a/src/pulsecore/sink.h
+++ b/src/pulsecore/sink.h
@@ -211,8 +211,8 @@ struct pa_sink {
* thread context. */
pa_sink_cb_t update_requested_latency; /* may be NULL */
- /* Called whenever the port shall be changed. Called from main
- * thread. */
+ /* Called whenever the port shall be changed. Called from IO
+ * thread if deferred volumes are enabled, and main thread otherwise. */
int (*set_port)(pa_sink *s, pa_device_port *port); /* may be NULL */
/* Called to get the list of formats supported by the sink, sorted
diff --git a/src/pulsecore/source.h b/src/pulsecore/source.h
index d81782aa..30c2037b 100644
--- a/src/pulsecore/source.h
+++ b/src/pulsecore/source.h
@@ -174,8 +174,8 @@ struct pa_source {
* thread context. */
pa_source_cb_t update_requested_latency; /* may be NULL */
- /* Called whenever the port shall be changed. Called from main
- * thread. */
+ /* Called whenever the port shall be changed. Called from IO
+ * thread if deferred volumes are enabled, and main thread otherwise. */
int (*set_port)(pa_source *s, pa_device_port *port); /*ditto */
/* Called to get the list of formats supported by the source, sorted