Home | History | Annotate | Download | only in audio

Lines Matching defs:fmt

157     snd_pcm_format_t fmt;
167 audfmt_e fmt;
173 static void GCC_FMT_ATTR (2, 3) alsa_logerr (int err, const char *fmt, ...)
177 va_start (ap, fmt);
178 AUD_vlog (AUDIO_CAP, fmt, ap);
187 const char *fmt,
195 va_start (ap, fmt);
196 AUD_vlog (AUDIO_CAP, fmt, ap);
393 static snd_pcm_format_t aud_to_alsafmt (audfmt_e fmt)
395 switch (fmt) {
415 dolog ("Internal logic error: Bad audio format %d\n", fmt);
423 static int alsa_to_audfmt (snd_pcm_format_t alsafmt, audfmt_e *fmt,
429 *fmt = AUD_FMT_S8;
434 *fmt = AUD_FMT_U8;
439 *fmt = AUD_FMT_S16;
444 *fmt = AUD_FMT_U16;
449 *fmt = AUD_FMT_S16;
454 *fmt = AUD_FMT_U16;
459 *fmt = AUD_FMT_S32;
464 *fmt = AUD_FMT_U32;
469 *fmt = AUD_FMT_S32;
474 *fmt = AUD_FMT_U32;
490 dolog ("format | %10d | %10d\n", req->fmt, obtfmt);
576 err = FF(snd_pcm_hw_params_set_format) (handle, hw_params, req->fmt);
578 alsa_logerr2 (err, typ, "Failed to set format %d\n", req->fmt);
699 if (alsa_to_audfmt (obtfmt, &obt->fmt, &obt->endianness)) {
716 switch (obt->fmt) {
743 (obtfmt != req->fmt ||
890 req.fmt = aud_to_alsafmt (as->fmt);
906 obt_as.fmt = obt.fmt;
995 req.fmt = aud_to_alsafmt (as->fmt);
1011 obt_as.fmt = obt.fmt;