ASoC: OMAP: fix OMAP1510 broken PCM pointer callback
authorJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Sat, 27 Jun 2009 22:21:05 +0000 (00:21 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 30 Jun 2009 09:39:12 +0000 (10:39 +0100)
commit1bdd7419910c1506151e7b9e2d60c6980e015f76
treec43b34ae854f35b56c9a3723a1ca22dcb9b6c724
parent40d9ec14e7e1f62d2379ecc1b5ee00ddfc2a5d0c
ASoC: OMAP: fix OMAP1510 broken PCM pointer callback

This patch tries to work around the problem of broken OMAP1510 PCM playback
pointer calculation by replacing DMA function call that incorrectly tries to
read the value form DMA hardware with a value computed locally from an
already maintained variable omap_runtime_data.period_index.

Tested on OMAP5910 based Amstrad Delta (E3) using work in progress ASoC
driver.

Based on linux-2.6-asoc.git v2.6.31-rc1.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/omap/omap-pcm.c