Blame sb16_csp/cspctl.1

Packit 427e91
.TH cspctl 1 "April 27, 2000"
Packit 427e91
.SH NAME
Packit 427e91
cspctl \- Sound Blaster 16 ASP/CSP control program
Packit 427e91
Packit 427e91
.SH SYNOPSIS
Packit 427e91
.B cspctl
Packit 427e91
command [\-options] <filename>
Packit 427e91
Packit 427e91
.SH DESCRIPTION
Packit 427e91
.B cspctl
Packit 427e91
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 427e91
.B cspctl
Packit 427e91
can also be used as a post-install function to
Packit 427e91
.I snd\-sb16\-csp
Packit 427e91
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 427e91
.I hwC0D2
Packit 427e91
into /dev/snd directory. Currently, following codecs can be loaded to CSP device:
Packit 427e91
.IP "" 4
Packit 427e91
.Sp
Packit 427e91
.nf
Packit 427e91
.ta \w'\fBwfm0000a.csp\fP  'u
Packit 427e91
\&\fBwfm0001a.csp\fP	QSound decoder
Packit 427e91
\&\fBwfm0006a.csp\fP	A\-law codec
Packit 427e91
\&\fBwfm0007a.csp\fP	u\-law codec
Packit 427e91
\&\fBwfm0011a.csp\fP	IMA ADPCM codec (distorted output for IMA test files)
Packit 427e91
\&\fBwfm0200a.csp\fP	Creative ADPCM codec (sounds like Intel/DVI IMA ADPCM compatible)
Packit 427e91
\&\fBwfm0202a.csp\fP	Fast Speech 8 codec
Packit 427e91
\&\fBwfm0203a.csp\fP	Fast Speech 10 codec
Packit 427e91
.Sp
Packit 427e91
.fi
Packit 427e91
.PP
Packit 427e91
These codecs are not yet supported by ALSA:
Packit 427e91
.IP "" 4
Packit 427e91
.ta \w'\fBwfm0000a.csp\fP  'u
Packit 427e91
\&\fBwfm0201a.csp\fP	Text2Speech decoder
Packit 427e91
.Sp
Packit 427e91
.fi
Packit 427e91
.PP
Packit 427e91
Qsound microcode file has
Packit 427e91
.B four functions,
Packit 427e91
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 427e91
.B two functions,
Packit 427e91
the first one is for capture and the second one is for playback. A\-law and u\-law codecs have only
Packit 427e91
.B one function.
Packit 427e91
To load for example function #2 from QSound microcode file (decoder for 22050Hz), run as follows:
Packit 427e91
.IP "" 4
Packit 427e91
% cspctl load \-f 2 \-d QSound wfm0001a.csp
Packit 427e91
.PP
Packit 427e91
After successful loading, /proc/asound/SB16/cspD2 will show:
Packit 427e91
.IP "" 4
Packit 427e91
.Sp
Packit 427e91
.nf
Packit 427e91
Creative Signal Processor [v1.0]
Packit 427e91
State: \-x\-\-L
Packit 427e91
Codec: QSound [func #2]
Packit 427e91
Sample rates: 22050Hz
Packit 427e91
QSound decoder disabled
Packit 427e91
.Sp
Packit 427e91
.fi
Packit 427e91
.PP
Packit 427e91
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 427e91
.I 3DEffect1\-space
Packit 427e91
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 427e91
.IP "" 4
Packit 427e91
.Sp
Packit 427e91
.nf
Packit 427e91
Creative Signal Processor [v1.0]
Packit 427e91
State: Qx\-RL
Packit 427e91
Codec: QSound [func #2]
Packit 427e91
Sample rates: 22050Hz
Packit 427e91
QSound decoder enabled
Packit 427e91
Processing 16bit mono PCM samples
Packit 427e91
Qsound position: left = 0x9, right = 0x9
Packit 427e91
.Sp
Packit 427e91
.fi
Packit 427e91
.PP
Packit 427e91
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 427e91
.IP "" 4
Packit 427e91
% cspctl unload
Packit 427e91
.PP
Packit 427e91
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 427e91
.IP "" 4
Packit 427e91
.Sp
Packit 427e91
.nf
Packit 427e91
Creative Signal Processor [v1.0]
Packit 427e91
State: \-x\-\-L
Packit 427e91
Codec: IMA\-ADPCM [func #2]
Packit 427e91
Sample rates: All
Packit 427e91
PCM format ID: 0x400000 (16bit/\-) [mono/stereo] [playback/\-]
Packit 427e91
.Sp
Packit 427e91
.fi
Packit 427e91
.PP
Packit 427e91
.SH COMMANDS
Packit 427e91
.TP
Packit 427e91
.B load
Packit 427e91
Load microcode from filename to CSP.
Packit 427e91
.TP
Packit 427e91
.B unload
Packit 427e91
Unload microcode from CSP.
Packit 427e91
.SH OPTIONS
Packit 427e91
.TP
Packit 427e91
.B \-h, \-\-help
Packit 427e91
Display a short help.
Packit 427e91
.TP
Packit 427e91
.B \-c card
Packit 427e91
Select a card number. Option defaults to 0.
Packit 427e91
.TP
Packit 427e91
.B \-f function
Packit 427e91
Select a function from microcode file. Option defaults to 1.
Packit 427e91
.TP
Packit 427e91
.B \-d description
Packit 427e91
Optional microcode description string.
Packit 427e91
Packit 427e91
.SH AUTHOR
Packit 427e91
Uros Bizjak <uros@kss\-loka.si>.
Packit 427e91
Packit 427e91
Packit 427e91
Packit 427e91
Packit 427e91