ASoC: rockchip: vad: fliter the playback for vad

This patch fliter the playback for vad, because vad only
handle capture.

Change-Id: I96ec24870adc4441081b39030056ed9361477bf3
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
Sugar Zhang 2018-07-10 10:41:36 +08:00 committed by Tao Huang
parent 2e53a1ed6b
commit 199ae473c8

View File

@ -581,6 +581,9 @@ static int rockchip_vad_enable_cpudai(struct snd_pcm_substream *substream)
static int rockchip_vad_pcm_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
return 0;
vad_substream = substream;
return 0;