[xburst] sound jz4740_pcm: Don't request dma channel mor then once.
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 22 Mar 2010 15:22:26 +0000 (15:22 +0000)
committerLars-Peter Clausen <lars@metafoo.de>
Mon, 22 Mar 2010 15:22:26 +0000 (15:22 +0000)
commit86374c3499de368883dfe203dd6fca11b1a9c108
treed09ed6a7570969f58376082a64bbbfd0808c9a0a
parent003e6eb9b59e3a9904c3aa74cc30c660a8da76fb
[xburst] sound jz4740_pcm: Don't request dma channel mor then once.

It is possible that the hw_params callback is called multiple times when using
the oss emulation layer. Thus we need to check whether the dma channel has
already been requested otherwise we'll end up with all dma channels being
requested by sound driver.

SVN-Revision: 20369
target/linux/xburst/files-2.6.32/sound/soc/jz4740/jz4740-pcm.c