diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-09-30 14:44:12 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-09-30 14:44:12 +0200 |
commit | 1cf904e894b2bfba1045a3a15b326b06a415a3da (patch) | |
tree | ee0b76f35d1237bc4b1ad68718097099b20292af | |
parent | 5cee69b47b9719328ba16a837f5e347f11f06afd (diff) | |
download | alsa-lib-1cf904e894b2bfba1045a3a15b326b06a415a3da.tar.gz |
Fix return value of snd_ctl_hw_subscribe_events()
snd_ctl_subscribe_events() must return 0 when succeeded.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | src/control/control_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/control_hw.c b/src/control/control_hw.c index 13ee2a7f..aeb2c23e 100644 --- a/src/control/control_hw.c +++ b/src/control/control_hw.c @@ -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) |