mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Renamed ERR to SNDERR. Added s16 pseudo meter scope. Fixed plug hw_refine/params
This commit is contained in:
		
							parent
							
								
									84732560a9
								
							
						
					
					
						commit
						bbaeb29a74
					
				
					 26 changed files with 503 additions and 313 deletions
				
			
		| 
						 | 
				
			
			@ -572,7 +572,7 @@ int _snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name,
 | 
			
		|||
		if (strcmp(id, "sname") == 0) { 
 | 
			
		||||
			err = snd_config_get_string(n, &sname);
 | 
			
		||||
			if (err < 0) {
 | 
			
		||||
				ERR("Invalid type for %s", id);
 | 
			
		||||
				SNDERR("Invalid type for %s", id);
 | 
			
		||||
				return -EINVAL;
 | 
			
		||||
			}
 | 
			
		||||
			continue;
 | 
			
		||||
| 
						 | 
				
			
			@ -581,16 +581,16 @@ int _snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name,
 | 
			
		|||
			const char *f;
 | 
			
		||||
			err = snd_config_get_string(n, &f);
 | 
			
		||||
			if (err < 0) {
 | 
			
		||||
				ERR("Invalid type for %s", id);
 | 
			
		||||
				SNDERR("Invalid type for %s", id);
 | 
			
		||||
				return -EINVAL;
 | 
			
		||||
			}
 | 
			
		||||
			sformat = snd_pcm_format_value(f);
 | 
			
		||||
			if (sformat == SND_PCM_FORMAT_UNKNOWN) {
 | 
			
		||||
				ERR("Unknown sformat");
 | 
			
		||||
				SNDERR("Unknown sformat");
 | 
			
		||||
				return -EINVAL;
 | 
			
		||||
			}
 | 
			
		||||
			if (snd_pcm_format_linear(sformat) != 1) {
 | 
			
		||||
				ERR("sformat is not linear");
 | 
			
		||||
				SNDERR("sformat is not linear");
 | 
			
		||||
				return -EINVAL;
 | 
			
		||||
			}
 | 
			
		||||
			continue;
 | 
			
		||||
| 
						 | 
				
			
			@ -598,20 +598,20 @@ int _snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name,
 | 
			
		|||
		if (strcmp(id, "srate") == 0) {
 | 
			
		||||
			err = snd_config_get_integer(n, &srate);
 | 
			
		||||
			if (err < 0) {
 | 
			
		||||
				ERR("Invalid type for %s", id);
 | 
			
		||||
				SNDERR("Invalid type for %s", id);
 | 
			
		||||
				return -EINVAL;
 | 
			
		||||
			}
 | 
			
		||||
			continue;
 | 
			
		||||
		}
 | 
			
		||||
		ERR("Unknown field %s", id);
 | 
			
		||||
		SNDERR("Unknown field %s", id);
 | 
			
		||||
		return -EINVAL;
 | 
			
		||||
	}
 | 
			
		||||
	if (!sname) {
 | 
			
		||||
		ERR("sname is not defined");
 | 
			
		||||
		SNDERR("sname is not defined");
 | 
			
		||||
		return -EINVAL;
 | 
			
		||||
	}
 | 
			
		||||
	if (srate < 0) {
 | 
			
		||||
		ERR("srate is not defined");
 | 
			
		||||
		SNDERR("srate is not defined");
 | 
			
		||||
		return -EINVAL;
 | 
			
		||||
	}
 | 
			
		||||
	/* This is needed cause snd_config_update may destroy config */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue