diff options
Diffstat (limited to 'lib/libsndio/sun.c')
-rw-r--r-- | lib/libsndio/sun.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libsndio/sun.c b/lib/libsndio/sun.c index 55e745d1440..2e8502cd203 100644 --- a/lib/libsndio/sun.c +++ b/lib/libsndio/sun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sun.c,v 1.26 2009/12/02 08:19:11 ratchov Exp $ */ +/* $OpenBSD: sun.c,v 1.27 2010/02/10 23:03:53 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -270,8 +270,8 @@ sun_getcap(struct sio_hdl *sh, struct sio_cap *cap) continue; } cap->enc[nenc].bits = ae.precision; - cap->enc[nenc].bps = ae.precision / 8; - cap->enc[nenc].msb = 0; + cap->enc[nenc].bps = SIO_BPS(ae.precision); + cap->enc[nenc].msb = 1; enc_map |= (1 << nenc); nenc++; } |