summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/tegra/tegra_asoc_utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra_asoc_utils.c b/sound/soc/tegra/tegra_asoc_utils.c
index 80d22d203fb6..99ba90d9fc7b 100644
--- a/sound/soc/tegra/tegra_asoc_utils.c
+++ b/sound/soc/tegra/tegra_asoc_utils.c
@@ -133,6 +133,9 @@ static int tegra_set_dma_addr(struct snd_kcontrol *kcontrol,
struct snd_pcm_substream *substream;
struct tegra_runtime_data *prtd;
+ if (data->avp_device_id < 0)
+ return 0;
+
data->avp_dma_addr = ucontrol->value.integer.value[0];
rtd = &card->rtd[data->avp_device_id];