ASoC: soc-dapm: Introduce the new snd_soc_dapm_virt_mux type
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Thu, 16 Dec 2010 15:53:39 +0000 (15:53 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 17 Dec 2010 17:36:28 +0000 (17:36 +0000)
commit24ff33ac696802e478714480f505c00a50a89c75
tree3b2e9d3232331b556b2f4cb423dae1ead5565e0c
parent1ec9bc35a6a01555836fa1e4d0f00a3501835b0b
ASoC: soc-dapm: Introduce the new snd_soc_dapm_virt_mux type

This new type is a virtual version of snd_soc_dapm_mux.  It is used
when a backing register value is not necessary for deciding which
input path to connect.  A simple virtual enumeration control e.g.
SOC_DAPM_ENUM_VIRT() can be exposed to userspace which will be used
to choose which path to connect.

The snd_soc_dapm_virt_mux type ensures that during the initial
path setup, the first (which is also the default) input path will
be connected.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc-dapm.h
sound/soc/soc-dapm.c