]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c965b8b3b0253ba439b39fa6e3d797b35d862c9
treec9204207d3b6046c12a2ff8835a3ad78d539b028
parentf6ca3d9fb3dbb345a373b08bc25f30ea38bef9f8
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