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.

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)

Copied to clipboard
Kai