2011/12/12 Mark Brown broonie@opensource.wolfsonmicro.com:
On Mon, Dec 12, 2011 at 05:28:13PM +0900, Tomoya MORINAGA wrote:
struct snd_soc_ops { ... };
On the other hand, tegra_i2s.c describes like below.
static const struct snd_soc_dai_ops tegra_i2s_dai_ops = { ... };
Which is true as modern driver ? or case by case ?
The latter. With things like this it would be *really* helpful if you could take a step back and think about what the differences mean and why they are different.
Our driver needs ".pointer" method. However, "struct snd_soc_dai_ops" doesn't have the method. So, I think "struct snd_soc_dai_ops" cannot be applied to our driver. Searching other drivers, "blackfin/bf5xx-i2s-pcm.c" uses "struct snd_soc_ops" not "struct snd_soc_dai_ops". Let me know your opinion.
Thanks,
tomoya