From: Takashi Iwai Date: Mon, 28 Apr 2014 14:54:29 +0000 (+0200) Subject: Fix the argument passed to snd_pcm_dump_setup() X-Git-Tag: v1.0.28~3 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=40357524a04019173d7073b683ebc2465c3db30a;p=alsa-oss.git Fix the argument passed to snd_pcm_dump_setup() 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 --- diff --git a/alsa/pcm.c b/alsa/pcm.c index 19b67e0..fdf9933 100644 --- a/alsa/pcm.c +++ b/alsa/pcm.c @@ -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;