WSL2-Linux-Kernel/sound/soc/omap
Matt Ranostay 9834ffd1ec ASoC: omap-mcbsp: Add PM QoS support for McBSP to prevent glitches
We can get audio errors if hitting deeper idle states on omaps:

[alsa.c:230] error: Fatal problem with alsa output, error -5.
[audio.c:614] error: Error in writing audio (Input/output error?)!

This seems to happen with off mode idle enabled as power for the
whole SoC may get cut off between filling the McBSP fifo using DMA.
While active DMA blocks deeper idle states in hardware, McBSP
activity does not seem to do so.

Basing the QoS latency calculation on the FIFO size, threshold,
sample rate, and channels.

Based on the original patch by Tony Lindgren
Link: https://patchwork.kernel.org/patch/9305867/

Signed-off-by: Matt Ranostay <matt@ranostay.consulting>
Signed-off-by: Liam Breck <kernel@networkimprov.net>
Tested-by: Tony Lindgren <tony@atomide.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2017-02-01 17:19:53 +00:00
..
Kconfig Merge remote-tracking branches 'asoc/topic/tas571x', 'asoc/topic/tlv320aic31xx', 'asoc/topic/tpa6130a2', 'asoc/topic/twl6040' and 'asoc/topic/wm8731' into asoc-next 2016-07-24 22:07:46 +01:00
Makefile
am3517evm.c
ams-delta.c
mcbsp.c ASoC: omap-mcbsp: Enable TX/RX under and overflow interrupts 2016-08-12 11:58:39 +01:00
mcbsp.h ASoC: omap-mcbsp: Add PM QoS support for McBSP to prevent glitches 2017-02-01 17:19:53 +00:00
n810.c ASoC: omap: n810: Fix enum ctl accesses in a wrong type 2016-03-01 12:02:47 +09:00
omap-abe-twl6040.c ASoC: omap-abe-twl6040: Use devm_snd_soc_register_card() 2016-08-24 10:32:48 +01:00
omap-dmic.c
omap-dmic.h
omap-hdmi-audio.c omapdss: hdmi audio: Make header file independent of video/omapdss.h 2016-06-03 16:06:36 +03:00
omap-mcbsp.c ASoC: omap-mcbsp: Add PM QoS support for McBSP to prevent glitches 2017-02-01 17:19:53 +00:00
omap-mcbsp.h
omap-mcpdm.c ASoC: omap-mcpdm: Fix irq resource handling 2016-08-23 12:00:47 +01:00
omap-mcpdm.h
omap-pcm.c ASoC: omap-pcm: off-by-one in 'omap_pcm_limit_supported_formats' 2016-09-01 20:56:16 +01:00
omap-twl4030.c
omap3pandora.c
osk5912.c
rx51.c ASoC: tpa6130a2: Add DAPM support 2016-06-26 12:28:13 +01:00