Linux Sound subsystem development
 help / color / mirror / Atom feed
* Problem with cs4232.o
@ 1999-01-24 23:44 Miles Lane
  1999-01-25  1:13 ` Alan Cox
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Miles Lane @ 1999-01-24 23:44 UTC (permalink / raw)
  To: linux-sound


Hi,

I have a Crystal Audio CS4232 sound card in my Quantex H-1331 laptop.
I have built my own kernel using 2.2.0-pre7ac and the rest of the
OS is installed from the RPMs on rawhide.redhat.com.  I also have
Gnome installed from the 0.99.2 files.

The problem is that when I start up X, if I try to use the sound card
a get a popping sound from the speakers and STDERR shows a messages
stating that the program couldn't access /dev/dsp.  If I then run
"rmmod cs4232 ; probemod cs4232", the sound card works fine.

This leads me to think that my soundcard driver settings are fine.
However, I don't know why the driver needs to be unloaded and reloaded
before the driver can be accessed successfully.  Perhaps it's a side
effect of loading Gnome, but I don't think so.

Let me know if you have suggestions.

Thanks!

	Miles

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with cs4232.o
  1999-01-24 23:44 Problem with cs4232.o Miles Lane
@ 1999-01-25  1:13 ` Alan Cox
  1999-01-26  3:06 ` Miles Lane
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Alan Cox @ 1999-01-25  1:13 UTC (permalink / raw)
  To: linux-sound

> The problem is that when I start up X, if I try to use the sound card
> a get a popping sound from the speakers and STDERR shows a messages
> stating that the program couldn't access /dev/dsp.  If I then run

That means its being used by something

> effect of loading Gnome, but I don't think so.

If you have esd running then yes

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with cs4232.o
  1999-01-24 23:44 Problem with cs4232.o Miles Lane
  1999-01-25  1:13 ` Alan Cox
@ 1999-01-26  3:06 ` Miles Lane
  1999-01-31  8:52 ` Miles Lane
  1999-01-31 17:38 ` Bill Nottingham
  3 siblings, 0 replies; 5+ messages in thread
From: Miles Lane @ 1999-01-26  3:06 UTC (permalink / raw)
  To: linux-sound


Alan,

I checked into this.  When I boot the system,
the drivers load as I described earlier.
If I then attempt to run "esd" before starting X,
I get this error:

	Sound: DMA (output) timed out - IRQ/DRQ config error?

I get this error running as root or from my user account.

Also, after starting X, if I try running xgalaga, I either
get the "Cannot access /dev/dsp" or I get what sound like
a sequence of short sound loops that slowly mutate.

Weird.

Thanks for any help you can offer!

	Miles

On Mon, 25 Jan 1999, Alan Cox wrote:

> > The problem is that when I start up X, if I try to use the sound card
> > a get a popping sound from the speakers and STDERR shows a messages
> > stating that the program couldn't access /dev/dsp.  If I then run
> 
> That means its being used by something
> 
> > effect of loading Gnome, but I don't think so.
> 
> If you have esd running then yes
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with cs4232.o
  1999-01-24 23:44 Problem with cs4232.o Miles Lane
  1999-01-25  1:13 ` Alan Cox
  1999-01-26  3:06 ` Miles Lane
@ 1999-01-31  8:52 ` Miles Lane
  1999-01-31 17:38 ` Bill Nottingham
  3 siblings, 0 replies; 5+ messages in thread
From: Miles Lane @ 1999-01-31  8:52 UTC (permalink / raw)
  To: linux-sound


Alan, thanks for your feedback thus far.   Please see if you can
figure what's wrong by examining this addition system info.

	THANKS!
		Miles

A reminder:  this is the problem where I get the
	Sound: DMA (output) timed out -IRQ/DRQ config error?
when accessing my sound card after booting and logging in.

Unloading the cs4232.o module and then running "modprobe cs4232" 
fixes the problem.  I'd like to fix this so the driver loads 
correctly on boot.

On Tue, 26 Jan 1999, Alan Cox wrote:

> Ok something there is a real bug. Can you mail me more info - especially
> the machine info
> 
> 

Here is my system information:

SOUND:

	OSS/Free:3.8s2++-971130
	Load type: Driver loaded as a module
	Kernel: Linux sparky 2.2.1 #4 Thu Jan 28 18:48:11 PST 1999 i686
	Config options: 0

	Installed drivers: 

	Card config: 

	Audio devices:
	0: Crystal audio controller (CS4236) (DUPLEX)

	Synth devices:
	0: Yamaha OPL3

	Midi devices:

	Timers:
	0: System clock
	1: Crystal audio controller (CS4236)

	Mixers:
	0: Crystal audio controller (CS4236)

MODULES:

	ppp                    17712   2 (autoclean)
	slhc                    4136   1 (autoclean) [ppp]
	cs4232                  2264   1
	serial_cs               3504   0 (unused)
	3c575_cb               16440   1
	cb_enabler              1860   1 [3c575_cb]
	ds                      5460   2 [serial_cs cb_enabler]
	i82365                 20764   2
	pcmcia_core            35384   0 [serial_cs cb_enabler ds i82365]
	opl3                   10244   1
	uart401                 5588   1 [cs4232]
	ad1848                 14276   1 [cs4232]
	sound                  54456   0 [cs4232 opl3 uart401 ad1848]
	soundcore               2084   5 [sound]

IOPORTS:

	0000-001f : dma1
	0020-003f : pic1
	0040-005f : timer
	0060-006f : keyboard
	0070-007f : rtc
	0080-008f : dma page reg
	00a0-00bf : pic2
	00c0-00df : dma2
	00f0-00ff : fpu
	0170-0177 : ide1
	01f0-01f7 : ide0
	0280-02ff : cb_enabler
	0376-0376 : ide1
	0388-038b : Yamaha OPL3
	03c0-03df : vga+
	03e8-03ef : serial_cs
	03f6-03f6 : ide0
	03f8-03ff : serial(auto)
	0530-0533 : Crystal audio controller
	fcf0-fcf7 : ide0
	fcf8-fcff : ide1

INTERRUPTS:

	           CPU0       
	  0:    4703167          XT-PIC  timer
	  1:      28049          XT-PIC  keyboard
	  2:          0          XT-PIC  cascade
	  5:   28560935          XT-PIC  Crystal audio controller
	  8:          1          XT-PIC  rtc
	 10:     455925          XT-PIC  serial
	 11:          4          XT-PIC  i82365
	 12:     216084          XT-PIC  PS/2 Mouse
	 13:          1          XT-PIC  fpu
	 14:     148369          XT-PIC  ide0
	 15:     254102          XT-PIC  ide1
	NMI:          0

DMA:

	 0: Crystal audio controller
	 1: Crystal audio controller
	 4: cascade

DEVICES:

	Character devices:
	  1 mem
	  2 pty
	  3 ttyp
	  4 ttyS
	  5 cua
	  7 vcs
	 10 misc
	 14 sound
	128 ptm
	136 pts
	254 pcmcia
	
	Block devices:
	  2 fd
	  3 ide0
	 22 ide1

CPUINFO:

	processor	: 0
	vendor_id	: GenuineIntel
	cpu family	: 6
	model		: 5
	model name	: Pentium II (Deschutes)
	stepping	: unknown
	cpu MHz		: 232.109606
	cache size	: 512 KB
	fdiv_bug	: no
	hlt_bug		: no
	sep_bug		: no
	f00f_bug	: no
	fpu		: yes
	fpu_exception	: yes
	cpuid level	: 2
	wp		: yes
	flags		: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx osfxsr
	bogomips	: 231.01

MEMINFO:

	        total:    used:    free:  shared: buffers:  cached:
	Mem:  81629184 71348224 10280960 46329856  1880064 30765056
	Swap: 82538496  2924544 79613952
	MemTotal:     79716 kB
	MemFree:      10040 kB
	MemShared:    45244 kB
	Buffers:       1836 kB
	Cached:       30044 kB
	SwapTotal:    80604 kB
	SwapFree:     77748 kB

KERNEL VERSION:

	Linux version 2.2.1 (root@sparky) (gcc version 2.7.2.3) #4 Thu Jan 28 18:48:11 PST 1999

PCI DEVICES:

  Bus 35, device   0, function  0:
    Ethernet controller: 3Com Unknown device (rev 1).
      Vendor id\x10b7. Device idQ57.
      Medium devsel.  IRQ 3.  
      Non-prefetchable 32 bit memory at 0x280 [0x280].
      Non-prefetchable 32 bit memory at 0xa0021000 [0xa0021000].
      Non-prefetchable 32 bit memory at 0xa0020000 [0xa0020000].
  Bus  0, device   0, function  0:
    Host bridge: Intel 440BX - 82443BX Host (no AGP) (rev 2).
      Medium devsel.  Master Capable.  Latencyd.  
      Prefetchable 32 bit memory at 0x0 [0x8].
  Bus  0, device   2, function  0:
    VGA compatible controller: Neomagic MagicGraph NM2160 (rev 1).
      Medium devsel.  Fast back-to-back capable.  Master Capable.  Latency\x128.  Min Gnt\x16.Max Lat%5.
      Prefetchable 32 bit memory at 0xfd000000 [0xfd000008].
      Non-prefetchable 32 bit memory at 0xfea00000 [0xfea00000].
      Non-prefetchable 32 bit memory at 0xfed00000 [0xfed00000].
  Bus  0, device   4, function  0:
    CardBus bridge: Texas Instruments PCI1131 (rev 1).
      Medium devsel.  Master Capable.  Latency\x168.  Min Gnt\x192.Max Lat=7.
  Bus  0, device   4, function  1:
    CardBus bridge: Texas Instruments PCI1131 (rev 1).
      Medium devsel.  Master Capable.  Latency\x168.  Min Gnt\x128.Max Lat=7.
  Bus  0, device   7, function  0:
    Bridge: Intel 82371AB PIIX4 ISA (rev 2).
      Medium devsel.  Fast back-to-back capable.  Master Capable.  No bursts.  
  Bus  0, device   7, function  1:
    IDE interface: Intel 82371AB PIIX4 IDE (rev 1).
      Medium devsel.  Fast back-to-back capable.  Master Capable.  Latencyd.  
      I/O at 0xfcf0 [0xfcf1].
  Bus  0, device   7, function  2:
    USB Controller: Intel 82371AB PIIX4 USB (rev 1).
      Medium devsel.  Fast back-to-back capable.  Master Capable.  Latencyd.  
      I/O at 0xfcc0 [0xfcc1].
  Bus  0, device   7, function  3:
    Bridge: Intel 82371AB PIIX4 ACPI (rev 2).
      Medium devsel.  Fast back-to-back capable.  

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with cs4232.o
  1999-01-24 23:44 Problem with cs4232.o Miles Lane
                   ` (2 preceding siblings ...)
  1999-01-31  8:52 ` Miles Lane
@ 1999-01-31 17:38 ` Bill Nottingham
  3 siblings, 0 replies; 5+ messages in thread
From: Bill Nottingham @ 1999-01-31 17:38 UTC (permalink / raw)
  To: linux-sound

Miles Lane (root@amazon.com) said: 
> A reminder:  this is the problem where I get the
> 	Sound: DMA (output) timed out -IRQ/DRQ config error?
> when accessing my sound card after booting and logging in.
> 
> Unloading the cs4232.o module and then running "modprobe cs4232" 
> fixes the problem.  I'd like to fix this so the driver loads 
> correctly on boot.
<snip>
> MODULES:
<snip>
> 	pcmcia_core            35384   0 [serial_cs cb_enabler ds i82365]

I'd guess that pcmcia is stomping on the card ports 
(and perhaps IRQ/DMA channels) when it gets loaded.
Try editing /etc/pcmcia/config.opts, and changing
the "include port" line from "0x100-0x4ff"  (the default)
to "0x100-0x1ff". (You'd have to unload/reload pcmcia to
have this take effect, and possibly reboot.)
Does this help?

BIll

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-01-31 17:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-24 23:44 Problem with cs4232.o Miles Lane
1999-01-25  1:13 ` Alan Cox
1999-01-26  3:06 ` Miles Lane
1999-01-31  8:52 ` Miles Lane
1999-01-31 17:38 ` Bill Nottingham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox