/* Returns 1 if the given PCM format is unsigned linear, 0 if signed linear, and a negative error code for non-linear formats.  */
int snd_pcm_format_unsigned(snd_pcm_format_t format)
/* Returns 1 if the given PCM format is unsigned linear, 0 if signed linear, and a negative error code for non-linear formats.  */
int snd_pcm_format_unsigned(snd_pcm_format_t format)
{
	int val;
	val = snd_pcm_format_signed(format);
	if (val < 0)
		return val;
	return !val;
}