You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Search for interface belonging to given end point address and proceed as required
1975
-
uint8_tfunc_id;
1976
-
for (func_id=0; func_id<CFG_TUD_AUDIO; func_id++)
1987
+
for (uint8_tfunc_id=0; func_id<CFG_TUD_AUDIO; func_id++)
1977
1988
{
1989
+
audiod_function_t*audio=&_audiod_fct[func_id];
1978
1990
1979
1991
#ifCFG_TUD_AUDIO_INT_CTR_EPSIZE_IN
1980
1992
1981
1993
// Data transmission of control interrupt finished
1982
-
if (_audiod_fct[func_id].ep_int_ctr==ep_addr)
1994
+
if (audio->ep_int_ctr==ep_addr)
1983
1995
{
1984
1996
// According to USB2 specification, maximum payload of interrupt EP is 8 bytes on low speed, 64 bytes on full speed, and 1024 bytes on high speed (but only if an alternate interface other than 0 is used - see specification p. 49)
1985
1997
// In case there is nothing to send we have to return a NAK - this is taken care of by PHY ???
if (_audiod_fct[func_id].ep_in==ep_addr&&_audiod_fct[func_id].alt_setting!=0)
2011
+
if (audio->ep_in==ep_addr&&audio->alt_setting!=0)
2000
2012
{
2001
2013
// USB 2.0, section 5.6.4, third paragraph, states "An isochronous endpoint must specify its required bus access period. However, an isochronous endpoint must be prepared to handle poll rates faster than the one specified."
2002
2014
// That paragraph goes on to say "An isochronous IN endpoint must return a zero-length packet whenever data is requested at a faster interval than the specified interval and data is not available."
0 commit comments