Skip to contentSkip to conversation

ASoC: S3C64XX: IISv4: Add CPU driver

PATCH In review Jassi Brar 3 participants 6 messages Apr 27, 2010 – May 10, 2010

Subsystems (3)
lore
Share & tools
lore

Jassi Brar

author
#0 lore raw

PATCH 10/11 ASoC: S3C64XX: IISv4: Add CPU driver

Add the CPU driver for the IISv4 block found on S3C6410. For now, the driver is almost a copy of s3c64xx-i2s.c but it should diverge as more IISv4 specific stuff is added.

---
 sound/soc/s3c24xx/Kconfig          |    5 +
 sound/soc/s3c24xx/Makefile         |    2 +
 sound/soc/s3c24xx/s3c64xx-i2s-v4.c |  209 ++++++++++++++++++++++++++++++++++++
 sound/soc/s3c24xx/s3c64xx-i2s.h    |    1 +
 4 files changed, 217 insertions(+), 0 deletions(-)
 create mode 100644 sound/soc/s3c24xx/s3c64xx-i2s-v4.c
sound/soc/s3c24xx/Kconfig +5 -0
index 15fe57e..c0c7edf 100644
@@ -24,6 +24,11 @@ config SND_S3C64XX_SOC_I2S
 	select SND_S3C_I2SV2_SOC
 	select S3C64XX_DMA
 
+config SND_S3C64XX_SOC_I2S_V4
+	tristate
+	select SND_S3C_I2SV2_SOC
+	select S3C64XX_DMA
+
 config SND_S3C_SOC_PCM
 	tristate
 
sound/soc/s3c24xx/Makefile +2 -0
index df071a3..81d8dc5 100644
@@ -4,6 +4,7 @@ snd-soc-s3c24xx-i2s-objs := s3c24xx-i2s.o
 snd-soc-s3c2412-i2s-objs := s3c2412-i2s.o
 snd-soc-s3c64xx-i2s-objs := s3c64xx-i2s.o
 snd-soc-s3c-ac97-objs := s3c-ac97.o
+snd-soc-s3c64xx-i2s-v4-objs := s3c64xx-i2s-v4.o
 snd-soc-s3c-i2s-v2-objs := s3c-i2s-v2.o
 snd-soc-s3c-pcm-objs := s3c-pcm.o
 
@@ -12,6 +13,7 @@ obj-$(CONFIG_SND_S3C24XX_SOC_I2S) += snd-soc-s3c24xx-i2s.o
 obj-$(CONFIG_SND_S3C_SOC_AC97) += snd-soc-s3c-ac97.o
 obj-$(CONFIG_SND_S3C2412_SOC_I2S) += snd-soc-s3c2412-i2s.o
 obj-$(CONFIG_SND_S3C64XX_SOC_I2S) += snd-soc-s3c64xx-i2s.o
+obj-$(CONFIG_SND_S3C64XX_SOC_I2S_V4) += snd-soc-s3c64xx-i2s-v4.o
 obj-$(CONFIG_SND_S3C_I2SV2_SOC) += snd-soc-s3c-i2s-v2.o
 obj-$(CONFIG_SND_S3C_SOC_PCM) += snd-soc-s3c-pcm.o
 
sound/soc/s3c24xx/s3c64xx-i2s-v4.c new file +209 -0

209 lines not on this page · raw message

sound/soc/s3c24xx/s3c64xx-i2s.h +1 -0
index f27ed50..7a40f43 100644
@@ -37,5 +37,6 @@ struct clk;
 	 SNDRV_PCM_FMTBIT_S24_LE)
 
 extern struct snd_soc_dai s3c64xx_i2s_dai[];
+extern struct snd_soc_dai s3c64xx_i2s_v4_dai;
 
 #endif /* __SND_SOC_S3C24XX_S3C64XX_I2S_H */
Signature · 1 line
1.6.2.5
#1 lore raw
Quoted 5 lines · Jassi Brar

Add the CPU driver for the IISv4 block found on S3C6410. For now, the driver is almost a copy of s3c64xx-i2s.c but it should diverge as more IISv4 specific stuff is added.

Actually, this is the first patch that seems to have an issue so I've applied the patches up till this point.

#2 lore raw
Quoted 9 lines · Mark Brown
Quoted 5 lines · Jassi Brar

Add the CPU driver for the IISv4 block found on S3C6410. For now, the driver is almost a copy of s3c64xx-i2s.c but it should diverge as more IISv4 specific stuff is added.

Actually, this is the first patch that seems to have an issue so I've applied the patches up till this point.

That is strange, because I am able to cleanly apply these 11 patches against commit cb7cf44c880aeb8caf8 of for-2.6.35
Could you please try again?
Thanks

#3 lore raw
Quoted 8 lines · jassi brar

On Wed, May 5, 2010 at 11:30 PM, Mark Brown

Quoted 2 lines

Actually, this is the first patch that seems to have an issue so I've applied the patches up till this point.

That is strange, because I am able to cleanly apply these 11 patches against commit cb7cf44c880aeb8caf8 of for-2.6.35
Could you please try again?

I did try several times, including using a three way merge. It's possible some damage was introduced in the mail path (though it'd be a bit odd given that everything else might work) so a simple resend might do the trick?

#4 lore raw
In reply to jassi brar
Quoted 3 lines · jassi brar

That is strange, because I am able to cleanly apply these 11 patches against commit cb7cf44c880aeb8caf8 of for-2.6.35
Could you please try again?

I had another poke at this and managed to get the last two applied, thanks. However, the audio-bus clock for the IISv4 block on the S3C6410 is still not set up in -next. If that doesn't get sorted out it might be as well to mark it BROKEN again since it can't actually be used.

#5 lore raw
Quoted 8 lines · Mark Brown
Quoted 3 lines · jassi brar

That is strange, because I am able to cleanly apply these 11 patches against commit  cb7cf44c880aeb8caf8 of for-2.6.35
Could you please try again?

I had another poke at this and managed to get the last two applied, thanks.

ok, i waiting to reach workplace to resend.

Quoted 3 lines

 However, the audio-bus clock for the IISv4 block on the S3C6410 is still not set up in -next.  If that doesn't get sorted out it might be as well to mark it BROKEN again since it can't actually be used.

I reminded the patch to Ben, hope it's settled.
But of course, please do as appropriate.
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel