From 1901914b56b0ce9f3238c0b7b3cae1770174697a Mon Sep 17 00:00:00 2001 From: "Peter.Yang" Date: Sat, 24 Mar 2018 12:22:02 +0000 Subject: [PATCH] Fix: limit of capture starting first. --- ac101.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ac101.c b/ac101.c index 9fcb0de..b82235a 100644 --- a/ac101.c +++ b/ac101.c @@ -698,8 +698,10 @@ int ac101_hw_params(struct snd_pcm_substream *substream, AC101_DBG("%s() L%d +++\n", __func__, __LINE__); if (_MASTER_MULTI_CODEC == _MASTER_AC101 && ac101_sysclk_started()) { - /* not configure hw_param twice, tell the caller it's started */ - return 1; + /* not configure hw_param twice if stream is playback, tell the caller it's started */ + if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { + return 1; + } } /* get channels count & slot size */