Explorar o código

ALSA: ctxfi - Add missing start check in atc_pcm_playback_start()

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai %!s(int64=16) %!d(string=hai) anos
pai
achega
c399f3be82
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      sound/pci/ctxfi/ctatc.c

+ 4 - 0
sound/pci/ctxfi/ctatc.c

@@ -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);