]> git.alsa-project.org Git - alsa-oss.git/commitdiff
Fix the argument passed to snd_pcm_dump_setup()
authorTakashi Iwai <tiwai@suse.de>
Mon, 28 Apr 2014 14:54:29 +0000 (16:54 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 28 Apr 2014 14:54:29 +0000 (16:54 +0200)
Although it's currently disabled via ifdef, better to fix it so that
any other people won't fall into the same hole like me.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
alsa/pcm.c

index 19b67e0fe8e460f6a4d30c956b772025f5760721..fdf99337997f9373f173ac64ce882601f8846c96 100644 (file)
@@ -308,8 +308,8 @@ static int oss_dsp_hw_params(oss_dsp_t *dsp)
                if (err < 0)
                        return err;
 #if 0
-               if (alsa_oss_debug)
-                       snd_pcm_dump_setup(pcm, stderr);
+               if (alsa_oss_debug && alsa_oss_debug_out)
+                       snd_pcm_dump_setup(pcm, alsa_oss_debug_out);
 #endif
                if (err < 0)
                        return err;