Changing AVB stream channel amount during runtime

If you have a simple question and just want an answer.
Post Reply
tonetechnician
Member
Posts: 14
Joined: Mon Jan 30, 2017 11:09 am

Changing AVB stream channel amount during runtime

Post by tonetechnician »

Hello!

I have a quick question regarding setting AVB channel counts.

In the current XMOS AVB implementation, it seems we are only able to statically set the amount of channels per streams at compilation. This happens in avb_conf.h here.

Code: Select all

/* Listener configuration */
#if AVB_DEMO_ENABLE_LISTENER

/** The total number of AVB sinks (incoming streams that can be listened to) */
#define AVB_NUM_SINKS 1
/** The total number or listener components
  * (typically the number of tasks running the  :c:func:`avb_1722_listener` function) */
#define AVB_NUM_LISTENER_UNITS 1
/** The total number of media outputs (typically the number of I2S output channels). */
#define AVB_NUM_MEDIA_OUTPUTS 24
/** Enable the 1722.1 Listener functionality */
#define AVB_1722_1_LISTENER_ENABLED 1

#else

#define AVB_NUM_SINKS 0
#define AVB_NUM_LISTENER_UNITS 0
#define AVB_NUM_MEDIA_OUTPUTS 0
#define AVB_1722_1_LISTENER_ENABLED 0

#endif

/** The maximum number of channels permitted per 1722 Talker stream */
#define AVB_MAX_CHANNELS_PER_TALKER_STREAM 4
/** The maximum number of channels permitted per 1722 Listener stream */
#define AVB_MAX_CHANNELS_PER_LISTENER_STREAM 24
Has anyone tried changing the code to manage variable stream channel counts that can be changed during runtime?


Post Reply