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.
This commit is contained in:
greid 2001-08-02 22:13:10 +00:00
parent 9e402fc673
commit 132593d4da

View File

@ -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;
}