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

Re: OPL3-SAx sound CLIPPING/SKIPPING under HDD+MOUSE activity



Okay, I've read through your whole message so here's a nice response for
you :)  You'll love it...

On Fri, 7 May 1999, Rune Linding Raun wrote:
> Hi & HELP!
> I got a laptop(K6-23D 333+64Mb RAM S3 virge mg/mx) with a OPL3-SAx(yamaha 719)
> sound chipset. It works perfectly under win98, but i dont use 98. The problem
> is that sound through dsp device is clipped/disturbed by HDD+MOUSE activity in
> X and X-free sessions! Iam using kernel 2.2.x and compiling with modular
> OPL3-SAx support and initializing the card with isapnp since its a PnP chipset.
> I havent been able to figure out the obvious I/O conflict but iam not a HEX
> master so I have pasted in some of my /proc/ files from a
> system where i can get sound(mp3 eg) but clipping and skipping of the output
> then i move the mouse or there is harddisk activity( it dosent seem to be a CPU
> dependent prob).

Not exactly sure here, but it might be related to the stuff below ...

> 
> please help I need sound on my mobile-LinuxBOX :)!!!
> 
> 
> /var/proc/ioports:
> 0000-001f : dma1
> 
> .. Stuff cut out ...
> 


Okay here's where we get to the interesting bit...

> /var/proc/pci:
> PCI devices found:
>   Bus  0, device   0, function  0:
>     Host bridge: Silicon Integrated Systems 5597/5598 Host (rev 4).
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This is the same motherboard as mine apparantly, so I can give you almost
detailed information on how to get it working...

The actual sound board used, is the CMI8330 (commonly refered to as the
soundpro).  And yes, the OPL3-SAx driver does appear to work, however,
there is a much better method of getting it to work.

I have attached the two sound files that may interest you...

And yes, I'm using the new kernel (2.2.4, I'm waiting to see how much gets
modified with 2.2.5)..

If the attached files don't help too much, then try checking your
isapnp.conf file and making sure you have everything set the way you think
it should be :)

Hope this helps,
	Peter Ludwig

How to enable CMI 8330 soundchip on Linux
------------------------------------------
Stefan Laudat <Stefan.Laudat@asit.ro>

Hello folks, 
	
	The CMI8330 soundchip is a very small chip found on many recent 
	motherboards. In order to use it you just have to use a proper 
        isapnp.conf and a little bit of patience. 
	
	Of course you will have to compile kernel sound support as module, 
        as shown below:

CONFIG_SOUND=m
CONFIG_SOUND_OSS=m
CONFIG_SOUND_SB=m
CONFIG_SOUND_ADLIB=m
CONFIG_SOUND_MPU401=m
# Just for fun :)
CONFIG_SOUND_MSS=m

	The /etc/isapnp.conf file will be:

<snip below>

(READPORT 0x0203)
(ISOLATE PRESERVE)
(IDENTIFY *)
(VERBOSITY 2)
(CONFLICT (IO FATAL)(IRQ FATAL)(DMA FATAL)(MEM FATAL)) # or WARNING
(VERIFYLD N)
# WSS 

(CONFIGURE CMI0001/16777472 (LD 0
(IO 0 (SIZE 8) (BASE 0x0530))
(IO 1 (SIZE 8) (BASE 0x0388))
(INT 0 (IRQ 5 (MODE +E)))
(DMA 0 (CHANNEL 0))
(NAME "CMI0001/16777472[0]{CMI8330/C3D Audio Adapter}")
(ACT Y)
))

# Control device ? 

(CONFIGURE CMI0001/16777472 (LD 1
(IO 0 (SIZE 2) (BASE 0x0330))
(INT 0 (IRQ 11 (MODE +E)))
(NAME "CMI0001/16777472[1]{CMI8330/C3D Audio Adapter}")
(ACT Y)
))

# Joystick

(CONFIGURE CMI0001/16777472 (LD 2
(IO 0 (SIZE 8) (BASE 0x0200))
(NAME "CMI0001/16777472[2]{CMI8330/C3D Audio Adapter}")
(ACT Y)
))

#  SB... 
(CONFIGURE CMI0001/16777472 (LD 3
(IO 0 (SIZE 16) (BASE 0x0220))
(INT 0 (IRQ 7 (MODE +E)))
(DMA 0 (CHANNEL 1))
(DMA 1 (CHANNEL 5))
(NAME "CMI0001/16777472[3]{CMI8330/C3D Audio Adapter}")
(ACT Y)
))


(WAITFORKEY)

<end of snip>

	The module sequence is trivial:

/sbin/modprobe sound
# You need to load the ad1848 module first. That matters, otherwise the 
# chip falls into soundblaster compatibility and you won't get it back out
/sbin/insmod ad1848 io=0x530 dma=0 irq=5 soundpro=1
/sbin/insmod uart401
/sbin/insmod sb io=0x220 irq=5 dma=1 dma16=-1
/sbin/insmod mpu401 io=0x330
/sbin/insmod opl3 io=0x388

	The soundchip is now fully initialized. Enjoy it.
To configure the Crystal CS423x sound chip and activate its DSP functions,
modules may be loaded in this order:
  
	modprobe sound
	insmod ad1848
	insmod uart401
	insmod cs4232 io=* irq=* dma=* dma2=*
  
This is the meaning of the parameters:
  
	io--I/O address of the Windows Sound System (normally 0x534)
	irq--IRQ of this device
	dma and dma2--DMA channels (DMA2 may be 0)
  
On some cards, the board attempts to do non-PnP setup, and fails.  If you
have problems, use Linux' PnP facilities. 
  
To get MIDI facilities add
  
	insmod opl3 io=*
  
where "io" is the I/O address of the OPL3 synthesizer. This will be shown
in /proc/sys/pnp and is normally 0x388.

Reply to: