From: Richard Kettlewell Date: Sat, 19 Jan 2013 18:37:45 +0000 (+0000) Subject: alsa: set volume via Master rather than PCM. X-Git-Tag: branchpoint-5.1~5 X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/commitdiff_plain/4f96b17ef39f9b75bb69fdb592efa82ac2f17721?ds=inline alsa: set volume via Master rather than PCM. PulseAudio only has Master. AFAICS none of this stuff is documented so who knows what you're supposed to do? --- diff --git a/lib/uaudio-alsa.c b/lib/uaudio-alsa.c index d5bff35..26169b0 100644 --- a/lib/uaudio-alsa.c +++ b/lib/uaudio-alsa.c @@ -170,7 +170,7 @@ static void alsa_open_mixer(void) { snd_mixer_selem_id_t *id; const char *device = uaudio_get("device", "default"); const char *mixer = uaudio_get("mixer-control", "0"); - const char *channel = uaudio_get("mixer-channel", "PCM"); + const char *channel = uaudio_get("mixer-channel", "Master"); snd_mixer_selem_id_alloca(&id); if((err = snd_mixer_open(&alsa_mixer_handle, 0)))