From 96e01a6112f3c9ff9aeac7f5ca5eeef4747fbada Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 9 Jun 2005 17:14:22 +0000 Subject: [PATCH] Fix _snd_ctl_hw_open() mode argument Added the missing mode argument in _snd_ctl_hw_open(). --- src/control/control_hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.1