int snd_pcm_format_width(int format);
int snd_pcm_format_width
Returns sample width in bits. Function returns positive value if successful, otherwise it returns an error code.