if (!strcmp(cmd, "samplerate")) {
if (pod->samplerate == 0)
- return -ERRNO_TO_PARA_ERROR(ENAVAIL);
+ return -E_BTR_NAVAIL;
*result = make_message("%u", pod->samplerate);
return 1;
}
if (!strcmp(cmd, "channels")) {
if (pod->channels == 0)
- return -ERRNO_TO_PARA_ERROR(ENAVAIL);
+ return -E_BTR_NAVAIL;
*result = make_message("%u", pod->channels);
return 1;
}
if (read_ret < 0)
goto out;
btr_add_output(out, read_ret, btrn);
- if (btr_node_status(btrn, fn->min_iqs, BTR_NT_INTERNAL) == 0)
+ if (btr_get_output_queue_size(btrn) > 640 * 1024)
return; /* enough data for the moment */
}
out: