From: Takashi Iwai Date: Thu, 9 Jun 2005 17:14:22 +0000 (+0000) Subject: Fix _snd_ctl_hw_open() mode argument X-Git-Tag: v1.0.10rc1~31 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=96e01a6112f3c9ff9aeac7f5ca5eeef4747fbada;p=alsa-lib.git Fix _snd_ctl_hw_open() mode argument Added the missing mode argument in _snd_ctl_hw_open(). --- diff --git a/src/control/control_hw.c b/src/control/control_hw.c index 72b65d68..9e4e13e3 100644 --- a/src/control/control_hw.c +++ b/src/control/control_hw.c @@ -386,7 +386,7 @@ int snd_ctl_hw_open(snd_ctl_t **handle, const char *name, int card, int mode) return 0; } -int _snd_ctl_hw_open(snd_ctl_t **handlep, char *name, snd_config_t *root ATTRIBUTE_UNUSED, snd_config_t *conf) +int _snd_ctl_hw_open(snd_ctl_t **handlep, char *name, snd_config_t *root ATTRIBUTE_UNUSED, snd_config_t *conf, int mode) { snd_config_iterator_t i, next; long card = -1; @@ -417,6 +417,6 @@ int _snd_ctl_hw_open(snd_ctl_t **handlep, char *name, snd_config_t *root ATTRIBU } if (card < 0) return -EINVAL; - return snd_ctl_hw_open(handlep, name, card, 0); + return snd_ctl_hw_open(handlep, name, card, mode); } SND_DLSYM_BUILD_VERSION(_snd_ctl_hw_open, SND_CONTROL_DLSYM_VERSION);