aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8400.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-03-11 12:51:31 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-03-11 12:51:31 -0400
commit65ec1cd1e2c6228752d2f167b01e6d291014d249 (patch)
tree8a54ef7d2a0d4770b49779114f9e1ac654363bdd /sound/soc/codecs/wm8400.c
parent5314adc3612d893c7cc526b3312d124805e45bc3 (diff)
parent6335d05548eece40092000aa91b64a50310d69d5 (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/wm8400.c')
-rw-r--r--sound/soc/codecs/wm8400.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c
index 9cb73d9d023d..4e1cefff8483 100644
--- a/sound/soc/codecs/wm8400.c
+++ b/sound/soc/codecs/wm8400.c
@@ -1210,6 +1210,14 @@ static int wm8400_set_bias_level(struct snd_soc_codec *codec,
1210#define WM8400_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ 1210#define WM8400_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
1211 SNDRV_PCM_FMTBIT_S24_LE) 1211 SNDRV_PCM_FMTBIT_S24_LE)
1212 1212
1213static struct snd_soc_dai_ops wm8400_dai_ops = {
1214 .hw_params = wm8400_hw_params,
1215 .digital_mute = wm8400_mute,
1216 .set_fmt = wm8400_set_dai_fmt,
1217 .set_clkdiv = wm8400_set_dai_clkdiv,
1218 .set_sysclk = wm8400_set_dai_sysclk,
1219};
1220
1213/* 1221/*
1214 * The WM8400 supports 2 different and mutually exclusive DAI 1222 * The WM8400 supports 2 different and mutually exclusive DAI
1215 * configurations. 1223 * configurations.
@@ -1235,13 +1243,7 @@ struct snd_soc_dai wm8400_dai = {
1235 .rates = WM8400_RATES, 1243 .rates = WM8400_RATES,
1236 .formats = WM8400_FORMATS, 1244 .formats = WM8400_FORMATS,
1237 }, 1245 },
1238 .ops = { 1246 .ops = &wm8400_dai_ops,
1239 .hw_params = wm8400_hw_params,
1240 .digital_mute = wm8400_mute,
1241 .set_fmt = wm8400_set_dai_fmt,
1242 .set_clkdiv = wm8400_set_dai_clkdiv,
1243 .set_sysclk = wm8400_set_dai_sysclk,
1244 },
1245}; 1247};
1246EXPORT_SYMBOL_GPL(wm8400_dai); 1248EXPORT_SYMBOL_GPL(wm8400_dai);
1247 1249