Skip to contentSkip to conversation

Fix compilation error on S3C2440

PATCH In review Alexey Galakhov 3 participants 6 messages Jan 28, 2013 – Jan 31, 2013

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compilation error on S3C2440

There was a compilation error introduced on Dec 7, 2012 by commit a08485d8fdf6f67ca5f173b68d8f873c574745f2.

Combination of CONFIG_CPU_S3C2440 and CONFIG_SND_S3C24XX_I2S caused the following:
sound/soc/samsung/s3c24xx-i2s.c: In function 's3c24xx_iis_dev_probe':
sound/soc/samsung/s3c24xx-i2s.c:472:2: error: implicit declaration of function 's3c_i2sv2_register_dai' [-Werror=implicit-function-declaration] sound/soc/samsung/s3c24xx-i2s.c:472:48: error: 's3c2412_i2s_dai' undeclared (first use in this function)

This patch fixes the problem and makes S3C2440 I2S usable again.

---
 sound/soc/samsung/s3c24xx-i2s.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/samsung/s3c24xx-i2s.c +1 -1
index ee10e87..13f6dd1 100644
@@ -469,7 +469,7 @@ static int s3c24xx_iis_dev_probe(struct platform_device *pdev)
 {
 	int ret = 0;
 
-	ret = s3c_i2sv2_register_dai(&pdev->dev, -1, &s3c2412_i2s_dai);
+	ret = snd_soc_register_dai(&pdev->dev, &s3c24xx_i2s_dai);
 	if (ret) {
 		pr_err("failed to register the dai\n");
 		return ret;
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 4 lines · Alexey Galakhov

There was a compilation error introduced on Dec 7, 2012 by commit a08485d8fdf6f67ca5f173b68d8f873c574745f2.

Following is better:

The commit a08485d8 ("ASoC: Samsung: Do not register samsung audio dma device as pdev") introduced compilation error.

Quoted 11 lines

Combination of CONFIG_CPU_S3C2440 and CONFIG_SND_S3C24XX_I2S caused the following:
sound/soc/samsung/s3c24xx-i2s.c: In function 's3c24xx_iis_dev_probe':
sound/soc/samsung/s3c24xx-i2s.c:472:2: error: implicit declaration of function 's3c_i2sv2_register_dai' [-Werror=implicit-function-declaration] sound/soc/samsung/s3c24xx-i2s.c:472:48: error: 's3c2412_i2s_dai' undeclared (first use in this function)

This patch fixes the problem and makes S3C2440 I2S usable again.

Cc Padmavathi Venna <[email protected]>
Cc Sangbeom Kim <[email protected]>
Cc Mark Brown <[email protected]>
Quoted 21 lines
---
 sound/soc/samsung/s3c24xx-i2s.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/samsung/s3c24xx-i2s.c +1 -1
index ee10e87..13f6dd1 100644
@@ -469,7 +469,7 @@ static int s3c24xx_iis_dev_probe(struct
 platform_device *pdev)
 {
 	int ret = 0;
 
-	ret = s3c_i2sv2_register_dai(&pdev->dev, -1, &s3c2412_i2s_dai);
+	ret = snd_soc_register_dai(&pdev->dev, &s3c24xx_i2s_dai);
 	if (ret) {
 		pr_err("failed to register the dai\n");

return ret;
--
1.7.10.4

#2 lore raw
Quoted 9 lines · Kukjin Kim
Quoted 4 lines · Alexey Galakhov

There was a compilation error introduced on Dec 7, 2012 by commit a08485d8fdf6f67ca5f173b68d8f873c574745f2.

Following is better:

The commit a08485d8 ("ASoC: Samsung: Do not register samsung audio dma device as pdev") introduced compilation error.

Can someone send me the patch formatted in an e-mail (rather than quoted) so I can apply please? Though I've got a horrible feeling this will conflict with Padma's work...

Always sned patches to maintainers.

#3 lore raw

PATCH 1/1 Fix compilation error on S3C2440

The commit a08485d8 ("ASoC: Samsung: Do not register samsung audio dma device as pdev") introduced compilation error.

Combination of CONFIG_CPU_S3C2440 and CONFIG_SND_S3C24XX_I2S caused undefined symbols 's3c_i2sv2_register_dai' and 's3c2412_i2s_dai' in sound/soc/samsung/s3c24xx-i2s.c.

This patch fixes the problem and makes S3C2440 I2S usable again. It does not affect S3C2412 (aka I2S-v2).

---
 sound/soc/samsung/s3c24xx-i2s.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/samsung/s3c24xx-i2s.c +1 -1
index ee10e87..13f6dd1 100644
@@ -469,7 +469,7 @@ static int s3c24xx_iis_dev_probe(struct platform_device *pdev)
 {
 	int ret = 0;
 
-	ret = s3c_i2sv2_register_dai(&pdev->dev, -1, &s3c2412_i2s_dai);
+	ret = snd_soc_register_dai(&pdev->dev, &s3c24xx_i2s_dai);
 	if (ret) {
 		pr_err("failed to register the dai\n");
 		return ret;
Signature · 1 line
1.7.10.4
Applied
#4 lore raw
Quoted 2 lines · Alexey Galakhov

The commit a08485d8 ("ASoC: Samsung: Do not register samsung audio dma device as pdev") introduced compilation error.

Applied, thanks. Please use subject lines appropriate for the subsystem and in general follow SubmittingPatches.

#5 lore raw
In reply to Mark Brown
Quoted 2 lines · Mark Brown

Though I've got a horrible feeling this will conflict with Padma's work...

Looks like Padma changed the code for S3C2412 and blindly copy-pasted the same change for all S3C24xx. However S3C24xx is for I2S-v1 and S3C2412 is for I2S-v2. The extra stuff in s3c_i2sv2_register_dai() is unrelated to v1.

After this patch the code works again just like v3.7 one. However the v3.7 code was already broken (in fact, since v3.2) in the DMA notification part so it doesn't play sound correctly thus I can't tell that everything works just fine now :). I found the patch that introduced the bug (344b4c4) and now I'm debugging it.