Lines Matching defs:fmt
318 snd_fmtscore(u_int32_t fmt)
323 if (fmt & AFMT_SIGNED)
325 if (fmt & AFMT_BIGENDIAN)
327 /*if (fmt & AFMT_STEREO)
331 ret |= (AFMT_CHANNEL(fmt) & 0x3f) << 2;
332 if (fmt & AFMT_A_LAW)
334 else if (fmt & AFMT_MU_LAW)
336 else if (fmt & AFMT_8BIT)
338 else if (fmt & AFMT_16BIT)
340 else if (fmt & AFMT_24BIT)
342 else if (fmt & AFMT_32BIT)
349 snd_fmtbestfunc(u_int32_t fmt, u_int32_t *fmts, int cheq)
354 if (fmt == 0 || fmts == NULL || fmts[0] == 0)
357 if (snd_fmtvalid(fmt, fmts))
358 return fmt;
361 score = snd_fmtscore(fmt);
394 snd_fmtbestbit(u_int32_t fmt, u_int32_t *fmts)
396 return snd_fmtbestfunc(fmt, fmts, 0);
400 snd_fmtbestchannel(u_int32_t fmt, u_int32_t *fmts)
402 return snd_fmtbestfunc(fmt, fmts, 1);
406 snd_fmtbest(u_int32_t fmt, u_int32_t *fmts)
411 if (snd_fmtvalid(fmt, fmts))
412 return fmt;
414 best1 = snd_fmtbestchannel(fmt, fmts);
415 best2 = snd_fmtbestbit(fmt, fmts);
418 /*if (fmt & AFMT_STEREO)*/
419 if (AFMT_CHANNEL(fmt) > 1)
422 score = score_val(snd_fmtscore(fmt));