[pulseaudio-commits] src/pulsecore
Tanu Kaskinen
tanuk at kemper.freedesktop.org
Sat Jun 30 03:49:52 PDT 2012
src/pulsecore/device-port.c | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 51e9104e36075cfd967b107590e8ae86112d7b5f
Author: poljar (Damir JeliÄ) <poljarinho at gmail.com>
Date: Thu Jun 28 13:17:21 2012 +0200
device-port: Send a subscription event when the offset changes.
When the offset changes a subscription event should be sent to the
relevant card.
diff --git a/src/pulsecore/device-port.c b/src/pulsecore/device-port.c
index 28879f7..9ea54e3 100644
--- a/src/pulsecore/device-port.c
+++ b/src/pulsecore/device-port.c
@@ -116,6 +116,8 @@ void pa_device_port_hashmap_free(pa_hashmap *h) {
void pa_device_port_set_latency_offset(pa_device_port *p, int64_t offset) {
uint32_t state;
+ pa_core *core;
+ pa_card *card;
pa_assert(p);
@@ -139,4 +141,9 @@ void pa_device_port_set_latency_offset(pa_device_port *p, int64_t offset) {
break;
}
}
+
+ pa_assert_se(core = p->core);
+ PA_IDXSET_FOREACH(card, core->cards, state)
+ if (p == pa_hashmap_get(card->ports, p->name))
+ pa_subscription_post(core, PA_SUBSCRIPTION_EVENT_CARD|PA_SUBSCRIPTION_EVENT_CHANGE, card->index);
}
More information about the pulseaudio-commits
mailing list