Fix: limit of capture starting first.
This commit is contained in:
parent
7e1f29af35
commit
1901914b56
1 changed files with 4 additions and 2 deletions
4
ac101.c
4
ac101.c
|
@ -698,9 +698,11 @@ int ac101_hw_params(struct snd_pcm_substream *substream,
|
||||||
AC101_DBG("%s() L%d +++\n", __func__, __LINE__);
|
AC101_DBG("%s() L%d +++\n", __func__, __LINE__);
|
||||||
|
|
||||||
if (_MASTER_MULTI_CODEC == _MASTER_AC101 && ac101_sysclk_started()) {
|
if (_MASTER_MULTI_CODEC == _MASTER_AC101 && ac101_sysclk_started()) {
|
||||||
/* not configure hw_param twice, tell the caller it's started */
|
/* not configure hw_param twice if stream is playback, tell the caller it's started */
|
||||||
|
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* get channels count & slot size */
|
/* get channels count & slot size */
|
||||||
channels = params_channels(params);
|
channels = params_channels(params);
|
||||||
|
|
Loading…
Reference in a new issue