[alsa-devel] [PATCH] ASoC: omap McBSP: Clear rx_irq at probe time for OMAP4
Paul Menzel
paulepanter at users.sourceforge.net
Wed Mar 7 10:48:28 CET 2012
Dear Peter,
Am Mittwoch, den 07.03.2012, 11:17 +0200 schrieb Peter Ujfalusi:
> On OMAP4 we have one interrupt line per McBSP port.
> At proble time tx, and rx irq value will be -ENXIO,
s/proble/probe/
> and only the tx irq will get corrected.
> In omap_mcbsp_request if the rx_irq is not 0 we proceed,
> and try to request the interrupt, which will fail on
> OMAP4 (rx_irq == -6).
> To avoid this error, clear the rx_irq at probe time
> on OMAP4.
>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi at ti.com>
> ---
> sound/soc/omap/mcbsp.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/sound/soc/omap/mcbsp.c b/sound/soc/omap/mcbsp.c
> index 21dbb05..c3e31de 100644
> --- a/sound/soc/omap/mcbsp.c
> +++ b/sound/soc/omap/mcbsp.c
> @@ -958,8 +958,10 @@ int __devinit omap_mcbsp_init(struct platform_device *pdev)
> mcbsp->rx_irq = platform_get_irq_byname(pdev, "rx");
>
> /* From OMAP4 there will be a single irq line */
> - if (mcbsp->tx_irq == -ENXIO)
> + if (mcbsp->tx_irq == -ENXIO) {
> mcbsp->tx_irq = platform_get_irq(pdev, 0);
> + mcbsp->rx_irq = 0;
> + }
>
> res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "rx");
> if (!res) {
Reviewed-by: Paul Menzel <paulepanter at users.sourceforge.net>
Thanks,
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20120307/8420312a/attachment.sig
More information about the Alsa-devel
mailing list