summaryrefslogtreecommitdiff
path: root/sound/pci/ctxfi
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-06-09 08:16:20 +0200
committerTakashi Iwai <tiwai@suse.de>2009-06-09 08:16:20 +0200
commitc399f3be82e1249221a7f410855ab1aa747fa82b (patch)
treebf3af6e446f15d406fa63542f6991d7bac5df1be /sound/pci/ctxfi
parent04145f2bfbc3ac4dbb71fa085b82380444d50b4f (diff)
downloadlinux-3.10-c399f3be82e1249221a7f410855ab1aa747fa82b.tar.gz
linux-3.10-c399f3be82e1249221a7f410855ab1aa747fa82b.tar.bz2
linux-3.10-c399f3be82e1249221a7f410855ab1aa747fa82b.zip
ALSA: ctxfi - Add missing start check in atc_pcm_playback_start()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi')
-rw-r--r--sound/pci/ctxfi/ctatc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/ctxfi/ctatc.c b/sound/pci/ctxfi/ctatc.c
index 4e25b24848b..799eb98e779 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)
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);