Skip to contentSkip to conversation

Alsa modularisations and support for tsc2101 6/7

PATCH In review lamikr 2 participants 3 messages Feb 20, 2006 – Mar 1, 2006

Subsystems (4)
lore
Share & tools
lore

lamikr

author
#0 lore raw

PATCH 1/1 Alsa modularisations and support for tsc2101 6/7

ALSA Omap Patch

This patch creates support for tsc2101 codec for alsa omap. Tested with boards H2 and iPAQ h6300.

signed-off by Mika Laitio <[email protected]> signed-off by Daniel Petrini <[email protected]>

----------------
Mika Laitio

ALSA Omap Patch

This patch only creates support for tsc2101 codec for alsa omap. Tested with boards H2 and iPAQ h6300.

signed-off by Mika Laitio <[email protected]> signed-off by Daniel Petrini <[email protected]>

sound/arm/Kconfig +14 -0
Index: linux-omap-2.6.git-q/sound/arm/Kconfig
===================================================================
@@ -44,5 +44,19 @@ config SND_OMAP_AIC23
 
 	  To compile this driver as a module, choose M here: the module
 	  will be called snd-omap-aic23.
+	  
+config SND_OMAP_TSC2101
+ 	tristate "OMAP TSC2101 alsa driver"
+ 	depends on ARCH_OMAP && SND
+ 	select SND_PCM
+         select OMAP_TSC2101
+         select OMAP_UWIRE if ARCH_OMAP
+ 	help
+ 	  Say Y here if you have a OMAP platform board
+ 	  and want to use its TSC2101 audio chip. Driver has
+ 	  been tested with H2 and iPAQ h6300.
+ 
+ 	  To compile this driver as a module, choose M here: the module
+ 	  will be called snd-omap-tsc2101.
 
 endmenu
arch/arm/mach-omap1/omap-alsa-tsc2101.c new file +346 -0

346 lines not on this page · raw message

arch/arm/mach-omap1/omap-alsa-tsc2101.h new file +53 -0

53 lines not on this page · raw message

#1 lore raw

+#define CODEC_CLOCK 12000000

+#define AUDIO_MCBSP OMAP_MCBSP1

we should be quering the sysclk for figuring out the codec_clk. some boards such as sdp2430 have an interesting property of being able to provide 12/13mhz clk to the codec.. and hardcoding mcbsp1 wil have portability issues on omap2420 does this belong to platform structure?

Regards,

Nishanth Menon

________________________________

From: [email protected] on behalf of lamikr
Sent: Mon 2/20/2006 12:28 PM
To: OMAP-Linux
Subject: [PATCH] Alsa modularisations and support for tsc2101 6/7

ALSA Omap Patch

This patch creates support for tsc2101 codec for alsa omap. Tested with boards H2 and iPAQ h6300.

signed-off by Mika Laitio <[email protected]> signed-off by Daniel Petrini <[email protected]>

----------------
Mika Laitio

author
#2 lore raw
Quoted 7 lines · Nishanth
arch/arm/mach-omap1/omap-alsa-tsc2101.h new file +2 -0
+#define CODEC_CLOCK 12000000
 
+#define AUDIO_MCBSP OMAP_MCBSP1

we should be quering the sysclk for figuring out the codec_clk. some boards such as sdp2430 have an interesting property of being able to provide 12/13mhz clk to the codec.. and hardcoding mcbsp1 wil have portability issues on omap2420 does this belong to platform structure?

Hi Menon!

Do you know how to do that easily dynamically? It seems that the value is often hardcoded in clock.c.