fix-3d7k-misaligned-iis.patch
Ben Dooks
ben at simtec.co.uk
Mon Mar 9 18:49:48 CET 2009
On Mon, Mar 09, 2009 at 05:33:30PM +0000, Andy Green wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Somebody in the thread at some point said:
> | On Mon, Mar 09, 2009 at 05:02:52PM +0000, Andy Green wrote:
> |
> |> Candy found that all digital audio played was double amplitude, ie,
> |> shifted one bit to the left. When she played a half-amplitude sinewave,
> |> it came out fine and fullscale.
> |
> | Sounds like the CPU is sending data left justified when it's been asked
> | for I2S format then... I'll try to take a look.
>
> Yes... also maybe broken clock polarity could mean the bit had changed
> before it was captured I guess.
I've had a quick look, and check ed the IISMOD SDF bits [6..5] from both
the S3C2412 manual (where this came from originally) and the S36410 manual
SDF[6..5]
00 = IIS format
01 = MSB justified
10 = LSB justified
11 = undefined/reserved
note, the CPU DAI is never going to try anything other than IIS as
the S3C2412_IISMOD_SDF_MSB and S3C2412_IISMOD_SDF_LSB definitons are
wrong. I'll send a patch to update that to the ALSA list.
> - -Andy
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkm1UuoACgkQOjLpvpq7dMo0UACfTydzd7oOx5UEwQPgqKmLaLYR
> fdwAniPc4/51pqiCzK+y0EZDIUbdil8A
> =lbo2
> -----END PGP SIGNATURE-----
>
--
--
Ben
Q: What's a light-year?
A: One-third less calories than a regular year.
More information about the openmoko-kernel
mailing list