Subject: 
            [COLUG] sound config
     Date: 
            Mon, 28 Dec 1998 10:41:59 -0500 (EST)
     From: 
            hunter <hunter@513erich.iwaynet.net>
 Reply-To: 
            colug@bopper.wcbe.org
        To: 
            colug@513erich.iwaynet.net




... At least three files interact, /etc/conf.modules,
/etc/isapnp.conf, and /etc/soundconf.  Possibly also
/usr/src/linux/.config ...

>From a locally compiled kernel's settings (2.0.36), with a PNP
true SB 16 from the return rack at MicroCenter:

$ grep -v ^# /etc/conf.modules               

alias iso9660 isofs

alias net-pf-4 off
alias net-pf-5 off
 
alias sound sb
alias midi opl3
options opl3 io=0x388 
options sb dma16=5 io=0x220 mpu_io=0x330 irq=5 dma=1 


[hunter@pokey /etc]$ grep -v ^# /etc/isapnp.conf               

(DEBUG)
(READPORT 0x0203)
(ISOLATE PRESERVE)
(IDENTIFY *)

(CONFIGURE CTL00f0/-1 (LD 0

(INT 0 (IRQ 5 (MODE +E)))
(DMA 0 (CHANNEL 1))
(DMA 1 (CHANNEL 3))
(IO 0 (BASE 0x0220))
(IO 1 (BASE 0x0330))
(IO 2 (BASE 0x0388))

(ACT Y)
))

(CONFIGURE CTL00f0/-1 (LD 1

))

(WAITFORKEY)


[hunter@pokey /etc]$ cat /etc/soundconf 
/* Computer generated file. Please don't edit! */

#define KERNEL_COMPATIBLE_CONFIG

#define SELECTED_SOUND_OPTIONS  0x00000000

#if \
  defined(CONFIG_PSS) || defined(CONFIG_SSCAPE) || \
  defined(CONFIG_CS4232) || defined(CONFIG_MAUI)
#       define CONFIG_MPU_EMU
#endif

#if \
  defined(CONFIG_PSS) || defined(CONFIG_GUS16) || \
  defined(CONFIG_GUSMAX) || defined(CONFIG_MSS) || \
  defined(CONFIG_SSCAPE) || defined(CONFIG_TRIX) || \
  defined(CONFIG_MAD16) || defined(CONFIG_CS4232)
#       define CONFIG_AD1848
#endif

#if \
  defined(CONFIG_SB) || defined(CONFIG_TRIX) || \
  defined(CONFIG_MAD16)
#       define CONFIG_SBDSP
#endif

#if \
  defined(CONFIG_SB) || defined(CONFIG_TRIX) || \
  defined(CONFIG_MAD16)
#       define CONFIG_UART401
#endif

#if \
  defined(CONFIG_PAS) || defined(CONFIG_SB) || \
  defined(CONFIG_ADLIB) || defined(CONFIG_GUS) || \
  defined(CONFIG_MPU401) || defined(CONFIG_PSS) || \
  defined(CONFIG_SSCAPE) || defined(CONFIG_TRIX) || \
  defined(CONFIG_MAD16) || defined(CONFIG_CS4232) || \
  defined(CONFIG_MAUI)
#       define CONFIG_SEQUENCER
#endif

#define SOUND_CONFIG_DATE "Fri Dec 18 13:08:55 EST 1998"
#define SOUND_CONFIG_BY "root"
#define SOUND_UNAME_A "Linux pokey.513erich.iwaynet.net 2.0.36 #6
Fri Dec 18 09:19:21 EST 1998 i586 unknown"


=============================================================

The error line: (VERIFYLD N) sure looks to be in the syntax of
/etc/isapnp.conf ... 

The patch files were NOT applied ... allegedly they have been
merged into the primary line source.  I know that when seeking to
patch the patch files in, the errors produced indicated that most
were incorporated, and the Alan Cox comments so indicate.

The suggestion is offered in one of the Readme's to view
/dev/sndstat, ato see if you're getting close.  Mine reads:


[hunter@pokey sound]$ cd /dev
[hunter@pokey /dev]$ cat sndstat 
Sound Driver:3.5.4-960630 (Fri Dec 18 14:16:55 EST 1998 root,
Linux pokey.513erich.iwaynet.net 2.0.36 #2 Fri Dec 18 13:09:47
EST 1998 i586 unknown)
Kernel: Linux pokey.513erich.iwaynet.net 2.0.36 #2 Fri Dec 18
13:09:47 EST 1998 i586
Config options: 0

Installed drivers: 
Type 1: OPL-2/OPL-3 FM
Type 2: Sound Blaster

Card config: 
Sound Blaster at 0x220 irq 5 drq 1,5
OPL-2/OPL-3 FM at 0x388 drq 0

Audio devices:
0: Sound Blaster 16 (4.16)

Synth devices:
0: Yamaha OPL-3

Midi devices: NOT ENABLED IN CONFIG

Timers:
0: System clock

Mixers:
0: Sound Blaster
[hunter@pokey /dev]$ 

======================

There is no good summary for systematic debugging which I have
been able to find -- the RH provided sndconfig routine complains
about non-modular sound drivers, even when they are clearly
present.  

The required config options are NOT localized in
/usr/src/linux/.config, so that one might diff successive
configurations to see what does and does not work.

FWIW, these go with the setup above:

...

# Sound
#
CONFIG_SOUND=m
# CONFIG_PAS is not set
CONFIG_SB=y
# CONFIG_ADLIB is not set
# CONFIG_GUS is not set
# CONFIG_MPU401 is not set
# CONFIG_UART6850 is not set
# CONFIG_PSS is not set
# CONFIG_GUS16 is not set
# CONFIG_GUSMAX is not set
# CONFIG_MSS is not set
# CONFIG_SSCAPE is not set
# CONFIG_TRIX is not set
# CONFIG_MAD16 is not set
# CONFIG_CS4232 is not set
# CONFIG_MAUI is not set
CONFIG_AUDIO=y
# CONFIG_MIDI is not set
CONFIG_YM3812=y
SBC_BASE=220
SBC_IRQ=5
SBC_DMA=1
SB_DMA2=5
SB_MPU_BASE=330
SB_MPU_IRQ=-1
DSP_BUFFSIZE=65536
# CONFIG_LOWLEVEL_SOUND is not set

#

... It might help to manually cut-and-paste this working setup in
getting things going ...

Good luck -- let us know.



-- 
end
==========================================
Copyright (C) 1998 R Phillip Hunter
      philhunter@usa.net  NIC: PH2711 (US)

   Owl River Company  614 - 221 - 0695
   "The World is Open to Linux (tm)"
   ... Open Source LINUX solutions ...
      info@owlriver.com 
         Columbus, OH

==================================================
|  Want to know more:                            |
|                                                |
|  http://bopper.wcbe.org/~COLUG/index_list.html |
==================================================
