Skip to content

Commit 1901914

Browse files
committed
Fix: limit of capture starting first.
1 parent 7e1f29a commit 1901914

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ac101.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,10 @@ int ac101_hw_params(struct snd_pcm_substream *substream,
698698
AC101_DBG("%s() L%d +++\n", __func__, __LINE__);
699699

700700
if (_MASTER_MULTI_CODEC == _MASTER_AC101 && ac101_sysclk_started()) {
701-
/* not configure hw_param twice, tell the caller it's started */
702-
return 1;
701+
/* not configure hw_param twice if stream is playback, tell the caller it's started */
702+
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
703+
return 1;
704+
}
703705
}
704706

705707
/* get channels count & slot size */

0 commit comments

Comments
 (0)