Skip to content
jc-rs
GitHub

amixer

--amixerv1.0.0

`amixer` command parser

Linuxcommand
$ amixer | jc-rs --amixer

A real pair

From the reference corpus (ubuntu-22.04/amixer-control-master.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. The coverage note below explains why this pair does not enter the measured comparison. Hover a value to see where it came from.

amixerubuntu-22.04
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 87 [100%] [0.00dB] [on]
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
{
  "control_name": "Master",
  "capabilities": [
    "pvolume",
    "pvolume-joined",
    "pswitch",
    "pswitch-joined"
  ],
  "playback_channels": [
    "Mono"
  ],
  "limits": {
    "playback_min": "0",
    "playback_max": "87"
  },
  "mono": {
    "playback_value": "87",
    "percentage": "100%",
    "db": "0.00db",
    "status": "on"
  }
}

Fixture coverage

noneThe reference corpus ships no oracle-valid fixture for this parser, so the differential cannot speak for it. That is reported, not hidden.

Magic syntax

jc-rs amixerjc-rs runs the command itself and parses what it prints. Recognised for: `amixer`

Source: crates/jc-rs-parsers/src/misc/amixer.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare