Re: [alsa-devel] [PATCH 2/2] ASoC: fix pxa-ssp compiling issue under mach-mmp
23 May
2012
23 May
'12
1:44 p.m.
On Tue, May 22, 2012 at 02:58:26PM +0800, Qiao Zhou wrote:
+#if defined(CONFIG_ARCH_PXA) if (cpu_is_pxa25x() && ssp->type == PXA25x_SSP) { sscr0 &= ~0x0000ff00; sscr0 |= ((div - 2)/2) << 8; /* 2..512 */ } else { +#endif sscr0 &= ~0x000fff00; sscr0 |= (div - 1) << 8; /* 1..4096 */ +#if defined(CONFIG_ARCH_PXA) } +#endif
This is pretty large and fiddly, especially code like the above. Would it not be simpler to just define always false versions of these when on MMP, either in this driver or in the arch headers (where it'd help other drivers too)? Right now it doesn't make the code look nice.
4596
Age (days ago)
4596
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mark Brown