[alsa-devel] [PATCH] ASoC: multi-component: SAMSUNG: Fix compile error when registering a DAI
Chanwoo Choi
cw00.choi at samsung.com
Thu Jul 22 07:14:11 CEST 2010
This patch modify some code which register a DAI with ASoC core
according to modified registration API of DAI.
Signed-off-by: Chanwoo Choi <cw00.choi at samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
---
sound/soc/s3c24xx/aquila_wm8994.c | 3 +--
sound/soc/s3c24xx/s3c-i2s-v2.c | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/s3c24xx/aquila_wm8994.c b/sound/soc/s3c24xx/aquila_wm8994.c
index 69c41eb..007ed3a 100644
--- a/sound/soc/s3c24xx/aquila_wm8994.c
+++ b/sound/soc/s3c24xx/aquila_wm8994.c
@@ -268,8 +268,7 @@ static int __init aquila_init(void)
return -ENOMEM;
/* register voice DAI here */
- ret = snd_soc_register_dai(&aquila_snd_device->dev,
- 0, &voice_dai);
+ ret = snd_soc_register_dai(&aquila_snd_device->dev, &voice_dai);
if (ret)
return ret;
diff --git a/sound/soc/s3c24xx/s3c-i2s-v2.c b/sound/soc/s3c24xx/s3c-i2s-v2.c
index f4fbc0e..b3866d5 100644
--- a/sound/soc/s3c24xx/s3c-i2s-v2.c
+++ b/sound/soc/s3c24xx/s3c-i2s-v2.c
@@ -750,7 +750,7 @@ int s3c_i2sv2_register_dai(struct device *dev, int id,
drv->suspend = s3c2412_i2s_suspend;
drv->resume = s3c2412_i2s_resume;
- return snd_soc_register_dai(dev, id, drv);
+ return snd_soc_register_dai(dev, drv);
}
EXPORT_SYMBOL_GPL(s3c_i2sv2_register_dai);
--
1.6.3.3
More information about the Alsa-devel
mailing list