From 1051ee36069174e2a042f48cf6ea591827be8b32 Mon Sep 17 00:00:00 2001 From: torben Date: Tue, 24 Feb 2009 16:52:11 +0000 Subject: [PATCH] [alsa_io] dont compare sample_rate with error and bail out. git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3343 0c269be4-1314-0410-8aa9-9f06e86f4224 --- tools/alsa_in.c | 4 ++-- tools/alsa_out.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/alsa_in.c b/tools/alsa_in.c index bfdc094..5f7be52 100644 --- a/tools/alsa_in.c +++ b/tools/alsa_in.c @@ -124,8 +124,8 @@ static int set_hwparams(snd_pcm_t *handle, snd_pcm_hw_params_t *params, snd_pcm_ printf("Rate %iHz not available for playback: %s\n", rate, snd_strerror(err)); return err; } - if (err != rate) { - printf("Rate doesn't match (requested %iHz, get %iHz)\n", rate, err); + if (rrate != rate) { + printf("Rate doesn't match (requested %iHz, get %iHz)\n", rate, rrate); return -EINVAL; } /* set the buffer time */ diff --git a/tools/alsa_out.c b/tools/alsa_out.c index a88132f..10f0f9e 100644 --- a/tools/alsa_out.c +++ b/tools/alsa_out.c @@ -144,8 +144,8 @@ static int set_hwparams(snd_pcm_t *handle, snd_pcm_hw_params_t *params, snd_pcm_ printf("Rate %iHz not available for playback: %s\n", rate, snd_strerror(err)); return err; } - if (err != rate) { - printf("Rate doesn't match (requested %iHz, get %iHz)\n", rate, err); + if (rrate != rate) { + printf("Rate doesn't match (requested %iHz, get %iHz)\n", rate, rrate); return -EINVAL; } /* set the buffer time */