]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fixed snd_pcm_set_params() error code
authorJaroslav Kysela <perex@perex.cz>
Wed, 1 Feb 2006 06:34:43 +0000 (06:34 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 1 Feb 2006 06:34:43 +0000 (06:34 +0000)
src/pcm/pcm.c

index 601a9d9971e8a6d4dd876d9a2352383b4ba58c57..43d87c35b0ad3548f3048e41ccf0ee3b1c4854ea 100644 (file)
@@ -7145,7 +7145,7 @@ int snd_pcm_set_params(snd_pcm_t *pcm,
                period_time = latency / 4;
                err = INTERNAL(snd_pcm_hw_params_set_period_time_near)(pcm, params, &period_time, NULL);
                if (err < 0) {
-                       SNDERR("Unable to set period time %i for %s: %s", s, period_time, snd_strerror(err));
+                       SNDERR("Unable to set period time %i for %s: %s", period_time, s, snd_strerror(err));
                        return err;
                }
                 err = INTERNAL(snd_pcm_hw_params_get_period_size)(params, &period_size, NULL);