Why is different channel totals in unified audio example flagged?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Why is different channel totals in unified audio example flagged?

跳至解决方案
1,500 次查看
EdSutter
Senior Contributor II

The usb_device_descriptor.h file for both of the usb_device_composite_hid_audio_unified examples in the SDK has a preprocessor line that catches the case where  AUDIO_IN_FORMAT_CHANNELS != AUDIO_OUT_FORMAT_CHANNELS.

But then the comments in the error say:

/*default in channel and out channel are same, if the channel setting is different, please remove this error manually, then check the AUDIO_FORMAT_CHANNELS. */

The AUDIO_FORMAT_CHANNELS definition isn't used anywhere, so there's nothing to check.  Plus it appears that 'IN' and 'OUT' versions of these definitions are used appropriately in the code.  So, what is the point of this check?  Is it illegal for some reason to have a different number of input channels than output channels? 

0 项奖励
回复
1 解答
1,429 次查看
FelipeGarcia
NXP Employee
NXP Employee

Hi Ed,

I have received response from internal team, it seems this error was added just for simplicity but there is no restriction about this in USB Audio spec.

This restriction is only for the usb_device_composite_hid_audio_unified demo. The SDK considers simplifying the design of the application when developing the demo, so this restriction is added.

There are no restrictions on this in the usb audio specification.

Best regards,

Felipe

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

------------------------------------------------------------------------------ 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,430 次查看
FelipeGarcia
NXP Employee
NXP Employee

Hi Ed,

I have received response from internal team, it seems this error was added just for simplicity but there is no restriction about this in USB Audio spec.

This restriction is only for the usb_device_composite_hid_audio_unified demo. The SDK considers simplifying the design of the application when developing the demo, so this restriction is added.

There are no restrictions on this in the usb audio specification.

Best regards,

Felipe

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

------------------------------------------------------------------------------ 

0 项奖励
回复
1,481 次查看
FelipeGarcia
NXP Employee
NXP Employee

Hi Ed,

I agree with you that the comment about checking AUDIO_FORMAT_CHANNELS does not make sense as it is not used, please give me some time to check this internally and will let you know.

Best regards,

Felipe

0 项奖励
回复
1,464 次查看
EdSutter
Senior Contributor II

Felipe,

I am getting an email asking me to mark something as the solution, but I am assuming you will be getting back to me with an answer, correct?

Ed

0 项奖励
回复
1,454 次查看
FelipeGarcia
NXP Employee
NXP Employee

Hi Ed,

Don’t worry, those are automatically generated emails by the community. I have contacted internal team to get confirmation about this issue.

Bes regards,

Felipe

0 项奖励
回复
1,477 次查看
EdSutter
Senior Contributor II

Felipe,

Thanks... I've been running for a week or so with different IN/OUT channel counts and things seem to be fine; but it would be nice to hear this officially.  

Awaiting your reply...

Regards,

Ed