Crates.io | firewire-tascam-protocols |
lib.rs | firewire-tascam-protocols |
version | 0.2.0 |
source | src |
created_at | 2022-08-05 07:21:26.426641 |
updated_at | 2023-04-18 12:10:01.014631 |
description | Protocol implementation for TASCAM FireWire series |
homepage | https://alsa-project.github.io/gobject-introspection-docs/ |
repository | https://github.com/alsa-project/snd-firewire-ctl-services |
max_upload_size | |
id | 639190 |
size | 149,559 |
The library crate includes implementation of protocols for models of TASCAM FireWire series, designed to audio and music unit in IEEE 1394 bus.
As of 2022, TASCAM is an subsidiary of TEAC Corporation. FW-1884 was launched in 2003 as the first TASCAM product for audio and music unit in IEEE 1394 bus. At the same time, FE-8 was launched as expander unit for FW-1884. FW-1082 was launched in 2005 as console model smaller than FW-1884. FW-1804 was launched in 2006 as rack model. The above models were provided by the joint project between TASCAM and Frontier Design Group.
The models transmit state of hardware by subsequence of quadlet messages, while the way of transmission is different between models. The most of models transmit the message in isochronous packet multiplexed with PCM frame. FE-8 is an exception to transmits the message by asynchronous transaction to registered address.
Linux sound subsystem, a.k.a ALSA, provides loadable kernel module (snd-firewire-tascam
) as
driver for the units except for FE-8. The driver maintains isochronous packet stream for
audio frames and the state messages as well as MIDI transmission by asynchronous transaction.
The driver allows user space application to retrieve the cached state and read notification for
the state change by executing system call.
hitaki library has
SndTascam
GObject class for the purpose. The class implements TascamProtocol
GObject
interface, which is also implemented by asynch::TascamExpander
structure so that FE-8 can be
supported as well.
Anyway, the crate is supplemental implementation for runtime program to configure digital signal processing functions and console surfaces which are not implemented in the driver.
This is the list of dependent crates.
The glib and hinawa crates require some underlying system libraries
The functions of Linux FireWire and Sound subsystem is called via hinawa and hitaki crates and libraries to communicate with node in IEEE 1394 bus, thus the crate is not portable.
This is the list of models currently supported.
The crate is developed and maintained by ALSA GObject Introspection team for snd-firewire-ctl-services project, and not stable yet. The included Rust elements are likely changed without backward compatibility.
The crate is released under GNU Lesser General Public License v3.0 or later with respect to clause for reverse engineering.
If finding issue, please file it in https://github.com/alsa-project/snd-firewire-ctl-services/.
The implementation of protocol is developed by the way of reverse engineering; sniffing IEEE 1394 bus to which target device is connected, and analysis of the communication between the device and driver provided by hardware vendor. It's natural not to work with your device since developer worked with blackbox.
Some programs are available under 'src/bin' directory.
This program parses content of Configuration ROM specialized by TASCAM, then print the information.
Without any command line argument, it prints help message and exit.
$ cargo run --bin tascam-config-rom-parser
Usage:
tascam-config-rom-parser CDEV
where:
CDEV: The path to special file of firewire character device, typically '/dev/fw1'.
Please run with an argument for firewire character device:
$ cargo run --bin tascam-config-rom-parser /dev/fw1
...
This program retrieves information from node of target device by protocol defined by TASCAM, then print the information.
Without any command line argument, it prints help message and exit.
$ cargo run --bin tascam-hardware-info
Usage:
tascam-hardware-info CDEV
where:
CDEV: The path to special file of firewire character device, typically '/dev/fw1'.
Please run with an argument for firewire character device:
$ cargo run --bin tascam-hardware-info /dev/fw1
...