X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=alsa_mix.c;h=c44c74f9d67a3feca3dd775d5e240e5fec431754;hb=95255fc8827336e4f2456262b706bb448bdec59f;hp=be38e887af9babf8925bcda4d8065a79f991ff7c;hpb=a731a7c6e78fb137268b42062d9fb08b4e49a2c8;p=paraslash.git diff --git a/alsa_mix.c b/alsa_mix.c index be38e887..c44c74f9 100644 --- a/alsa_mix.c +++ b/alsa_mix.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012-2014 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;