From: "arnaud.mouiche@invoxia.com" <arnaud.mouiche@invoxia.com>
To: Caleb Crome <caleb@crome.org>
Cc: Fabio Estevam <fabio.estevam@freescale.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Markus Pargmann <mpa@pengutronix.de>,
Mark Brown <broonie@kernel.org>,
Roberto Fichera <kernel@tekno-soft.it>,
"shawn.guo@linaro.org" <shawn.guo@linaro.org>
Subject: Re: [PATCH 0/5] ASoC: fsl_ssi: Fixing various channel slips and bad samples insertions
Date: Sat, 9 Jan 2016 12:02:39 +0100 [thread overview]
Message-ID: <5690E8CF.8070700@invoxia.com> (raw)
In-Reply-To: <CAG5mAdw_+BiDppzpKF0ZBG1NXreGob6+jZd6SLjS1+zdmEE4ZA@mail.gmail.com>
Hello Caleb
Le 09/01/2016 01:47, Caleb Crome a écrit :
> [...]
> Hello Arnaud,
> I have finally gotten to test your patches, and I'm still having
> trouble with channel slips.
>
> I applied your v2 patch set, along with your changes for using a dummy codec.
>
> The full changes are here:
> https://github.com/ccrome/linux-caleb-dev/tree/v4.4-rc8-armv7-x3
>
> This ignores most of my previous patches, and uses your code to bring
> up the SSI (without a codec) on a wandboard.
>
> I am using SSI3, and doing a hardware loopback between TX and RX.
>
> Here's what I run:
> ./atest -r 16000 -c 8 -p 2048 -D default play
>
> which plays continuously.
>
> and in another shell:
> ./atest -r 16000 -c 8 -p 2048 -D default -d 10 capture
>
> which captures for 10 seconds.
>
>
> The first time I run the capture command, it succeeds, no problem.
>> dbg: dev: 'default'
>> dbg: default: capture_start
>> dbg: start a 10 seconds duration timer
>> warn: First valid frame
>> warn: 3400 3401 3402 3403 3404 3405 3406 3407
>> dbg: end of tests
>> total number of sequence errors: 0
>> global tests exit status: OK
> But the second and all subsequent captures, it fails with channel slips:
>
>> dbg: dev: 'default'
>> dbg: default: capture_start
>> dbg: start a 10 seconds duration timer
>> err: invalid frame after 0 null frames
>> err: d2a1 d2a2 d2a3 d2a4 d2a5 d2a6 d2a7 d2c0
>> err: d2c1 d2c2 d2c3 d2c4 d2c5 d2c6 d2c7 78e0
>> dbg: end of tests
>> total number of sequence errors: 430080
>> global tests exit status: OK
Can you use -I option to get a little more log of the error
$ ./atest -r 16000 -c 8 -p 2048 -D default -d 10 -I 10 capture
Just to know if the wrong frames comes from the previous record session,
meaning the RX fifo was not cleared correctly,
as if the CCSR_SSI_SOR_RX_CLR bit is not working as we might expect.
(ie. d2a1 .. d2c7 may come from the previous recording, and 78e0 .. may
be the start of the new recording session)
May be you can read the RX fifo level just avec applying
CCSR_SSI_SOR_RX_CLR to assert the fifo is really empty ?
In case it is still not empty, we will still have the possibility to
empty the fifo by ready the samples one by one manually.
Regards,
arnaud
> I verified with a scope that the data on the data bus is correct, the
> problem is with restarting RX, the RX doesn't synchronize to the frame
> sync. BTW, the RX slot is random. 1/8 times or so, the restarted
> capture actually works.
>
> My setup is a single core wandboard (i.mx6 solo), with J1.16 jumpered
> over to J1.20 (tx->rx)
>
> Thanks for the patches and for the atest program! It's really handy :-)
>
> So, I have not messed with water marks, dual fifo, etc with your patches yet.
>
> Any other patches that you think might need to be applied to make the
> RX restart work?
> -Caleb
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2016-01-09 11:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-26 14:07 [PATCH 0/5] ASoC: fsl_ssi: Fixing various channel slips and bad samples insertions Arnaud Mouiche
2015-11-26 14:07 ` [PATCH 1/5] ASoC: fsl_ssi: The IPG/5 limitation concerns the bitclk, not the sysclk Arnaud Mouiche
2016-05-13 12:26 ` Applied "ASoC: fsl_ssi: The IPG/5 limitation concerns the bitclk, not the sysclk." to the asoc tree Mark Brown
2015-11-26 14:07 ` [PATCH 2/5] ASoC: fsl_ssi: Save a dev reference for dev_err() purpose Arnaud Mouiche
2016-05-13 12:26 ` Applied "ASoC: fsl_ssi: Save a dev reference for dev_err() purpose." to the asoc tree Mark Brown
2015-11-26 14:07 ` [PATCH 3/5] ASoC: fsl_ssi: Fix samples being dropped as Playback startup Arnaud Mouiche
2016-05-13 12:26 ` Applied "ASoC: fsl_ssi: Fix samples being dropped at Playback startup" to the asoc tree Mark Brown
2015-11-26 14:07 ` [PATCH 4/5] ASoC: fsl_ssi: Fix channel slipping in Playback at startup Arnaud Mouiche
2015-11-26 14:07 ` [PATCH 5/5] ASoC: fsl_ssi: Fix channel slipping on capture (or playback) restart in full duplex Arnaud Mouiche
2016-01-09 0:47 ` [PATCH 0/5] ASoC: fsl_ssi: Fixing various channel slips and bad samples insertions Caleb Crome
2016-01-09 11:02 ` arnaud.mouiche [this message]
2016-01-11 23:44 ` Caleb Crome
2016-01-13 14:45 ` arnaud.mouiche
2016-01-13 20:20 ` Caleb Crome
2016-01-13 21:18 ` Caleb Crome
2016-01-14 8:40 ` arnaud.mouiche
2016-01-14 14:25 ` Caleb Crome
2016-01-14 16:42 ` Caleb Crome
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=5690E8CF.8070700@invoxia.com \
--to=arnaud.mouiche@invoxia.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=caleb@crome.org \
--cc=fabio.estevam@freescale.com \
--cc=kernel@tekno-soft.it \
--cc=lgirdwood@gmail.com \
--cc=mpa@pengutronix.de \
--cc=shawn.guo@linaro.org \
/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.