mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	More fixes...
This commit is contained in:
		
							parent
							
								
									14587b6b6d
								
							
						
					
					
						commit
						368d383feb
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -165,6 +165,7 @@ static ssize_t linear_transfer(snd_pcm_plugin_t *plugin,
 | 
			
		|||
	case _16BIT_8BIT:
 | 
			
		||||
		if (dst_size < (src_size >> 1))
 | 
			
		||||
			return -EINVAL;
 | 
			
		||||
		src_size >>= 1;
 | 
			
		||||
		switch (data->endian) {
 | 
			
		||||
		case NONE:
 | 
			
		||||
			linear_conv_16bit_8bit((short *)src_ptr, dst_ptr, src_size);
 | 
			
		||||
| 
						 | 
				
			
			@ -181,7 +182,7 @@ static ssize_t linear_transfer(snd_pcm_plugin_t *plugin,
 | 
			
		|||
		default:
 | 
			
		||||
			return -EINVAL;
 | 
			
		||||
		}
 | 
			
		||||
		return src_size >> 1;
 | 
			
		||||
		return src_size;
 | 
			
		||||
	default:
 | 
			
		||||
		return -EIO;
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue