dect
/
linux-2.6
Archived
13
0
Fork 0

[ALSA] pcxhr - Fix trigger start with non-linked streams

The non-linked streams couldn't be started properly due to missing
setting of stream->status.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:
Takashi Iwai 2007-09-11 21:28:50 +02:00 committed by Jaroslav Kysela
parent bfc4e86166
commit 768d8c7df8
1 changed files with 1 additions and 0 deletions

View File

@ -664,6 +664,7 @@ static int pcxhr_trigger(struct snd_pcm_substream *subs, int cmd)
if (pcxhr_update_r_buffer(stream))
return -EINVAL;
stream->status = PCXHR_STREAM_STATUS_SCHEDULE_RUN;
if (pcxhr_set_stream_state(stream))
return -EINVAL;
stream->status = PCXHR_STREAM_STATUS_RUNNING;