diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2010-04-04 00:43:37 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2010-04-04 00:43:37 +0000 |
commit | 015080dc6b0f7d5f71d939be9aff39ccc88b7618 (patch) | |
tree | 522b6a839d0ae36b7c825fd53d0012f65a0a3acf /sys/dev/pci | |
parent | 2a477c4b7c833b885282eea42e33b1d38dd95cca (diff) |
avoid rounding the blocksize to 0
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/auacer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/auacer.c b/sys/dev/pci/auacer.c index 55e6601ee23..1e8f606d04b 100644 --- a/sys/dev/pci/auacer.c +++ b/sys/dev/pci/auacer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auacer.c,v 1.4 2008/10/25 22:30:43 jakemsr Exp $ */ +/* $OpenBSD: auacer.c,v 1.5 2010/04/04 00:43:36 jakemsr Exp $ */ /* $NetBSD: auacer.c,v 1.3 2004/11/10 04:20:26 kent Exp $ */ /*- @@ -670,7 +670,7 @@ auacer_set_params(void *v, int setmode, int usemode, struct audio_params *play, int auacer_round_blocksize(void *v, int blk) { - return (blk & ~0x3f); /* keep good alignment */ + return ((blk + 0x3f) & ~0x3f); /* keep good alignment */ } static void |