[alsa-devel] [PATCH] ASoC: mxs-saif: Fix channel swap for 24-bit format

Mark Brown broonie at opensource.wolfsonmicro.com
Thu Nov 1 13:11:33 CET 2012


On Wed, Oct 31, 2012 at 04:50:50PM +0800, Dong Aisheng wrote:
> On 31 October 2012 07:07, Fabio Estevam <festevam at gmail.com> wrote:

> > +                        * write data to saif data register to trigger
> > +                        * the transfer.
> > +                        * For 24-bit format the 32-bit FIFO register stores
> > +                        * only one channel, so we need to write twice.
> >                          */
> >                         __raw_writel(0, saif->base + SAIF_DATA);
> > +                       __raw_writel(0, saif->base + SAIF_DATA);

> This probably could a workaround for the customer, but i'm not sure
> Mark could accept it
> since the code is a bit confusing. (Mark, what's your suggestion on this?)

I'm not really concerned about the code, the comment is fairly clear
except that it'd be good to mention that this is safe for data sizes
other than 24 bit.  It's certainly really much more confusing than the
existing code and if it works better that's obviously good!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20121101/08660547/attachment.sig>


More information about the Alsa-devel mailing list