aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/s3c24xx/s3c-pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/s3c24xx/s3c-pcm.c')
-rw-r--r--sound/soc/s3c24xx/s3c-pcm.c17
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
385struct snd_soc_dai_driver s3c_pcm_dai[] = { 382struct 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};
389EXPORT_SYMBOL_GPL(s3c_pcm_dai); 392EXPORT_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;