]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix _snd_ctl_hw_open() mode argument
authorTakashi Iwai <tiwai@suse.de>
Thu, 9 Jun 2005 17:14:22 +0000 (17:14 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 9 Jun 2005 17:14:22 +0000 (17:14 +0000)
Added the missing mode argument in _snd_ctl_hw_open().

src/control/control_hw.c

index 72b65d684e509cbc26f49a28be01dcaf3a3f91e1..9e4e13e37c300a2fcca72b1b057965eefdcb2428 100644 (file)
@@ -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);