2003-10-23 18:54:32 +02:00
|
|
|
.TH iecset 1 "23 Oct 2003"
|
|
|
|
.SH NAME
|
|
|
|
iecset \- Set or dump IEC958 status bits
|
|
|
|
|
|
|
|
.SH SYNOPSIS
|
|
|
|
\fBiecset\fP [\fIoptions\fP] [\fIcmd\fP \fIarg\fP...]
|
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
\fBiecset\fP is a small utility to set or dump the IEC958 (or so-called
|
|
|
|
"S/PDIF") status bits of the specified sound card via ALSA control API.
|
|
|
|
|
|
|
|
When \fBiecset\fP is started without arguments except for options,
|
|
|
|
it will show the current IEC958 status in a human-readable form.
|
|
|
|
When the commands are given in the arguments, they are parsed
|
|
|
|
and the IEC958 status bits are updated. The resultant status is
|
|
|
|
shown as well.
|
|
|
|
|
|
|
|
The commands consist of the command directive and the argument.
|
2004-10-08 18:15:34 +02:00
|
|
|
As the boolean argument, \fIyes\fP, \fIno\fP, \fItrue\fP, \fIfalse\fP,
|
2003-10-23 18:54:32 +02:00
|
|
|
or a digit number is allowed.
|
|
|
|
|
|
|
|
.SH EXAMPLES
|
|
|
|
.TP
|
|
|
|
.BI iecset\ \-Dhw:1
|
|
|
|
Displays the current IEC958 status bits on the second card.
|
2004-10-08 18:15:34 +02:00
|
|
|
This is equivalent with \fI\-c 1\fP.
|
2003-10-23 18:54:32 +02:00
|
|
|
.TP
|
|
|
|
.BI iecset\ \-x
|
|
|
|
Displays the current IEC958 status bits in a style of the arguments
|
|
|
|
for the PCM stream. The output string can be passed to the \fIiec958\fP
|
|
|
|
(or \fIspdif\fP) PCM type as the optional argument.
|
|
|
|
.TP
|
|
|
|
.BI iecset\ pro\ off\ audio\ off
|
|
|
|
Sets the current status to the consumer-mode and turns on the
|
|
|
|
non-audio bit. The modified status will be shown, too.
|
|
|
|
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2004-10-08 18:15:34 +02:00
|
|
|
\fI\-D\fP device
|
2003-10-23 18:54:32 +02:00
|
|
|
Specifies the device name of the control to open
|
|
|
|
.TP
|
2004-10-08 18:15:34 +02:00
|
|
|
\fI\-c\fP card
|
|
|
|
Specifies the card index to open. Equivalent with \fI\-Dhw:x\fP.
|
2003-10-23 18:54:32 +02:00
|
|
|
.TP
|
2008-02-05 08:11:02 +01:00
|
|
|
\fI\-n\fP index
|
|
|
|
Specifies the IEC958 control element index, in case you have multiple
|
|
|
|
IEC958 devices and need to choose one of them.
|
|
|
|
.TP
|
2004-10-08 18:15:34 +02:00
|
|
|
\fI\-x\fP
|
2003-10-23 18:54:32 +02:00
|
|
|
Dumps the status in the form of AESx bytes.
|
|
|
|
.TP
|
2004-10-08 18:15:34 +02:00
|
|
|
\fI\-i\fP
|
2003-10-23 18:54:32 +02:00
|
|
|
Reads the command sequences from stdin.
|
|
|
|
Each line has single command.
|
|
|
|
|
|
|
|
.SH COMMANDS
|
|
|
|
.TP
|
|
|
|
\fIprofessional\fP <bool>
|
|
|
|
The professional mode (true) or consumer mode (false).
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fIaudio\fP <bool>
|
|
|
|
The audio mode (true) or non-audio mode (false).
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fIrate\fP <int>
|
|
|
|
The sample rate in Hz.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fIemphasis\fP <int>
|
|
|
|
The emphasis: 0 = none, 1 = 50/15us, 2 = CCITT.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fIlock\fP <bool>
|
|
|
|
Rate lock: locked (true), unlocked (false).
|
|
|
|
This command is for the professional mode only.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fIsbits\fP <int>
|
|
|
|
Sample bits: 2 = 20bit, 4 = 24bit, 6 = undefined.
|
|
|
|
This command is for the professional mode only.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fIwordlength\fP <int>
|
|
|
|
Wordlength: 0 = No, 2 = 22-18 bit, 4 = 23-19 bit, 5 = 24-20 bit, 6 = 20-16 bit.
|
|
|
|
This command is for the professional mode only.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fIcategory\fP <int>
|
|
|
|
Category: the value is from 0 to 0x7f.
|
|
|
|
This command is for the consumer mode only.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fIcopyright\fP <bool>
|
|
|
|
Copyright: copyrighted (true), non-copyrighted (false).
|
|
|
|
This command is for the consumer mode only.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fIoriginal\fP <boo>
|
|
|
|
Original flag: original (true), 1st generation (false).
|
|
|
|
This command is for the consumer mode only.
|
|
|
|
|
|
|
|
.SH AUTHOR
|
|
|
|
Takashi Iwai <tiwai@suse.de>
|