13 May
2016
13 May
'16
2:26 p.m.
On Thu, May 12, 2016 at 05:54:37PM +0200, Petr Kulhavy wrote:
+static const struct snd_kcontrol_new wm8758_snd_controls[] = {
- SOC_SINGLE("Digital Loopback Switch", WM8985_COMPANDING_CONTROL,
0, 1, 0),
static const struct snd_kcontrol_new wm8985_snd_controls[] = { SOC_SINGLE("Digital Loopback Switch", WM8985_COMPANDING_CONTROL, 0, 1, 0),
Rather than completely duplicating the set of controls it is better to have one table with all the shared controls and then extra tables for those that are device specific that are registered in probe, that way we only define things once. The wm8904 driver provides an example of doing this sort of thing.