linux/sound/soc
Akshu Agrawal c50535ed6a
ASoC: AMD: Fix capture unstable in beginning for some runs
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>
2018-09-18 10:31:50 -07:00
..
adi
amd ASoC: AMD: Fix capture unstable in beginning for some runs 2018-09-18 10:31:50 -07:00
atmel ASoC: atmel-i2s: Remove unnecessary audio PLL clock (aclk) 2018-07-03 16:33:38 +01:00
au1x treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
bcm ASoC: Remove depends on HAS_DMA in case of platform dependency 2018-04-18 11:17:09 +01:00
cirrus ASoC: cirrus: i2s: IRQ-based stream watchdog 2018-05-11 11:27:33 +09:00
codecs ASoC: rt5682: Remove HP volume control 2018-09-18 10:29:47 -07:00
davinci ASoC: davinci-i2s: mark expected switch fall-through 2018-08-03 17:42:28 +01:00
dwc Merge remote-tracking branches 'asoc/topic/dwc', 'asoc/topic/es7134', 'asoc/topic/es8316', 'asoc/topic/es8328' and 'asoc/topic/fsl' into asoc-next 2018-03-28 10:29:36 +08:00
fsl ASoC: fsl_esai: Mark expected switch fall-through 2018-08-03 17:59:21 +01:00
generic ASoC: audio-graph-scu-card.c: convert to SPDX identifiers 2018-07-02 10:53:33 +01:00
hisilicon ASoC: hisilicon: fix spelling mistake: "uknown" -> "unknown" 2018-05-13 10:08:11 +09:00
img treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
intel sound: don't call skl_init_chip() to reset intel skl soc 2018-09-12 11:22:09 +01:00
jz4740
kirkwood ASoC: Remove depends on HAS_DMA in case of platform dependency 2018-04-18 11:17:09 +01:00
mediatek ASoC: mt6797: sub dai use list_head 2018-06-29 13:31:53 +01:00
meson ASoC: meson: align axg card driver with DT bindings documentation 2018-07-26 15:45:44 +01:00
mxs Merge remote-tracking branches 'asoc/topic/mtk', 'asoc/topic/mxs', 'asoc/topic/mxs-sgtl5000', 'asoc/topic/nau8540' and 'asoc/topic/nau8824' into asoc-next 2018-01-26 15:27:22 +00:00
nuc900 ASoC: nuc900-pcm: replace platform to component 2018-02-12 11:45:37 +00:00
omap ASoC: omap-dmic: Mark expected switch fall-throughs 2018-08-03 17:59:25 +01:00
pxa ASoC: pxa: remove clock divider and pll setup from zylonite and magician 2018-07-20 17:41:26 +01:00
qcom ASoC: q6routing: initialize data correctly 2018-09-03 12:17:32 +01:00
rockchip ASoC: rockchip: add config for rockchip dmaengine pcm register 2018-06-18 12:54:38 +01:00
samsung ASoC: samsung: i2s: Mark expected switch fall-through 2018-08-03 17:59:29 +01:00
sh ASoC: rsnd: don't fallback to PIO mode when -EPROBE_DEFER 2018-09-06 11:13:24 +01:00
sirf ASoC: sirf: Fix potential NULL pointer dereference 2018-07-30 12:02:30 +01:00
spear
sti ASoC: sti: Use snd_pcm_stop_xrun() helper 2018-07-04 15:41:35 +01:00
stm ASoC: stm32: remove redundant pointers 'priv' and 'rtd' 2018-08-01 12:16:26 +01:00
sunxi Merge remote-tracking branches 'asoc/topic/sta529', 'asoc/topic/sti-sas', 'asoc/topic/stm32', 'asoc/topic/sun4i' and 'asoc/topic/sun8i' into asoc-next 2018-03-28 10:30:49 +08:00
tegra Merge branch 'asoc-4.18' into asoc-4.19 wmadsp dep 2018-08-08 17:32:10 +01:00
txx9 ASoC: txx9aclc: replace platform to component 2018-02-12 11:45:38 +00:00
uniphier ASoC: uniphier: change functions to static 2018-07-30 12:02:32 +01:00
ux500 ASoC: ux500: add MODULE_LICENSE tag 2018-01-10 16:42:10 +00:00
xtensa ASoC: xtfpga-i2s: replace platform to component 2018-02-12 11:45:32 +00:00
zte ASoC: zte: Fix incorrect PCM format bit usages 2018-07-26 15:48:19 +01:00
Kconfig ASoC: meson: add axg fifo base driver 2018-07-18 13:08:36 +01:00
Makefile ASoC: meson: add axg fifo base driver 2018-07-18 13:08:36 +01:00
soc-ac97.c ASoC: ac97: convert to SPDX identifiers 2018-07-02 10:56:09 +01:00
soc-acpi.c ASoC: soc-acpi: convert to SPDX identifiers 2018-07-02 10:55:27 +01:00
soc-compress.c ASoC: compress: make BE and FE order inline with dpcm 2018-08-07 14:42:29 +01:00
soc-core.c ASoC: dapm: Fix NULL pointer deference on CODEC to CODEC DAIs 2018-08-15 15:52:20 +01:00
soc-dapm.c ASoC: dapm: Fix NULL pointer deference on CODEC to CODEC DAIs 2018-08-15 15:52:20 +01:00
soc-devres.c ASoC: soc-devres.c: convert to SPDX identifiers 2018-07-02 10:55:22 +01:00
soc-generic-dmaengine-pcm.c ASoC: dmaengine: Use standard pcm_format_to_bits() macro 2018-07-26 17:09:09 +01:00
soc-io.c ASoC: soc-io.c: convert to SPDX identifiers 2018-07-02 10:53:55 +01:00
soc-jack.c ASoC: soc-jack.c: convert to SPDX identifiers 2018-07-02 10:55:12 +01:00
soc-ops.c ASoC: soc-ops.c: convert to SPDX identifiers 2018-07-02 10:54:40 +01:00
soc-pcm.c Merge branch 'asoc-4.18' into asoc-4.19 wmadsp dep 2018-08-08 17:32:10 +01:00
soc-topology.c ASoC: soc-topology: convert to SPDX identifiers 2018-07-02 10:55:42 +01:00
soc-utils.c Merge branch 'asoc-4.18' into asoc-4.19 wmadsp dep 2018-08-08 17:32:10 +01:00