140 lines
4.2 KiB
HTML
140 lines
4.2 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of iecset</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>iecset</H1>
|
|
Section: User Commands (1)<BR>Updated: 23 Oct 2003<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
iecset - Set or dump IEC958 status bits
|
|
<P>
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>iecset</B> [<I>options</I>] [<I>cmd</I> <I>arg</I>...]
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>iecset</B> 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.
|
|
<P>
|
|
When <B>iecset</B> 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.
|
|
<P>
|
|
The commands consist of the command directive and the argument.
|
|
As the boolean argument, <I>yes</I>, <I>no</I>, <I>true</I>, <I>false</I>,
|
|
or a digit number is allowed.
|
|
<P>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>iecset -Dhw:1</B>
|
|
|
|
<DD>
|
|
Displays the current IEC958 status bits on the second card.
|
|
This is equivalent with <I>-c 1</I>.
|
|
<DT id="2"><B>iecset -x</B>
|
|
|
|
<DD>
|
|
Displays the current IEC958 status bits in a style of the arguments
|
|
for the PCM stream. The output string can be passed to the <I>iec958</I>
|
|
(or <I>spdif</I>) PCM type as the optional argument.
|
|
<DT id="3"><B>iecset pro off audio off</B>
|
|
|
|
<DD>
|
|
Sets the current status to the consumer-mode and turns on the
|
|
non-audio bit. The modified status will be shown, too.
|
|
<P>
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="4"><I>-D</I> device<DD>
|
|
Specifies the device name of the control to open
|
|
<DT id="5"><I>-c</I> card<DD>
|
|
Specifies the card index to open. Equivalent with <I>-Dhw:x</I>.
|
|
<DT id="6"><I>-n</I> index<DD>
|
|
Specifies the IEC958 control element index, in case you have multiple
|
|
IEC958 devices and need to choose one of them.
|
|
<DT id="7"><I>-x</I><DD>
|
|
Dumps the status in the form of AESx bytes.
|
|
<DT id="8"><I>-i</I><DD>
|
|
Reads the command sequences from stdin.
|
|
Each line has single command.
|
|
<P>
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>COMMANDS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="9"><I>professional</I> <bool><DD>
|
|
The professional mode (true) or consumer mode (false).
|
|
<P>
|
|
<DT id="10"><I>audio</I> <bool><DD>
|
|
The audio mode (true) or non-audio mode (false).
|
|
<P>
|
|
<DT id="11"><I>rate</I> <int><DD>
|
|
The sample rate in Hz.
|
|
<P>
|
|
<DT id="12"><I>emphasis</I> <int><DD>
|
|
The emphasis: 0 = none, 1 = 50/15us, 2 = CCITT.
|
|
<P>
|
|
<DT id="13"><I>lock</I> <bool><DD>
|
|
Rate lock: locked (true), unlocked (false).
|
|
This command is for the professional mode only.
|
|
<P>
|
|
<DT id="14"><I>sbits</I> <int><DD>
|
|
Sample bits: 2 = 20bit, 4 = 24bit, 6 = undefined.
|
|
This command is for the professional mode only.
|
|
<P>
|
|
<DT id="15"><I>wordlength</I> <int><DD>
|
|
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.
|
|
<P>
|
|
<DT id="16"><I>category</I> <int><DD>
|
|
Category: the value is from 0 to 0x7f.
|
|
This command is for the consumer mode only.
|
|
<P>
|
|
<DT id="17"><I>copyright</I> <bool><DD>
|
|
Copyright: copyrighted (true), non-copyrighted (false).
|
|
This command is for the consumer mode only.
|
|
<P>
|
|
<DT id="18"><I>original</I> <boo><DD>
|
|
Original flag: original (true), 1st generation (false).
|
|
This command is for the consumer mode only.
|
|
<P>
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Takashi Iwai <<A HREF="mailto:tiwai@suse.de">tiwai@suse.de</A>>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="19"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="20"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="21"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="22"><A HREF="#lbAE">EXAMPLES</A><DD>
|
|
<DT id="23"><A HREF="#lbAF">OPTIONS</A><DD>
|
|
<DT id="24"><A HREF="#lbAG">COMMANDS</A><DD>
|
|
<DT id="25"><A HREF="#lbAH">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:17 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|