summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2008-12-29 22:41:46 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2008-12-29 22:41:46 +0000
commitf04e408022c950b3333caed8f4d319f937f1f303 (patch)
tree617bf7d56c03e88ae7e8f5b85aa43194d7c9b924 /sys/dev/pci
parent52eed005a1765b2b169daec79aa9643e337a36f7 (diff)
initialize the sample rate converter on es1371 chips to 48 kHz instead
of 22.5 kHz, since this is an ac97(4) device, and the default sample rate for ac97(4) is 48 kHz. tested by jasper@, thanks
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/eap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/eap.c b/sys/dev/pci/eap.c
index 5de9a1d109c..1cfef2f62a2 100644
--- a/sys/dev/pci/eap.c
+++ b/sys/dev/pci/eap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eap.c,v 1.35 2008/10/25 22:30:43 jakemsr Exp $ */
+/* $OpenBSD: eap.c,v 1.36 2008/12/29 22:41:45 jakemsr Exp $ */
/* $NetBSD: eap.c,v 1.46 2001/09/03 15:07:37 reinoud Exp $ */
/*
@@ -645,7 +645,7 @@ eap_attach(struct device *parent, struct device *self, void *aux)
/*
* Must properly reprogram sample rate converter,
* or it locks up. Set some defaults for the life of the
- * machine, and set up a sb default sample rate.
+ * machine, and set up an ac97 default sample rate.
*/
EWRITE4(sc, E1371_SRC, E1371_SRC_DISABLE);
for (i = 0; i < 0x80; i++)
@@ -660,9 +660,9 @@ eap_attach(struct device *parent, struct device *self, void *aux)
eap1371_src_write(sc, ESRC_DAC1_VOLR, ESRC_SET_DAC_VOLI(1));
eap1371_src_write(sc, ESRC_DAC2_VOLL, ESRC_SET_DAC_VOLI(1));
eap1371_src_write(sc, ESRC_DAC2_VOLR, ESRC_SET_DAC_VOLI(1));
- eap1371_set_adc_rate(sc, 22050);
- eap1371_set_dac_rate(sc, 22050, 1);
- eap1371_set_dac_rate(sc, 22050, 2);
+ eap1371_set_adc_rate(sc, 48000);
+ eap1371_set_dac_rate(sc, 48000, 1);
+ eap1371_set_dac_rate(sc, 48000, 2);
EWRITE4(sc, E1371_SRC, 0);