diff options
Diffstat (limited to 'sys/arch/sparc/dev/cs4231.c')
-rw-r--r-- | sys/arch/sparc/dev/cs4231.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/cs4231.c b/sys/arch/sparc/dev/cs4231.c index bb5671f33e6..830871b3820 100644 --- a/sys/arch/sparc/dev/cs4231.c +++ b/sys/arch/sparc/dev/cs4231.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4231.c,v 1.28 2010/06/18 23:47:24 miod Exp $ */ +/* $OpenBSD: cs4231.c,v 1.29 2010/07/15 03:43:11 jakemsr Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -645,6 +645,8 @@ cs4231_query_encoding(addr, fp) default: err = EINVAL; } + fp->bps = AUDIO_BPS(fp->precision); + fp->msb = 1; return (err); } @@ -735,6 +737,9 @@ cs4231_set_params(addr, setmode, usemode, p, r) p->sw_code = pswcode; r->sw_code = rswcode; + p->bps = AUDIO_BPS(p->precision); + r->bps = AUDIO_BPS(r->precision); + p->msb = r->msb = 1; sc->sc_format_bits = bits; sc->sc_channels = p->channels; |