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:
parent
9e402fc673
commit
132593d4da
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user