No need to open-code sched_request_timeout_ms().
{
struct writer_node *wn = container_of(t, struct writer_node, task);
struct private_alsa_write_data *pad = wn->private_data;
- struct timeval tv;
snd_pcm_sframes_t avail, underrun;
int ret = btr_node_status(wn->btrn, wn->min_iqs, BTR_NT_LEAF);
if (underrun < 50)
underrun = 50;
underrun -= 50;
- ms2tv(underrun, &tv);
- sched_request_timeout(&tv, s);
+ sched_request_timeout_ms(underrun, s);
}
static void alsa_close(struct writer_node *wn)