diff options
author | Jassi Brar <jassi.brar@samsung.com> | 2010-09-10 03:41:05 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-09-14 03:50:17 -0400 |
commit | 12280faea62c7e2d7124996d9342b483ac1706d3 (patch) | |
tree | 70095ccf83481380ad3db7ae25c4ff5200f4441c /sound/soc/s3c24xx/s3c-pcm.c | |
parent | 28927011e46844aa966971c644d821f9aab2e9f9 (diff) |
ASoC: Samsung: Debug PCM snd_soc_dai_driver registration
Each of the two PCM controllers need to be registered during probe
with appropriate 'name' of the dai driver.
Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/s3c24xx/s3c-pcm.c')
-rw-r--r-- | sound/soc/s3c24xx/s3c-pcm.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sound/soc/s3c24xx/s3c-pcm.c b/sound/soc/s3c24xx/s3c-pcm.c index 4f73275f4db6..2e020e1b4eab 100644 --- a/sound/soc/s3c24xx/s3c-pcm.c +++ b/sound/soc/s3c24xx/s3c-pcm.c | |||
@@ -364,8 +364,6 @@ static struct snd_soc_dai_ops s3c_pcm_dai_ops = { | |||
364 | #define S3C_PCM_RATES SNDRV_PCM_RATE_8000_96000 | 364 | #define S3C_PCM_RATES SNDRV_PCM_RATE_8000_96000 |
365 | 365 | ||
366 | #define S3C_PCM_DAI_DECLARE \ | 366 | #define S3C_PCM_DAI_DECLARE \ |
367 | { \ | ||
368 | .name = "samsung-dai", \ | ||
369 | .symmetric_rates = 1, \ | 367 | .symmetric_rates = 1, \ |
370 | .ops = &s3c_pcm_dai_ops, \ | 368 | .ops = &s3c_pcm_dai_ops, \ |
371 | .playback = { \ | 369 | .playback = { \ |
@@ -379,12 +377,17 @@ static struct snd_soc_dai_ops s3c_pcm_dai_ops = { | |||
379 | .channels_max = 2, \ | 377 | .channels_max = 2, \ |
380 | .rates = S3C_PCM_RATES, \ | 378 | .rates = S3C_PCM_RATES, \ |
381 | .formats = SNDRV_PCM_FMTBIT_S16_LE, \ | 379 | .formats = SNDRV_PCM_FMTBIT_S16_LE, \ |
382 | }, \ | 380 | } |
383 | } | ||
384 | 381 | ||
385 | struct snd_soc_dai_driver s3c_pcm_dai[] = { | 382 | struct snd_soc_dai_driver s3c_pcm_dai[] = { |
386 | S3C_PCM_DAI_DECLARE, | 383 | [0] = { |
387 | S3C_PCM_DAI_DECLARE, | 384 | .name = "samsung-pcm.0", |
385 | S3C_PCM_DAI_DECLARE, | ||
386 | }, | ||
387 | [1] = { | ||
388 | .name = "samsung-pcm.1", | ||
389 | S3C_PCM_DAI_DECLARE, | ||
390 | }, | ||
388 | }; | 391 | }; |
389 | EXPORT_SYMBOL_GPL(s3c_pcm_dai); | 392 | EXPORT_SYMBOL_GPL(s3c_pcm_dai); |
390 | 393 | ||
@@ -468,7 +471,7 @@ static __devinit int s3c_pcm_dev_probe(struct platform_device *pdev) | |||
468 | } | 471 | } |
469 | clk_enable(pcm->pclk); | 472 | clk_enable(pcm->pclk); |
470 | 473 | ||
471 | ret = snd_soc_register_dai(&pdev->dev, s3c_pcm_dai); | 474 | ret = snd_soc_register_dai(&pdev->dev, &s3c_pcm_dai[pdev->id]); |
472 | if (ret != 0) { | 475 | if (ret != 0) { |
473 | dev_err(&pdev->dev, "failed to get pcm_clock\n"); | 476 | dev_err(&pdev->dev, "failed to get pcm_clock\n"); |
474 | goto err5; | 477 | goto err5; |