[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: eap0 failure on OpenBSD pre 3.5 snap



I asume that this patch already made it into my now running
3.5 pre SNAP, cause the error is away and CD and WAV/MP3/OGG sound
does *VERY* well.
I also checked out sys-src cvs and found the patch applied.
Thanks for your work and sorry for answering that late, I was on duty.
I'm running the pre-build 3.5 which names itself :

OpenBSD hal9000.home.lan 3.5 GENERIC#21 i386

Again, thanks.

On Mon, 15 Mar 2004 14:42:20 -0500 (EST)
Ted Unangst <tedu@zeitbombe.org> wrote:

> use this patch from Joris.  if it works, get back to me.
> 
> 
> Index: eap.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/eap.c,v
> retrieving revision 1.20
> diff -u -r1.20 eap.c
> --- eap.c	14 May 2003 05:18:48 -0000	1.20
> +++ eap.c	15 Mar 2004 03:45:00 -0000
> @@ -136,8 +136,11 @@
>  
>  	struct ac97_codec_if *codec_if;
>  	struct ac97_host_if host_if;	
> +
> +	int flags;
>  };
>  
> +enum	ac97_host_flags eap_flags_codec(void *);
>  int	eap_allocmem(struct eap_softc *, size_t, size_t, struct eap_dma *);
>  int	eap_freemem(struct eap_softc *, struct eap_dma *);
>  
> @@ -654,7 +657,9 @@
>  		sc->host_if.read = eap1371_read_codec;
>  		sc->host_if.write = eap1371_write_codec;
>  		sc->host_if.reset = eap1371_reset_codec;
> -		
> +		sc->host_if.flags = eap_flags_codec;
> +		sc->flags = AC97_HOST_DONT_READ;
> +	
>  		if (ac97_attach(&sc->host_if) == 0) {
>  			/* Interrupt enable */
>  			EWRITE4(sc, EAP_SIC, EAP_P2_INTR_EN | EAP_R1_INTR_EN);
> @@ -1628,3 +1633,13 @@
>  	return (AUDIO_PROP_MMAP | AUDIO_PROP_INDEPENDENT | 
>  		AUDIO_PROP_FULLDUPLEX);
>  }
> +
> +enum ac97_host_flags
> +eap_flags_codec(void *v)
> +{
> +      struct eap_softc *sc = v;
> +
> +      return (sc->flags);
> +}
> +
> +
> 
> \\ Joris
> 
> 
> 
> -- 
> we owe so much money we're not broke we're broken
> we're so poor we can't even pay attention