Lines Matching refs:obt
230 static void oss_dump_info (struct oss_params *req, struct oss_params *obt)
233 dolog ("format | %10d | %10d\n", req->fmt, obt->fmt);
235 req->nchannels, obt->nchannels);
236 dolog ("frequency | %10d | %10d\n", req->freq, obt->freq);
237 dolog ("nfrags | %10d | %10d\n", req->nfrags, obt->nfrags);
239 req->fragsize, obt->fragsize);
269 struct oss_params *obt, int *pfd)
356 obt->fmt = fmt;
357 obt->nchannels = nchannels;
358 obt->freq = freq;
359 obt->nfrags = abinfo.fragstotal;
360 obt->fragsize = abinfo.fragsize;
364 if ((req->fmt != obt->fmt) ||
365 (req->nchannels != obt->nchannels) ||
366 (req->freq != obt->freq) ||
367 (req->fragsize != obt->fragsize) ||
368 (req->nfrags != obt->nfrags)) {
370 oss_dump_info (req, obt);
375 oss_dump_info (req, obt);
510 struct oss_params req, obt;
525 if (oss_open (0, &req, &obt, &fd)) {
529 err = oss_to_audfmt (obt.fmt, &effective_fmt, &endianness);
535 obt_as.freq = obt.freq;
536 obt_as.nchannels = obt.nchannels;
541 oss->nfrags = obt.nfrags;
542 oss->fragsize = obt.fragsize;
544 if (obt.nfrags * obt.fragsize & hw->info.align) {
546 obt.nfrags * obt.fragsize, hw->info.align + 1);
549 hw->samples = (obt.nfrags * obt.fragsize) >> hw->info.shift;
676 struct oss_params req, obt;
690 if (oss_open (1, &req, &obt, &fd)) {
694 err = oss_to_audfmt (obt.fmt, &effective_fmt, &endianness);
700 obt_as.freq = obt.freq;
701 obt_as.nchannels = obt.nchannels;
706 oss->nfrags = obt.nfrags;
707 oss->fragsize = obt.fragsize;
709 if (obt.nfrags * obt.fragsize & hw->info.align) {
711 obt.nfrags * obt.fragsize, hw->info.align + 1);
714 hw->samples = (obt.nfrags * obt.fragsize) >> hw->info.shift;