Ensure that only the requested Audio class pipes are mapped to endpoints within the device for a specific Audio Host Class driver instance.
Fix const-correctness of the Audio Host Class driver.
This commit is contained in:
		
							parent
							
								
									6e0a26083a
								
							
						
					
					
						commit
						deaab90089
					
				
					 3 changed files with 10 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -104,7 +104,7 @@ int main(void)
 | 
			
		|||
					USB_HostState = HOST_STATE_WaitForDeviceRemoval;
 | 
			
		||||
					break;
 | 
			
		||||
				}
 | 
			
		||||
				
 | 
			
		||||
			
 | 
			
		||||
				USB_Audio_SampleFreq_t SampleRate = AUDIO_SAMPLE_FREQ(48000);
 | 
			
		||||
				if (Audio_GetSetEndpointProperty(&Microphone_Audio_Interface, Microphone_Audio_Interface.Config.DataINPipeNumber,
 | 
			
		||||
				                                 AUDIO_REQ_SetCurrent, AUDIO_EPCONTROL_SamplingFreq,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue