2016-11-11 00:20:32 +08:00
|
|
|
=======================================
|
2005-06-03 17:27:00 +08:00
|
|
|
Software Interface ALSA-DSP MADI Driver
|
2016-11-11 00:20:32 +08:00
|
|
|
=======================================
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
(translated from German, so no good English ;-),
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
2004 - winfried ritsch
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
Full functionality has been added to the driver. Since some of
|
|
|
|
the Controls and startup-options are ALSA-Standard and only the
|
|
|
|
special Controls are described and discussed below.
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
Hardware functionality
|
|
|
|
======================
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
Audio transmission
|
|
|
|
------------------
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* number of channels -- depends on transmission mode
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
The number of channels chosen is from 1..Nmax. The reason to
|
|
|
|
use for a lower number of channels is only resource allocation,
|
|
|
|
since unused DMA channels are disabled and less memory is
|
|
|
|
allocated. So also the throughput of the PCI system can be
|
|
|
|
scaled. (Only important for low performance boards).
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Single Speed -- 1..64 channels
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
.. note::
|
2005-06-03 17:27:00 +08:00
|
|
|
(Note: Choosing the 56channel mode for transmission or as
|
|
|
|
receiver, only 56 are transmitted/received over the MADI, but
|
|
|
|
all 64 channels are available for the mixer, so channel count
|
|
|
|
for the driver)
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Double Speed -- 1..32 channels
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
.. note::
|
2005-06-03 17:27:00 +08:00
|
|
|
Note: Choosing the 56-channel mode for
|
|
|
|
transmission/receive-mode , only 28 are transmitted/received
|
|
|
|
over the MADI, but all 32 channels are available for the mixer,
|
|
|
|
so channel count for the driver
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Quad Speed -- 1..16 channels
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
.. note::
|
|
|
|
Choosing the 56-channel mode for
|
2005-06-03 17:27:00 +08:00
|
|
|
transmission/receive-mode , only 14 are transmitted/received
|
|
|
|
over the MADI, but all 16 channels are available for the mixer,
|
|
|
|
so channel count for the driver
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Format -- signed 32 Bit Little Endian (SNDRV_PCM_FMTBIT_S32_LE)
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Sample Rates --
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
Single Speed -- 32000, 44100, 48000
|
|
|
|
|
|
|
|
Double Speed -- 64000, 88200, 96000 (untested)
|
|
|
|
|
|
|
|
Quad Speed -- 128000, 176400, 192000 (untested)
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* access-mode -- MMAP (memory mapped), Not interleaved (PCM_NON-INTERLEAVED)
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* buffer-sizes -- 64,128,256,512,1024,2048,8192 Samples
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* fragments -- 2
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Hardware-pointer -- 2 Modi
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
The Card supports the readout of the actual Buffer-pointer,
|
|
|
|
where DMA reads/writes. Since of the bulk mode of PCI it is only
|
|
|
|
64 Byte accurate. SO it is not really usable for the
|
|
|
|
ALSA-mid-level functions (here the buffer-ID gives a better
|
|
|
|
result), but if MMAP is used by the application. Therefore it
|
|
|
|
can be configured at load-time with the parameter
|
|
|
|
precise-pointer.
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
.. hint::
|
2005-06-03 17:27:00 +08:00
|
|
|
(Hint: Experimenting I found that the pointer is maximum 64 to
|
|
|
|
large never to small. So if you subtract 64 you always have a
|
|
|
|
safe pointer for writing, which is used on this mode inside
|
|
|
|
ALSA. In theory now you can get now a latency as low as 16
|
|
|
|
Samples, which is a quarter of the interrupt possibilities.)
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Precise Pointer -- off
|
2005-06-03 17:27:00 +08:00
|
|
|
interrupt used for pointer-calculation
|
2016-11-11 00:20:32 +08:00
|
|
|
|
|
|
|
* Precise Pointer -- on
|
2005-06-03 17:27:00 +08:00
|
|
|
hardware pointer used.
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
Controller
|
|
|
|
----------
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
Since DSP-MADI-Mixer has 8152 Fader, it does not make sense to
|
|
|
|
use the standard mixer-controls, since this would break most of
|
|
|
|
(especially graphic) ALSA-Mixer GUIs. So Mixer control has be
|
|
|
|
provided by a 2-dimensional controller using the
|
|
|
|
hwdep-interface.
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
Also all 128+256 Peak and RMS-Meter can be accessed via the
|
|
|
|
hwdep-interface. Since it could be a performance problem always
|
|
|
|
copying and converting Peak and RMS-Levels even if you just need
|
|
|
|
one, I decided to export the hardware structure, so that of
|
|
|
|
needed some driver-guru can implement a memory-mapping of mixer
|
|
|
|
or peak-meters over ioctl, or also to do only copying and no
|
|
|
|
conversion. A test-application shows the usage of the controller.
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Latency Controls --- not implemented !!!
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
.. note::
|
2005-06-03 17:27:00 +08:00
|
|
|
Note: Within the windows-driver the latency is accessible of a
|
|
|
|
control-panel, but buffer-sizes are controlled with ALSA from
|
|
|
|
hwparams-calls and should not be changed in run-state, I did not
|
|
|
|
implement it here.
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* System Clock -- suspended !!!!
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Name -- "System Clock Mode"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Access -- Read Write
|
|
|
|
|
|
|
|
* Values -- "Master" "Slave"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
.. note::
|
2005-06-03 17:27:00 +08:00
|
|
|
!!!! This is a hardware-function but is in conflict with the
|
|
|
|
Clock-source controller, which is a kind of ALSA-standard. I
|
|
|
|
makes sense to set the card to a special mode (master at some
|
|
|
|
frequency or slave), since even not using an Audio-application
|
|
|
|
a studio should have working synchronisations setup. So use
|
|
|
|
Clock-source-controller instead !!!!
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Clock Source
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Name -- "Sample Clock Source"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Access -- Read Write
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Values -- "AutoSync", "Internal 32.0 kHz", "Internal 44.1 kHz",
|
|
|
|
"Internal 48.0 kHz", "Internal 64.0 kHz", "Internal 88.2 kHz",
|
|
|
|
"Internal 96.0 kHz"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
Choose between Master at a specific Frequency and so also the
|
|
|
|
Speed-mode or Slave (Autosync). Also see "Preferred Sync Ref"
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
.. warning::
|
2005-06-03 17:27:00 +08:00
|
|
|
!!!! This is no pure hardware function but was implemented by
|
|
|
|
ALSA by some ALSA-drivers before, so I use it also. !!!
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Preferred Sync Ref
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Name -- "Preferred Sync Reference"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Access -- Read Write
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Values -- "Word" "MADI"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
Within the Auto-sync-Mode the preferred Sync Source can be
|
|
|
|
chosen. If it is not available another is used if possible.
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
.. note::
|
2005-06-03 17:27:00 +08:00
|
|
|
Note: Since MADI has a much higher bit-rate than word-clock, the
|
|
|
|
card should synchronise better in MADI Mode. But since the
|
|
|
|
RME-PLL is very good, there are almost no problems with
|
|
|
|
word-clock too. I never found a difference.
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* TX 64 channel
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Name -- "TX 64 channels mode"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Access -- Read Write
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Values -- 0 1
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
Using 64-channel-modus (1) or 56-channel-modus for
|
|
|
|
MADI-transmission (0).
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
.. note::
|
2005-06-03 17:27:00 +08:00
|
|
|
Note: This control is for output only. Input-mode is detected
|
|
|
|
automatically from hardware sending MADI.
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Clear TMS
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Name -- "Clear Track Marker"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Access -- Read Write
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Values -- 0 1
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
Don't use to lower 5 Audio-bits on AES as additional Bits.
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Safe Mode oder Auto Input
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Name -- "Safe Mode"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Access -- Read Write
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Values -- 0 1 (default on)
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
If on (1), then if either the optical or coaxial connection
|
|
|
|
has a failure, there is a takeover to the working one, with no
|
|
|
|
sample failure. Its only useful if you use the second as a
|
|
|
|
backup connection.
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Input
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Name -- "Input Select"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Access -- Read Write
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Values -- optical coaxial
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
Choosing the Input, optical or coaxial. If Safe-mode is active,
|
|
|
|
this is the preferred Input.
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
Mixer
|
|
|
|
-----
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Mixer
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Name -- "Mixer"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Access -- Read Write
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Values - <channel-number 0-127> <Value 0-65535>
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
Here as a first value the channel-index is taken to get/set the
|
|
|
|
corresponding mixer channel, where 0-63 are the input to output
|
|
|
|
fader and 64-127 the playback to outputs fader. Value 0
|
|
|
|
is channel muted 0 and 32768 an amplification of 1.
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Chn 1-64
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
fast mixer for the ALSA-mixer utils. The diagonal of the
|
|
|
|
mixer-matrix is implemented from playback to output.
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Line Out
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Name -- "Line Out"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Access -- Read Write
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Values -- 0 1
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
Switching on and off the analog out, which has nothing to do
|
|
|
|
with mixing or routing. the analog outs reflects channel 63,64.
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
Information (only read access)
|
|
|
|
------------------------------
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Sample Rate
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Name -- "System Sample Rate"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Access -- Read-only
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
getting the sample rate.
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* External Rate measured
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Name -- "External Rate"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Access -- Read only
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
Should be "Autosync Rate", but Name used is
|
|
|
|
ALSA-Scheme. External Sample frequency liked used on Autosync is
|
|
|
|
reported.
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* MADI Sync Status
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Name -- "MADI Sync Lock Status"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Access -- Read
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Values -- 0,1,2
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
MADI-Input is 0=Unlocked, 1=Locked, or 2=Synced.
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Word Clock Sync Status
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Name -- "Word Clock Lock Status"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Access -- Read
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Values -- 0,1,2
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
Word Clock Input is 0=Unlocked, 1=Locked, or 2=Synced.
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* AutoSync
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Name -- "AutoSync Reference"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Access -- Read
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* Values -- "WordClock", "MADI", "None"
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
Sync-Reference is either "WordClock", "MADI" or none.
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* RX 64ch --- noch nicht implementiert
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
MADI-Receiver is in 64 channel mode oder 56 channel mode.
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* AB_inp --- not tested
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
Used input for Auto-Input.
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* actual Buffer Position --- not implemented
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
!!! this is a ALSA internal function, so no control is used !!!
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
Calling Parameter
|
|
|
|
=================
|
|
|
|
|
|
|
|
* index int array (min = 1, max = 8)
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
Index value for RME HDSPM interface. card-index within ALSA
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
note: ALSA-standard
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* id string array (min = 1, max = 8)
|
|
|
|
|
|
|
|
ID string for RME HDSPM interface.
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
note: ALSA-standard
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* enable int array (min = 1, max = 8)
|
|
|
|
|
|
|
|
Enable/disable specific HDSPM sound-cards.
|
2005-06-03 17:27:00 +08:00
|
|
|
|
|
|
|
note: ALSA-standard
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* precise_ptr int array (min = 1, max = 8)
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
Enable precise pointer, or disable.
|
|
|
|
|
|
|
|
.. note::
|
2005-06-03 17:27:00 +08:00
|
|
|
note: Use only when the application supports this (which is a special case).
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* line_outs_monitor int array (min = 1, max = 8)
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
Send playback streams to analog outs by default.
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
.. note::
|
2005-06-03 17:27:00 +08:00
|
|
|
note: each playback channel is mixed to the same numbered output
|
|
|
|
channel (routed). This is against the ALSA-convention, where all
|
|
|
|
channels have to be muted on after loading the driver, but was
|
|
|
|
used before on other cards, so i historically use it again)
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
* enable_monitor int array (min = 1, max = 8)
|
|
|
|
|
|
|
|
Enable Analog Out on Channel 63/64 by default.
|
2005-06-03 17:27:00 +08:00
|
|
|
|
2016-11-11 00:20:32 +08:00
|
|
|
.. note ::
|
2012-07-21 04:35:17 +08:00
|
|
|
note: here the analog output is enabled (but not routed).
|