Re: sound problems under 2.1.x with CMI8330

David Mansell (dhm23@cam.ac.uk)
Thu, 21 May 1998 14:05:16 +0000


--Message-Boundary-22786
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

On 21 May 98, Alan Cox wrote:

> > With 2.1.103 (and most recent kernels, I've tried a selection from
> > 2.1.9x onwards) it plays a few seconds of sound before locking the
> > machine hard (mouse cursor doesn't move under X).
>
> Can you throw some printk's in the ad1848 irq routine and play a few
> sounds in ad1848 mode and see what the log shows.

I uncommented some printk's which were already there and changed the
definitions of 'DEB' to actually do something (as per the attached
diff).

The logs are also attached, the first lump resulted from playing a
16-bit wave file and the second from an 8 bit.

HTH

-D

-- 
David Mansell, studying hard as usual...   dhm23@cam.ac.uk
+44 1223 357720  http://ban.joh.cam.ac.uk/  talk: dhm23@moh.joh.cam.ac.uk

--Message-Boundary-22786 Content-type: text/plain; charset=US-ASCII Content-disposition: inline Content-description: Attachment information.

The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance.

---- File information ----------- File: ad1848_diff Date: 21 May 1998, 14:01 Size: 917 bytes. Type: Text

--Message-Boundary-22786 Content-type: Application/Octet-stream; name="ad1848_diff"; type=Text Content-disposition: attachment; filename="ad1848_diff"

--- linux/drivers/sound/ad1848.c Thu May 21 13:24:11 1998 +++ linux/drivers/sound/ad1848.c.orig Thu May 21 13:22:28 1998 @@ -37,8 +37,8 @@ #include "soundmodule.h" -#define DEB(x) x -#define DEB1(x) x +#define DEB(x) +#define DEB1(x) #include "sound_config.h" #ifdef CONFIG_AD1848 @@ -160,7 +160,7 @@ cli(); outb(((unsigned char) (reg & 0xff) | devc->MCE_bit), io_Index_Addr(devc)); x = inb(io_Indexed_Data(devc)); - printk("(%02x<-%02x) ", reg|devc->MCE_bit, x); +/* printk("(%02x<-%02x) ", reg|devc->MCE_bit, x); */ restore_flags(flags); return x; @@ -178,7 +178,7 @@ cli(); outb(((unsigned char) (reg & 0xff) | devc->MCE_bit), io_Index_Addr(devc)); outb(((unsigned char) (data & 0xff)), io_Indexed_Data(devc)); - printk("(%02x->%02x) ", reg|devc->MCE_bit, data); + /* printk("(%02x->%02x) ", reg|devc->MCE_bit, data); */ restore_flags(flags); } --Message-Boundary-22786 Content-type: text/plain; charset=US-ASCII Content-disposition: inline Content-description: Attachment information.

The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance.

---- File information ----------- File: moh_kern.txt Date: 21 May 1998, 14:04 Size: 5847 bytes. Type: Text

--Message-Boundary-22786 Content-type: Application/Octet-stream; name="moh_kern.txt"; type=Text Content-disposition: attachment; filename="moh_kern.txt"

May 21 13:29:09 moh kernel: Linux version 2.1.103 (dhm23@moh) (gcc version 2.7.2.3) #1 Thu May 21 03:29:58 BST 1998 May 21 13:29:09 moh kernel: Console: 8 point font, 400 scans May 21 13:29:09 moh kernel: Console: colour VGA+ 80x50, 1 virtual console (max 63) May 21 13:29:09 moh kernel: Calibrating delay loop... 165.89 BogoMIPS May 21 13:29:09 moh kernel: Memory: 63348k/65536k available (740k kernel code, 392k reserved, 1024k data, 32k init) May 21 13:29:09 moh kernel: Checking if this processor honours the WP bit even in supervisor mode... Ok. May 21 13:29:09 moh kernel: VFS: Diskquotas version dquot_6.4.0 initialized May 21 13:29:09 moh kernel: CPU: Cyrix Cx486SLC May 21 13:29:09 moh kernel: POSIX conformance testing by UNIFIX May 21 13:29:09 moh kernel: PCI: Using configuration type 1 May 21 13:29:09 moh kernel: PCI: Probing PCI hardware May 21 13:29:09 moh kernel: Starting kswapd v 1.5 May 21 13:29:09 moh kernel: Software Watchdog Timer: 0.05, timer margin: 60 sec May 21 13:29:09 moh kernel: SIS5513: IDE controller on PCI bus 00 dev 01 May 21 13:29:09 moh kernel: SIS5513: not 100% native mode: will probe irqs later May 21 13:29:09 moh kernel: ide0: BM-DMA at 0x4000-0x4007, BIOS settings: hda:pio, hdb:pio May 21 13:29:10 moh kernel: ide1: BM-DMA at 0x4008-0x400f, BIOS settings: hdc:pio, hdd:pio May 21 13:29:10 moh kernel: hda: Maxtor 83201A6, ATA DISK drive May 21 13:29:10 moh kernel: hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x50) May 21 13:29:10 moh kernel: hdb: non-IDE drive, CHS=0/0/0 May 21 13:29:10 moh kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 May 21 13:29:10 moh kernel: hdb: INVALID GEOMETRY: 0 PHYSICAL HEADS? May 21 13:29:10 moh kernel: ne.c: PCI BIOS reports Realtek 8029 at i/o 0xdf80, irq 9. May 21 13:29:10 moh kernel: ne.c:v1.10 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov) May 21 13:29:10 moh kernel: NE*000 ethercard probe at 0xdf80: 00 c0 f0 2a 05 b6 May 21 13:29:10 moh kernel: eth0: NE2000 found at 0xdf80, using IRQ 9. May 21 13:29:10 moh kernel: Partition check: May 21 13:29:10 moh kernel: hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 hda9 hda10 > May 21 13:29:10 moh kernel: VFS: Mounted root (ext2 filesystem) readonly. May 21 13:29:10 moh kernel: Freeing unused kernel memory: 32k freed May 21 13:29:10 moh kernel: Adding Swap: 64476k swap-space (priority -1) May 21 13:29:15 moh kernel: nfs warning: mount version older than kernel May 21 13:31:05 moh kernel: (40->aa) (41->45) (40<-aa) (41<-45) (40->45) (41->aa) (40<-45) (41<-aa) (4c<-0a) (4c->05) (4c<-0a) (4c->00) (40<-45) (50<-45) (41<-aa) (51<-aa) (42<-80) (52<-80) (43<-80) (53<-80) (44<-80) (54<-80) (45<-80) (55<-80) (46<-80) ( 56<-80) (47<-80) (57<-80) (48<-00) (58<-00) (49<-08) (59<-08) (4a<-00) (5a<-00) (4b<-00) (5b<-00) (4c<-0a) (5c<-0a) (4d<-00) (5d<-00) (4e<-00) (5e<-00) (4f<-00) (5f<-00) (4c->40) (4c<-0a) (40->a8) (41->a8) (42->08) (43->08) (44->08) (45->08) (46->00) (47 ->00) (48->00) (49->0c) (4a->02) (4b->00) (4c->8a) (4d->01) (4e->00) (4f->00) (46<-00) (47<-00) (49<-0c) (49->0c) (49<-0c) (0b<-00) (0b<-00) (0b<-00) (0b<-00) (0b<-00) (0b<-00) (0b<-00) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<- 20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20 May 21 13:34:15 moh kernel: (09<-ff) (06<-ff) (07<-ff) (0b<-ff) (09<-ff) (09->fe) (0f->ff) (0e->03) (09<-ff) <4>Sound: DMA (output) timed out - IRQ/DRQ config error? May 21 13:34:19 moh kernel: (09<-ff) (06<-ff) (07<-ff) (0b<-ff) (09<-ff) (09->fe) (0f->ff) (0e->03) (09<-ff) <4>Sound: DMA (output) timed out - IRQ/DRQ config error? May 21 13:34:37 moh kernel: (09<-ff) (06<-ff) (07<-ff) (0b<-ff) (09<-ff) (09->fe) (0f->ff) (0e->03) (09<-ff) <4>Sound: DMA (output) timed out - IRQ/DRQ config error?

<crash, repeat of boot messages>

May 21 13:37:57 moh kernel: a guy asks for address mask. Who is it? <unrelated point: anyone know what this means?>

May 21 13:38:37 moh kernel: (40->aa) (41->45) (40<-aa) (41<-45) (40->45) (41->aa) (40<-45) (41<-aa) (4c<-0a) (4c->05) (4c<-0a) (4c->00) (40<-45) (50<-45) (41<-aa) (51<-aa) (42<-80) (52<-80) (43<-80) (53<-80) (44<-80) (54<-80) (45<-80) (55<-80) (46<-80) ( 56<-80) (47<-80) (57<-80) (48<-00) (58<-00) (49<-08) (59<-08) (4a<-00) (5a<-00) (4b<-00) (5b<-00) (4c<-0a) (5c<-0a) (4d<-00) (5d<-00) (4e<-00) (5e<-00) (4f<-00) (5f<-00) (4c->40) (4c<-0a) (40->a8) (41->a8) (42->08) (43->08) (44->08) (45->08) (46->00) (47 ->00) (48->00) (49->0c) (4a->02) (4b->00) (4c->8a) (4d->01) (4e->00) (4f->00) (46<-00) (47<-00) (49<-0c) (49->0c) (49<-0c) (0b<-00) (0b<-00) (0b<-00) (0b<-00) (0b<-00) (0b<-00) (0b<-00) (0b<-00) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<- 20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20 May 21 13:42:09 moh kernel: 8) (01->a8) (0d<-01) (0d->fd) (00<-a8) (00->ae) (01<-a8) (01->ae) (02<-08) (02->07) (03<-08) (03->07) (04<-08) (04->07) (05<-08) (05->07) (00<-ae) (00->ae) (01<-ae) (01->ae) (1a<-02) (1a->42) (09<-0c) (06<-08) (07<-08) (06<-08 ) (07<-08) (48<-00) (48->1b) (49<-0c) (0b<-00) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-00) (0b<-00) (09<-0c) (0f->ff) (0e->07) (09<-0c) (09->0d) (09<-0d) (09<-0d) (09<-0d) (06<-08) (07<-08) (0b<-00) (0b<-10) (09<-0d) (09->0c) ad1848_close(void) May 21 13:50:00 moh kernel: (09<-0c) (09<-0c) (06<-08) (07<-08) (06<-08) (07<-08) (48<-1b) (48->1b) (49<-0c) (0b<-00) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-20) (0b<-00) (0b<-00) (09<-0c) (0f->ff) (0e->07) (09<-0c) (09->0d) <4>Sound: DMA (outp ut) timed out - IRQ/DRQ config error?

--Message-Boundary-22786--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu