mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-29 06:46:38 -04:00
milan-avb: msrp: capture listener rx param
This commit is contained in:
parent
2118aefcdd
commit
080d4b6f09
1 changed files with 5 additions and 1 deletions
|
|
@ -164,6 +164,7 @@ static void notify_listener(struct msrp *msrp, uint64_t now, struct attr *attr,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* IEEE 802.1Q Section 35.2.2.4.4: capture the rx 4-pack Listener Declaration Type. */
|
||||||
static int process_listener(struct msrp *msrp, uint64_t now, uint8_t attr_type,
|
static int process_listener(struct msrp *msrp, uint64_t now, uint8_t attr_type,
|
||||||
const void *m, uint8_t event, uint8_t param, int num)
|
const void *m, uint8_t event, uint8_t param, int num)
|
||||||
{
|
{
|
||||||
|
|
@ -171,8 +172,11 @@ static int process_listener(struct msrp *msrp, uint64_t now, uint8_t attr_type,
|
||||||
struct attr *a;
|
struct attr *a;
|
||||||
spa_list_for_each(a, &msrp->attributes, link)
|
spa_list_for_each(a, &msrp->attributes, link)
|
||||||
if (a->attr->type == attr_type &&
|
if (a->attr->type == attr_type &&
|
||||||
a->attr->attr.listener.stream_id == l->stream_id)
|
a->attr->attr.listener.stream_id == l->stream_id) {
|
||||||
|
a->attr->attr.listener = *l;
|
||||||
|
a->attr->param = param;
|
||||||
avb_mrp_attribute_rx_event(a->attr->mrp, now, event);
|
avb_mrp_attribute_rx_event(a->attr->mrp, now, event);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
static int encode_listener(struct msrp *msrp, struct attr *a, void *m)
|
static int encode_listener(struct msrp *msrp, struct attr *a, void *m)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue