Check the pcm format is unsigned linear
int snd_pcm_format_unsigned(snd_pcm_format_t format);
format
the format to check
1 if the given PCM format is unsigned linear, 0 if signed linear, and a negative error code for non-linear formats.