1iecset(1) General Commands Manual iecset(1)
2
3
4
6 iecset - Set or dump IEC958 status bits
7
8
10 iecset [options] [cmd arg...]
11
12
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
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
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 -x Dumps the status in the form of AESx bytes.
49
50 -i Reads the command sequences from stdin. Each line has single
51 command.
52
53
55 professional <bool>
56 The professional mode (true) or consumer mode (false).
57
58
59 audio <bool>
60 The audio mode (true) or non-audio mode (false).
61
62
63 rate <int>
64 The sample rate in Hz.
65
66
67 emphasis <int>
68 The emphasis: 0 = none, 1 = 50/15us, 2 = CCITT.
69
70
71 lock <bool>
72 Rate lock: locked (true), unlocked (false). This command is for
73 the professional mode only.
74
75
76 sbits <int>
77 Sample bits: 2 = 20bit, 4 = 24bit, 6 = undefined. This command
78 is for the professional mode only.
79
80
81 wordlength <int>
82 Wordlength: 0 = No, 2 = 22-18 bit, 4 = 23-19 bit, 5 = 24-20 bit,
83 6 = 20-16 bit. This command is for the professional mode only.
84
85
86 category <int>
87 Category: the value is from 0 to 0x7f. This command is for the
88 consumer mode only.
89
90
91 copyright <bool>
92 Copyright: copyrighted (true), non-copyrighted (false). This
93 command is for the consumer mode only.
94
95
96 original <boo>
97 Original flag: original (true), 1st generation (false). This
98 command is for the consumer mode only.
99
100
102 Takashi Iwai <tiwai@suse.de>
103
104
105
106 23 Oct 2003 iecset(1)