linux/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
..
am3517evm.c ASoC: am3517evm: Use the same name for platform as the cpu_dai 2014-04-18 18:00:46 +01:00
ams-delta.c ASoC: ams-deltea: Register jacks at the card level 2015-03-04 17:10:26 +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 ASoC: omap: Remove obsolete HDMI audio code and Kconfig options 2014-12-01 11:09:56 +02:00
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
omap3pandora.c ASoC: omap3pandora: Use card DAPM context to access widgets 2015-07-07 14:54:31 +01: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 ASoC: omap: drop owner assignment from platform_drivers 2014-10-20 16:22:11 +02:00
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 ASoC: omap: rx51: omap_mcbsp_st_add_controls: add id parameter 2014-05-01 10:54:34 -07:00
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 ASoC: omap-twl4030: Use card DAPM context to access widgets 2015-05-06 18:53:58 +01:00
osk5912.c ASoC: osk5912: Use the same name for platform as the cpu_dai 2014-04-18 18:00:47 +01:00
rx51.c ASoC: tpa6130a2: Add DAPM support 2016-06-26 12:28:13 +01:00