diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-03-11 12:51:31 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-03-11 12:51:31 -0400 |
commit | 65ec1cd1e2c6228752d2f167b01e6d291014d249 (patch) | |
tree | 8a54ef7d2a0d4770b49779114f9e1ac654363bdd /sound/soc/codecs/wm8580.c | |
parent | 5314adc3612d893c7cc526b3312d124805e45bc3 (diff) | |
parent | 6335d05548eece40092000aa91b64a50310d69d5 (diff) |
ASoC: Merge dai_ops factor out
Merge Eric Maio's patch to merge snd_soc_dai_ops out of line. Fixed
merge issues and updated drivers, plus an issue with the ops for the two
s3c2443 AC97 DAIs having been merged.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8580.c')
-rw-r--r-- | sound/soc/codecs/wm8580.c | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/sound/soc/codecs/wm8580.c b/sound/soc/codecs/wm8580.c index 6cab82a9c9d7..27f9e231bf69 100644 --- a/sound/soc/codecs/wm8580.c +++ b/sound/soc/codecs/wm8580.c | |||
@@ -769,6 +769,21 @@ static int wm8580_set_bias_level(struct snd_soc_codec *codec, | |||
769 | #define WM8580_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ | 769 | #define WM8580_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ |
770 | SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE) | 770 | SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE) |
771 | 771 | ||
772 | static struct snd_soc_dai_ops wm8580_dai_ops_playback = { | ||
773 | .hw_params = wm8580_paif_hw_params, | ||
774 | .set_fmt = wm8580_set_paif_dai_fmt, | ||
775 | .set_clkdiv = wm8580_set_dai_clkdiv, | ||
776 | .set_pll = wm8580_set_dai_pll, | ||
777 | .digital_mute = wm8580_digital_mute, | ||
778 | }; | ||
779 | |||
780 | static struct snd_soc_dai_ops wm8580_dai_ops_capture = { | ||
781 | .hw_params = wm8580_paif_hw_params, | ||
782 | .set_fmt = wm8580_set_paif_dai_fmt, | ||
783 | .set_clkdiv = wm8580_set_dai_clkdiv, | ||
784 | .set_pll = wm8580_set_dai_pll, | ||
785 | }; | ||
786 | |||
772 | struct snd_soc_dai wm8580_dai[] = { | 787 | struct snd_soc_dai wm8580_dai[] = { |
773 | { | 788 | { |
774 | .name = "WM8580 PAIFRX", | 789 | .name = "WM8580 PAIFRX", |
@@ -780,13 +795,7 @@ struct snd_soc_dai wm8580_dai[] = { | |||
780 | .rates = SNDRV_PCM_RATE_8000_192000, | 795 | .rates = SNDRV_PCM_RATE_8000_192000, |
781 | .formats = WM8580_FORMATS, | 796 | .formats = WM8580_FORMATS, |
782 | }, | 797 | }, |
783 | .ops = { | 798 | .ops = &wm8580_dai_ops_playback, |
784 | .hw_params = wm8580_paif_hw_params, | ||
785 | .set_fmt = wm8580_set_paif_dai_fmt, | ||
786 | .set_clkdiv = wm8580_set_dai_clkdiv, | ||
787 | .set_pll = wm8580_set_dai_pll, | ||
788 | .digital_mute = wm8580_digital_mute, | ||
789 | }, | ||
790 | }, | 799 | }, |
791 | { | 800 | { |
792 | .name = "WM8580 PAIFTX", | 801 | .name = "WM8580 PAIFTX", |
@@ -798,12 +807,7 @@ struct snd_soc_dai wm8580_dai[] = { | |||
798 | .rates = SNDRV_PCM_RATE_8000_192000, | 807 | .rates = SNDRV_PCM_RATE_8000_192000, |
799 | .formats = WM8580_FORMATS, | 808 | .formats = WM8580_FORMATS, |
800 | }, | 809 | }, |
801 | .ops = { | 810 | .ops = &wm8580_dai_ops_capture, |
802 | .hw_params = wm8580_paif_hw_params, | ||
803 | .set_fmt = wm8580_set_paif_dai_fmt, | ||
804 | .set_clkdiv = wm8580_set_dai_clkdiv, | ||
805 | .set_pll = wm8580_set_dai_pll, | ||
806 | }, | ||
807 | }, | 811 | }, |
808 | }; | 812 | }; |
809 | EXPORT_SYMBOL_GPL(wm8580_dai); | 813 | EXPORT_SYMBOL_GPL(wm8580_dai); |