}
static int alsa_open(struct writer_node *wn)
{
- struct alsa_write_args_info *conf = wn->conf;
-
- if (conf->buffer_tree_given)
+ if (wn->btrn)
return alsa_open_btr(wn);
- else
- return alsa_open_nobtr(wn);
-
+ return alsa_open_nobtr(wn);
}
static int alsa_write_pre_select(struct sched *s, struct writer_node *wn)
{
- struct alsa_write_args_info *conf = wn->conf;
struct private_alsa_write_data *pad = wn->private_data;
struct writer_node_group *wng = wn->wng;
struct timeval tv;
if (!pad->handle)
return 1;
- if (conf->buffer_tree_given) {
+ if (wn->btrn) {
size_t sz = btr_get_input_queue_size(wn->btrn);
if (sz < pad->bytes_per_frame)
return 1;