aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@kernellabs.com>2011-10-07 01:39:46 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-10-07 01:40:28 (GMT)
commit8b09196a335d07c554a51c984344b7dc47d9062a (patch)
tree0ceba67a5ca91521a3eb6f8b87d7c32ea4892888
parent8e849bb55181f3d305113c9b1e85d435cbc3caf4 (diff)
Try first the highest speed
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--src/alsa_stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alsa_stream.c b/src/alsa_stream.c
index b6a41a5..99cea05 100644
--- a/src/alsa_stream.c
+++ b/src/alsa_stream.c
@@ -261,7 +261,7 @@ static int setparams(snd_pcm_t *phandle, snd_pcm_t *chandle,
fprintf(error_fp, "alsa: Will search a common rate between %u and %u\n",
ratemin, ratemax);
- for (i = ratemin; i <= ratemax; i+= 100) {
+ for (i = ratemax; i <= ratemin; i -= 100) {
err = snd_pcm_hw_params_set_rate_near(chandle, c_hwparams, &i, 0);
if (err)
continue;

Privacy Policy