projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04145f2
)
ALSA: ctxfi - Add missing start check in atc_pcm_playback_start()
author
Takashi Iwai
<tiwai@suse.de>
Tue, 9 Jun 2009 06:16:20 +0000
(08:16 +0200)
committer
Takashi 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
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/ctxfi/ctatc.c
b/sound/pci/ctxfi/ctatc.c
index 4e25b24848bdd91630f40df7c876426abd0ac773..799eb98e77943e606779c70ef4ab124a482c7bb2 100644
(file)
--- 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);