Blame sb16_csp/cspctl.1

Packit Service b98cfc
.TH cspctl 1 "April 27, 2000"
Packit Service b98cfc
.SH NAME
Packit Service b98cfc
cspctl \- Sound Blaster 16 ASP/CSP control program
Packit Service b98cfc
Packit Service b98cfc
.SH SYNOPSIS
Packit Service b98cfc
.B cspctl
Packit Service b98cfc
command [\-options] <filename>
Packit Service b98cfc
Packit Service b98cfc
.SH DESCRIPTION
Packit Service b98cfc
.B cspctl
Packit Service b98cfc
is a simple CSP microcode loader for Creative Sound Blaster 16ASP and some Sound Blaster AWE32 sound cards with Creative Signal Processor (CSP) chip (CT1748A) installed.
Packit Service b98cfc
.B cspctl
Packit Service b98cfc
can also be used as a post-install function to
Packit Service b98cfc
.I snd\-sb16\-csp
Packit Service b98cfc
module to load default codec at module installation. If CSP chip is successfully detected and initialized, it will be installed as a hardware dependent device
Packit Service b98cfc
.I hwC0D2
Packit Service b98cfc
into /dev/snd directory. Currently, following codecs can be loaded to CSP device:
Packit Service b98cfc
.IP "" 4
Packit Service b98cfc
.Sp
Packit Service b98cfc
.nf
Packit Service b98cfc
.ta \w'\fBwfm0000a.csp\fP  'u
Packit Service b98cfc
\&\fBwfm0001a.csp\fP	QSound decoder
Packit Service b98cfc
\&\fBwfm0006a.csp\fP	A\-law codec
Packit Service b98cfc
\&\fBwfm0007a.csp\fP	u\-law codec
Packit Service b98cfc
\&\fBwfm0011a.csp\fP	IMA ADPCM codec (distorted output for IMA test files)
Packit Service b98cfc
\&\fBwfm0200a.csp\fP	Creative ADPCM codec (sounds like Intel/DVI IMA ADPCM compatible)
Packit Service b98cfc
\&\fBwfm0202a.csp\fP	Fast Speech 8 codec
Packit Service b98cfc
\&\fBwfm0203a.csp\fP	Fast Speech 10 codec
Packit Service b98cfc
.Sp
Packit Service b98cfc
.fi
Packit Service b98cfc
.PP
Packit Service b98cfc
These codecs are not yet supported by ALSA:
Packit Service b98cfc
.IP "" 4
Packit Service b98cfc
.ta \w'\fBwfm0000a.csp\fP  'u
Packit Service b98cfc
\&\fBwfm0201a.csp\fP	Text2Speech decoder
Packit Service b98cfc
.Sp
Packit Service b98cfc
.fi
Packit Service b98cfc
.PP
Packit Service b98cfc
Qsound microcode file has
Packit Service b98cfc
.B four functions,
Packit Service b98cfc
each function is a decoder for different sample rate. Rates for QSound functions #1, #2, #3 and #4 are 44100, 22050, 11025 and 8000Hz respectively. IMA ADPCM and FastSpeech codecs are formed of
Packit Service b98cfc
.B two functions,
Packit Service b98cfc
the first one is for capture and the second one is for playback. A\-law and u\-law codecs have only
Packit Service b98cfc
.B one function.
Packit Service b98cfc
To load for example function #2 from QSound microcode file (decoder for 22050Hz), run as follows:
Packit Service b98cfc
.IP "" 4
Packit Service b98cfc
% cspctl load \-f 2 \-d QSound wfm0001a.csp
Packit Service b98cfc
.PP
Packit Service b98cfc
After successful loading, /proc/asound/SB16/cspD2 will show:
Packit Service b98cfc
.IP "" 4
Packit Service b98cfc
.Sp
Packit Service b98cfc
.nf
Packit Service b98cfc
Creative Signal Processor [v1.0]
Packit Service b98cfc
State: \-x\-\-L
Packit Service b98cfc
Codec: QSound [func #2]
Packit Service b98cfc
Sample rates: 22050Hz
Packit Service b98cfc
QSound decoder disabled
Packit Service b98cfc
.Sp
Packit Service b98cfc
.fi
Packit Service b98cfc
.PP
Packit Service b98cfc
With QSound decoder microcode loaded, all simple PCM file formats can be played with QSound 180 degree positioning applied. QSound element is dynamically added into mixer structure as
Packit Service b98cfc
.I 3DEffect1\-space
Packit Service b98cfc
element. It will only show if support for CSP has been compiled into ALSA drivers, CSP chip has been found, and QSound codec is loaded into CSP. When enabled, QSound position can be dynamically changed by mixer slider, and proc interface should follow the state of CSP chip and its current QSound position:
Packit Service b98cfc
.IP "" 4
Packit Service b98cfc
.Sp
Packit Service b98cfc
.nf
Packit Service b98cfc
Creative Signal Processor [v1.0]
Packit Service b98cfc
State: Qx\-RL
Packit Service b98cfc
Codec: QSound [func #2]
Packit Service b98cfc
Sample rates: 22050Hz
Packit Service b98cfc
QSound decoder enabled
Packit Service b98cfc
Processing 16bit mono PCM samples
Packit Service b98cfc
Qsound position: left = 0x9, right = 0x9
Packit Service b98cfc
.Sp
Packit Service b98cfc
.fi
Packit Service b98cfc
.PP
Packit Service b98cfc
Driver supports autoloading of u\-Law, A\-Law and Ima\-ADPCM hardware codecs. Autoloading is active only when there is no microcode loaded to CSP, and there is no need to preload appropriate *.csp files. To unload manually loaded microcode, you should run
Packit Service b98cfc
.IP "" 4
Packit Service b98cfc
% cspctl unload
Packit Service b98cfc
.PP
Packit Service b98cfc
If hardware codec microcode has been manually loaded, then CSP will support only loaded PCM format and autoloading will be disabled. In such case, proc interface will show loaded codec properties:
Packit Service b98cfc
.IP "" 4
Packit Service b98cfc
.Sp
Packit Service b98cfc
.nf
Packit Service b98cfc
Creative Signal Processor [v1.0]
Packit Service b98cfc
State: \-x\-\-L
Packit Service b98cfc
Codec: IMA\-ADPCM [func #2]
Packit Service b98cfc
Sample rates: All
Packit Service b98cfc
PCM format ID: 0x400000 (16bit/\-) [mono/stereo] [playback/\-]
Packit Service b98cfc
.Sp
Packit Service b98cfc
.fi
Packit Service b98cfc
.PP
Packit Service b98cfc
.SH COMMANDS
Packit Service b98cfc
.TP
Packit Service b98cfc
.B load
Packit Service b98cfc
Load microcode from filename to CSP.
Packit Service b98cfc
.TP
Packit Service b98cfc
.B unload
Packit Service b98cfc
Unload microcode from CSP.
Packit Service b98cfc
.SH OPTIONS
Packit Service b98cfc
.TP
Packit Service b98cfc
.B \-h, \-\-help
Packit Service b98cfc
Display a short help.
Packit Service b98cfc
.TP
Packit Service b98cfc
.B \-c card
Packit Service b98cfc
Select a card number. Option defaults to 0.
Packit Service b98cfc
.TP
Packit Service b98cfc
.B \-f function
Packit Service b98cfc
Select a function from microcode file. Option defaults to 1.
Packit Service b98cfc
.TP
Packit Service b98cfc
.B \-d description
Packit Service b98cfc
Optional microcode description string.
Packit Service b98cfc
Packit Service b98cfc
.SH AUTHOR
Packit Service b98cfc
Uros Bizjak <uros@kss\-loka.si>.
Packit Service b98cfc
Packit Service b98cfc
Packit Service b98cfc
Packit Service b98cfc
Packit Service b98cfc