Linux 2.6.28-rc8
[deliverable/linux.git] / sound / core / pcm_timer.c
index 033a024d153a846ff315d1f275bf049c52dce655..2c89c04f29163766dde1c6b9f6f7a296310343f3 100644 (file)
@@ -51,12 +51,14 @@ void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream)
        
         mult = 1000000000;
        rate = runtime->rate;
-       snd_assert(rate != 0, return);
+       if (snd_BUG_ON(!rate))
+               return;
        l = gcd(mult, rate);
        mult /= l;
        rate /= l;
        fsize = runtime->period_size;
-       snd_assert(fsize != 0, return);
+       if (snd_BUG_ON(!fsize))
+               return;
        l = gcd(rate, fsize);
        rate /= l;
        fsize /= l;
This page took 0.025502 seconds and 5 git commands to generate.