linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: OMAP: N8x0: Add retu-headset platform data
@ 2009-03-25 10:26 Jarkko Nikula
  2009-03-25 10:26 ` [PATCH 2/2] ARM: OMAP: N8x0: Remove board-n800-audio.c Jarkko Nikula
  2009-03-25 22:28 ` [APPLIED] [PATCH 1/2] ARM: OMAP: N8x0: Add retu-headset platform data Tony Lindgren
  0 siblings, 2 replies; 4+ messages in thread
From: Jarkko Nikula @ 2009-03-25 10:26 UTC (permalink / raw)
  To: linux-omap; +Cc: Jarkko Nikula

This was earlier in board-n800-audio.c but got removed by the commit
c65c733e1af5eac5681233309fed38538c9e06d2.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
---
 arch/arm/mach-omap2/board-n800.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-n800.c b/arch/arm/mach-omap2/board-n800.c
index 60a414c..b90d153 100644
--- a/arch/arm/mach-omap2/board-n800.c
+++ b/arch/arm/mach-omap2/board-n800.c
@@ -568,10 +568,20 @@ static struct omap_gpio_switch n800_gpio_switches[] __initdata = {
 	},
 };
 
+#if defined(CONFIG_CBUS_RETU_HEADSET)
+static struct platform_device retu_headset_device = {
+	.name	= "retu-headset",
+	.id	= -1,
+};
+#endif
+
 static struct platform_device *n800_devices[] __initdata = {
 #if defined(CONFIG_CBUS_RETU) && defined(CONFIG_LEDS_OMAP_PWM)
 	&n800_keypad_led_device,
 #endif
+#if defined(CONFIG_CBUS_RETU_HEADSET)
+	&retu_headset_device,
+#endif
 };
 
 #ifdef CONFIG_MENELAUS
-- 
1.6.2


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

* [PATCH 2/2] ARM: OMAP: N8x0: Remove board-n800-audio.c
  2009-03-25 10:26 [PATCH 1/2] ARM: OMAP: N8x0: Add retu-headset platform data Jarkko Nikula
@ 2009-03-25 10:26 ` Jarkko Nikula
  2009-03-25 22:28   ` [APPLIED] " Tony Lindgren
  2009-03-25 22:28 ` [APPLIED] [PATCH 1/2] ARM: OMAP: N8x0: Add retu-headset platform data Tony Lindgren
  1 sibling, 1 reply; 4+ messages in thread
From: Jarkko Nikula @ 2009-03-25 10:26 UTC (permalink / raw)
  To: linux-omap; +Cc: Jarkko Nikula

This file is needless since there is no anymore omap specific sound drivers.
Drivers got removed by the commit 9fa298dc5f0b3e343337848b63c850e1a89d2d59.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
---
 arch/arm/mach-omap2/Makefile           |    2 +-
 arch/arm/mach-omap2/board-n800-audio.c |   88 --------------------------------
 arch/arm/mach-omap2/board-n800.c       |    1 -
 3 files changed, 1 insertions(+), 90 deletions(-)
 delete mode 100644 arch/arm/mach-omap2/board-n800-audio.c

diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index b44bb78..9b270d8 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -63,7 +63,7 @@ obj-$(CONFIG_MACH_OMAP_APOLLON)		+= board-apollon.o \
 					   board-apollon-keys.o
 obj-$(CONFIG_MACH_NOKIA_N800)		+= board-n800.o board-n800-flash.o \
 					   board-n800-mmc.o board-n800-bt.o \
-					   board-n800-audio.o board-n800-usb.o \
+					   board-n800-usb.o \
 					   board-n800-dsp.o \
 					   board-n800-camera.o
 obj-$(CONFIG_MACH_NOKIA_N810)		+= board-n810.o
diff --git a/arch/arm/mach-omap2/board-n800-audio.c b/arch/arm/mach-omap2/board-n800-audio.c
deleted file mode 100644
index fd83313..0000000
--- a/arch/arm/mach-omap2/board-n800-audio.c
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * linux/arch/arm/mach-omap2/board-n800-audio.c
- *
- * Copyright (C) 2006 Nokia Corporation
- * Contact: Juha Yrjola
- *          Jarkko Nikula <jarkko.nikula@nokia.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
-
-#include <linux/err.h>
-#include <linux/clk.h>
-#include <linux/platform_device.h>
-#include <linux/spi/tsc2301.h>
-
-#include <asm/io.h>
-#include <mach/eac.h>
-
-#include <mach/dsp_common.h>
-
-void __init n800_audio_init(struct tsc2301_platform_data *tc)
-{
-}
-
-#ifdef CONFIG_OMAP_DSP
-
-int n800_audio_enable(struct dsp_kfunc_device *kdev, int stage)
-{
-#ifdef AUDIO_ENABLED
-	unsigned long flags;
-	int do_enable = 0;
-
-	spin_lock_irqsave(&audio_lock, flags);
-
-	pr_debug("DSP power up request (audio codec %sinitialized)\n",
-		 audio_ok ? "" : "not ");
-
-	if (enable_audio)
-		goto out;
-	enable_audio = 1;
-	if (audio_ok)
-		do_enable = 1;
-out:
-	spin_unlock_irqrestore(&audio_lock, flags);
-	if (do_enable)
-		eac_set_mode(eac_device, 1, 1);
-#endif
-	return 0;
-}
-
-int n800_audio_disable(struct dsp_kfunc_device *kdev, int stage)
-{
-#ifdef AUDIO_ENABLED
-	unsigned long flags;
-	int do_disable = 0;
-
-	spin_lock_irqsave(&audio_lock, flags);
-
-	pr_debug("DSP power down request (audio codec %sinitialized)\n",
-		audio_ok ? "" : "not ");
-
-	if (!enable_audio)
-		goto out;
-	enable_audio = 0;
-	if (audio_ok)
-		do_disable = 1;
-out:
-	spin_unlock_irqrestore(&audio_lock, flags);
-	if (do_disable)
-		eac_set_mode(eac_device, 0, 0);
-#endif
-	return 0;
-}
-
-#endif /* CONFIG_OMAP_DSP */
diff --git a/arch/arm/mach-omap2/board-n800.c b/arch/arm/mach-omap2/board-n800.c
index b90d153..cb32b61 100644
--- a/arch/arm/mach-omap2/board-n800.c
+++ b/arch/arm/mach-omap2/board-n800.c
@@ -722,7 +722,6 @@ static void __init nokia_n800_init(void)
 {
 	nokia_n800_common_init();
 
-	n800_audio_init(&tsc2301_config);
 	n800_ts_set_config();
 	tsc2301_dev_init();
 	tea5761_dev_init();
-- 
1.6.2


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

* [APPLIED] [PATCH 1/2] ARM: OMAP: N8x0: Add retu-headset platform data
  2009-03-25 10:26 [PATCH 1/2] ARM: OMAP: N8x0: Add retu-headset platform data Jarkko Nikula
  2009-03-25 10:26 ` [PATCH 2/2] ARM: OMAP: N8x0: Remove board-n800-audio.c Jarkko Nikula
@ 2009-03-25 22:28 ` Tony Lindgren
  1 sibling, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2009-03-25 22:28 UTC (permalink / raw)
  To: linux-omap

This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Commit: bfed43659b0ffedf70d3dd41fc5658750f73890a

PatchWorks
http://patchwork.kernel.org/patch/14293/

Git
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=bfed43659b0ffedf70d3dd41fc5658750f73890a



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

* [APPLIED] [PATCH 2/2] ARM: OMAP: N8x0: Remove board-n800-audio.c
  2009-03-25 10:26 ` [PATCH 2/2] ARM: OMAP: N8x0: Remove board-n800-audio.c Jarkko Nikula
@ 2009-03-25 22:28   ` Tony Lindgren
  0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2009-03-25 22:28 UTC (permalink / raw)
  To: linux-omap

This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Commit: a1ba945ac6df37a30bac1e8a7b5bf705cc0d7147

PatchWorks
http://patchwork.kernel.org/patch/14294/

Git
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=a1ba945ac6df37a30bac1e8a7b5bf705cc0d7147



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

end of thread, other threads:[~2009-03-25 22:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-25 10:26 [PATCH 1/2] ARM: OMAP: N8x0: Add retu-headset platform data Jarkko Nikula
2009-03-25 10:26 ` [PATCH 2/2] ARM: OMAP: N8x0: Remove board-n800-audio.c Jarkko Nikula
2009-03-25 22:28   ` [APPLIED] " Tony Lindgren
2009-03-25 22:28 ` [APPLIED] [PATCH 1/2] ARM: OMAP: N8x0: Add retu-headset platform data Tony Lindgren

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