LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

iecset

Set or dump IEC958 (S/PDIF) status bits on ALSA devices

TLDR

Show current IEC958 status
$ iecset
copy
Dump status as AES bytes
$ iecset -x
copy
Set professional mode
$ iecset pro on
copy
Set audio mode
$ iecset audio on
copy
Set sample rate
$ iecset rate [48000]
copy
Use a specific sound card
$ iecset -c [1]
copy
Read commands from stdin
$ iecset -i
copy

SYNOPSIS

iecset [options] [commands]

DESCRIPTION

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.

PARAMETERS

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.

INSTALL

sudo apt install alsa-utils
copy
sudo dnf install alsa-utils
copy
sudo pacman -S alsa-utils
copy
sudo apk add alsa-utils
copy
sudo zypper install alsa-utils
copy
nix profile install nixpkgs#alsa-utils
copy

CAVEATS

Part of alsa-utils. Device must support IEC958. Settings may reset.

HISTORY

iecset is part of ALSA utilities for Linux digital audio configuration.

SEE ALSO

aplay(1), amixer(1), alsactl(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid