From: David Henningsson Date: Wed, 18 Apr 2012 09:41:48 +0000 (+0200) Subject: sink/source.h: Clarify set_port comment X-Git-Tag: submit/2.0-panda/20130828.192557~89 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38b24e40fcc689e074421e78bbb5778d5e4258fc;p=profile%2Fivi%2Fpulseaudio-panda.git sink/source.h: Clarify set_port comment State which thread calls set_port in which scenario. Reported-by: Jyri Sasha Signed-off-by: David Henningsson --- diff --git a/src/pulsecore/sink.h b/src/pulsecore/sink.h index 9bc8047..0b5048a 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 d81782a..30c2037 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