diff options
author | Daniel Mack <daniel@caiaq.de> | 2010-02-28 03:42:38 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-03-19 16:28:04 +0100 |
commit | 8727b909bb2348d29e62c599cd7a5d610da3760f (patch) | |
tree | c11b47df1337d1ae1501955268a0055660af2ddd /sound/arm/pxa2xx-pcm-lib.c | |
parent | ASoC: Bail out of wm_hubs DC servo if calibration fails (diff) | |
download | linux-8727b909bb2348d29e62c599cd7a5d610da3760f.tar.xz linux-8727b909bb2348d29e62c599cd7a5d610da3760f.zip |
ASoC: pxa-pcm-lib: initialize DMA channel to -1
This fixes a warning ("pxa_free_dma: trying to free channel 0 which is
already freed") when a device was opened but the hw_params() call
failed.
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to '')
-rw-r--r-- | sound/arm/pxa2xx-pcm-lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/arm/pxa2xx-pcm-lib.c b/sound/arm/pxa2xx-pcm-lib.c index 743ac6a29065..fd51fa8b06a1 100644 --- a/sound/arm/pxa2xx-pcm-lib.c +++ b/sound/arm/pxa2xx-pcm-lib.c @@ -205,6 +205,7 @@ int __pxa2xx_pcm_open(struct snd_pcm_substream *substream) if (!rtd->dma_desc_array) goto err1; + rtd->dma_ch = -1; runtime->private_data = rtd; return 0; |