diff options
Diffstat (limited to 'sound/soc/fsl/fsl_ssi.c')
-rw-r--r-- | sound/soc/fsl/fsl_ssi.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index f588545698f3..71bff33f5528 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c | |||
@@ -82,7 +82,7 @@ struct fsl_ssi_private { | |||
82 | struct device *dev; | 82 | struct device *dev; |
83 | unsigned int playback; | 83 | unsigned int playback; |
84 | unsigned int capture; | 84 | unsigned int capture; |
85 | struct snd_soc_cpu_dai cpu_dai; | 85 | struct snd_soc_dai cpu_dai; |
86 | struct device_attribute dev_attr; | 86 | struct device_attribute dev_attr; |
87 | 87 | ||
88 | struct { | 88 | struct { |
@@ -479,7 +479,7 @@ static void fsl_ssi_shutdown(struct snd_pcm_substream *substream) | |||
479 | * @freq: the frequency of the given clock ID, currently ignored | 479 | * @freq: the frequency of the given clock ID, currently ignored |
480 | * @dir: SND_SOC_CLOCK_IN (clock slave) or SND_SOC_CLOCK_OUT (clock master) | 480 | * @dir: SND_SOC_CLOCK_IN (clock slave) or SND_SOC_CLOCK_OUT (clock master) |
481 | */ | 481 | */ |
482 | static int fsl_ssi_set_sysclk(struct snd_soc_cpu_dai *cpu_dai, | 482 | static int fsl_ssi_set_sysclk(struct snd_soc_dai *cpu_dai, |
483 | int clk_id, unsigned int freq, int dir) | 483 | int clk_id, unsigned int freq, int dir) |
484 | { | 484 | { |
485 | 485 | ||
@@ -497,7 +497,7 @@ static int fsl_ssi_set_sysclk(struct snd_soc_cpu_dai *cpu_dai, | |||
497 | * | 497 | * |
498 | * @format: one of SND_SOC_DAIFMT_xxx | 498 | * @format: one of SND_SOC_DAIFMT_xxx |
499 | */ | 499 | */ |
500 | static int fsl_ssi_set_fmt(struct snd_soc_cpu_dai *cpu_dai, unsigned int format) | 500 | static int fsl_ssi_set_fmt(struct snd_soc_dai *cpu_dai, unsigned int format) |
501 | { | 501 | { |
502 | return (format == SND_SOC_DAIFMT_I2S) ? 0 : -EINVAL; | 502 | return (format == SND_SOC_DAIFMT_I2S) ? 0 : -EINVAL; |
503 | } | 503 | } |
@@ -505,7 +505,7 @@ static int fsl_ssi_set_fmt(struct snd_soc_cpu_dai *cpu_dai, unsigned int format) | |||
505 | /** | 505 | /** |
506 | * fsl_ssi_dai_template: template CPU DAI for the SSI | 506 | * fsl_ssi_dai_template: template CPU DAI for the SSI |
507 | */ | 507 | */ |
508 | static struct snd_soc_cpu_dai fsl_ssi_dai_template = { | 508 | static struct snd_soc_dai fsl_ssi_dai_template = { |
509 | .playback = { | 509 | .playback = { |
510 | /* The SSI does not support monaural audio. */ | 510 | /* The SSI does not support monaural audio. */ |
511 | .channels_min = 2, | 511 | .channels_min = 2, |
@@ -569,15 +569,15 @@ static ssize_t fsl_sysfs_ssi_show(struct device *dev, | |||
569 | } | 569 | } |
570 | 570 | ||
571 | /** | 571 | /** |
572 | * fsl_ssi_create_dai: create a snd_soc_cpu_dai structure | 572 | * fsl_ssi_create_dai: create a snd_soc_dai structure |
573 | * | 573 | * |
574 | * This function is called by the machine driver to create a snd_soc_cpu_dai | 574 | * This function is called by the machine driver to create a snd_soc_dai |
575 | * structure. The function creates an ssi_private object, which contains | 575 | * structure. The function creates an ssi_private object, which contains |
576 | * the snd_soc_cpu_dai. It also creates the sysfs statistics device. | 576 | * the snd_soc_dai. It also creates the sysfs statistics device. |
577 | */ | 577 | */ |
578 | struct snd_soc_cpu_dai *fsl_ssi_create_dai(struct fsl_ssi_info *ssi_info) | 578 | struct snd_soc_dai *fsl_ssi_create_dai(struct fsl_ssi_info *ssi_info) |
579 | { | 579 | { |
580 | struct snd_soc_cpu_dai *fsl_ssi_dai; | 580 | struct snd_soc_dai *fsl_ssi_dai; |
581 | struct fsl_ssi_private *ssi_private; | 581 | struct fsl_ssi_private *ssi_private; |
582 | int ret = 0; | 582 | int ret = 0; |
583 | struct device_attribute *dev_attr; | 583 | struct device_attribute *dev_attr; |
@@ -588,7 +588,7 @@ struct snd_soc_cpu_dai *fsl_ssi_create_dai(struct fsl_ssi_info *ssi_info) | |||
588 | return NULL; | 588 | return NULL; |
589 | } | 589 | } |
590 | memcpy(&ssi_private->cpu_dai, &fsl_ssi_dai_template, | 590 | memcpy(&ssi_private->cpu_dai, &fsl_ssi_dai_template, |
591 | sizeof(struct snd_soc_cpu_dai)); | 591 | sizeof(struct snd_soc_dai)); |
592 | 592 | ||
593 | fsl_ssi_dai = &ssi_private->cpu_dai; | 593 | fsl_ssi_dai = &ssi_private->cpu_dai; |
594 | dev_attr = &ssi_private->dev_attr; | 594 | dev_attr = &ssi_private->dev_attr; |
@@ -623,11 +623,11 @@ struct snd_soc_cpu_dai *fsl_ssi_create_dai(struct fsl_ssi_info *ssi_info) | |||
623 | EXPORT_SYMBOL_GPL(fsl_ssi_create_dai); | 623 | EXPORT_SYMBOL_GPL(fsl_ssi_create_dai); |
624 | 624 | ||
625 | /** | 625 | /** |
626 | * fsl_ssi_destroy_dai: destroy the snd_soc_cpu_dai object | 626 | * fsl_ssi_destroy_dai: destroy the snd_soc_dai object |
627 | * | 627 | * |
628 | * This function undoes the operations of fsl_ssi_create_dai() | 628 | * This function undoes the operations of fsl_ssi_create_dai() |
629 | */ | 629 | */ |
630 | void fsl_ssi_destroy_dai(struct snd_soc_cpu_dai *fsl_ssi_dai) | 630 | void fsl_ssi_destroy_dai(struct snd_soc_dai *fsl_ssi_dai) |
631 | { | 631 | { |
632 | struct fsl_ssi_private *ssi_private = | 632 | struct fsl_ssi_private *ssi_private = |
633 | container_of(fsl_ssi_dai, struct fsl_ssi_private, cpu_dai); | 633 | container_of(fsl_ssi_dai, struct fsl_ssi_private, cpu_dai); |