[alsa-devel] [PATCH v7 5/7] ASoC: Intel: mrfld: add the DSP DAPM widgets

Mark Brown broonie at kernel.org
Thu Oct 2 20:12:28 CEST 2014


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...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20141002/3b8f0bda/attachment.sig>


More information about the Alsa-devel mailing list