Linux Sound subsystem development
 help / color / mirror / Atom feed
* sound blaster 16 config
@ 2000-01-19  1:13 Yao Wang
  2000-01-19  4:09 ` Dave Mielke
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Yao Wang @ 2000-01-19  1:13 UTC (permalink / raw)
  To: linux-sound

Hi:

I am running 2.2.5-22 from RH 6.0 with a sound blaster 16 card with 
base_addr=0x220, IRQ=5, 8-bit DMA=1 and 16-bit DMA=5 (uncommenting 
a few lines in the pnpdump output. After running isapnp on this config
file, the sound-modules appeared loaded after rebooting.
# lsmod
Module                  Size  Used by
sound                  58392   0  (autoclean) (unused)
soundlow                 300   0  (autoclean) [sound]
soundcore               2404   3  (autoclean) [sound]
autofs                  9188   1  (autoclean)
nfs                    30072  14  (autoclean)
nfsd                  151576   8  (autoclean)
lockd                  31208   1  (autoclean) [nfs nfsd]
sunrpc                 52420   1  (autoclean) [nfs nfsd lockd]
via-rhine               9024   1  (autoclean)
nls_iso8859-1           2020   1  (autoclean)
nls_cp437               3548   1  (autoclean)
vfat                   11420   1  (autoclean)
fat                    25344   1  (autoclean) [vfat]          

# cat /proc/devices
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 ttyS
  5 cua
  7 vcs
 10 misc
 14 sound
 21 sg
 29 fb
 36 netlink
128 ptm
136 pts

Block devices:
  1 ramdisk
  2 fd
  3 ide0
  8 sd
  9 md
 11 sr
 22 ide1            

But:
#cat /dev/sndstat
OSS/Free:3.8s2++-971130
Load type: Driver loaded as a module
Kernel: Linux lion 2.2.5-22 #3 Thu Jan 13 17:50:55 EST
2000 i686
Config options: 0

Installed drivers:

Card config:

Audio devices:

Synth devices:

Midi devices:

Timers:
0: System clock

Mixers:                             

I could not play music to it and was wondering about some info on
sound config with 2.2.x (sound + soundcore + soundlow)? Am i running
something new on an rather old hardware?

more info:
# isapnp /etc/isapnp.conf
Board 1 has Identity e5 ff ff ff ff 70 00 8c 0e:  CTL0070 Serial No -1
[checksum e5]

could someone give me any hint?


Thanks a lot.

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

* Re: sound blaster 16 config
  2000-01-19  1:13 sound blaster 16 config Yao Wang
@ 2000-01-19  4:09 ` Dave Mielke
  2000-01-19 15:21 ` Yao Wang
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Dave Mielke @ 2000-01-19  4:09 UTC (permalink / raw)
  To: linux-sound

[quoted lines by Yao Wang on January 18, 2000, at 20:13]

Hi:

>I am running 2.2.5-22 from RH 6.0 with a sound blaster 16 card with 
>base_addr=0x220, IRQ=5, 8-bit DMA=1 and 16-bit DMA=5 (uncommenting 
>a few lines in the pnpdump output. 

Use RedHat's sndconfig utility to get isapnp.conf and conf.modules right.

Since I don't think that RedHat supplies 2.2.5-22, did you compile your own
kernel? If so, did you select /dev/audio and /dev/dsp support?

-- 
Dave Mielke           | 856 Grenon Avenue | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario   | Word of God. Please contact me
EMail: dave@mielke.cc | Canada  K2B 6G3   | if you're concerned about Hell.

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

* Re: sound blaster 16 config
  2000-01-19  1:13 sound blaster 16 config Yao Wang
  2000-01-19  4:09 ` Dave Mielke
@ 2000-01-19 15:21 ` Yao Wang
  2000-01-19 19:09 ` Peter Leif Rasmussen
  2000-01-20 14:35 ` Tony Nugent
  3 siblings, 0 replies; 5+ messages in thread
From: Yao Wang @ 2000-01-19 15:21 UTC (permalink / raw)
  To: linux-sound



On Tue, 18 Jan 2000, Dave Mielke wrote:

> [quoted lines by Yao Wang on January 18, 2000, at 20:13]
> 
> Hi:
> 
> >I am running 2.2.5-22 from RH 6.0 with a sound blaster 16 card with 
> >base_addr=0x220, IRQ=5, 8-bit DMA=1 and 16-bit DMA=5 (uncommenting 
> >a few lines in the pnpdump output. 
> 
> Use RedHat's sndconfig utility to get isapnp.conf and conf.modules right.
thanks, i'll look into it.
> 
> Since I don't think that RedHat supplies 2.2.5-22, did you compile your own
> kernel? If so, did you select /dev/audio and /dev/dsp support?
this kernel is from the RedHat's update site. I recompiled it with
built-in SCSI support (I added a SCSI chain with some CD Burners). I have
specified sound as modules but I have not got them to work so far.

Thanks

yao
> 
> -- 
> Dave Mielke           | 856 Grenon Avenue | I believe that the Bible is the
> Phone: 1-613-726-0014 | Ottawa, Ontario   | Word of God. Please contact me
> EMail: dave@mielke.cc | Canada  K2B 6G3   | if you're concerned about Hell.
> 
> 

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

* Re: sound blaster 16 config
  2000-01-19  1:13 sound blaster 16 config Yao Wang
  2000-01-19  4:09 ` Dave Mielke
  2000-01-19 15:21 ` Yao Wang
@ 2000-01-19 19:09 ` Peter Leif Rasmussen
  2000-01-20 14:35 ` Tony Nugent
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Leif Rasmussen @ 2000-01-19 19:09 UTC (permalink / raw)
  To: linux-sound

Yao Wang wrote:
> 
> Hi:
> 
> I am running 2.2.5-22 from RH 6.0 with a sound blaster 16 card with
> base_addr=0x220, IRQ=5, 8-bit DMA=1 and 16-bit DMA=5 (uncommenting
> a few lines in the pnpdump output. After running isapnp on this config
> file, the sound-modules appeared loaded after rebooting.
> # lsmod
> Module                  Size  Used by
> sound                  58392   0  (autoclean) (unused)
You can see that the 'sound' module is stated as not being used and you also
have not loaded the 'sb' module. Doesn't RH6.0 have a sound configuration
utility so you don't have to directly deal with editing the pnpdump output?

> soundlow                 300   0  (autoclean) [sound]
> soundcore               2404   3  (autoclean) [sound]
> autofs                  9188   1  (autoclean)
> nfs                    30072  14  (autoclean)
> nfsd                  151576   8  (autoclean)
> lockd                  31208   1  (autoclean) [nfs nfsd]
> sunrpc                 52420   1  (autoclean) [nfs nfsd lockd]
> via-rhine               9024   1  (autoclean)
> nls_iso8859-1           2020   1  (autoclean)
> nls_cp437               3548   1  (autoclean)
> vfat                   11420   1  (autoclean)
> fat                    25344   1  (autoclean) [vfat]
> 
> # cat /proc/devices
> Character devices:
>   1 mem
>   2 pty
>   3 ttyp
>   4 ttyS
>   5 cua
>   7 vcs
>  10 misc
>  14 sound
>  21 sg
>  29 fb
>  36 netlink
> 128 ptm
> 136 pts
> 
> Block devices:
>   1 ramdisk
>   2 fd
>   3 ide0
>   8 sd
>   9 md
>  11 sr
>  22 ide1
> 
> But:
> #cat /dev/sndstat
> OSS/Free:3.8s2++-971130
> Load type: Driver loaded as a module
> Kernel: Linux lion 2.2.5-22 #3 Thu Jan 13 17:50:55 EST
> 2000 i686
> Config options: 0
> 
> Installed drivers:
You see, there is no driver installed.

> 
> Card config:
> 
> Audio devices:
> 
> Synth devices:
> 
> Midi devices:
> 
> Timers:
> 0: System clock
> 
> Mixers:
With a SB16 card I usually get an audio, synth and mixer device and you
have none.

> 
> I could not play music to it and was wondering about some info on
> sound config with 2.2.x (sound + soundcore + soundlow)? Am i running
> something new on an rather old hardware?
No, but you must also load the 'sb' module.

> 
> more info:
> # isapnp /etc/isapnp.conf
> Board 1 has Identity e5 ff ff ff ff 70 00 8c 0e:  CTL0070 Serial No -1
> [checksum e5]
> 
> could someone give me any hint?
> 
> Thanks a lot.
If you are into kernel compiling I found that since using linux-2.3.25
my SB16 card runs and installs a lot smoother because of the PNP support
directly in the kernel. I always found /etc/isapnp.conf a pain to deal
with.

Peter
--
main(){char*s="O_>>^PQAHBbPQAHBbPOOH^^PAAHBJPAAHBbPA_H>BB";int i,j,k=1,l,m,n;
for(j=0;j<7;j++)for(l=0;m=l-6+j,i=m/6,n=j*6+i,k=1<<m%6,l<41-j;l++)
putchar(l<6-j?' ':l=40-j?'\n':k&&s[n]&k?'*':' ');}

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

* Re: sound blaster 16 config
  2000-01-19  1:13 sound blaster 16 config Yao Wang
                   ` (2 preceding siblings ...)
  2000-01-19 19:09 ` Peter Leif Rasmussen
@ 2000-01-20 14:35 ` Tony Nugent
  3 siblings, 0 replies; 5+ messages in thread
From: Tony Nugent @ 2000-01-20 14:35 UTC (permalink / raw)
  To: linux-sound

On Tue Jan 18 2000 at 20:13, Yao Wang wrote:

> I am running 2.2.5-22 from RH 6.0 with a sound blaster 16 card with

That's all anyone needs to know.

Run the sndconfig utility that comes with the system and you can't
miss.  It'll auto-detect it within a few microseconds, and after
hitting return a couple of times to confirm that you can hear the
sound samples, it's done.  Simple.

(It's all documented in the redhat installation/user guides).

> base_addr=0x220, IRQ=5, 8-bit DMA=1 and 16-bit DMA=5 (uncommenting
> a few lines in the pnpdump output. After running isapnp on this config

It's not the way to do this at all.  You might get it working once,
then next time you boot it'll be broken again.

Besides, "pnpdump -c" will give you output with the relevant lines
uncommented.  If I *have* to do it at all , this is how I create the
pnp config file:

	pnpdump -c | egrep '^$|^#" | tee /etc/isapnp.conf

(You get a line clean file with that command, but without all the
masses of comments).

The sndconfig utility usually gets things right first time, but
recently I did have to redo everything manually after shoving in an
old isa 3com card as a 2nd ethernet card and the addition of an
internal pnp modem.  (All the ISQs needed to be changed around as a
result).

My recommendation is to make sure you have "pnp operating system yes" in the BIOS, boot into single user mode ("linux single" at the
lilo bootprompt), move /etc/isapnp.conf and /etc/conf.modules
sideways (isapnp.conf at least), then run sndconfig with the system in
that condition (before any other devices or interrupts get allocated
that might "interfere" with the kernel's irq allocations.

> file, the sound-modules appeared loaded after rebooting.

(Why reboot just to get the sound up and going?  Geez, this ain't
microslop :)  The only reason to shut down a linux box is when you wan
to change the hardware...)

> # lsmod
> Module                  Size  Used by
> sound                  58392   0  (autoclean) (unused)
> soundlow                 300   0  (autoclean) [sound]
> soundcore               2404   3  (autoclean) [sound]
> autofs                  9188   1  (autoclean)
[...]

You're missing the sb.o, midi/opl3 and uart401.o modules for a start.

The magic for all this needs to go into /etc/conf.modules and would
look something like:

	alias sound sb
	options -k sb io=0x220 irq=5 dma=1,5
	alias midi opl3
	options -k opl3 io=0x388

As I say, sndconfig will do this for you.

> I could not play music to it and was wondering about some info on
> sound config with 2.2.x (sound + soundcore + soundlow)? Am i running
> something new on an rather old hardware?

Your sound card will sing under linux, no problem.

> could someone give me any hint?

On a redhat box, sndconfig.

> Thanks a lot.

Not a problem.  Happy listening! :)

Cheers
Tony

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

end of thread, other threads:[~2000-01-20 14:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-19  1:13 sound blaster 16 config Yao Wang
2000-01-19  4:09 ` Dave Mielke
2000-01-19 15:21 ` Yao Wang
2000-01-19 19:09 ` Peter Leif Rasmussen
2000-01-20 14:35 ` Tony Nugent

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