From: Timur Tabi <timur@freescale.com>
To: lokowich <lokowich@acdstar.com>
Cc: ALSA-devel <alsa-devel@alsa-project.org>
Subject: Re: MPC5200 I2S driver for ASoC
Date: Wed, 01 Aug 2007 14:45:08 -0500 [thread overview]
Message-ID: <46B0E2C4.2010707@freescale.com> (raw)
In-Reply-To: <46B0DC07.4050000@acdstar.com>
lokowich wrote:
> Yes, I presume you mean using git into the ALSA branch. I need to
> get more familiar with git, and follow the appropriate coding
> conventions before it's ready. Any guidance will be appreciated.
No, I meant that your code and my code will probably need to merge, so we need to compare
the code to take advantage of any commonality.
However, after looking at the 5200 manual, it appears there's not really a whole lot in
common after all. Still, I'd like to provide some input to your code once I see it.
> Yes! I had enabled the S16_BE format in my codec/i2s/pcm driver,
> but naively thought ALSA would handle the rest.
Well, ALSA has plug-ins for sample rate and size, but I don't think it has one for
endianness. I'm not really sure. Besides, if you use "aplay -Dhw:0,0", you are bypassing
all ALSA plug-ins.
> Converted my test
> file to S16_BE and it sounds much closer to the original. Thanks!
You're welcome. The reason why it sounded garbage is because when you write a
little-endian sample to the shift register, it bit order is this:
07-06-05-04-03-02-01-00 15-14-13-12-11-10-09-08
The bytes may be little-endian, but the bits are big-endian.
> Found the "jitter" is due to a FIFO overflow.
That makes sense.
> I'm using same alarm
> (0x120) and granularity (4) common to 2.4 I2S and ac97 drivers. Is
> there a more appropriate setting for 16-bit, 2-channel, 44.1kHz audio?
I don't know enough about the 5200 to say. The I2S hardware I'm using looks like it's
much more complicated than what's on the 5200.
> Also, can we chat about SDRAM problems on 5200B outside of this forum?
I know nothing about the 5200, so you'll have to ask someone else about SDRAM.
--
Timur Tabi
Linux Kernel Developer @ Freescale
next prev parent reply other threads:[~2007-08-01 19:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-01 17:33 MPC5200 I2S driver for ASoC lokowich
2007-08-01 17:53 ` Timur Tabi
2007-08-01 19:16 ` lokowich
2007-08-01 19:45 ` Timur Tabi [this message]
2007-08-01 19:41 ` Jon Smirl
2007-08-01 21:03 ` lokowich
2007-08-01 21:20 ` Timur Tabi
2007-08-05 0:11 ` Jon Smirl
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=46B0E2C4.2010707@freescale.com \
--to=timur@freescale.com \
--cc=alsa-devel@alsa-project.org \
--cc=lokowich@acdstar.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).