mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-30 06:46:49 -04:00
first draft for ACMP/ timeout handling, and communication between SRP/ADP and the ACMP state machine
This commit is contained in:
parent
ad543e37f5
commit
4856f85de2
18 changed files with 2970 additions and 285 deletions
|
|
@ -100,7 +100,6 @@ int handle_cmd_set_stream_format_milan_v12(struct aecp *aecp, int64_t now,
|
|||
int i;
|
||||
int rc;
|
||||
bool found = false;
|
||||
void *stream;
|
||||
|
||||
set_cmd = (const struct avb_packet_aecp_aem_setget_stream_format *)p->payload;
|
||||
desc_type = ntohs(set_cmd->descriptor_type);
|
||||
|
|
@ -113,21 +112,14 @@ int handle_cmd_set_stream_format_milan_v12(struct aecp *aecp, int64_t now,
|
|||
AVB_AECP_AEM_STATUS_NO_SUCH_DESCRIPTOR, m, len);
|
||||
|
||||
if (desc_type == AVB_AEM_DESC_STREAM_INPUT) {
|
||||
struct aecp_aem_stream_input_state *state =
|
||||
(struct aecp_aem_stream_input_state *)desc->ptr;
|
||||
stream = &state->stream;
|
||||
// TODO check if the stream is bound
|
||||
} else if (desc_type == AVB_AEM_DESC_STREAM_OUTPUT) {
|
||||
struct aecp_aem_stream_output_state *state =
|
||||
(struct aecp_aem_stream_output_state *)desc->ptr;
|
||||
stream = &state->stream;
|
||||
// TODO check if the stream is STREAM_RUNNING
|
||||
} else {
|
||||
return reply_status(aecp,
|
||||
AVB_AECP_AEM_STATUS_BAD_ARGUMENTS, m, len);
|
||||
}
|
||||
|
||||
(void)stream;
|
||||
stream_desc = (struct avb_aem_desc_stream *)desc->ptr;
|
||||
for (i = 0; i < ntohs(stream_desc->number_of_formats); i++) {
|
||||
if (stream_desc->stream_formats[i] == new_format) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue