diff options
author | Nikesh Oswal <nikesh@opensource.wolfsonmicro.com> | 2015-02-02 17:06:44 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-17 22:54:54 +0000 |
commit | c66150824b8a809a502fd833fa9b18082cd89a39 (patch) | |
tree | 312992852d07ce536b600cdf9da91a067c31d1c9 /include/sound/soc-dapm.h | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) | |
download | talos-obmc-linux-c66150824b8a809a502fd833fa9b18082cd89a39.tar.gz talos-obmc-linux-c66150824b8a809a502fd833fa9b18082cd89a39.zip |
ASoC: dapm: add code to configure dai link parameters
dai-link params for codec-codec links were fixed. The fixed
link between codec and another chip which may be another codec,
baseband, bluetooth codec etc may require run time configuaration
changes. This change provides an optional alsa control to select
one of the params from a list of params.
Signed-off-by: Nikesh Oswal <nikesh@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc-dapm.h')
-rw-r--r-- | include/sound/soc-dapm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index 8d7416e46861..eda881402dda 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h @@ -378,6 +378,7 @@ int snd_soc_dapm_link_dai_widgets(struct snd_soc_card *card); void snd_soc_dapm_connect_dai_link_widgets(struct snd_soc_card *card); int snd_soc_dapm_new_pcm(struct snd_soc_card *card, const struct snd_soc_pcm_stream *params, + unsigned int num_params, struct snd_soc_dapm_widget *source, struct snd_soc_dapm_widget *sink); @@ -531,6 +532,8 @@ struct snd_soc_dapm_widget { void *priv; /* widget specific data */ struct regulator *regulator; /* attached regulator */ const struct snd_soc_pcm_stream *params; /* params for dai links */ + unsigned int num_params; /* number of params for dai links */ + unsigned int params_select; /* currently selected param for dai link */ /* dapm control */ int reg; /* negative reg = no direct dapm */ |