diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-10-04 19:55:20 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-10-04 19:55:20 +0000 |
commit | a30ed2b568021392f4be70acc998d10148eca691 (patch) | |
tree | 52060e787f5575df37793b3b461a29a0b7e2c045 /sys | |
parent | 3affbc30378260b8ee270a00ea23ff87c2b87c3a (diff) |
do not read the codec regs, it seems to shutter the sound; from grendel@zeitbombe.org, reported and tested by rayl@spamcop.net
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/autri.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/autri.c b/sys/dev/pci/autri.c index 54feb70c6e2..afbc451b6b7 100644 --- a/sys/dev/pci/autri.c +++ b/sys/dev/pci/autri.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autri.c,v 1.8 2002/09/26 22:14:50 mickey Exp $ */ +/* $OpenBSD: autri.c,v 1.9 2002/10/04 19:55:19 mickey Exp $ */ /* * Copyright (c) 2001 SOMEYA Yoshihiko and KUROSAWA Takahiro. @@ -97,6 +97,7 @@ int autri_attach_codec(void *sc, struct ac97_codec_if *); int autri_read_codec(void *sc, u_int8_t a, u_int16_t *d); int autri_write_codec(void *sc, u_int8_t a, u_int16_t d); void autri_reset_codec(void *sc); +enum ac97_host_flags autri_flags_codec(void *); void autri_powerhook(int why,void *addr); int autri_init(void *sc); @@ -459,6 +460,12 @@ autri_reset_codec(sc_) sc->sc_dev.dv_xname); } +enum ac97_host_flags +autri_flags_codec(void *v) +{ + return (AC97_HOST_DONT_READ); +} + /* * */ @@ -566,6 +573,7 @@ autri_attach(parent, self, aux) codec->host_if.reset = autri_reset_codec; codec->host_if.read = autri_read_codec; codec->host_if.write = autri_write_codec; + codec->host_if.flags = autri_flags_codec; if ((r = ac97_attach(&codec->host_if)) != 0) { printf("%s: can't attach codec (error 0x%X)\n", |