mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	pcm: plug: add SND_PCM_FORMAT_{S, U}20 to linear_preferred_formats
This commit adds the recently added formats SND_PCM_FORMAT_{S,U}20 to
the linear_preferred_formats array in pcm_plug.
Let's give them lower priority than more standard S24 formats but a higher
priority than less typical 3-byte versions.
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
			
			
This commit is contained in:
		
							parent
							
								
									0c081ebbed
								
							
						
					
					
						commit
						0d8ff0712b
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -138,6 +138,17 @@ static const snd_pcm_format_t linear_preferred_formats[] = {
 | 
			
		|||
	SND_PCM_FORMAT_S24_LE,
 | 
			
		||||
	SND_PCM_FORMAT_U24_LE,
 | 
			
		||||
#endif
 | 
			
		||||
#ifdef SND_LITTLE_ENDIAN
 | 
			
		||||
	SND_PCM_FORMAT_S20_LE,
 | 
			
		||||
	SND_PCM_FORMAT_U20_LE,
 | 
			
		||||
	SND_PCM_FORMAT_S20_BE,
 | 
			
		||||
	SND_PCM_FORMAT_U20_BE,
 | 
			
		||||
#else
 | 
			
		||||
	SND_PCM_FORMAT_S20_BE,
 | 
			
		||||
	SND_PCM_FORMAT_U20_BE,
 | 
			
		||||
	SND_PCM_FORMAT_S20_LE,
 | 
			
		||||
	SND_PCM_FORMAT_U20_LE,
 | 
			
		||||
#endif
 | 
			
		||||
#ifdef SND_LITTLE_ENDIAN
 | 
			
		||||
	SND_PCM_FORMAT_S24_3LE,
 | 
			
		||||
	SND_PCM_FORMAT_U24_3LE,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue