aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/omap-mcbsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/omap/omap-mcbsp.c')
-rw-r--r--sound/soc/omap/omap-mcbsp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c
index 40d87e6d0de8..00b0c9d73cd4 100644
--- a/sound/soc/omap/omap-mcbsp.c
+++ b/sound/soc/omap/omap-mcbsp.c
@@ -103,7 +103,7 @@ static const unsigned long omap2420_mcbsp_port[][2] = {};
103static int omap_mcbsp_dai_startup(struct snd_pcm_substream *substream) 103static int omap_mcbsp_dai_startup(struct snd_pcm_substream *substream)
104{ 104{
105 struct snd_soc_pcm_runtime *rtd = substream->private_data; 105 struct snd_soc_pcm_runtime *rtd = substream->private_data;
106 struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; 106 struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
107 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data); 107 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
108 int err = 0; 108 int err = 0;
109 109
@@ -116,7 +116,7 @@ static int omap_mcbsp_dai_startup(struct snd_pcm_substream *substream)
116static void omap_mcbsp_dai_shutdown(struct snd_pcm_substream *substream) 116static void omap_mcbsp_dai_shutdown(struct snd_pcm_substream *substream)
117{ 117{
118 struct snd_soc_pcm_runtime *rtd = substream->private_data; 118 struct snd_soc_pcm_runtime *rtd = substream->private_data;
119 struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; 119 struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
120 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data); 120 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
121 121
122 if (!cpu_dai->active) { 122 if (!cpu_dai->active) {
@@ -128,7 +128,7 @@ static void omap_mcbsp_dai_shutdown(struct snd_pcm_substream *substream)
128static int omap_mcbsp_dai_trigger(struct snd_pcm_substream *substream, int cmd) 128static int omap_mcbsp_dai_trigger(struct snd_pcm_substream *substream, int cmd)
129{ 129{
130 struct snd_soc_pcm_runtime *rtd = substream->private_data; 130 struct snd_soc_pcm_runtime *rtd = substream->private_data;
131 struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; 131 struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
132 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data); 132 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
133 int err = 0; 133 int err = 0;
134 134
@@ -157,7 +157,7 @@ static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream,
157 struct snd_pcm_hw_params *params) 157 struct snd_pcm_hw_params *params)
158{ 158{
159 struct snd_soc_pcm_runtime *rtd = substream->private_data; 159 struct snd_soc_pcm_runtime *rtd = substream->private_data;
160 struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; 160 struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
161 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data); 161 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
162 struct omap_mcbsp_reg_cfg *regs = &mcbsp_data->regs; 162 struct omap_mcbsp_reg_cfg *regs = &mcbsp_data->regs;
163 int dma, bus_id = mcbsp_data->bus_id, id = cpu_dai->id; 163 int dma, bus_id = mcbsp_data->bus_id, id = cpu_dai->id;
@@ -223,7 +223,7 @@ static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream,
223 * This must be called before _set_clkdiv and _set_sysclk since McBSP register 223 * This must be called before _set_clkdiv and _set_sysclk since McBSP register
224 * cache is initialized here 224 * cache is initialized here
225 */ 225 */
226static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_cpu_dai *cpu_dai, 226static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_dai *cpu_dai,
227 unsigned int fmt) 227 unsigned int fmt)
228{ 228{
229 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data); 229 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
@@ -292,7 +292,7 @@ static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_cpu_dai *cpu_dai,
292 return 0; 292 return 0;
293} 293}
294 294
295static int omap_mcbsp_dai_set_clkdiv(struct snd_soc_cpu_dai *cpu_dai, 295static int omap_mcbsp_dai_set_clkdiv(struct snd_soc_dai *cpu_dai,
296 int div_id, int div) 296 int div_id, int div)
297{ 297{
298 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data); 298 struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
@@ -347,7 +347,7 @@ static int omap_mcbsp_dai_set_clks_src(struct omap_mcbsp_data *mcbsp_data,
347 return 0; 347 return 0;
348} 348}
349 349
350static int omap_mcbsp_dai_set_dai_sysclk(struct snd_soc_cpu_dai *cpu_dai, 350static int omap_mcbsp_dai_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
351 int clk_id, unsigned int freq, 351 int clk_id, unsigned int freq,
352 int dir) 352 int dir)
353{ 353{
@@ -376,7 +376,7 @@ static int omap_mcbsp_dai_set_dai_sysclk(struct snd_soc_cpu_dai *cpu_dai,
376 return err; 376 return err;
377} 377}
378 378
379struct snd_soc_cpu_dai omap_mcbsp_dai[NUM_LINKS] = { 379struct snd_soc_dai omap_mcbsp_dai[NUM_LINKS] = {
380{ 380{
381 .name = "omap-mcbsp-dai", 381 .name = "omap-mcbsp-dai",
382 .id = 0, 382 .id = 0,