/* Returns 1 if the given PCM format is signed linear, 0 if unsigned linear, and a negative error code for non-linear formats.  */
int snd_pcm_format_signed(snd_pcm_format_t format)
/* Returns 1 if the given PCM format is signed linear, 0 if unsigned linear, and a negative error code for non-linear formats.  */
int snd_pcm_format_signed(snd_pcm_format_t format)
{
	int val;
	if (format < 0 || format > SNDRV_PCM_FORMAT_LAST)
		return -EINVAL;
	if ((val = pcm_formats[format].signd) < 0)
		return -EINVAL;
	return val;
}