ASoC: omap: Call omap_mcbsp_set_threshold() from mcbsp hw_params
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 25 Mar 2013 15:58:16 +0000 (16:58 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Mar 2013 14:11:12 +0000 (14:11 +0000)
commitabe99370b3c583cd0fc4185e7a776b7bb48311c3
treec9204207d3b6046c12a2ff8835a3ad78d539b028
parent8bb9660418e05bb1845ac1a2428444d78e322cc7
ASoC: omap: Call omap_mcbsp_set_threshold() from mcbsp hw_params

The omap PCM driver provides a set_threshold callback which gets called by the
PCM driver when either playback or capture is started. The only DAI driver which
sets this callback is the mcbsp driver. This patch removes the callback from the
PCM driver and moves the invocation of the omap_mcbsp_set_threshold() function
to the mcbsp hw_params callback since this is the only place where the threshold
size can change. Doing so allows us to use the default dmaengine PCM trigger
callback in the omap PCM driver.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/omap/omap-mcbsp.c
sound/soc/omap/omap-pcm.c
sound/soc/omap/omap-pcm.h