diff options
author | 2002-10-04 19:55:19 +0000 | |
---|---|---|
committer | 2002-10-04 19:55:19 +0000 | |
commit | c59093cfce42ba523cd0cf2ec81cfffe738d2246 (patch) | |
tree | 9df0b073bf778213d0f98f76026084c9df7f9abd | |
parent | since we lndir the sources we do not need the .CURDIR in the toke deps (diff) | |
download | wireguard-openbsd-c59093cfce42ba523cd0cf2ec81cfffe738d2246.tar.xz wireguard-openbsd-c59093cfce42ba523cd0cf2ec81cfffe738d2246.zip |
do not read the codec regs, it seems to shutter the sound; from grendel@zeitbombe.org, reported and tested by rayl@spamcop.net
-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", |