summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgreid <greid@FreeBSD.org>2001-08-02 22:13:10 +0000
committergreid <greid@FreeBSD.org>2001-08-02 22:13:10 +0000
commit132593d4da90f426d4f6c0620c67c36ae60a75df (patch)
tree911f2f30abe6a25e50dd8b7e43624de104016a0a
parent9e402fc673a4a5ca4c028ecc7b367b90734ddb2b (diff)
downloadFreeBSD-src-132593d4da90f426d4f6c0620c67c36ae60a75df.zip
FreeBSD-src-132593d4da90f426d4f6c0620c67c36ae60a75df.tar.gz
Set up the via_chinfo structures properly so we write to the correct
registers later on; this fixes the VIA82C686 sound problems recently reported by a number of people.
-rw-r--r--sys/dev/sound/pci/via82c686.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pci/via82c686.c b/sys/dev/sound/pci/via82c686.c
index b9c755e..fafaebd 100644
--- a/sys/dev/sound/pci/via82c686.c
+++ b/sys/dev/sound/pci/via82c686.c
@@ -248,12 +248,12 @@ viachan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *
if (ch->dir == PCMDIR_PLAY) {
ch->base = VIA_PLAY_DMAOPS_BASE;
ch->count = VIA_PLAY_DMAOPS_COUNT;
- ch->ctrl = VIA_RECORD_CONTROL;
+ ch->ctrl = VIA_PLAY_CONTROL;
ch->mode = VIA_PLAY_MODE;
} else {
ch->base = VIA_RECORD_DMAOPS_BASE;
ch->count = VIA_RECORD_DMAOPS_COUNT;
- ch->ctrl = VIA_PLAY_CONTROL;
+ ch->ctrl = VIA_RECORD_CONTROL;
ch->mode = VIA_RECORD_MODE;
}
OpenPOWER on IntegriCloud