summaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-12-22 07:57:54 +0100
committerTakashi Iwai <tiwai@suse.de>2009-12-22 07:57:54 +0100
commitcb3b04debbb70de7b266f75777ac2b9ff567c460 (patch)
treecebcd5b7d4213d246ea7b667408428799e69fcba /sound/core
parentee7c343c0134bf126b4235e65c407711b77174da (diff)
parentdb8cf334f66bdf1ba2b3d2f7128095fc9b7a6e2b (diff)
downloadblackbird-op-linux-cb3b04debbb70de7b266f75777ac2b9ff567c460.tar.gz
blackbird-op-linux-cb3b04debbb70de7b266f75777ac2b9ff567c460.zip
Merge branch 'fix/misc' into topic/misc
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/pcm_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c
index 30f410832a25..a27545b23ee9 100644
--- a/sound/core/pcm_lib.c
+++ b/sound/core/pcm_lib.c
@@ -758,7 +758,7 @@ int snd_interval_ratnum(struct snd_interval *i,
int diff;
if (q == 0)
q = 1;
- den = div_down(num, q);
+ den = div_up(num, q);
if (den < rats[k].den_min)
continue;
if (den > rats[k].den_max)
@@ -794,7 +794,7 @@ int snd_interval_ratnum(struct snd_interval *i,
i->empty = 1;
return -EINVAL;
}
- den = div_up(num, q);
+ den = div_down(num, q);
if (den > rats[k].den_max)
continue;
if (den < rats[k].den_min)
OpenPOWER on IntegriCloud