Fix bugs in the Host mode Audio class driver.
This commit is contained in:
		
							parent
							
								
									6e2a3174a5
								
							
						
					
					
						commit
						6e0a26083a
					
				
					 4 changed files with 25 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -92,7 +92,7 @@ uint8_t ProcessConfigurationDescriptor(void)
 | 
			
		|||
			{
 | 
			
		||||
				/* Find a new Audio Control interface if the current one doesn't contain a compatible streaming interface */
 | 
			
		||||
				if (USB_GetNextDescriptorComp(&CurrConfigBytesRem, &CurrConfigLocation,
 | 
			
		||||
											  DComp_NextAudioControlInterface) != DESCRIPTOR_SEARCH_COMP_Found)
 | 
			
		||||
				                              DComp_NextAudioControlInterface) != DESCRIPTOR_SEARCH_COMP_Found)
 | 
			
		||||
				{
 | 
			
		||||
					/* Descriptor not found, error out */
 | 
			
		||||
					return NoCompatibleInterfaceFound;
 | 
			
		||||
| 
						 | 
				
			
			@ -103,7 +103,7 @@ uint8_t ProcessConfigurationDescriptor(void)
 | 
			
		|||
 | 
			
		||||
				/* Find the next Audio Streaming interface within that Audio Control interface */
 | 
			
		||||
				if (USB_GetNextDescriptorComp(&CurrConfigBytesRem, &CurrConfigLocation,
 | 
			
		||||
										  DComp_NextAudioStreamInterface) != DESCRIPTOR_SEARCH_COMP_Found)
 | 
			
		||||
				                              DComp_NextAudioStreamInterface) != DESCRIPTOR_SEARCH_COMP_Found)
 | 
			
		||||
				{
 | 
			
		||||
					/* Descriptor not found, error out */
 | 
			
		||||
					return NoCompatibleInterfaceFound;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue