mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
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:
parent
2e53a1ed6b
commit
199ae473c8
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user