This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AIF对Host descriptor的支持

各位专家好。因为某种原因,我们希望将AIF接收到的数据连续存放(当中没有descriptor的头部)。为此,只能采用host packet而不能采用monolithic。但是相关文档中一般都是说AIF要用mono mode。只有AIF2手册上的一个note,说AIF也可以支持host mode。只是有性能的损失。我有下面几个问题:

1. AIF中是否真的可以实现host mode? 即,实际能成功运行的例子,而不仅仅是理论上可以。

2. 如果可以,有没有需要特别注意的地方?

3. 关于性能上的损失,有没有对损失的一个大概评估?

多谢!

  • 可以用host descriptor,只是host descriptor需要分开读取descriptor及数据,相比mono packet时延会长些,在传输对时延敏感的天线数据时,推荐用mono packet。论坛上有基于mono的AIF2 example,如果要用host packet,只需要按照host descriptor进行配置描述符即可,其他没有特别的地方。

    推荐用mono descriptor,在处理的过程中通过地址偏移去掉descriptor header,也不麻烦。