Messages in this thread Patch in this message | | | Date | Sun, 31 May 1998 02:00:04 +0200 (MET DST) | From | Maciej Szulc <> | Subject | SOUND: OPTI 931 troubles in 2.1.103 - patch |
| |
Hi.
I've just tested 2.1.103 with opti931 soundcard. I've used isapnp to init (with success - i could talk with card using OPTi82c931.c written by D.M.Burns) Then i've tried sounddriver for mad16 from 2.1.103. It has stopped in ad1848_detect, step A. This is dump of errors: ad1848_detect: The base I/O address appears to be dead ad1848 detect error - step A Error message was sth like "Device or resource busy"
I've found that that's caused by improper init of 931 chip, reg MC4. Driver writes 0x52 (0x62), instead of 0x55 (0x65). Bit 2 enables/disables audio on board. After fixing this my card started to work.
Here's patch against 2.1.103:
diff -u --recursive linux-2.1.103/drivers/sound/mad16.c linux-2.1.103.hack/drivers/sound/mad16.c --- linux-2.1.103/drivers/sound/mad16.c Thu May 14 19:33:17 1998 +++ linux-2.1.103.hack/drivers/sound/mad16.c Sun May 31 01:39:47 1998 @@ -407,11 +407,11 @@ mad_write(MC3_PORT, 0); /* Disable SB mode IRQ and DMA */ #ifdef MAD16_CDSEL if(MAD16_CDSEL & 0x20) - mad_write(MC4_PORT, 0x62); /* opl4 */ + mad_write(MC4_PORT, 0x65); /* opl4 & enable audio*/ else - mad_write(MC4_PORT, 0x52); /* opl3 */ + mad_write(MC4_PORT, 0x55); /* opl3 & enable audio*/ #else - mad_write(MC4_PORT, 0x52); + mad_write(MC4_PORT, 0x55); #endif mad_write(MC5_PORT, 0x3C); /* Init it into mode2 */ mad_write(MC6_PORT, 0x02); /* Enable WSS, Disable MPU and SB */ That's all foks. Hi.
__________ _____ \ __ / Maciej Szulc \ / e-mail: Student of Computer Science \/ wodzu@pg.gda.pl Technical University /\ wodzu@ds2.pg.gda.pl of Gdansk /\/\ d61292ms@cs-boglab.eti.pg.gda.pl /. .\ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~oooooo~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DS-2 server delta.ds2.pg.gda.pl system administrator
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |