[alsa-devel] [PATCH v3 4/9] ASoC: sti: Add CPU DAI driver for capture

Mark Brown broonie at kernel.org
Fri Jul 10 19:26:06 CEST 2015


On Mon, Jun 22, 2015 at 04:31:08PM +0200, Arnaud Pouliquen wrote:

> +static int uni_reader_stop(struct uniperif *reader)
> +{
> +	/* The reader should not be in stopped state */
> +	if (reader->state == UNIPERIF_STATE_STOPPED) {
> +		dev_err(reader->dev, "%s: invalid reader state", __func__);
> +		return -EINVAL;
> +	}
> +
> +	/* Turn the reader off */
> +	SET_UNIPERIF_CTRL_OPERATION_OFF(reader);
> +
> +	/* Disable interrupts */
> +	SET_UNIPERIF_ITM_BCLR(reader, GET_UNIPERIF_ITM(reader));
> +	disable_irq_nosync(reader->irq);

Do you really need to disable interrupts with disable_irq()?  It's more
normal to just leave the interrupts registered and stop the hardware
generating them.
-------------- 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/20150710/41b49969/attachment.sig>


More information about the Alsa-devel mailing list