2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00

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

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2009-06-09 08:16:20 +02:00
parent 04145f2bfb
commit c399f3be82

View File

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