alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.37-rc1] ASoC: OMAP: fix OMAP1 compilation problem
@ 2010-11-02 14:50 Janusz Krzysztofik
  2010-11-02 14:56 ` Mark Brown
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Janusz Krzysztofik @ 2010-11-02 14:50 UTC (permalink / raw)
  To: Jarkko Nikula, Peter Ujfalusi
  Cc: Paul Walmsley, alsa-devel, Mark Brown, e3-hacking,
	linux-omap@vger.kernel.org, Liam Girdwood

In the new code introduced with commit cf4c87abe238ec17cd0255b4e21abd949d7f811e,
"OMAP: McBSP: implement McBSP CLKR and FSR signal muxing via mach-omap2/mcbsp.c",
the way omap1 build is supposed to bypass omap2 specific functionality doesn't 
optimize out all omap2 specific stuff. This breaks linking phase for omap1 
machines, giving "undefined reference to `omap2_mcbsp1_mux_clkr_src'" 
and "undefined reference to `omap2_mcbsp1_mux_fsr_src'" errors. Fix it.

Created and tested against linux-2.6.37-rc1.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
---

 sound/soc/omap/omap-mcbsp.c |    8 ++++++++
 1 file changed, 8 insertions(+)

--- linux-2.6.37-rc1/sound/soc/omap/omap-mcbsp.c.orig	2010-11-01 22:43:16.000000000 +0100
+++ linux-2.6.37-rc1/sound/soc/omap/omap-mcbsp.c	2010-11-02 15:41:42.000000000 +0100
@@ -644,15 +644,23 @@ static int omap_mcbsp_dai_set_dai_sysclk
 
 
 	case OMAP_MCBSP_CLKR_SRC_CLKR:
+		if (cpu_class_is_omap1())
+			break;
 		omap2_mcbsp1_mux_clkr_src(CLKR_SRC_CLKR);
 		break;
 	case OMAP_MCBSP_CLKR_SRC_CLKX:
+		if (cpu_class_is_omap1())
+			break;
 		omap2_mcbsp1_mux_clkr_src(CLKR_SRC_CLKX);
 		break;
 	case OMAP_MCBSP_FSR_SRC_FSR:
+		if (cpu_class_is_omap1())
+			break;
 		omap2_mcbsp1_mux_fsr_src(FSR_SRC_FSR);
 		break;
 	case OMAP_MCBSP_FSR_SRC_FSX:
+		if (cpu_class_is_omap1())
+			break;
 		omap2_mcbsp1_mux_fsr_src(FSR_SRC_FSX);
 		break;
 	default:

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-11-25 17:45 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-02 14:50 [PATCH 2.6.37-rc1] ASoC: OMAP: fix OMAP1 compilation problem Janusz Krzysztofik
2010-11-02 14:56 ` Mark Brown
2010-11-02 16:58 ` Paul Walmsley
2010-11-03  8:20   ` Jarkko Nikula
2010-11-03 14:16     ` [alsa-devel] " Liam Girdwood
2010-11-23  0:48 ` Paul Walmsley
2010-11-23  7:26   ` Jarkko Nikula
2010-11-23 10:32     ` [alsa-devel] " Liam Girdwood
2010-11-24 23:35     ` Tony Lindgren
2010-11-24 23:53       ` Tony Lindgren
2010-11-25  7:02         ` Jarkko Nikula
2010-11-25 12:47           ` Janusz Krzysztofik
2010-11-25 17:45             ` Paul Walmsley
2010-11-23  0:50 ` Paul Walmsley
     [not found] ` <alpine.DEB.2.00.1011221748410.20215@utopia.booyaka.com>
2010-11-23  7:38   ` Jarkko Nikula

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).