Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2000 17:41:35 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        Cameron Grant <cg@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@hak.lan.Awfulhak.org
Subject:   Re: cvs commit: src/sys/dev/sound/pcm ac97.c ac97.h sound.c sound.h src/sys/dev/sound/pci aureal.c csapcm.c es137x.c neomagic.c t4dwave.c 
Message-ID:  <200003211741.RAA00548@hak.lan.Awfulhak.org>
In-Reply-To: Message from Cameron Grant <cg@FreeBSD.org>  of "Mon, 20 Mar 2000 07:30:51 PST." <200003201530.HAA50720@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
This jams my PCG-F190 at probe time.  I get

> pci0: <NeoMagic MagicMedia 256AV SVGA controller> at 8.0 irq 9
> pcm0: <NeoMagic 256AV> mem 0xfec00000-0xfecfffff,0xfe000000-0xfe3fffff irq 9 at device 8.1 on pci0

And then a lock-up.  When I apply the attached patch, things work for
a while, but the machine seems keen on hanging still....

FWIW, the proble line that never happens when ac97_initmixer() is
called is:

> chip2: <Sony CXD1847A FireWire Host Controller> mem 0xfe7ffc00-0xfe7ffdff irq 9 at device 9.0 on pci0

Any suggestions ?

[.....]
> cg          2000/03/20 07:30:51 PST
> 
>   Modified files:
>     sys/dev/sound/pcm    ac97.c ac97.h sound.c sound.h 
>     sys/dev/sound/pci    aureal.c csapcm.c es137x.c neomagic.c 
>                          t4dwave.c 
>   Log:
>   update the ac97 layer:
>   * add a callback for initialising the mixer interface
>   * support ac97 2.1 variable rate audio feature
>   
>   fix ac97-using drivers for the above
>   
>   add suspend/resume support for neomagic
>   
>   Revision  Changes    Path
>   1.6       +136 -63   src/sys/dev/sound/pcm/ac97.c
>   1.4       +44 -2     src/sys/dev/sound/pcm/ac97.h
>   1.18      +8 -1      src/sys/dev/sound/pcm/sound.c
>   1.11      +2 -1      src/sys/dev/sound/pcm/sound.h
>   1.9       +2 -2      src/sys/dev/sound/pci/aureal.c
>   1.9       +2 -2      src/sys/dev/sound/pci/csapcm.c
>   1.14      +2 -2      src/sys/dev/sound/pci/es137x.c
>   1.8       +37 -3     src/sys/dev/sound/pci/neomagic.c
>   1.10      +2 -2      src/sys/dev/sound/pci/t4dwave.c

-- 
Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !

Index: ac97.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/sound/pcm/ac97.c,v
retrieving revision 1.6
diff -u -r1.6 ac97.c
--- ac97.c	2000/03/20 15:30:46	1.6
+++ ac97.c	2000/03/21 17:33:22
@@ -374,7 +374,9 @@
 	struct ac97_info *codec = mix_getdevinfo(m);
 	if (codec == NULL)
 		return -1;
+/*
 	ac97_initmixer(codec);
+*/
 	mix_setdevs(m, ac97mixdevs | ((codec->caps & 4)? SOUND_MASK_BASS | SOUND_MASK_TREBLE : 0));
 	mix_setrecdevs(m, ac97recdevs);
 	return 0;




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003211741.RAA00548>