mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-29 06:46:38 -04:00
milan-avb: use vlan and mac address from the stream itself
This commit is contained in:
parent
e9a51bd84f
commit
0309d598a1
3 changed files with 7 additions and 6 deletions
|
|
@ -956,6 +956,7 @@ int handle_fsm_prb_w_resp_rcv_probe_tx_resp_evt(struct acmp *acmp,
|
|||
{
|
||||
uint8_t buf[512];
|
||||
struct acmp_milan_v12 *acmp_m = (struct acmp_milan_v12 *)acmp;
|
||||
struct stream *stream_generic = (struct stream *) stream;
|
||||
struct server *server = acmp->server;
|
||||
struct avb_ethernet_header *h = (struct avb_ethernet_header *)m;
|
||||
struct avb_packet_acmp *p = SPA_PTROFF(m, sizeof(*h), void);
|
||||
|
|
@ -997,9 +998,10 @@ int handle_fsm_prb_w_resp_rcv_probe_tx_resp_evt(struct acmp *acmp,
|
|||
stream->acmp_status.common.saved_bindings.talker_unique_id = ntohs(p->talker_unique_id);
|
||||
stream->acmp_status.common.saved_bindings.talker_unique_id = ntohs(p->talker_unique_id);
|
||||
|
||||
memcpy(stream->acmp_status.common.stream_dest_mac, p->stream_dest_mac,
|
||||
memcpy(stream_generic->addr, p->stream_dest_mac,
|
||||
sizeof(p->stream_dest_mac));
|
||||
stream->acmp_status.common.stream_vlanid = ntohs(p->stream_vlan_id);
|
||||
stream_generic->vlan_id = ntohs(p->stream_vlan_id);
|
||||
|
||||
|
||||
|
||||
stream->acmp_status.common.probing_status = ACMP_MILAN_V12_PBSTA_COMPLETED;
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@ struct acmp_stream_status_common {
|
|||
struct stream_input_saved_binding_param saved_bindings;
|
||||
uint8_t probing_status;
|
||||
uint8_t acmp_status;
|
||||
uint8_t stream_dest_mac[6];
|
||||
uint16_t stream_vlanid;
|
||||
};
|
||||
|
||||
struct acmp_stream_status_milan_v12 {
|
||||
|
|
|
|||
|
|
@ -25,15 +25,16 @@ struct stream {
|
|||
|
||||
uint16_t direction;
|
||||
uint64_t id;
|
||||
uint64_t peer_id;
|
||||
|
||||
struct pw_stream *stream;
|
||||
struct spa_hook stream_listener;
|
||||
|
||||
uint64_t peer_id;
|
||||
uint8_t addr[6];
|
||||
int vlan_id;
|
||||
|
||||
struct spa_source *source;
|
||||
int prio;
|
||||
int vlan_id;
|
||||
int mtt;
|
||||
int t_uncertainty;
|
||||
uint32_t frames_per_pdu;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue