ALSA: ctxfi - Add missing start check in atc_pcm_playback_start()
authorTakashi Iwai <tiwai@suse.de>
Tue, 9 Jun 2009 06:16:20 +0000 (08:16 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 9 Jun 2009 06:16:20 +0000 (08:16 +0200)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ctxfi/ctatc.c

index 4e25b24848bdd91630f40df7c876426abd0ac773..799eb98e77943e606779c70ef4ab124a482c7bb2 100644 (file)
@@ -392,6 +392,10 @@ static int atc_pcm_playback_start(struct ct_atc *atc, struct ct_atc_pcm *apcm)
        unsigned int max_cisz;
        struct src *src = apcm->src;
 
+       if (apcm->started)
+               return 0;
+       apcm->started = 1;
+
        max_cisz = src->multi * src->rsc.msr;
        max_cisz = 0x80 * (max_cisz < 8 ? max_cisz : 8);