This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / sound / oss / sb_audio.c
index 75e54f6..40914dd 100644 (file)
@@ -519,11 +519,9 @@ static int sbpro_audio_prepare_for_output(int dev, int bsize, int bcount)
                        sb_dsp_command(devc, 0xa0 | bits);      /* Mono output */
                else
                        sb_dsp_command(devc, 0xa8 | bits);      /* Stereo output */
-               spin_unlock_irqrestore(&devc->lock, flags);
        }
        else
        {
-               spin_unlock_irqrestore(&devc->lock, flags);
                tmp = sb_getmixer(devc, 0x0e);
                if (devc->channels == 1)
                        tmp &= ~0x02;
@@ -531,6 +529,7 @@ static int sbpro_audio_prepare_for_output(int dev, int bsize, int bcount)
                        tmp |= 0x02;
                sb_setmixer(devc, 0x0e, tmp);
        }
+       spin_unlock_irqrestore(&devc->lock, flags);
        devc->trigger_bits = 0;
        return 0;
 }