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 val = pcm_formats[(INT)format].signd; in snd_pcm_format_signed()
283 int snd_pcm_format_unsigned(snd_pcm_format_t format) in snd_pcm_format_unsigned() argument
287 val = snd_pcm_format_signed(format); in snd_pcm_format_unsigned()
300 int snd_pcm_format_linear(snd_pcm_format_t format) in snd_pcm_format_linear() argument
302 return snd_pcm_format_signed(format) >= 0; in snd_pcm_format_linear()
313 int snd_pcm_format_little_endian(snd_pcm_format_t format) in snd_pcm_format_little_endian() argument
316 if (!valid_format(format)) in snd_pcm_format_little_endian()
318 val = pcm_formats[(INT)format].le; in snd_pcm_format_little_endian()
332 int snd_pcm_format_big_endian(snd_pcm_format_t format) in snd_pcm_format_big_endian() argument
336 val = snd_pcm_format_little_endian(format); in snd_pcm_format_big_endian()
350 int snd_pcm_format_width(snd_pcm_format_t format) in snd_pcm_format_width() argument
353 if (!valid_format(format)) in snd_pcm_format_width()
355 val = pcm_formats[(INT)format].width; in snd_pcm_format_width()
369 int snd_pcm_format_physical_width(snd_pcm_format_t format) in snd_pcm_format_physical_width() argument
372 if (!valid_format(format)) in snd_pcm_format_physical_width()
374 val = pcm_formats[(INT)format].phys; in snd_pcm_format_physical_width()
389 ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples) in snd_pcm_format_size() argument
391 int phys_width = snd_pcm_format_physical_width(format); in snd_pcm_format_size()
404 const unsigned char *snd_pcm_format_silence_64(snd_pcm_format_t format) in snd_pcm_format_silence_64() argument
406 if (!valid_format(format)) in snd_pcm_format_silence_64()
408 if (! pcm_formats[(INT)format].phys) in snd_pcm_format_silence_64()
410 return pcm_formats[(INT)format].silence; in snd_pcm_format_silence_64()
424 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples) in snd_pcm_format_set_silence() argument
430 if (!valid_format(format)) in snd_pcm_format_set_silence()
434 width = pcm_formats[(INT)format].phys; /* physical width */ in snd_pcm_format_set_silence()
435 pat = pcm_formats[(INT)format].silence; in snd_pcm_format_set_silence()
439 if (pcm_formats[(INT)format].signd == 1 || width <= 8) { in snd_pcm_format_set_silence()