module/alsa: add ‘volume’ and ‘muted’ options

These options allows you to select which channel to use as volume
source, and which channel to use as the source for the muted state.

With this, we can also remove the check for *all* (playback) channels
having the same volume/muted state. And with that, we no longer need
to warn when not all channels have the same volume/muted state.
This commit is contained in:
Daniel Eklöf 2021-08-20 20:24:44 +02:00
parent 591cae4c6d
commit ae7d54fb80
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 89 additions and 55 deletions

View file

@ -36,6 +36,17 @@ alsa - Monitors an alsa soundcard for volume and mute/unmute changes
: string
: yes
: Mixer channel to monitor. _Master_ might work.
| volume
: string
: no
: The name of the channel to use as source for the volume level
(default: *Front Left*).
| muted
: string
: no
: The name of the channel to use as source for the muted state
(default: *Front Left*).
# EXAMPLES