use save parameters instead of calling getpar()

This commit is contained in:
Alexandre Ratchov 2014-02-13 16:39:42 +01:00
parent 7fbbfab94a
commit 1161add0e8
1 changed files with 3 additions and 9 deletions

View File

@ -181,17 +181,11 @@ static int
sio_aucat_start(struct sio_hdl *sh)
{
struct sio_aucat_hdl *hdl = (struct sio_aucat_hdl *)sh;
struct sio_par par;
/*
* save bpf
*/
if (!sio_getpar(&hdl->sio, &par))
return 0;
hdl->wbpf = par.bps * par.pchan;
hdl->rbpf = par.bps * par.rchan;
hdl->wbpf = hdl->sio.par.bps * hdl->sio.par.pchan;
hdl->rbpf = hdl->sio.par.bps * hdl->sio.par.rchan;
hdl->aucat.maxwrite = 0;
hdl->round = par.round;
hdl->round = hdl->sio.par.round;
hdl->delta = 0;
DPRINTFN(2, "aucat: start, maxwrite = %d\n", hdl->aucat.maxwrite);