xref: /linux/Documentation/sound/cards/emu-mixer.rst (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
1*0982e519SOswald Buddenhagen==================================================
2*0982e519SOswald BuddenhagenE-MU Digital Audio System mixer / default DSP code
3*0982e519SOswald Buddenhagen==================================================
4*0982e519SOswald Buddenhagen
5*0982e519SOswald BuddenhagenThis document covers the E-MU 0404/1010/1212/1616/1820 PCI/PCI-e/CardBus
6*0982e519SOswald Buddenhagencards.
7*0982e519SOswald Buddenhagen
8*0982e519SOswald BuddenhagenThese cards use regular EMU10K2 (SoundBlaster Audigy) chips, but with an
9*0982e519SOswald Buddenhagenalternative front-end geared towards semi-professional studio recording.
10*0982e519SOswald Buddenhagen
11*0982e519SOswald BuddenhagenThis document is based on audigy-mixer.rst.
12*0982e519SOswald Buddenhagen
13*0982e519SOswald Buddenhagen
14*0982e519SOswald BuddenhagenHardware compatibility
15*0982e519SOswald Buddenhagen======================
16*0982e519SOswald Buddenhagen
17*0982e519SOswald BuddenhagenThe EMU10K2 chips have a very short capture FIFO, which makes recording
18*0982e519SOswald Buddenhagenunreliable if the card's PCI bus requests are not handled with the
19*0982e519SOswald Buddenhagenappropriate priority.
20*0982e519SOswald BuddenhagenThis is the case on more modern motherboards, where the PCI bus is only a
21*0982e519SOswald Buddenhagensecondary peripheral, rather than the actual arbiter of device access.
22*0982e519SOswald BuddenhagenIn particular, I got recording glitches during simultaneous playback on an
23*0982e519SOswald BuddenhagenIntel DP55 board (memory controller in the CPU), but had success with an
24*0982e519SOswald BuddenhagenIntel DP45 board (memory controller in the north bridge).
25*0982e519SOswald Buddenhagen
26*0982e519SOswald BuddenhagenThe PCI Express variants of these cards (which have a PCI bridge on board,
27*0982e519SOswald Buddenhagenbut are otherwise identical) may be less problematic.
28*0982e519SOswald Buddenhagen
29*0982e519SOswald Buddenhagen
30*0982e519SOswald BuddenhagenDriver capabilities
31*0982e519SOswald Buddenhagen===================
32*0982e519SOswald Buddenhagen
33*0982e519SOswald BuddenhagenThis driver supports only 16-bit 44.1/48 kHz operation. The multi-channel
34*0982e519SOswald Buddenhagendevice (see emu10k1-jack.rst) additionally supports 24-bit capture.
35*0982e519SOswald Buddenhagen
36*0982e519SOswald BuddenhagenA patchset to enhance the driver is available from `a GitHub repository
37*0982e519SOswald Buddenhagen<https://github.com/ossilator/linux/tree/ossis-emu10k1>`_.
38*0982e519SOswald BuddenhagenIts multi-channel device supports 24-bit for both playback and capture,
39*0982e519SOswald Buddenhagenand also supports full 88.2/96/176.4/192 kHz operation.
40*0982e519SOswald BuddenhagenIt is not going to be upstreamed due to a fundamental disagreement about
41*0982e519SOswald Buddenhagenwhat constitutes a good user experience.
42*0982e519SOswald Buddenhagen
43*0982e519SOswald Buddenhagen
44*0982e519SOswald BuddenhagenDigital mixer controls
45*0982e519SOswald Buddenhagen======================
46*0982e519SOswald Buddenhagen
47*0982e519SOswald BuddenhagenNote that the controls work as attenuators: the maximum value is the neutral
48*0982e519SOswald Buddenhagenposition leaving the signal unchanged. Note that if the same destination is
49*0982e519SOswald Buddenhagenmentioned in multiple controls, the signal is accumulated and can be clipped
50*0982e519SOswald Buddenhagen(set to maximal or minimal value without checking for overflow).
51*0982e519SOswald Buddenhagen
52*0982e519SOswald BuddenhagenExplanation of used abbreviations:
53*0982e519SOswald Buddenhagen
54*0982e519SOswald BuddenhagenDAC
55*0982e519SOswald Buddenhagen	digital to analog converter
56*0982e519SOswald BuddenhagenADC
57*0982e519SOswald Buddenhagen	analog to digital converter
58*0982e519SOswald BuddenhagenLFE
59*0982e519SOswald Buddenhagen	low frequency effects (used as subwoofer signal)
60*0982e519SOswald BuddenhagenIEC958
61*0982e519SOswald Buddenhagen	S/PDIF
62*0982e519SOswald BuddenhagenFX-bus
63*0982e519SOswald Buddenhagen	the EMU10K2 chip has an effect bus containing 64 accumulators.
64*0982e519SOswald Buddenhagen	Each of the synthesizer voices can feed its output to these accumulators
65*0982e519SOswald Buddenhagen	and the DSP microcontroller can operate with the resulting sum.
66*0982e519SOswald Buddenhagen
67*0982e519SOswald Buddenhagenname='Clock Source',index=0
68*0982e519SOswald Buddenhagen---------------------------
69*0982e519SOswald BuddenhagenThis control allows switching the word clock between interally generated
70*0982e519SOswald Buddenhagen44.1 or 48 kHz, or a number of external sources.
71*0982e519SOswald Buddenhagen
72*0982e519SOswald BuddenhagenNote: the sources for the 1616 CardBus card are unclear. Please report your
73*0982e519SOswald Buddenhagenfindings.
74*0982e519SOswald Buddenhagen
75*0982e519SOswald Buddenhagenname='Clock Fallback',index=0
76*0982e519SOswald Buddenhagen-----------------------------
77*0982e519SOswald BuddenhagenThis control determines the internal clock which the card switches to when
78*0982e519SOswald Buddenhagenthe selected external clock source is/becomes invalid.
79*0982e519SOswald Buddenhagen
80*0982e519SOswald Buddenhagenname='DAC1 0202 14dB PAD',index=0, etc.
81*0982e519SOswald Buddenhagen---------------------------------------
82*0982e519SOswald BuddenhagenOutput attenuation controls. Not available on 0404 cards.
83*0982e519SOswald Buddenhagen
84*0982e519SOswald Buddenhagenname='ADC1 14dB PAD 0202',index=0, etc.
85*0982e519SOswald Buddenhagen---------------------------------------
86*0982e519SOswald BuddenhagenInput attenuation controls. Not available on 0404 cards.
87*0982e519SOswald Buddenhagen
88*0982e519SOswald Buddenhagenname='Optical Output Mode',index=0
89*0982e519SOswald Buddenhagen----------------------------------
90*0982e519SOswald BuddenhagenSwitches the TOSLINK output port between S/PDIF and ADAT.
91*0982e519SOswald BuddenhagenNot available on 0404 cards (fixed to S/PDIF).
92*0982e519SOswald Buddenhagen
93*0982e519SOswald Buddenhagenname='Optical Input Mode',index=0
94*0982e519SOswald Buddenhagen---------------------------------
95*0982e519SOswald BuddenhagenSwitches the TOSLINK input port between S/PDIF and ADAT.
96*0982e519SOswald BuddenhagenNot available on 0404 cards (fixed to S/PDIF).
97*0982e519SOswald Buddenhagen
98*0982e519SOswald Buddenhagenname='PCM Front Playback Volume',index=0
99*0982e519SOswald Buddenhagen----------------------------------------
100*0982e519SOswald BuddenhagenThis control is used to attenuate samples from left and right front PCM FX-bus
101*0982e519SOswald Buddenhagenaccumulators. ALSA uses accumulators 8 and 9 for left and right front PCM
102*0982e519SOswald Buddenhagensamples for 5.1 playback. The result samples are forwarded to the DSP 0 & 1
103*0982e519SOswald Buddenhagenplayback channels.
104*0982e519SOswald Buddenhagen
105*0982e519SOswald Buddenhagenname='PCM Surround Playback Volume',index=0
106*0982e519SOswald Buddenhagen-------------------------------------------
107*0982e519SOswald BuddenhagenThis control is used to attenuate samples from left and right surround PCM FX-bus
108*0982e519SOswald Buddenhagenaccumulators. ALSA uses accumulators 2 and 3 for left and right surround PCM
109*0982e519SOswald Buddenhagensamples for 5.1 playback. The result samples are forwarded to the DSP 2 & 3
110*0982e519SOswald Buddenhagenplayback channels.
111*0982e519SOswald Buddenhagen
112*0982e519SOswald Buddenhagenname='PCM Side Playback Volume',index=0
113*0982e519SOswald Buddenhagen---------------------------------------
114*0982e519SOswald BuddenhagenThis control is used to attenuate samples from left and right side PCM FX-bus
115*0982e519SOswald Buddenhagenaccumulators. ALSA uses accumulators 14 and 15 for left and right side PCM
116*0982e519SOswald Buddenhagensamples for 7.1 playback. The result samples are forwarded to the DSP 6 & 7
117*0982e519SOswald Buddenhagenplayback channels.
118*0982e519SOswald Buddenhagen
119*0982e519SOswald Buddenhagenname='PCM Center Playback Volume',index=0
120*0982e519SOswald Buddenhagen-----------------------------------------
121*0982e519SOswald BuddenhagenThis control is used to attenuate samples from the center PCM FX-bus accumulator.
122*0982e519SOswald BuddenhagenALSA uses accumulator 6 for center PCM samples for 5.1 playback. The result samples
123*0982e519SOswald Buddenhagenare forwarded to the DSP 4 playback channel.
124*0982e519SOswald Buddenhagen
125*0982e519SOswald Buddenhagenname='PCM LFE Playback Volume',index=0
126*0982e519SOswald Buddenhagen--------------------------------------
127*0982e519SOswald BuddenhagenThis control is used to attenuate samples from the LFE PCM FX-bus accumulator.
128*0982e519SOswald BuddenhagenALSA uses accumulator 7 for LFE PCM samples for 5.1 playback. The result samples
129*0982e519SOswald Buddenhagenare forwarded to the DSP 5 playback channel.
130*0982e519SOswald Buddenhagen
131*0982e519SOswald Buddenhagenname='PCM Playback Volume',index=0
132*0982e519SOswald Buddenhagen----------------------------------
133*0982e519SOswald BuddenhagenThis control is used to attenuate samples from left and right PCM FX-bus
134*0982e519SOswald Buddenhagenaccumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples for
135*0982e519SOswald Buddenhagenstereo playback. The result samples are forwarded to the virtual stereo mixer.
136*0982e519SOswald Buddenhagen
137*0982e519SOswald Buddenhagenname='PCM Capture Volume',index=0
138*0982e519SOswald Buddenhagen---------------------------------
139*0982e519SOswald BuddenhagenThis control is used to attenuate samples from left and right PCM FX-bus
140*0982e519SOswald Buddenhagenaccumulators. ALSA uses accumulators 0 and 1 for left and right PCM.
141*0982e519SOswald BuddenhagenThe result is forwarded to the standard capture PCM device.
142*0982e519SOswald Buddenhagen
143*0982e519SOswald Buddenhagenname='Music Playback Volume',index=0
144*0982e519SOswald Buddenhagen------------------------------------
145*0982e519SOswald BuddenhagenThis control is used to attenuate samples from left and right MIDI FX-bus
146*0982e519SOswald Buddenhagenaccumulators. ALSA uses accumulators 4 and 5 for left and right MIDI samples.
147*0982e519SOswald BuddenhagenThe result samples are forwarded to the virtual stereo mixer.
148*0982e519SOswald Buddenhagen
149*0982e519SOswald Buddenhagenname='Music Capture Volume',index=0
150*0982e519SOswald Buddenhagen-----------------------------------
151*0982e519SOswald BuddenhagenThese controls are used to attenuate samples from left and right MIDI FX-bus
152*0982e519SOswald Buddenhagenaccumulator. ALSA uses accumulators 4 and 5 for left and right MIDI samples.
153*0982e519SOswald BuddenhagenThe result is forwarded to the standard capture PCM device.
154*0982e519SOswald Buddenhagen
155*0982e519SOswald Buddenhagenname='Front Playback Volume',index=0
156*0982e519SOswald Buddenhagen------------------------------------
157*0982e519SOswald BuddenhagenThis control is used to attenuate samples from the virtual stereo mixer.
158*0982e519SOswald BuddenhagenThe result samples are forwarded to the DSP 0 & 1 playback channels.
159*0982e519SOswald Buddenhagen
160*0982e519SOswald Buddenhagenname='Surround Playback Volume',index=0
161*0982e519SOswald Buddenhagen---------------------------------------
162*0982e519SOswald BuddenhagenThis control is used to attenuate samples from the virtual stereo mixer.
163*0982e519SOswald BuddenhagenThe result samples are forwarded to the DSP 2 & 3 playback channels.
164*0982e519SOswald Buddenhagen
165*0982e519SOswald Buddenhagenname='Side Playback Volume',index=0
166*0982e519SOswald Buddenhagen-----------------------------------
167*0982e519SOswald BuddenhagenThis control is used to attenuate samples from the virtual stereo mixer.
168*0982e519SOswald BuddenhagenThe result samples are forwarded to the DSP 6 & 7 playback channels.
169*0982e519SOswald Buddenhagen
170*0982e519SOswald Buddenhagenname='Center Playback Volume',index=0
171*0982e519SOswald Buddenhagen-------------------------------------
172*0982e519SOswald BuddenhagenThis control is used to attenuate samples from the virtual stereo mixer.
173*0982e519SOswald BuddenhagenThe result samples are forwarded to the DSP 4 playback channel.
174*0982e519SOswald Buddenhagen
175*0982e519SOswald Buddenhagenname='LFE Playback Volume',index=0
176*0982e519SOswald Buddenhagen----------------------------------
177*0982e519SOswald BuddenhagenThis control is used to attenuate samples from the virtual stereo mixer.
178*0982e519SOswald BuddenhagenThe result samples are forwarded to the DSP 5 playback channel.
179*0982e519SOswald Buddenhagen
180*0982e519SOswald Buddenhagenname='Tone Control - Switch',index=0
181*0982e519SOswald Buddenhagen------------------------------------
182*0982e519SOswald BuddenhagenThis control turns the tone control on or off. The samples forwarded to
183*0982e519SOswald Buddenhagenthe DSP playback channels are affected.
184*0982e519SOswald Buddenhagen
185*0982e519SOswald Buddenhagenname='Tone Control - Bass',index=0
186*0982e519SOswald Buddenhagen----------------------------------
187*0982e519SOswald BuddenhagenThis control sets the bass intensity. There is no neutral value!!
188*0982e519SOswald BuddenhagenWhen the tone control code is activated, the samples are always modified.
189*0982e519SOswald BuddenhagenThe closest value to pure signal is 20.
190*0982e519SOswald Buddenhagen
191*0982e519SOswald Buddenhagenname='Tone Control - Treble',index=0
192*0982e519SOswald Buddenhagen------------------------------------
193*0982e519SOswald BuddenhagenThis control sets the treble intensity. There is no neutral value!!
194*0982e519SOswald BuddenhagenWhen the tone control code is activated, the samples are always modified.
195*0982e519SOswald BuddenhagenThe closest value to pure signal is 20.
196*0982e519SOswald Buddenhagen
197*0982e519SOswald Buddenhagenname='Master Playback Volume',index=0
198*0982e519SOswald Buddenhagen-------------------------------------
199*0982e519SOswald BuddenhagenThis control is used to attenuate samples for all DSP playback channels.
200*0982e519SOswald Buddenhagen
201*0982e519SOswald Buddenhagenname='EMU Capture Volume',index=0
202*0982e519SOswald Buddenhagen----------------------------------
203*0982e519SOswald BuddenhagenThis control is used to attenuate samples from the DSP 0 & 1 capture channels.
204*0982e519SOswald BuddenhagenThe result is forwarded to the standard capture PCM device.
205*0982e519SOswald Buddenhagen
206*0982e519SOswald Buddenhagenname='DAC Left',index=0, etc.
207*0982e519SOswald Buddenhagen-----------------------------
208*0982e519SOswald BuddenhagenSelect the source for the given physical audio output. These may be physical
209*0982e519SOswald Buddenhageninputs, playback channels (DSP xx, specified as a decimal number), or silence.
210*0982e519SOswald Buddenhagen
211*0982e519SOswald Buddenhagenname='DSP x',index=0
212*0982e519SOswald Buddenhagen--------------------
213*0982e519SOswald BuddenhagenSelect the source for the given capture channel (specified as a hexadecimal
214*0982e519SOswald Buddenhagendigit). Same options as for the physical audio outputs.
215*0982e519SOswald Buddenhagen
216*0982e519SOswald Buddenhagen
217*0982e519SOswald BuddenhagenPCM stream related controls
218*0982e519SOswald Buddenhagen===========================
219*0982e519SOswald Buddenhagen
220*0982e519SOswald BuddenhagenThese controls are described in audigy-mixer.rst.
221*0982e519SOswald Buddenhagen
222*0982e519SOswald Buddenhagen
223*0982e519SOswald BuddenhagenMANUALS/PATENTS
224*0982e519SOswald Buddenhagen===============
225*0982e519SOswald Buddenhagen
226*0982e519SOswald BuddenhagenSee sb-live-mixer.rst.
227