[pulseaudio-discuss] [PATCH 3/5] device-port: Cleanup of the sink/source subscription events.
poljar (Damir Jelić)
poljarinho at gmail.com
Thu Jan 17 11:55:16 PST 2013
Since it's now decided that we deprecated port info for sinks and
sources this isn't needed anymore.
---
src/pulsecore/device-port.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/src/pulsecore/device-port.c b/src/pulsecore/device-port.c
index 93e539a..4ca26d9 100644
--- a/src/pulsecore/device-port.c
+++ b/src/pulsecore/device-port.c
@@ -28,9 +28,6 @@ PA_DEFINE_PUBLIC_CLASS(pa_device_port, pa_object);
void pa_device_port_set_available(pa_device_port *p, pa_port_available_t status)
{
-/* uint32_t state;
- pa_source *source;
- pa_sink *sink; */
pa_core *core;
pa_assert(p);
@@ -47,17 +44,6 @@ void pa_device_port_set_available(pa_device_port *p, pa_port_available_t status)
/* Post subscriptions to the card which owns us */
pa_assert_se(core = p->core);
pa_subscription_post(core, PA_SUBSCRIPTION_EVENT_CARD|PA_SUBSCRIPTION_EVENT_CHANGE, p->card->index);
-#if 0
-/* This stuff is temporarily commented out while figuring out whether to actually do this */
- if (p->is_output)
- PA_IDXSET_FOREACH(sink, core->sinks, state)
- if (p == pa_hashmap_get(sink->ports, p->name))
- pa_subscription_post(core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, sink->index);
- if (p->is_input)
- PA_IDXSET_FOREACH(source, core->sources, state)
- if (p == pa_hashmap_get(source->ports, p->name))
- pa_subscription_post(core, PA_SUBSCRIPTION_EVENT_SOURCE|PA_SUBSCRIPTION_EVENT_CHANGE, source->index);
-#endif
pa_hook_fire(&core->hooks[PA_CORE_HOOK_PORT_AVAILABLE_CHANGED], p);
}
--
1.8.1.1
More information about the pulseaudio-discuss
mailing list