]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix return value of snd_ctl_hw_subscribe_events()
authorTakashi Iwai <tiwai@suse.de>
Tue, 30 Sep 2008 12:44:12 +0000 (14:44 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 30 Sep 2008 12:44:12 +0000 (14:44 +0200)
snd_ctl_subscribe_events() must return 0 when succeeded.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/control/control_hw.c

index 13ee2a7f29da5dbc378e96697caf4d5ffe942a61..aeb2c23eb22c8aff575c98573f5c85d3fd8b6666 100644 (file)
@@ -116,7 +116,7 @@ static int snd_ctl_hw_subscribe_events(snd_ctl_t *handle, int subscribe)
                SYSERR("SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS failed");
                return -errno;
        }
-       return subscribe;
+       return 0;
 }
 
 static int snd_ctl_hw_card_info(snd_ctl_t *handle, snd_ctl_card_info_t *info)