Skip to content

Commit

Permalink
ALSA: ctxfi - Add missing start check in atc_pcm_playback_start()
Browse files Browse the repository at this point in the history
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Jun 9, 2009
1 parent 04145f2 commit c399f3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sound/pci/ctxfi/ctatc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c399f3b

Please sign in to comment.