2 Oct
2014
2 Oct
'14
8:12 p.m.
On Fri, Sep 19, 2014 at 04:46:06PM +0530, Subhransu S. Prusty wrote:
+#define SST_MMX_DECLARE_MIX_CONTROLS(kctl_name) \
- static const struct snd_kcontrol_new kctl_name[] = { \
SOC_DAPM_SINGLE("media0_in", SND_SOC_NOPM, SST_IP_MEDIA0, 1, 0), \
SOC_DAPM_SINGLE("media1_in", SND_SOC_NOPM, SST_IP_MEDIA1, 1, 0), \
SOC_DAPM_SINGLE("media2_in", SND_SOC_NOPM, SST_IP_MEDIA2, 1, 0), \
SOC_DAPM_SINGLE("media3_in", SND_SOC_NOPM, SST_IP_MEDIA3, 1, 0), \
- }
These should be Switch controls?
- snd_soc_dapm_new_controls(dapm, sst_dapm_widgets,
ARRAY_SIZE(sst_dapm_widgets));
- snd_soc_dapm_add_routes(dapm, intercon,
ARRAY_SIZE(intercon));
- snd_soc_dapm_new_widgets(dapm->card);
We should be able to do this from the component but we can't yet...