]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge branch 'fix/misc' into for-next
authorTakashi Iwai <tiwai@suse.de>
Sun, 11 Oct 2009 16:07:47 +0000 (18:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 11 Oct 2009 16:07:47 +0000 (18:07 +0200)
1  2 
sound/pci/ice1712/ice1724.c

index 3455cc5c64075361d79def5308f2db0ee6100469,10fc92c055749679a4e36922d8b7f784b6f6d528..ae29073eea93f94f283411c68f21aef8956791cf
@@@ -672,11 -648,9 +672,11 @@@ static int snd_vt1724_set_pro_rate(stru
            (inb(ICEMT1724(ice, DMA_PAUSE)) & DMA_PAUSES)) {
                /* running? we cannot change the rate now... */
                spin_unlock_irqrestore(&ice->reg_lock, flags);
-               return -EBUSY;
+               return ((rate == ice->cur_rate) && !force) ? 0 : -EBUSY;
        }
        if (!force && is_pro_rate_locked(ice)) {
 +              /* comparing required and current rate - makes sense for
 +               * internal clock only */
                spin_unlock_irqrestore(&ice->reg_lock, flags);
                return (rate == ice->cur_rate) ? 0 : -EBUSY;
        }