[alsa-devel] [PATCH v2] ASoC: davinci-mcasp: Add overrun/underrun event handling
Mark Brown
broonie at kernel.org
Wed Nov 12 12:52:58 CET 2014
On Wed, Nov 12, 2014 at 10:42:10AM +0200, Peter Ujfalusi wrote:
> + if (!handled_mask)
> + dev_warn(mcasp->dev, "unhandled tx event. txstat: 0x%08x\n",
> + stat);
> +
> + if (stat & XRERR)
> + handled_mask |= XRERR;
> +
> + /* Ack the handled event only */
> + mcasp_set_reg(mcasp, DAVINCI_MCASP_TXSTAT_REG, handled_mask);
> +
> + return IRQ_HANDLED;
If nothing was handled the driver should be returning IRQ_NONE (I guess
saying we handled XRERR is OK, looks like it's an or of the other
sources). Either unconditionally ack everything or return IRQ_NONE if
the driver doesn't handle anything - the latter option is better and
closer to what you have here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20141112/3394e974/attachment.sig>
More information about the Alsa-devel
mailing list