HELP ! Can't get SC400 souncard to work in Linux

Steve McCarthy sjm na halcyon.com
Neděle Listopad 14 21:33:25 CET 1999


It has been a while since I got mine working, but here are a few of my
thoughts:

1.  I am on a RedHat 5.0 system

2.  I had to recompile the kernel, and I compiled the sound driver as a
module.

3.  You may want to find out what your "SC400" really is.  Go to Aztech's
website and see how you can look up the serial number on the card to figure
out which of Aztech's models it really is.  Mine was a Sound Galaxy NX Pro,
I think, and other SC400 revisions are different cards.

4.  I recall that all I compiled into the kernel was Microsoft Sound System
drivers and generic OPL stuff the same as you.

5.  Here is the sound section of  /usr/src/linux-2.0.32/.config
    #
    # Code maturity level options
    #
    CONFIG_EXPERIMENTAL=y
        <lines deleted>
    #
    # Sound
    #
    CONFIG_SOUND=m
    # CONFIG_PAS is not set
    # CONFIG_SB is not set
    CONFIG_ADLIB=y
    # CONFIG_GUS is not set
    CONFIG_MPU401=y
    # CONFIG_UART6850 is not set
    # CONFIG_PSS is not set
    # CONFIG_GUS16 is not set
    # CONFIG_GUSMAX is not set
    CONFIG_MSS=y
    # 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=y
    CONFIG_YM3812=y
    MPU_BASE=330
    MPU_IRQ=9
    MSS_BASE=530
    MSS_IRQ=10
    MSS_DMA=3
    DSP_BUFFSIZE=65536
# CONFIG_LOWLEVEL_SOUND is not set

6.  Here is the output of cat /dev/sndstat:

    $ cat /dev/sndstat
    Kernel: Linux betty 2.0.37 #11 Tue Aug 24 06:46:51 PDT 1999 i486
    Config options: 0

    Installed drivers: 
    Type 10: MS Sound System
    Type 24: MS Sound System (AXP)
    Type 27: Compaq Deskpro XL
    Type 1: OPL-2/OPL-3 FM
    Type 5: Roland MPU-401

    Card config: 
    MS Sound System at 0x530 irq 10 drq 3
    Roland MPU-401 at 0x330 irq 9 drq 0
    OPL-2/OPL-3 FM at 0x388 drq 0

    Audio devices:
    0: MSS audio codec (CS4231)

    Synth devices:
    0: Yamaha OPL-3

    Midi devices:
    0: MPU-401 0.0  Midi interface #1

    Timers:
    0: System clock
    1: MSS audio codec (CS4231)

    Mixers:
    0: MSS audio codec (CS4231)


7.  (CDROM) One change I did make was in
    /usr/src/linux-2.0.32/include/linux/sbpcd.h
  #define CDROM_PORT 0x630
  Because it was too slow otherwise waiting for it to auto detect.

8. I was never able to get sound input (i.e. microphome) to work reliably
under Windows, and I have not tried to test whether this setup described
above will work for input.


Hope this helps and was worth the wait,

-Steve








On Fri, 12 Nov 1999, Jiri Svoboda wrote:

> Hi! Can you help me, please?
> 
> For a few months I haven't been able to get my Reveal SC400 souncard
> to work with linux. I'm new to linux and till this day all my attempts
> to get this thing to work fail.
> (I'm starting to like linux very much, but the sound is a real pain).
> 
> **********************************************************
> *     The card works perfectly under DOS & Win 3.1.      *
> **********************************************************
> 
> Hwset says:
> 
> #################################################################
> Mixer Control and Hardware Configuration Setting, Version 1.0
> Copyright (c) 1993, AZI Labs.  All rights reserved.
> 
> Wrong input in option 1!
> Press any key for the setting result...
> 
> 
> **** Sound Card Hardware Address Setting ****
> Sound Blaster Port Address = 0x220	MPU401 Port Address = 0x330
> MSS Port Address = 0x530
> 
> **** MITSUMI/SONY DMA Channel Setting ****
> Mitsumi/Sony DMA Channel = Disabled
> 
> **** Sound Card Interrupt Setting ****
> Sound Blaster Interrupt = 5
> MPU401 Interrupt = 2
> CD-ROM (MITSUMI) Interrupt = None
> 
> **** Sound Card CD, Game Port and Sound System Setting ****
> MITSUMI CD Status = Enabled	PANASONIC CD Status = Disabled
> Game Port Status = Enabled	MSS Status = Enabled
> MPU401 Status = Enabled
> 
> **** Sound Card Mixer Volume Control ****
> Sound Blaster Voice Volume = 16,16	FM/WaveTable Volume = 14,14
> Line-In/CD Volume = 14,14		Microphone Volume = 16
> ###################################################################3
> 
> and Win3.1 SC400 driver setup says:
> MSS: Port 530h
>      IRQ  7
>      DMA  0
> 
> MPU: PORT 330h
>      IRQ  2
> 
> My linux is RedHat 5.1 which has kernel loadable modules support & kerneld
> built-in.
> 
> I tried it both ways:
> 1. build the driver as a module:
>    make config/ or make menuconfig and then selected MSS & generic OPL2/3
>    as modules, compiled and installed.
> 
>    but what now ? I tried insmod sound, rmmod sound and also insmod
>    ad1848 and so on.. but nothing happened... well the problem is
>    I just don't know what to do at this point..
>    the /dev/sndstat reports no drivers
> 
> 2. directly to kernel
>    I used the settings from Win3.1 (port 530h, irq 7, dma 0)
>    and compiled the kernel. The result: nothing.. have a look:
>    startup messages:
>    ..
>    ..
>    Sound initialization started
>    Sound initialization complete
>    ..
>    ..
> 
>    /dev/sndstat:
> 
> ###############################################################
> Sound Driver:3.5.4-960630
> Kernel: Linux localhost.localdomain 2.0.35 #1 Sat Nov 6 15:04:14 CET 1999 i586
> Config options: 0
> 
> Installed drivers:
> Type 10: MS Sound System
> Type 24: MS Sound System (AXP)
> Type 27: Compaq Deskpro XL
> 
> Card config:
> (Compaq Deskpro XL at 0x530 irq 7 drq 0)
> 
> Audio devices:
> 
> Synth devices:
> 
> Midi devices: NOT ENABLED IN CONFIG
> 
> Timers:
> 0: System clock
> 
> Mixers:
> 
> ###############################################################
> 
>    Since it detected my souncard type wrong I tried to hack the kernel
>    and hardwired the type to MSS. The result ? Interesting, but strange.
>    It detected the card successfully and in /dev/sndstat the Card config
>    was MSS. When i tried to cat a file to /dev/audio or /dev/sndstat
>    instead of reporting "device not configured" it did SOMETHING.
>    A few secs later reported DMA/IRQ timeout..
>    I thought I have a bad DMA/IRQ setup so tried other D/I settings, but
>    it was all the same.
> 
>    ... I hope you realize this took me a big amount of time, I tried it
>    again and again recompiling the kernel all the time...
> 
> 
> (I would probably need some good and thorough advice how to work with
> the driver as a module... or something like that)
> 
> Any ideas ?
> 
> Thanks for your attention
>         jirik.svoboda na seznam.cz
> 
> -- http://email.seznam.cz 
> -- email zdarma na cely zivot
> 

-- Steve McCarthy                     Current wind and temp at my house
   sjm na halcyon.com                    www.halcyon.com/sjm/wx/latest.html
 www.halcyon.com/sjm



Další informace o konferenci Linux