浏览代码

[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>
Takashi Iwai 17 年之前
父节点
当前提交
768d8c7df8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      sound/pci/pcxhr/pcxhr.c

+ 1 - 0
sound/pci/pcxhr/pcxhr.c

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