[alsa-devel] snd_pcm_set_params typo patch

Laurentiu Nicola grayshade at gmail.com
Wed Aug 7 21:23:30 CEST 2013

Please, somebody apply this one. I lost quite a bit of time because of it

Also, is there anything wrong with the bug tracker? It doesn't load for me.

diff -urpN alsa-lib-
--- alsa-lib-    2013-07-08 15:31:36.000000000 +0300
+++ alsa-lib-    2013-08-07 22:17:14.908673700
@@ -7932,7 +7932,7 @@ int snd_pcm_set_params(snd_pcm_t *pcm,
         return err;
     if (rrate != rate) {
-        SNDERR("Rate doesn't match (requested %iHz, get %iHz)", rate, err);
+        SNDERR("Rate doesn't match (requested %iHz, got %iHz)", rate,
         return -EINVAL;
     /* set the buffer time */

Because there are many ways to skin a cat, but you only get to choose one.

More information about the Alsa-devel mailing list