Instead of reading bInterfaceProtocol from the descriptor whenever it's needed, store this value in the audioformat structure. Besides simplifying some code, this will allow us to correctly handle vendor- specific devices where the descriptors are marked with other values. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			292 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			292 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef __USBAUDIO_FORMAT_H
 | 
						|
#define __USBAUDIO_FORMAT_H
 | 
						|
 | 
						|
int snd_usb_parse_audio_format(struct snd_usb_audio *chip,
 | 
						|
			       struct audioformat *fp, unsigned int format,
 | 
						|
			       struct uac_format_type_i_continuous_descriptor *fmt,
 | 
						|
			       int stream);
 | 
						|
 | 
						|
#endif /*  __USBAUDIO_FORMAT_H */
 |