1cspctl(1)                   General Commands Manual                  cspctl(1)
2
3
4

NAME

6       cspctl - Sound Blaster 16 ASP/CSP control program
7
8

SYNOPSIS

10       cspctl command [-options] <filename>
11
12

DESCRIPTION

14       cspctl is a simple CSP microcode loader for Crative Sound Blaster 16ASP
15       and some Sound Blaster AWE32 sound cards with Creative Signal Processor
16       (CSP)  chip  (CT1748A)  installed.   cspctl can also be used as a post-
17       install function to snd-sb16-csp module to load default codec at module
18       installation.  If  CSP chip is succesfully detected and initialized, it
19       will be installed as a hardware dependant device hwC0D2  into  /dev/snd
20       directory. Currently, following codecs can be loaded to CSP device:
21
22
23           wfm0001a.csp  QSound decoder
24           wfm0006a.csp  A-law codec
25           wfm0007a.csp  u-law codec
26           wfm0011a.csp  IMA ADPCM codec (distorted output for IMA test files)
27           wfm0200a.csp  Creative ADPCM codec (sounds like Intel/DVI IMA ADPCM compatible)
28           wfm0202a.csp  Fast Speech 8 codec
29           wfm0203a.csp  Fast Speech 10 codec
30
31       These codecs are not yet supported by ALSA:
32
33           wfm0201a.csp  Text2Speech decoder
34
35       Qsound  microcode  file  has four functions, each function is a decoder
36       for different sample rate. Rates for QSound functions #1, #2, #3 and #4
37       are  44100,  22050,  11025 and 8000Hz respectively. IMA ADPCM and Fast‐
38       Speech codecs are formed of two functions, the first one is for capture
39       and  the  second  one is for playback. A-law and u-law codecs have only
40       one function.  To load for example function #2  from  QSound  microcode
41       file (decoder for 22050Hz), run as follows:
42
43           % cspctl load -f 2 -d QSound wfm0001a.csp
44
45       After successful loading, /proc/asound/SB16/cspD2 will show:
46
47
48           Creative Signal Processor [v1.0]
49           State: -x--L
50           Codec: QSound [func #2]
51           Sample rates: 22050Hz
52           QSound decoder disabled
53
54       With  QSound  decoder microcode loaded, all simple PCM file formats can
55       be played with QSound 180 degree positioning applied. QSound element is
56       dynamically  added  into mixer structure as 3DEffect1-space element. It
57       will only show if support for CSP has been compiled into ALSA  drivers,
58       CSP  chip  has  been  found,  and QSound codec is loaded into CSP. When
59       enabled, QSound position can be dynamically changed  by  mixer  slider,
60       and  proc interface should follow the state of CSP chip and its current
61       QSound position:
62
63
64           Creative Signal Processor [v1.0]
65           State: Qx-RL
66           Codec: QSound [func #2]
67           Sample rates: 22050Hz
68           QSound decoder enabled
69           Processing 16bit mono PCM samples
70           Qsound position: left = 0x9, right = 0x9
71
72       Driver supports autoloading of  u-Law,  A-Law  and  Ima-ADPCM  hardware
73       codecs. Autoloading is active only when there is no microcode loaded to
74       CSP, and there is no need to preload appropriate *.csp files. To unload
75       manually loaded microcode, you should run
76
77           % cspctl unload
78
79       If  hardware  codec  microcode  has been manually loaded, then CSP will
80       support only loaded PCM format and autoloading  will  be  disabled.  In
81       such case, proc interface will show loaded codec properties:
82
83
84           Creative Signal Processor [v1.0]
85           State: -x--L
86           Codec: IMA-ADPCM [func #2]
87           Sample rates: All
88           PCM format ID: 0x400000 (16bit/-) [mono/stereo] [playback/-]
89

COMMANDS

91       load   Load microcode from filename to CSP.
92
93       unload Unload microcode from CSP.
94

OPTIONS

96       -h, --help
97              Display a short help.
98
99       -c card
100              Select a card number. Option defaults to 0.
101
102       -f function
103              Select a function from microcode file. Option defaults to 1.
104
105       -d description
106              Optional microcode description string.
107
108

AUTHOR

110       Uros Bizjak <uros@kss-loka.si>.
111
112
113
114
115
116
117
118
119                                April 27, 2000                       cspctl(1)
Impressum