Cleaned all hw_info. Removed snd_pcm_hw_{info,params}_rules* and changed strategy to allow the same functionality. Cleaned names tables. Added informative failure

This commit is contained in:
Abramo Bagnara 2000-11-29 08:32:36 +00:00
parent ae549cf739
commit b9916fd7fe
15 changed files with 1098 additions and 2107 deletions

View file

@ -65,9 +65,9 @@ int snd_pcm_format_unsigned(int format)
int val;
val = snd_pcm_format_signed(format);
if (val >= 0)
val ^= 1;
return val;
if (val < 0)
return val;
return !val;
}
int snd_pcm_format_linear(int format)
@ -113,6 +113,15 @@ int snd_pcm_format_big_endian(int format)
return !val;
}
int snd_pcm_format_cpu_endian(int format)
{
#ifdef SND_LITTLE_ENDIAN
return snd_pcm_format_little_endian(format);
#else
return snd_pcm_format_big_endian(format);
#endif
}
int snd_pcm_format_width(int format)
{
switch (format) {