SDB:Sound concepts
Sound architecture in openSUSE
Overview
Modern openSUSE systems use the Advanced Linux Sound Architecture (ALSA) in the Linux kernel for hardware support and PipeWire as the default user-space multimedia server.
ALSA provides low-level access to sound hardware, while PipeWire manages audio routing, device handling, and application integration on the desktop.
High-level architecture:
Applications
↓
PipeWire (graph-based audio server)
↓
ALSA userspace library (libasound)
↓
ALSA kernel drivers
↓
Audio hardware
ALSA Architecture
ALSA consists of two main parts:
1. Kernel Drivers
Kernel modules (e.g. `snd_hda_intel`, `snd_usb_audio`) provide:
- PCM playback and capture devices
- Control interfaces (mixers, switches, volumes)
- MIDI interfaces
- Hardware abstraction
Device files are exposed via:
/dev/snd/
Examples:
- `/dev/snd/pcmC0D0p` – PCM playback device
- `/dev/snd/controlC0` – control interface
2. ALSA Userspace Library (libasound)
Applications using the ALSA API link against `libasound`.
The library:
- Provides device abstraction (e.g. `default`, `hw:0`)
- Supports plugins (dmix, dsnoop, plug, etc.)
- Can redirect audio streams to other backends (including PipeWire)
On modern systems, the "default" ALSA device typically routes into PipeWire rather than directly to hardware.
ALSA Utilities
Provided by the `alsa-utils` package:
- `aplay -l` – list playback devices
- `arecord -l` – list capture devices
- `alsamixer` – interactive mixer
- `amixer` – scriptable mixer control
ALSA mixer controls affect hardware-level settings and remain relevant even when PipeWire is in use.
PipeWire Architecture
PipeWire is a graph-based multimedia processing engine.
It consists of:
- `pipewire` – core daemon
- `wireplumber` – session and policy manager
- `pipewire-pulse` – PulseAudio protocol compatibility server
PipeWire runs as a systemd user service:
systemctl --user status pipewire
Graph Model
PipeWire internally represents audio as:
- Nodes (devices, applications, filters)
- Ports (input/output endpoints)
- Links (connections between ports)
This allows:
- Flexible routing
- Low-latency processing
- Simultaneous support for desktop and pro-audio workloads
The graph can be inspected using:
pw-cli ls Node pw-top
PipeWire Architecture
PipeWire is a graph-based multimedia processing engine.
It consists of:
- `pipewire` – core daemon
- `wireplumber` – session and policy manager
- `pipewire-pulse` – PulseAudio protocol compatibility server
PipeWire runs as a systemd user service:
systemctl --user status pipewire
Application Interaction
Applications may use different audio APIs:
- Native ALSA
- PulseAudio
- JACK
On modern openSUSE systems, these are routed through PipeWire. This allows older and newer applications to coexist without manual configuration.
Common diagnostic tools include:
- `pactl info`
- `pw-cli info`
- `systemctl --user status pipewire`
Configuration Locations
PipeWire uses layered configuration directories.
Vendor defaults (packaged files):
/usr/share/pipewire/
System-wide administrator configuration:
/etc/pipewire/
Rather than copying complete configuration files from /usr/share/pipewire/, administrators should create override snippets in the appropriate *.conf.d/ directories under /etc/pipewire/.
Per-user configuration:
~/.config/pipewire/
Files in /etc override vendor defaults. In most cases, manual configuration is not required.
In most cases, manual configuration is not required.
For more info refer: