Login
Newsletter
Werbung

Mo, 22. November 1999, 00:00

Linux und Soundkarten

Von Pawel

# $Id: pnpdump.c,v 1.9 1997/06/10 21:37:32 fox Exp $
# This is free software, see the sources for details.
# This software has NO WARRANTY, use at your OWN RISK
#
# For details of this file format, see isapnp.conf(5)
#
# For latest information on isapnp and pnpdump see:
# http://www.roestock.demon.co.uk/isapnptools/
#
# Compiler flags: -DREALTIME -DNEEDSETSCHEDULER
#
# Trying port address 0203
# Board 1 has serial identifier e5 ff ff ff ff 70 00 8c 0e
# (DEBUG)
# Durch diese 3 Zeilen wird die PnP-Soundkarte initialisiert.
(READPORT 0x0203)
(ISOLATE)
(IDENTIFY *)
# Allgemeine Infos zu 1. PnP - Karte
# Card 1: (serial identifier e5 ff ff ff ff 70 00 8c 0e)
# CTL0070 Serial No -1 [checksum e5]
# Version 1.0, Vendor version 1.0
# ANSI string -->Creative ViBRA16C PnP<--
#
# Logical device id CTL0001
#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be
# changed if required
# Don't forget to uncomment the activate (ACT Y) when happy
# Konfigurationsmöglichkeit für die Soundkarte.
(CONFIGURE CTL0070/-1 (LD 0
# ANSI string -->Audio<--
# Multiple choice time, choose one only !
# Anfang der Konfigurationsmöglichkeit für das 1. logische Gerät.
# Start dependent functions: priority preferred
# IRQ 5.
#
High true, edge sensitive interrupt (by default)
(INT 0 (IRQ 5 (MODE +E)))
# First DMA channel 1.
# 8 bit DMA only
# Logical device is not a bus master
# DMA may execute in count by byte mode
# DMA may not execute in count by word mode
# DMA channel speed in compatible mode
(DMA 0 (CHANNEL 1))
# Next DMA channel 5.
# 16 bit DMA only
# Logical device is not a bus master
# DMA may not execute in count by byte mode
# DMA may execute in count by word mode
# DMA channel speed in compatible mode
(DMA 1 (CHANNEL 5))
# Logical device decodes 16 bit IO address lines
# Minimum IO base address 0x0220
# Maximum IO base address 0x0220
# IO base alignment 1 bytes
# Number of IO addresses required: 16
(IO 0 (BASE 0x0220))
# Logical device decodes 16 bit IO address lines
# Minimum IO base address 0x0330
# Maximum IO base address 0x0330
# IO base alignment 1 bytes
# Number of IO addresses required: 2
(IO 1 (BASE 0x0330))
# Logical device decodes 16 bit IO address lines
# Minimum IO base address 0x0388
# Maximum IO base address 0x0388
# IO base alignment 1 bytes
# Number of IO addresses required: 4
(IO 2 (BASE 0x0388))
# Anfang der 2. Konfigurationsmöglichkeit für das 1. logische Gerät.
# Start dependent functions: priority acceptable
# IRQ 5, 7, 9 or 10.
...
... Um Platz zu sparen, wurden hier einige Zeilen weggelassen....
...
...
# DMA channel speed in compatible mode
# (DMA 0 (CHANNEL 1))
# Logical device decodes 16 bit IO address lines
# Minimum IO base address 0x0220
# Maximum IO base address 0x0280
# IO base alignment 32 bytes
# Number of IO addresses required: 16
# (IO 0 (BASE 0x0220))
# End dependent functions
(ACT Y)
))
#
# Logical device id CTL7001
#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be
# changed if required
# Don't forget to uncomment the activate (ACT Y) when happy
# Compatible device id PNPb02f
# ANSI string -->Game<--
# Logical device decodes 16 bit IO address lines
# Minimum IO base address 0x0200
# Maximum IO base address 0x0200
# IO base alignment 1 bytes
# Number of IO addresses required: 8
# (IO 0 (BASE 0x0200))
# (ACT Y)
))
# End tag... Checksum 0x00 (OK)
# Returns all cards to the "Wait for Key" state
(WAITFORKEY)

Rechner neu booten.

Wenn Sie die Soundkarte als Modul definiert haben, dann müssen Sie sie jetzt initialisieren, z.B. mit modprobe sound oder mit insmod sound. Testen Sie, ob die Konfiguration gut gelaufen ist:

cat /dev/sndstat

Sie sollten eine Ausgabe ähnlich dieser auf dem Bildschirm bekommen:

Sound Driver:3.5.4-960630 (Tue Dec 8 23:07:21 MET 1998 root,
Linux dedi 2.0.35 #11 Thu Dec 3 22:53:28 MET 1998 i586 unknown)
Kernel: Linux dedi 2.0.35 #13 Tue Dec 8 23:18:35 MET 1998 i586
Config options: 0
Installed drivers:
Type 1: OPL-2/OPL-3 FM
Type 2: Sound Blaster
Type 7: SB MPU-401
Card config:
Sound Blaster at 0x220 irq 5 drq 1,5
SB MPU-401 at 0x330 irq 5 drq 0
OPL-2/OPL-3 FM at 0x388 drq 0
Audio devices:
0: Sound Blaster 16 (4.13)
Synth devices:
0: Yamaha OPL-3
Midi devices:
0: Sound Blaster 16 0: System clock
Mixers:
0: Sound Blaster

Bemerkungen:

Einträge im Abschnitt "Card config" dürfen nicht in Klammern stehen. Ein geklammerter Eintrag bedeutet, daß die Karte konfiguriert ist, aber nicht erkannt wurde.

"No such file" weist auf eine fehlende Gerätedatei hin.

"No such device" weist auf einen fehlenden Treiber hin.

Testen

Testen der Soundausgaben

cat test.au > /dev/audio

Testen der Audio-Aufnahme-Funktion

dd bs=8k cont=4 < /dev/audio > test.au

oder mit:

cat < /dev/audio > test.au

Wenn alles gut gelaufen ist, wünsche ich Ihnen viel Spaß beim Ausprobieren von jeder Menge von Soundwerkzeugen, die Sie im Internet finden, von einem CD-Player über verschiedene Mixer, Soundeditoren bis zu CD-Audio-Recorder.

Literatur:

[1] Sound-HOWTO: http://tldp.org/HOWTO/Sound-HOWTO/index.html
[2] Julia Wunner; Linux und Audio; Der Pinguin rockt; iX 12/98; S.54
[3] ISA-PnP FAQ http://www.roestock.demon.co.uk/isapnptools

Kommentare (Insgesamt: 0 )
Pro-Linux
Pro-Linux @Facebook
Neue Nachrichten
Werbung