diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-07-29 11:13:57 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-29 13:40:59 -0400 |
commit | eee5d7f99ae95059e1a3d1cfa2dea3ed8dbd94ac (patch) | |
tree | 438cc363a91ee9ddb6ca0584f30e80e476323ac3 /include/sound | |
parent | 95dd5cd6e16d86786f7dc9da404ae477403d8f83 (diff) |
ASoC: dapm: Add a helper to get the CODEC for DAPM kcontrol
We use the same 3 lines to get the CODEC for a kcontrol in a quite a few places.
This patch puts them into a common helper function. Having this encapsulated in
a helper function will also make it more easier to eventually change the data
layout of the kcontrol's private data.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc-dapm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index 3397292d94c8..ebfae8f3fda7 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -427,6 +427,8 @@ void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm); | |||
427 | int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream, | 427 | int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream, |
428 | struct snd_soc_dapm_widget_list **list); | 428 | struct snd_soc_dapm_widget_list **list); |
429 | 429 | ||
430 | struct snd_soc_codec *snd_soc_dapm_kcontrol_codec(struct snd_kcontrol *kcontrol); | ||
431 | |||
430 | /* dapm widget types */ | 432 | /* dapm widget types */ |
431 | enum snd_soc_dapm_type { | 433 | enum snd_soc_dapm_type { |
432 | snd_soc_dapm_input = 0, /* input pin */ | 434 | snd_soc_dapm_input = 0, /* input pin */ |