mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-07 13:30:07 -05:00
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>
This commit is contained in:
parent
5cee69b47b
commit
1cf904e894
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ static int snd_ctl_hw_subscribe_events(snd_ctl_t *handle, int subscribe)
|
||||||
SYSERR("SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS failed");
|
SYSERR("SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS failed");
|
||||||
return -errno;
|
return -errno;
|
||||||
}
|
}
|
||||||
return subscribe;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int snd_ctl_hw_card_info(snd_ctl_t *handle, snd_ctl_card_info_t *info)
|
static int snd_ctl_hw_card_info(snd_ctl_t *handle, snd_ctl_card_info_t *info)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue