Skip to contentSkip to conversation

S6000 ASoC drivers with multi-component

PATCH In review Mark Brown 4 participants 8 messages Nov 28, 2010 – Nov 30, 2010

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

I'm a little concerned that there have been no updates to the s6000 audio drivers since the merge of multi-component ASoC (which is now in mainline and should be released as part of 2.6.37). This was a very big and invasive update, and experience with other architectures has been that there's usually at least some typos that need fixing. It'd be good to get some confirmation that the audio drivers have at least been tested with current mainline - if everything worked fine that's obviously excellent but it'd be good if someone could confirm that this is the case.

#1 lore raw
Quoted 9 lines · Mark Brown

I'm a little concerned that there have been no updates to the s6000 audio drivers since the merge of multi-component ASoC (which is now in mainline and should be released as part of 2.6.37). This was a very big and invasive update, and experience with other architectures has been that there's usually at least some typos that need fixing. It'd be good to get some confirmation that the audio drivers have at least been tested with current mainline - if everything worked fine that's obviously excellent but it'd be good if someone could confirm that this is the case.

Oh dear, you killed Schrödinger's cat..

Yes there are some bugs in the s6000 ASoC code.
A missing semicolon at the end of s6000_i2s_dai, a lacking forward declaration of s6000_soc_platform in the request_irq line, and a reference to codec->snd_card which should probably be changed to codec->card->snd_card.

But trying to build a s6105 kernel from vanilla sources made me realize two things:
1. Nobody ever tried to do that before as s6000 support has been merged incompletely and in some cases with merge errors (variant_irq_disable declaration, I2C_BOARD_INFO in struct platform_device[], clk framework missing completely).
2. Compiling Xtensa kernels in general is broken at least since 2.6.35-rc1 because of e520c41085

So for now I could just compile-test the ASoC changes. Actually booting a kernel will probably take more of my spare time..
Would you like to have patches for the found ASoC bugs now or do you prefer waiting until I could make it work on hardware?

Daniel

Signature · 6 lines
Dipl.-Math. Daniel Glöckner, emlix GmbH, http://www.emlix.com
Fon +49 551 30664-0, Fax -11, Bahnhofsallee 1b, 37081 Göttingen, Germany
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführer: Dr. Uwe Kracke, Ust-IdNr.: DE 205 198 055

emlix - your embedded linux partner
author
#2 lore raw
Quoted 6 lines · Daniel Glöckner

But trying to build a s6105 kernel from vanilla sources made me realize two things:
1. Nobody ever tried to do that before as s6000 support has been merged incompletely and in some cases with merge errors (variant_irq_disable declaration, I2C_BOARD_INFO in struct platform_device[], clk framework missing completely).

Actually, Liam did try and fail when he was testing the changes.

Quoted 4 lines

So for now I could just compile-test the ASoC changes. Actually booting a kernel will probably take more of my spare time..
Would you like to have patches for the found ASoC bugs now or do you prefer waiting until I could make it work on hardware?

Just send stuff as you find it, no problem sending multiple patches and it's less diff to carry.

#3 lore raw

PATCH 1/3 s6000-i2s: fix compilation

A semicolon was missing.

---
 sound/soc/s6000/s6000-i2s.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/s6000/s6000-i2s.c +1 -1
index 8778faa..3052f64 100644
@@ -434,7 +434,7 @@ static struct snd_soc_dai_driver s6000_i2s_dai = {
 		.rate_max = 1562500,
 	},
 	.ops = &s6000_i2s_dai_ops,
-}
+};
 
 static int __devinit s6000_i2s_probe(struct platform_device *pdev)
 {
Signature · 6 lines
1.7.0.5

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Acked-by on v1 1/3
#4 lore raw

Re: [PATCH 1/3] s6000-i2s: fix compilation

Quoted 12 lines · Daniel Glöckner

A semicolon was missing.

---
 sound/soc/s6000/s6000-i2s.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/s6000/s6000-i2s.c +0 -0
index 8778faa..3052f64 100644

sound/soc/s6000/s6000-i2s.c static struct snd_soc_dai_driver s6000_i2s_dai = { · line 440

Quoted 8 lines
sound/soc/s6000/s6000-i2s.c +1 -1
@@ -434,7 +434,7 @@ static struct snd_soc_dai_driver s6000_i2s_dai = {
 		.rate_max = 1562500,
 	},
 	.ops = &s6000_i2s_dai_ops,
-}
+};
 
 static int __devinit s6000_i2s_probe(struct platform_device *pdev)
 {

All

Signature · 8 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#6 lore raw

PATCH 2/3 s6000-pcm: fix compilation

In reply to Mark Brown

s6000_soc_platform has lost its forward declaration and there no longer is a name element in it, so use a string constant when calling request_irq.

---
 sound/soc/s6000/s6000-pcm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/s6000/s6000-pcm.c +1 -1
index 271fd22..ab3ccae 100644
@@ -473,7 +473,7 @@ static int s6000_pcm_new(struct snd_card *card,
 	}
 
 	res = request_irq(params->irq, s6000_pcm_irq, IRQF_SHARED,
-			  s6000_soc_platform.name, pcm);
+			  "s6000-audio", pcm);
 	if (res) {
 		printk(KERN_ERR "s6000-pcm couldn't get IRQ\n");
 		return res;
Signature · 6 lines
1.7.0.5

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#7 lore raw

PATCH 3/3 s6105-ipcam: fix compilation

In reply to Mark Brown

When the s6105-ipcam ASoC driver had been converted to the multi-component API, a single reference to a former structure element remained, blocking successful compilation.

---
 sound/soc/s6000/s6105-ipcam.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/s6000/s6105-ipcam.c +1 -1
index 96c05e1..c1244c5 100644
@@ -167,7 +167,7 @@ static int s6105_aic3x_init(struct snd_soc_pcm_runtime *rtd)
 
 	snd_soc_dapm_sync(codec);
 
-	snd_ctl_add(codec->snd_card, snd_ctl_new1(&audio_out_mux, codec));
+	snd_ctl_add(codec->card->snd_card, snd_ctl_new1(&audio_out_mux, codec));
 
 	return 0;
 }
Signature · 6 lines
1.7.0.5

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel