Lines Matching refs:obt
486 struct alsa_params_obt *obt, in alsa_dump_info() argument
492 req->nchannels, obt->nchannels); in alsa_dump_info()
493 dolog ("frequency | %10d | %10d\n", req->freq, obt->freq); in alsa_dump_info()
497 dolog ("obtained: samples %ld\n", obt->samples); in alsa_dump_info()
531 struct alsa_params_obt *obt, snd_pcm_t **handlep) in alsa_open() argument
607 unsigned long obt; in alsa_open() local
619 obt = btime; in alsa_open()
629 obt = bsize; in alsa_open()
637 if ((req->override_mask & 2) && (obt - req->buffer_size)) in alsa_open()
639 size_in_usec ? "time" : "size", req->buffer_size, obt); in alsa_open()
643 unsigned long obt; in alsa_open() local
655 obt = ptime; in alsa_open()
667 obt = psize; in alsa_open()
676 if (((req->override_mask & 1) && (obt - req->period_size))) in alsa_open()
678 size_in_usec ? "time" : "size", req->period_size, obt); in alsa_open()
699 if (alsa_to_audfmt (obtfmt, &obt->fmt, &obt->endianness)) { in alsa_open()
716 switch (obt->fmt) { in alsa_open()
736 obt->nchannels = nchannels; in alsa_open()
737 obt->freq = freq; in alsa_open()
738 obt->samples = obt_buffer_size; in alsa_open()
744 obt->nchannels != req->nchannels || in alsa_open()
745 obt->freq != req->freq)) { in alsa_open()
747 alsa_dump_info (req, obt, obtfmt); in alsa_open()
751 alsa_dump_info (req, obt, obtfmt); in alsa_open()
881 struct alsa_params_obt obt; in alsa_init_out() local
900 if (alsa_open (0, &req, &obt, &handle)) { in alsa_init_out()
904 obt_as.freq = obt.freq; in alsa_init_out()
905 obt_as.nchannels = obt.nchannels; in alsa_init_out()
906 obt_as.fmt = obt.fmt; in alsa_init_out()
907 obt_as.endianness = obt.endianness; in alsa_init_out()
910 hw->samples = obt.samples; in alsa_init_out()
912 alsa->pcm_buf = audio_calloc (AUDIO_FUNC, obt.samples, 1 << hw->info.shift); in alsa_init_out()
986 struct alsa_params_obt obt; in alsa_init_in() local
1005 if (alsa_open (1, &req, &obt, &handle)) { in alsa_init_in()
1009 obt_as.freq = obt.freq; in alsa_init_in()
1010 obt_as.nchannels = obt.nchannels; in alsa_init_in()
1011 obt_as.fmt = obt.fmt; in alsa_init_in()
1012 obt_as.endianness = obt.endianness; in alsa_init_in()
1015 hw->samples = obt.samples; in alsa_init_in()