23 #include <linux/module.h>
35 .name =
"I2S PCM Stereo out"
39 .name =
"I2S PCM Stereo in"
43 .client = &s3c2412_dma_client_out,
50 .client = &s3c2412_dma_client_in,
68 s3c2412_i2s.dma_capture = &s3c2412_i2s_pcm_stereo_in;
69 s3c2412_i2s.dma_playback = &s3c2412_i2s_pcm_stereo_out;
71 s3c2412_i2s.iis_cclk =
clk_get(dai->
dev,
"i2sclk");
72 if (IS_ERR(s3c2412_i2s.iis_cclk)) {
73 pr_err(
"failed to get i2sclk clock\n");
75 return PTR_ERR(s3c2412_i2s.iis_cclk);
83 s3c2412_i2s.iis_cclk = s3c2412_i2s.iis_pclk;
92 static int s3c2412_i2s_remove(
struct snd_soc_dai *dai)
116 snd_soc_dai_set_dma_data(cpu_dai, substream, dma_data);
119 pr_debug(
"%s: r: IISMOD: %x\n", __func__, iismod);
131 pr_debug(
"%s: w: IISMOD: %x\n", __func__, iismod);
136 #define S3C2412_I2S_RATES \
137 (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 | SNDRV_PCM_RATE_16000 | \
138 SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \
139 SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000)
142 .hw_params = s3c2412_i2s_hw_params,
146 .probe = s3c2412_i2s_probe,
147 .remove = s3c2412_i2s_remove,
160 .ops = &s3c2412_i2s_dai_ops,
175 .probe = s3c2412_iis_dev_probe,
178 .name =
"s3c2412-iis",