[alsa-devel] [RFC 2/3] ASoC: davinci-pcm: add cpu-dai health callbacks
Mark Brown
broonie at opensource.wolfsonmicro.com
Sun Oct 2 20:54:35 CEST 2011
On Fri, Sep 30, 2011 at 05:23:02PM -0400, Ben Gardiner wrote:
> The CPU DAIs available to the davinci-pcm driver have the capability of
> detecting and reporting errors.
> Add callbacks to the struct davinci_pcm_dma_params passed to davinci-pcm
> from the CPU DAI.
This looks like something we should be doing at the subsystem level, the
DaVinci is far from unique in having the ability to detect errors at the
DAI level.
> This has several shortcomings:
> 1) It bubbles up to the user as underruns, not a fatal error -- some may prefer
> the former, I realize but the latter is more attractive to me. Same problem
> as with the previous patch in this series.
Why do you prefer a fatal error, and how do you distinguish a fatal
error from a glitch?
More information about the Alsa-devel
mailing list