We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e1f29a commit 1901914Copy full SHA for 1901914
ac101.c
@@ -698,8 +698,10 @@ int ac101_hw_params(struct snd_pcm_substream *substream,
698
AC101_DBG("%s() L%d +++\n", __func__, __LINE__);
699
700
if (_MASTER_MULTI_CODEC == _MASTER_AC101 && ac101_sysclk_started()) {
701
- /* not configure hw_param twice, tell the caller it's started */
702
- return 1;
+ /* not configure hw_param twice if stream is playback, tell the caller it's started */
+ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
703
+ return 1;
704
+ }
705
}
706
707
/* get channels count & slot size */
0 commit comments