Skip to contentSkip to conversation

PATCH: ln2440sbc ac97 support

PATCH Applied Ivan Kuten 2 participants 4 messages Oct 26, 2007 – Oct 29, 2007

Subsystems (2)
lore
Share & tools
lore

Ivan Kuten

author
#0 lore raw

Hello,

This patch adds ac97 support for ln2440sbc board from LittleChips. This board is based on s3c2440 SoC + AC97 Realtek ALC650 codec. Existing s3c2443 implementation is slightly modified because s3c2440 and s3c2443 have different AC97 interrupts.

Regards,
Ivan

sound/soc/s3c24xx/Kconfig +8 -0
diff -urN linux-2.6.23/sound/soc/s3c24xx/Kconfig linux-2.6.23-2440/sound/soc/s3c24xx/Kconfig
@@ -34,4 +34,12 @@
 	  Say Y if you want to add support for SoC audio on smdk2443
 	  with the WM9710.
 
+config SND_S3C24XX_SOC_LN2440SBC_ALC650
+	tristate "SoC AC97 Audio support for LN2440SBC - ALC650"
+	depends on SND_S3C24XX_SOC
+	select SND_S3C2443_SOC_AC97
+	select SND_SOC_AC97_CODEC
+	help
+	  Say Y if you want to add support for SoC audio on ln2440sbc
+	  with the ALC650.
 
sound/soc/s3c24xx/Makefile +2 -0
diff -urN linux-2.6.23/sound/soc/s3c24xx/Makefile linux-2.6.23-2440/sound/soc/s3c24xx/Makefile
@@ -10,6 +10,8 @@
 # S3C24XX Machine Support
 snd-soc-neo1973-wm8753-objs := neo1973_wm8753.o
 snd-soc-smdk2443-wm9710-objs := smdk2443_wm9710.o
+snd-soc-ln2440sbc-alc650-objs := ln2440sbc_alc650.o
 
 obj-$(CONFIG_SND_S3C24XX_SOC_NEO1973_WM8753) += snd-soc-neo1973-wm8753.o
 obj-$(CONFIG_SND_S3C24XX_SOC_SMDK2443_WM9710) += snd-soc-smdk2443-wm9710.o
+obj-$(CONFIG_SND_S3C24XX_SOC_LN2440SBC_ALC650) += snd-soc-ln2440sbc-alc650.o
sound/soc/s3c24xx/ln2440sbc_alc650.c +86 -0

86 lines not on this page · raw message

sound/soc/s3c24xx/s3c2443-ac97.c +3 -3
diff -urN linux-2.6.23/sound/soc/s3c24xx/s3c2443-ac97.c linux-2.6.23-2440/sound/soc/s3c24xx/s3c2443-ac97.c
@@ -32,7 +32,7 @@
 
 #include <asm/hardware.h>
 #include <asm/io.h>
-#include <asm/arch/regs-ac97.h>
+#include <asm/plat-s3c/regs-ac97.h>
 #include <asm/arch/regs-gpio.h>
 #include <asm/arch/regs-clock.h>
 #include <asm/arch/audio.h>
@@ -253,7 +253,7 @@
 	ac_glbctrl |= S3C_AC97_GLBCTRL_TRANSFERDATAENABLE;
 	writel(ac_glbctrl, s3c24xx_ac97.regs + S3C_AC97_GLBCTRL);
 
-	ret = request_irq(IRQ_S3C2443_AC97, s3c2443_ac97_irq,
+	ret = request_irq(IRQ_S3C244x_AC97, s3c2443_ac97_irq,
 		IRQF_DISABLED, "AC97", NULL);
 	if (ret < 0) {
 		printk(KERN_ERR "s3c24xx-ac97: interrupt request failed.\n");
@@ -266,7 +266,7 @@
 
 static void s3c2443_ac97_remove(struct platform_device *pdev)
 {
-	free_irq(IRQ_S3C2443_AC97, NULL);
+	free_irq(IRQ_S3C244x_AC97, NULL);
 	clk_disable(s3c24xx_ac97.ac97_clk);
 	clk_put(s3c24xx_ac97.ac97_clk);
 	iounmap(s3c24xx_ac97.regs);
sound/soc/s3c24xx/s3c24xx-ac97.h +6 -0
diff -urN linux-2.6.23/sound/soc/s3c24xx/s3c24xx-ac97.h linux-2.6.23-2440/sound/soc/s3c24xx/s3c24xx-ac97.h
@@ -20,6 +20,12 @@
 #define AC_CMD_ADDR(x) (x << 16)
 #define AC_CMD_DATA(x) (x & 0xffff)
 
+#ifdef CONFIG_CPU_S3C2440
+#define IRQ_S3C244x_AC97 IRQ_S3C2440_AC97 
+#else
+#define IRQ_S3C244x_AC97 IRQ_S3C2443_AC97 
+#endif
+
 extern struct snd_soc_cpu_dai s3c2443_ac97_dai[];
 
 #endif /*S3C24XXAC97_H_*/
Applied
#1 lore raw

At Fri, 26 Oct 2007 10:54:08 -0100,

Quoted 8 lines · Ivan Kuten

Hello,

This patch adds ac97 support for ln2440sbc board from LittleChips. This board is based on s3c2440 SoC + AC97 Realtek ALC650 codec. Existing s3c2443 implementation is slightly modified because s3c2440 and s3c2443 have different AC97 interrupts.

Quoted 4 lines

Regards,
Ivan

Applied to ALSA HG tree. Thanks.

Takashi

author
#2 lore raw
Quoted 12 lines · Takashi Iwai

At Fri, 26 Oct 2007 10:54:08 -0100,

Quoted 10 lines · Ivan Kuten

Hello,

This patch adds ac97 support for ln2440sbc board from LittleChips. This board is based on s3c2440 SoC + AC97 Realtek ALC650 codec. Existing s3c2443 implementation is slightly modified because s3c2440 and s3c2443 have different AC97 interrupts.

Regards,
Ivan

Quoted 6 lines
Quoted 1 line

Applied to ALSA HG tree. Thanks.

Takashi

Hi Takashi,

Could you point me to correct URL for ALSA HG tree?

I checked http://hg-mirror.alsa-project.org/alsa-driver/
and http://hg-mirror.alsa-project.org/alsa-kernel/ but do not see my patch there.

Thanks!

Regards,
Ivan

Signature · 5 lines
--------------------------------
Embedded Linux engineer,
Promwad Company: http://www.promwad.com/
Homepage : http://www.ivankuten.com/
--------------------------------
#3 lore raw

At Mon, 29 Oct 2007 12:22:00 -0100,

Quoted 21 lines · Kuten Ivan
Quoted 12 lines · Takashi Iwai

At Fri, 26 Oct 2007 10:54:08 -0100,

Quoted 10 lines · Ivan Kuten

Hello,

This patch adds ac97 support for ln2440sbc board from LittleChips. This board is based on s3c2440 SoC + AC97 Realtek ALC650 codec. Existing s3c2443 implementation is slightly modified because s3c2440 and s3c2443 have different AC97 interrupts.

Regards,
Ivan

Quoted 6 lines
Quoted 1 line

Applied to ALSA HG tree. Thanks.

Takashi

Quoted 7 lines

Hi Takashi,

Could you point me to correct URL for ALSA HG tree?

I checked http://hg-mirror.alsa-project.org/alsa-driver/
and http://hg-mirror.alsa-project.org/alsa-kernel/ but do not see my patch there.

Try hg.alsa-project.org instead. hg-mirror seems often delayed.

Takashi