Lines Matching refs:format

45 static bool valid_format(snd_pcm_format_t format)  in valid_format()  argument
47 return (INT)format >= 0 && (INT)format <= (INT)SNDRV_PCM_FORMAT_LAST; in valid_format()
264 int snd_pcm_format_signed(snd_pcm_format_t format) in snd_pcm_format_signed() argument
267 if (!valid_format(format)) in snd_pcm_format_signed()
269 if ((val = pcm_formats[(INT)format].signd) < 0) in snd_pcm_format_signed()
282 int snd_pcm_format_unsigned(snd_pcm_format_t format) in snd_pcm_format_unsigned() argument
286 val = snd_pcm_format_signed(format); in snd_pcm_format_unsigned()
299 int snd_pcm_format_linear(snd_pcm_format_t format) in snd_pcm_format_linear() argument
301 return snd_pcm_format_signed(format) >= 0; in snd_pcm_format_linear()
312 int snd_pcm_format_little_endian(snd_pcm_format_t format) in snd_pcm_format_little_endian() argument
315 if (!valid_format(format)) in snd_pcm_format_little_endian()
317 if ((val = pcm_formats[(INT)format].le) < 0) in snd_pcm_format_little_endian()
330 int snd_pcm_format_big_endian(snd_pcm_format_t format) in snd_pcm_format_big_endian() argument
334 val = snd_pcm_format_little_endian(format); in snd_pcm_format_big_endian()
348 int snd_pcm_format_width(snd_pcm_format_t format) in snd_pcm_format_width() argument
351 if (!valid_format(format)) in snd_pcm_format_width()
353 if ((val = pcm_formats[(INT)format].width) == 0) in snd_pcm_format_width()
366 int snd_pcm_format_physical_width(snd_pcm_format_t format) in snd_pcm_format_physical_width() argument
369 if (!valid_format(format)) in snd_pcm_format_physical_width()
371 if ((val = pcm_formats[(INT)format].phys) == 0) in snd_pcm_format_physical_width()
385 ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples) in snd_pcm_format_size() argument
387 int phys_width = snd_pcm_format_physical_width(format); in snd_pcm_format_size()
400 const unsigned char *snd_pcm_format_silence_64(snd_pcm_format_t format) in snd_pcm_format_silence_64() argument
402 if (!valid_format(format)) in snd_pcm_format_silence_64()
404 if (! pcm_formats[(INT)format].phys) in snd_pcm_format_silence_64()
406 return pcm_formats[(INT)format].silence; in snd_pcm_format_silence_64()
420 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples) in snd_pcm_format_set_silence() argument
426 if (!valid_format(format)) in snd_pcm_format_set_silence()
430 width = pcm_formats[(INT)format].phys; /* physical width */ in snd_pcm_format_set_silence()
431 pat = pcm_formats[(INT)format].silence; in snd_pcm_format_set_silence()
435 if (pcm_formats[(INT)format].signd == 1 || width <= 8) { in snd_pcm_format_set_silence()