]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - sound/soc/qcom/lpass-platform.c
Merge remote-tracking branches 'asoc/topic/of-graph', 'asoc/topic/pxa', 'asoc/topic...
[karo-tx-linux.git] / sound / soc / qcom / lpass-platform.c
index ca5e19f55a280cc2dbfcc33a2ee028ed75051bdd..dd5bdd0da73048c627417c45980dde5032043656 100644 (file)
@@ -74,8 +74,12 @@ static int lpass_platform_pcmops_open(struct snd_pcm_substream *substream)
        data->i2s_port = cpu_dai->driver->id;
        runtime->private_data = data;
 
+       dma_ch = 0;
        if (v->alloc_dma_channel)
                dma_ch = v->alloc_dma_channel(drvdata, dir);
+       else
+               dma_ch = 0;
+
        if (dma_ch < 0)
                return dma_ch;