Linux command
iecset 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show current IEC958 status
iecset
Dump status as AES bytes
iecset -x
Set professional mode
iecset pro on
Set audio mode
iecset audio on
Set sample rate
iecset rate [48000]
Use a specific sound card
iecset -c [1]
Read commands from stdin
iecset -i
说明
iecset sets or dumps IEC958 (S/PDIF) status bits on ALSA devices. When started without commands, it shows the current IEC958 status in a human-readable form. The tool controls professional/consumer mode, sample rates, emphasis, and other S/PDIF parameters for digital audio output.
参数
- pro _on|off_
- Professional mode (true) or consumer mode (false).
- audio _on|off_
- Audio mode (true) or non-audio mode (false).
- rate _RATE_
- Sample rate in Hz.
- emphasis _0|1|2_
- Emphasis: 0 = none, 1 = 50/15us, 2 = CCITT.
- copyright _on|off_
- Copyright flag (consumer mode only).
- category _VALUE_
- Category code 0-0x7f (consumer mode only).
- lock _on|off_
- Rate lock (professional mode only).
- sbits _VALUE_
- Sample bits: 2 = 20bit, 4 = 24bit, 6 = undefined (professional mode only).
- -c _CARD_
- Sound card index number.
- -D _DEVICE_
- Device name.
- -n _INDEX_
- IEC958 control element index for multiple IEC958 devices.
- -x
- Dump status in AESx byte format.
- -i
- Read command sequences from stdin.
FAQ
What is the iecset command used for?
iecset sets or dumps IEC958 (S/PDIF) status bits on ALSA devices. When started without commands, it shows the current IEC958 status in a human-readable form. The tool controls professional/consumer mode, sample rates, emphasis, and other S/PDIF parameters for digital audio output.
How do I run a basic iecset example?
Run `iecset` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does pro _on|off_ do in iecset?
Professional mode (true) or consumer mode (false).