chiark / gitweb /
alsa: set volume via Master rather than PCM.
authorRichard Kettlewell <rjk@terraraq.org.uk>
Sat, 19 Jan 2013 18:37:45 +0000 (18:37 +0000)
committerRichard Kettlewell <rjk@terraraq.org.uk>
Sat, 19 Jan 2013 18:37:45 +0000 (18:37 +0000)
PulseAudio only has Master.  AFAICS none of this stuff is documented
so who knows what you're supposed to do?

lib/uaudio-alsa.c

index d5bff351830e68963e1151e3ae385bd3dfaaed3a..26169b0a828b886e6dcd4decfae141cfa5d12034 100644 (file)
@@ -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)))