X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=alsa_mix.c;h=c860efc8aa34d9776f52375d87c4d9cb43ad3c27;hp=c5daebc2682b13eb0d6e2a12b9956ae5b77ff4b8;hb=3d9df3244a04aaf5c0c216f2e475f5355cf9721b;hpb=f6a99f9e27cf84d92fc992677dca9578c5a3b585 diff --git a/alsa_mix.c b/alsa_mix.c index c5daebc2..c860efc8 100644 --- a/alsa_mix.c +++ b/alsa_mix.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012-2013 Andre Noll + * Copyright (C) 2012-2014 Andre Noll * * 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_RANGE; } - 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_RANGE;