Lines Matching defs:req

205 static void oss_dump_info (struct oss_params *req, struct oss_params *obt)
208 dolog ("format | %10d | %10d\n", req->fmt, obt->fmt);
210 req->nchannels, obt->nchannels);
211 dolog ("frequency | %10d | %10d\n", req->freq, obt->freq);
212 dolog ("nfrags | %10d | %10d\n", req->nfrags, obt->nfrags);
214 req->fragsize, obt->fragsize);
218 static int oss_open (int in, struct oss_params *req,
243 freq = req->freq;
244 nchannels = req->nchannels;
245 fmt = req->fmt;
249 oss_logerr2 (errno, typ, "Failed to set sample size %d\n", req->fmt);
252 req->fmt, strerror(errno)));
260 req->nchannels);
263 req->nchannels, strerror(errno)));
270 oss_logerr2 (errno, typ, "Failed to set frequency %d\n", req->freq);
272 LogRel(("OSS: Failed to set freq=%dHZ\n", req->freq, strerror(errno)));
289 mmmmssss = (req->nfrags << 16) | lsbindex (req->fragsize);
293 req->nfrags, req->fragsize);
296 req->nfrags, req->fragsize, strerror(errno)));
318 if ((req->fmt != obt->fmt) ||
319 (req->nchannels != obt->nchannels) ||
320 (req->freq != obt->freq) ||
321 (req->fragsize != obt->fragsize) ||
322 (req->nfrags != obt->nfrags)) {
324 oss_dump_info (req, obt);
329 oss_dump_info (req, obt);
520 struct oss_params req, obt;
529 req.fmt = aud_to_ossfmt (as->fmt);
530 req.freq = as->freq;
531 req.nchannels = as->nchannels;
532 req.fragsize = conf.fragsize;
533 req.nfrags = conf.nfrags;
535 if (oss_open (0, &req, &obt, &fd)) {
680 struct oss_params req, obt;
689 req.fmt = aud_to_ossfmt (as->fmt);
690 req.freq = as->freq;
691 req.nchannels = as->nchannels;
692 req.fragsize = conf.fragsize;
693 req.nfrags = conf.nfrags;
694 if (oss_open (1, &req, &obt, &fd)) {