spoon

set dwm status
git clone git://git.2f30.org/spoon.git
Log | Files | Refs | LICENSE

commit 44c65688aa9526fbd1e075a6f5af3a74391722d0
parent 74618e7b6e043eb00f575555fa996ccfd081e6f0
Author: Lazaros Koromilas <lostd@2f30.org>
Date:   Thu, 15 Mar 2018 13:54:00 +0200

mix: Use unknown channel instead of front left

Diffstat:
mix.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mix.c b/mix.c @@ -78,7 +78,7 @@ mixer_elem_cb(snd_mixer_elem_t *elem, unsigned int mask) long min, max, vol; int r; - r = snd_mixer_selem_get_playback_switch(elem, SND_MIXER_SCHN_FRONT_LEFT, &active); + r = snd_mixer_selem_get_playback_switch(elem, SND_MIXER_SCHN_UNKNOWN, &active); if (r < 0) { warnx("snd_mixer_selem_get_playback_switch: %s", snd_strerror(r)); @@ -92,7 +92,7 @@ mixer_elem_cb(snd_mixer_elem_t *elem, unsigned int mask) return -1; } r = snd_mixer_selem_get_playback_volume(elem, - SND_MIXER_SCHN_FRONT_LEFT, &vol); + SND_MIXER_SCHN_UNKNOWN, &vol); if (r < 0) { warnx("snd_mixer_selem_get_playback_volume: %s", snd_strerror(r));