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>
This commit is contained in:
@@ -554,6 +554,14 @@ static int wm8510_set_bias_level(struct snd_soc_codec *codec,
|
||||
#define WM8510_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
|
||||
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
|
||||
|
||||
static struct snd_soc_dai_ops wm8510_dai_ops = {
|
||||
.hw_params = wm8510_pcm_hw_params,
|
||||
.digital_mute = wm8510_mute,
|
||||
.set_fmt = wm8510_set_dai_fmt,
|
||||
.set_clkdiv = wm8510_set_dai_clkdiv,
|
||||
.set_pll = wm8510_set_dai_pll,
|
||||
};
|
||||
|
||||
struct snd_soc_dai wm8510_dai = {
|
||||
.name = "WM8510 HiFi",
|
||||
.playback = {
|
||||
@@ -568,13 +576,7 @@ struct snd_soc_dai wm8510_dai = {
|
||||
.channels_max = 2,
|
||||
.rates = WM8510_RATES,
|
||||
.formats = WM8510_FORMATS,},
|
||||
.ops = {
|
||||
.hw_params = wm8510_pcm_hw_params,
|
||||
.digital_mute = wm8510_mute,
|
||||
.set_fmt = wm8510_set_dai_fmt,
|
||||
.set_clkdiv = wm8510_set_dai_clkdiv,
|
||||
.set_pll = wm8510_set_dai_pll,
|
||||
},
|
||||
.ops = &wm8510_dai_ops,
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(wm8510_dai);
|
||||
|
||||
|
Reference in New Issue
Block a user