linux-stable/sound/soc/amd
Akshu Agrawal 16ae44a91f ASoC: AMD: Fix capture unstable in beginning for some runs
[ Upstream commit c50535ed6a ]

alsa_conformance_test -C hw:0,4 -p 1024 --debug
would sometime show:
TIME_DIFF(s)    HW_LEVEL       READ              RATE
0.000095970         1024       1024    10670001.041992
0.042609555         1024       2048       24032.168372
0.021330364         1024       3072       48006.681930
0.021339559         1024       4096       47985.996337
The issue is that in dma pointer function we can have stale value
of the register for current descriptor of channel.
The register retains the number of the last descriptor that
was transferred.

Fix ensures that we report position, 0, till the one period worth of
data is transferred.  After one period of data, in handler of period
completion interrupt we update the config and correct value of descriptor
starts reflecting.

Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-13 11:08:36 -08:00
..
include
acp-da7219-max98357a.c ASoC: AMD: Fix build warning 2018-07-26 14:07:55 +01:00
acp-pcm-dma.c ASoC: AMD: Fix capture unstable in beginning for some runs 2018-11-13 11:08:36 -08:00
acp-rt5645.c ASoC: rt5645/rt5677: replace codec to component 2018-02-12 11:18:44 +00:00
acp.h ASoC: AMD: Modified DMA pointer for capture 2018-08-06 17:02:09 +01:00
Kconfig ASoC: AMD: Add a fix voltage regulator for DA7219 and ADAU7002 2018-07-26 14:07:47 +01:00
Makefile ASoC: AMD: Add machine driver for ST DA7219 MAX98357 2018-02-16 16:03:46 +00:00