diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-06-09 02:16:20 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-06-09 02:16:20 -0400 |
commit | c399f3be82e1249221a7f410855ab1aa747fa82b (patch) | |
tree | bf3af6e446f15d406fa63542f6991d7bac5df1be | |
parent | 04145f2bfbc3ac4dbb71fa085b82380444d50b4f (diff) |
ALSA: ctxfi - Add missing start check in atc_pcm_playback_start()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/ctxfi/ctatc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/ctxfi/ctatc.c b/sound/pci/ctxfi/ctatc.c index 4e25b24848bd..799eb98e7794 100644 --- a/sound/pci/ctxfi/ctatc.c +++ b/sound/pci/ctxfi/ctatc.c | |||
@@ -392,6 +392,10 @@ static int atc_pcm_playback_start(struct ct_atc *atc, struct ct_atc_pcm *apcm) | |||
392 | unsigned int max_cisz; | 392 | unsigned int max_cisz; |
393 | struct src *src = apcm->src; | 393 | struct src *src = apcm->src; |
394 | 394 | ||
395 | if (apcm->started) | ||
396 | return 0; | ||
397 | apcm->started = 1; | ||
398 | |||
395 | max_cisz = src->multi * src->rsc.msr; | 399 | max_cisz = src->multi * src->rsc.msr; |
396 | max_cisz = 0x80 * (max_cisz < 8 ? max_cisz : 8); | 400 | max_cisz = 0x80 * (max_cisz < 8 ? max_cisz : 8); |
397 | 401 | ||