diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-09-11 15:28:50 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2007-10-16 10:50:18 -0400 |
commit | 768d8c7df886fc5cc9d6057cc987ef8e52d197b5 (patch) | |
tree | b65aee1e833186190cc500a6738fd9453c972147 /sound | |
parent | bfc4e8616679226b1f113a46df491e233c8dc338 (diff) |
[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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/pcxhr/pcxhr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/pcxhr/pcxhr.c b/sound/pci/pcxhr/pcxhr.c index cd4613a97bd7..2d618bd7e62b 100644 --- a/sound/pci/pcxhr/pcxhr.c +++ b/sound/pci/pcxhr/pcxhr.c | |||
@@ -664,6 +664,7 @@ static int pcxhr_trigger(struct snd_pcm_substream *subs, int cmd) | |||
664 | if (pcxhr_update_r_buffer(stream)) | 664 | if (pcxhr_update_r_buffer(stream)) |
665 | return -EINVAL; | 665 | return -EINVAL; |
666 | 666 | ||
667 | stream->status = PCXHR_STREAM_STATUS_SCHEDULE_RUN; | ||
667 | if (pcxhr_set_stream_state(stream)) | 668 | if (pcxhr_set_stream_state(stream)) |
668 | return -EINVAL; | 669 | return -EINVAL; |
669 | stream->status = PCXHR_STREAM_STATUS_RUNNING; | 670 | stream->status = PCXHR_STREAM_STATUS_RUNNING; |