/* Returns 1 if the given PCM format is little-endian, 0 if big-endian, or a negative error code if endian not specified.  */
int snd_pcm_format_little_endian(snd_pcm_format_t format)
/* Returns 1 if the given PCM format is little-endian, 0 if big-endian, or a negative error code if endian not specified.  */
int snd_pcm_format_little_endian(snd_pcm_format_t format)
{
	int val;
	if (format < 0 || format > SNDRV_PCM_FORMAT_LAST)
		return -EINVAL;
	if ((val = pcm_formats[format].le) < 0)
		return -EINVAL;
	return val;
}