]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - alsa_mix.c
alsa_mix: Allow non-positive mixer values.
[paraslash.git] / alsa_mix.c
index 5a5835463e22b752cad9379776c98fc16338d9b3..0c2a1cf80725937ce87beb73bf1e08f930d50d36 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2012-2013 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -150,7 +150,7 @@ static int alsa_mix_set_channel(struct mixer_handle *h,
                        mixer_channel, h->card, snd_strerror(ret));
                return -E_ALSA_MIX_BAD_ELEM;
        }
-       if (h->pmin < 0 || h->pmax < 0 || h->pmin >= h->pmax) {
+       if (h->pmin >= h->pmax) {
                PARA_NOTICE_LOG("alsa reported %s range %ld-%ld (%s)\n",
                        mixer_channel, h->pmin, h->pmax, h->card);
                return -E_ALSA_MIX_BAD_ELEM;