Why is different channel totals in unified audio example flagged?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Why is different channel totals in unified audio example flagged?

ソリューションへジャンプ
1,495件の閲覧回数
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,424件の閲覧回数
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,425件の閲覧回数
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,476件の閲覧回数
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,459件の閲覧回数
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,449件の閲覧回数
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,472件の閲覧回数
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