/* Returns the physical bit-width of the format, or a negative error code if unknown format.  */
int snd_pcm_format_physical_width(snd_pcm_format_t format)
/* Returns the physical bit-width of the format, or a negative error code if unknown format.  */
int snd_pcm_format_physical_width(snd_pcm_format_t format)
{
	int val;
	if (format < 0 || format > SNDRV_PCM_FORMAT_LAST)
		return -EINVAL;
	if ((val = pcm_formats[format].phys) == 0)
		return -EINVAL;
	return val;
}