From: Nicolin Chen <nicoleotsuka@gmail.com>
To: Aurelien Bouin <a_bouin@yahoo.fr>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Mark Brown <broonie@kernel.org>,
Fabio Estevam <festevam@gmail.com>
Subject: Re: iMX6 ESAI TDM with underrun and overrun support
Date: Fri, 19 Dec 2014 12:09:28 -0800 [thread overview]
Message-ID: <20141219200927.GA7720@Asurada> (raw)
In-Reply-To: <808899317.634005.1418984012568.JavaMail.yahoo@jws11122.mail.ir2.yahoo.com>
On Fri, Dec 19, 2014 at 10:13:32AM +0000, Aurelien Bouin wrote:
> >I have a bit doubt whether your problem is the underrun or not. Because
> >I remember the work around submitter did test with underrun issue.
> >The reset function would be trigger by the ESAI internal ISR but be called
> >through the ISR from dma callback.
> >
> >
> >There's a fsl_esai_check_xrun() inside the ESAI. You can try to see if
> >it's really underrun happened.
> I also add a dump function that show the register at fsl_esai_hw_params : ESAI_TCR 0x00728100
> I also add debug in the function fsl_esai_check_xrun that show the saisr register
> When underrun occured (when I see that with an oscilloscope)
>
> There is no interrupt generated ...
So I suppose your 'no interrupt generated' also means that the
underrun flag has never been set: even if you added check debug
code into the fsl_esai_check_xrun(), it hasn't given you any
feedback.
In that case, I think the channel swap was not resulted from ESAI
hardware FIFO underrun.
> I tried to change the transmit fifo watermak(These bits configure the
> threshold at which the Transmit FIFO Empty flag will set) to set it to a
> value of 2
> Before I was using 64, since I use 64 channels in this case I get a lot of
> underrun interrupt ... and of course it is not working correctly .. Because
> the dma know to late that there is not enough data in the ESAI transmit
> FIFO...
Since you got the underrun error flag after you changed watermark,
that also proves your previous channel swap issue was not trigger
by the underrun issue.
> >And besides, which pins from IOMUX are you using for ESAI?
> I am using TX0, TX1 and RX0, RX1
No, I'm asking the full pin name of IOMUX. Where's the TX0, TX1
come from the IOMUX. You can check you schematics or the pinctrl
configuration in your dts/dtsi to see the name.
Another suggestion is for your mail client setting...please try
to set your mail client to text/plain or auto-wrapping mode. We
basically write code or mail no more than 80 characters per line.
--Nicolin
prev parent reply other threads:[~2014-12-19 20:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-17 15:13 iMX6 ESAI TDM with underrun and overrun support Aurelien Bouin
2014-12-17 16:04 ` Fabio Estevam
2014-12-17 19:16 ` Fabio Estevam
2014-12-17 19:19 ` Fabio Estevam
2014-12-17 23:36 ` Nicolin Chen
2014-12-18 9:00 ` Aurelien Bouin
2014-12-18 11:00 ` Fabio Estevam
2014-12-19 9:23 ` Nicolin Chen
2014-12-19 10:13 ` Aurelien Bouin
2014-12-19 20:09 ` Nicolin Chen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141219200927.GA7720@Asurada \
--to=nicoleotsuka@gmail.com \
--cc=a_bouin@yahoo.fr \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=festevam@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.