ASoC: pxa-pcm-lib: initialize DMA channel to -1
authorDaniel Mack <daniel@caiaq.de>
Sun, 28 Feb 2010 02:42:38 +0000 (10:42 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 19 Mar 2010 15:28:04 +0000 (15:28 +0000)
commit8727b909bb2348d29e62c599cd7a5d610da3760f
treec11b47df1337d1ae1501955268a0055660af2ddd
parent6937c947d31186750f72c9f8c942bbcc6fe63585
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>
sound/arm/pxa2xx-pcm-lib.c