From: Peter Ujfalusi <peter.ujfalusi@nokia.com>
To: "ext ylin@mail.com" <ylin@mail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Channel swapping issue on TI OMAP3/TWL4030
Date: Wed, 16 Feb 2011 09:20:21 +0200 [thread overview]
Message-ID: <4D5B7AB5.201@nokia.com> (raw)
In-Reply-To: <8CD9B43DFD8A17C-DE8-B3DD@web-mmc-d01.sysops.aol.com>
On 02/15/11 18:23, ext ylin@mail.com wrote:
>
>> I forgot to ask:
>> what mode you are using the McBSP?
>> Is it in element, or threshold mode?
>> You can check/change the McBSP mode in:
>> /sys/devices/platform/omap-mcbsp.2/dma_op_mode
>
> It is in threshold mode, with max threshold 1023. I will try other
> modes.
This sounds safe, give the fact that the McBSP2 FIFO is 1280 word long.
The McBSP FIFO configuration has been corrected in newer kernels.
One thing that I would try is to synchronize the McBSP2 FIFO
configuration with the period size you use:
48KHz/stereo/16bit 10ms = 480 samples,
so configure the McBSP2 FIFO to 960 (for both tx, and rx threshold).
Might not help, but it worth a try...
>>> For playing, the left and right are the same data, we could not
> tell if
>>> the channel switch happens to playback as well.
>>
>> I see. Is there a way for you to run your application to capture only,
>> and from a separate app (aplay?) play a sample, which has audio only
> on
>> one channel?
>
> I can fill zero to one of the play channel in our app to test it.
Great.
Let's see, if the swap also happens in the playback path as well.
--
Péter
next prev parent reply other threads:[~2011-02-16 7:20 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-12 16:16 Channel swapping issue on TI OMAP3/TWL4030 ylin
2011-02-13 9:25 ` Jarkko Nikula
2011-02-13 9:48 ` peter.ujfalusi
2011-02-13 10:20 ` Jarkko Nikula
2011-02-13 9:51 ` peter.ujfalusi
2011-02-14 17:58 ` ylin
2011-02-14 23:33 ` ylin
2011-02-15 7:15 ` Peter Ujfalusi
2011-02-15 6:59 ` Peter Ujfalusi
2011-02-15 16:23 ` ylin
2011-02-16 7:20 ` Peter Ujfalusi [this message]
2011-02-17 3:40 ` ylin
2011-02-17 11:44 ` Peter Ujfalusi
2011-02-19 16:08 ` ylin
2011-02-20 4:01 ` ylin
2011-02-22 7:27 ` Peter Ujfalusi
2011-02-23 15:26 ` ylin
2011-02-25 15:32 ` ylin
2011-03-08 13:36 ` Peter Ujfalusi
2011-02-19 16:17 ` ylin
2011-02-15 8:28 ` Jarkko Nikula
2011-02-15 16:28 ` ylin
2011-02-17 3:53 ` ylin
2011-02-17 8:17 ` Jarkko Nikula
2011-02-17 11:48 ` Peter Ujfalusi
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=4D5B7AB5.201@nokia.com \
--to=peter.ujfalusi@nokia.com \
--cc=alsa-devel@alsa-project.org \
--cc=ylin@mail.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.