Lines Matching refs:format
259 int snd_pcm_format_signed(snd_pcm_format_t format) in snd_pcm_format_signed() argument
262 if ((INT)format < 0 || (INT)format > (INT)SNDRV_PCM_FORMAT_LAST) in snd_pcm_format_signed()
264 if ((val = pcm_formats[(INT)format].signd) < 0) in snd_pcm_format_signed()
277 int snd_pcm_format_unsigned(snd_pcm_format_t format) in snd_pcm_format_unsigned() argument
281 val = snd_pcm_format_signed(format); in snd_pcm_format_unsigned()
294 int snd_pcm_format_linear(snd_pcm_format_t format) in snd_pcm_format_linear() argument
296 return snd_pcm_format_signed(format) >= 0; in snd_pcm_format_linear()
307 int snd_pcm_format_little_endian(snd_pcm_format_t format) in snd_pcm_format_little_endian() argument
310 if ((INT)format < 0 || (INT)format > (INT)SNDRV_PCM_FORMAT_LAST) in snd_pcm_format_little_endian()
312 if ((val = pcm_formats[(INT)format].le) < 0) in snd_pcm_format_little_endian()
325 int snd_pcm_format_big_endian(snd_pcm_format_t format) in snd_pcm_format_big_endian() argument
329 val = snd_pcm_format_little_endian(format); in snd_pcm_format_big_endian()
343 int snd_pcm_format_width(snd_pcm_format_t format) in snd_pcm_format_width() argument
346 if ((INT)format < 0 || (INT)format > (INT)SNDRV_PCM_FORMAT_LAST) in snd_pcm_format_width()
348 if ((val = pcm_formats[(INT)format].width) == 0) in snd_pcm_format_width()
361 int snd_pcm_format_physical_width(snd_pcm_format_t format) in snd_pcm_format_physical_width() argument
364 if ((INT)format < 0 || (INT)format > (INT)SNDRV_PCM_FORMAT_LAST) in snd_pcm_format_physical_width()
366 if ((val = pcm_formats[(INT)format].phys) == 0) in snd_pcm_format_physical_width()
380 ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples) in snd_pcm_format_size() argument
382 int phys_width = snd_pcm_format_physical_width(format); in snd_pcm_format_size()
395 const unsigned char *snd_pcm_format_silence_64(snd_pcm_format_t format) in snd_pcm_format_silence_64() argument
397 if ((INT)format < 0 || (INT)format > (INT)SNDRV_PCM_FORMAT_LAST) in snd_pcm_format_silence_64()
399 if (! pcm_formats[(INT)format].phys) in snd_pcm_format_silence_64()
401 return pcm_formats[(INT)format].silence; in snd_pcm_format_silence_64()
415 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples) in snd_pcm_format_set_silence() argument
420 if ((INT)format < 0 || (INT)format > (INT)SNDRV_PCM_FORMAT_LAST) in snd_pcm_format_set_silence()
424 width = pcm_formats[(INT)format].phys; /* physical width */ in snd_pcm_format_set_silence()
425 pat = pcm_formats[(INT)format].silence; in snd_pcm_format_set_silence()
429 if (pcm_formats[(INT)format].signd == 1 || width <= 8) { in snd_pcm_format_set_silence()