mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 02:05:33 +00:00
ASoC: soc-compress: Send correct stream event for capture start
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
f722406faa
commit
2c071ed7c3
@ -220,8 +220,12 @@ static int soc_compr_set_params(struct snd_compr_stream *cstream,
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
snd_soc_dapm_stream_event(rtd, SNDRV_PCM_STREAM_PLAYBACK,
|
if (cstream->direction == SND_COMPRESS_PLAYBACK)
|
||||||
SND_SOC_DAPM_STREAM_START);
|
snd_soc_dapm_stream_event(rtd, SNDRV_PCM_STREAM_PLAYBACK,
|
||||||
|
SND_SOC_DAPM_STREAM_START);
|
||||||
|
else
|
||||||
|
snd_soc_dapm_stream_event(rtd, SNDRV_PCM_STREAM_CAPTURE,
|
||||||
|
SND_SOC_DAPM_STREAM_START);
|
||||||
|
|
||||||
/* cancel any delayed stream shutdown that is pending */
|
/* cancel any delayed stream shutdown that is pending */
|
||||||
rtd->pop_wait = 0;
|
rtd->pop_wait = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user