ASoC: Merge snd_soc_ops into snd_soc_dai_ops
Liam Girdwood's ASoC v2 work avoids having two different ops structures for DAIs by merging the members of struct snd_soc_ops into struct snd_soc_dai_ops, allowing per DAI configuration for everything. Backport this change. This paves the way for future work allowing any combination of DAIs to be connected rather than having fixed purpose CODEC and CPU DAIs and only allowing CODEC<->CPU interconnections. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
这个提交包含在:
@@ -1172,7 +1172,8 @@ static int wm8990_set_dai_clkdiv(struct snd_soc_dai *codec_dai,
|
||||
* Set PCM DAI bit size and sample rate.
|
||||
*/
|
||||
static int wm8990_hw_params(struct snd_pcm_substream *substream,
|
||||
struct snd_pcm_hw_params *params)
|
||||
struct snd_pcm_hw_params *params,
|
||||
struct snd_soc_dai *dai)
|
||||
{
|
||||
struct snd_soc_pcm_runtime *rtd = substream->private_data;
|
||||
struct snd_soc_device *socdev = rtd->socdev;
|
||||
@@ -1362,8 +1363,7 @@ struct snd_soc_dai wm8990_dai = {
|
||||
.rates = WM8990_RATES,
|
||||
.formats = WM8990_FORMATS,},
|
||||
.ops = {
|
||||
.hw_params = wm8990_hw_params,},
|
||||
.dai_ops = {
|
||||
.hw_params = wm8990_hw_params,
|
||||
.digital_mute = wm8990_mute,
|
||||
.set_fmt = wm8990_set_dai_fmt,
|
||||
.set_clkdiv = wm8990_set_dai_clkdiv,
|
||||
|
在新工单中引用
屏蔽一个用户