1iecset(1)                   General Commands Manual                  iecset(1)
2
3
4

NAME

6       iecset - Set or dump IEC958 status bits
7
8

SYNOPSIS

10       iecset [options] [cmd arg...]
11
12

DESCRIPTION

14       iecset  is  a  small  utility  to  set or dump the IEC958 (or so-called
15       "S/PDIF") status bits of the specified sound card via ALSA control API.
16
17       When iecset is started without arguments except for  options,  it  will
18       show the current IEC958 status in a human-readable form.  When the com‐
19       mands are given in the arguments, they are parsed and the IEC958 status
20       bits are updated.  The resultant status is shown as well.
21
22       The commands consist of the command directive and the argument.  As the
23       boolean argument, yes, no, true, false, or a digit number is allowed.
24
25

EXAMPLES

27       iecset -Dhw:1
28              Displays the current IEC958 status  bits  on  the  second  card.
29              This is equivalent with -c 1.
30
31       iecset -x
32              Displays  the current IEC958 status bits in a style of the argu‐
33              ments for the PCM stream.  The output string can  be  passed  to
34              the iec958 (or spdif) PCM type as the optional argument.
35
36       iecset pro off audio off
37              Sets  the  current  status to the consumer-mode and turns on the
38              non-audio bit.  The modified status will be shown, too.
39
40

OPTIONS

42       -D device
43              Specifies the device name of the control to open
44
45       -c card
46              Specifies the card index to open.  Equivalent with -Dhw:x.
47
48       -n index
49              Specifies the IEC958 control element index,  in  case  you  have
50              multiple IEC958 devices and need to choose one of them.
51
52       -x     Dumps the status in the form of AESx bytes.
53
54       -i     Reads  the  command  sequences from stdin.  Each line has single
55              command.
56
57

COMMANDS

59       professional <bool>
60              The professional mode (true) or consumer mode (false).
61
62
63       audio <bool>
64              The audio mode (true) or non-audio mode (false).
65
66
67       rate <int>
68              The sample rate in Hz.
69
70
71       emphasis <int>
72              The emphasis: 0 = none, 1 = 50/15us, 2 = CCITT.
73
74
75       lock <bool>
76              Rate lock: locked (true), unlocked (false).  This command is for
77              the professional mode only.
78
79
80       sbits <int>
81              Sample bits:  2 = 20bit, 4 = 24bit, 6 = undefined.  This command
82              is for the professional mode only.
83
84
85       wordlength <int>
86              Wordlength: 0 = No, 2 = 22-18 bit, 4 = 23-19 bit, 5 = 24-20 bit,
87              6 = 20-16 bit.  This command is for the professional mode only.
88
89
90       category <int>
91              Category:  the value is from 0 to 0x7f.  This command is for the
92              consumer mode only.
93
94
95       copyright <bool>
96              Copyright: copyrighted (true),  non-copyrighted  (false).   This
97              command is for the consumer mode only.
98
99
100       original <boo>
101              Original  flag:  original  (true), 1st generation (false).  This
102              command is for the consumer mode only.
103
104

AUTHOR

106       Takashi Iwai <tiwai@suse.de>
107
108
109
110                                  23 Oct 2003                        iecset(1)
Impressum