[xburst] sound jz4740_pcm: Don't request dma channel mor then once.
authorlars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 22 Mar 2010 15:22:26 +0000 (15:22 +0000)
committerlars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 22 Mar 2010 15:22:26 +0000 (15:22 +0000)
commit124c6d16d7692446d6ff6bbae6f10f32eafcc66e
treed09ed6a7570969f58376082a64bbbfd0808c9a0a
parenta62005234bdbcbc729a2c23b49974174ec12e8c3
[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.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20369 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/xburst/files-2.6.32/sound/soc/jz4740/jz4740-pcm.c