Lines Matching refs:format
267 snd_pcm_format_t format, old_format;
307 cs = conf_get_string(pcm_cfg, "format", NULL, "S16_LE");
308 format = snd_pcm_format_value(cs);
309 if (format == SND_PCM_FORMAT_UNKNOWN)
310 ksft_exit_fail_msg("Wrong format '%s'\n", cs);
318 samples = malloc((rate * channels * snd_pcm_format_physical_width(format)) / 8);
321 snd_pcm_format_set_silence(format, samples, rate * channels);
348 err = snd_pcm_hw_params_set_format(handle, hw_params, format);
352 old_format = format;
353 format = snd_pcm_format_value(alt_formats[i]);
354 if (format != SND_PCM_FORMAT_UNKNOWN) {
355 ksft_print_msg("%s.%d.%d.%d.%s.%s format %s -> %s\n",
361 snd_pcm_format_name(format));
363 snd_pcm_format_physical_width(format)) / 8);
366 snd_pcm_format_set_silence(format, samples, rate * channels);
371 snd_pcm_format_name(format), snd_strerror(err));
438 snd_pcm_format_name(format),