summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-04-24 14:13:35 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-04-24 14:13:35 +0000
commitffa8e1d0d92fec715a2701cf5ab52d52c6106910 (patch)
treefd5e5bea73edc3656452bcfe189fa025ed65be51
parent297a811ebab990c57575a09504e34bc8c081f091 (diff)
when probing an encoding of a audio(4) device, don't forget to
set record precision.
-rw-r--r--lib/libsndio/sun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libsndio/sun.c b/lib/libsndio/sun.c
index 10ade3d1388..c59faba3f8a 100644
--- a/lib/libsndio/sun.c
+++ b/lib/libsndio/sun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sun.c,v 1.30 2010/04/24 06:15:54 ratchov Exp $ */
+/* $OpenBSD: sun.c,v 1.31 2010/04/24 14:13:34 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -171,6 +171,7 @@ sun_tryinfo(struct sun_hdl *hdl, struct sio_enc *enc,
aui.record.encoding = AUDIO_ENCODING_ULINEAR_BE;
}
aui.play.precision = enc->bits;
+ aui.record.precision = enc->bits;
}
if (pchan)
aui.play.channels = pchan;