Subject: autri codec timeout resolved
To: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
From: tedu <grendel@zeitbombe.org>
List: tech-kern
Date: 10/08/2002 12:11:48
The correct fix for this issue is included below. There's some fuzz
(openBSD patch) but it applies clean.
--- autri.c.orig Sun Sep 29 05:14:28 2002
+++ autri.c Sun Sep 29 05:19:17 2002
@@ -97,6 +97,7 @@
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);
@@ -456,6 +457,12 @@
sc->sc_dev.dv_xname);
}
+enum ac97_host_flags
+autri_flags_codec(void *v)
+{
+ return (AC97_HOST_DONT_READ);
+}
+
/*
*
*/
@@ -563,6 +570,7 @@
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",
--
Mediocrity is a sin.