milan-avb: aecp-aem: GET_STREAM_INFO CDL excludes 12-octet AVTPDU common

This commit is contained in:
hackerman-kl 2026-04-26 21:04:05 +02:00 committed by Wim Taymans
parent c967b39f18
commit d8b9a0f5ab

View file

@ -41,10 +41,12 @@ static inline bool mrp_is_declaring(struct avb_mrp_attribute *mrp)
sizeof(struct avb_packet_aecp_aem) + \ sizeof(struct avb_packet_aecp_aem) + \
sizeof(struct avb_packet_aecp_aem_setget_stream_info)) sizeof(struct avb_packet_aecp_aem_setget_stream_info))
/* IEEE 1722.1-2021 Section 9.2.1.1.7: CDL excludes the 12-octet AVTPDU common. */
#define AVB_AECP_GET_STREAM_INFO_CDL \ #define AVB_AECP_GET_STREAM_INFO_CDL \
(uint16_t)(AVB_AECP_GET_STREAM_INFO_RESPONSE_LEN - \ (uint16_t)(AVB_AECP_GET_STREAM_INFO_RESPONSE_LEN - \
sizeof(struct avb_ethernet_header) - \ sizeof(struct avb_ethernet_header) - \
sizeof(struct avb_packet_header)) sizeof(struct avb_packet_header) - \
sizeof(uint64_t))
/* Hive (and 1722.1 controllers in general) sends GET_STREAM_INFO as a short /* Hive (and 1722.1 controllers in general) sends GET_STREAM_INFO as a short
* command only the descriptor pair, sometimes plus the flags word. The * command only the descriptor pair, sometimes plus the flags word. The