summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2008-02-13 23:30:52 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2008-02-13 23:30:52 +0000
commit99998a5b6e728b1c06f6176495c48bc63845a97c (patch)
tree5a0f3147df61de553e59bb7864192acfb9df7ba6 /sys/dev
parentf2b5c15547e9074adf9b3206e8ed089a067358f7 (diff)
as with the recent auich(4) commit, set the sample rate of the
front dac last. problem found and analyzed by ian@, thanks ok ian@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/auixp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/auixp.c b/sys/dev/pci/auixp.c
index cff076797c8..f4573f82788 100644
--- a/sys/dev/pci/auixp.c
+++ b/sys/dev/pci/auixp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auixp.c,v 1.15 2008/02/12 13:02:21 jakemsr Exp $ */
+/* $OpenBSD: auixp.c,v 1.16 2008/02/13 23:30:51 jakemsr Exp $ */
/* $NetBSD: auixp.c,v 1.9 2005/06/27 21:13:09 thorpej Exp $ */
/*
@@ -537,7 +537,7 @@ auixp_set_params(void *hdl, int setmode, int usemode,
temprate = play->sample_rate;
error = ac97_set_rate(co->codec_if,
- AC97_REG_PCM_FRONT_DAC_RATE, &play->sample_rate);
+ AC97_REG_PCM_LFE_DAC_RATE, &play->sample_rate);
if (error)
return (error);
@@ -549,7 +549,7 @@ auixp_set_params(void *hdl, int setmode, int usemode,
play->sample_rate = temprate;
error = ac97_set_rate(co->codec_if,
- AC97_REG_PCM_LFE_DAC_RATE, &play->sample_rate);
+ AC97_REG_PCM_FRONT_DAC_RATE, &play->sample_rate);
if (error)
return (error);