diff options
| author | Nicolin Chen <nicoleotsuka@gmail.com> | 2015-02-14 20:22:49 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2015-02-24 09:46:13 -0500 |
| commit | f23e860edbb3f2208c0ab3448e756689bb4a3760 (patch) | |
| tree | 586003f1bfa289b5f9342893839deb4324ca8cbf /include | |
| parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) | |
ASoC: core: Add extra dapm properties for Device Tree
The current helper functions, snd_soc_of_parse_audio_simple_widgets()
and snd_soc_of_parse_audio_routing(), set dapm_widgets and dapm_routes
without caring if they are already set by using build-in widgets and
routes in the card driver. So there could be one of them, build-in one
or Device Tree one, overrided by the other depending on which one was
assigned later.
This patch adds an extra pair of dapm_widgets and dapm_routes for DT
use only so as to prevent unexpected overriding.
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/soc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 0d1ade195628..f66a1ef98a40 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
| @@ -1071,11 +1071,16 @@ struct snd_soc_card { | |||
| 1071 | 1071 | ||
| 1072 | /* | 1072 | /* |
| 1073 | * Card-specific routes and widgets. | 1073 | * Card-specific routes and widgets. |
| 1074 | * Note: of_dapm_xxx for Device Tree; Otherwise for driver build-in. | ||
| 1074 | */ | 1075 | */ |
| 1075 | const struct snd_soc_dapm_widget *dapm_widgets; | 1076 | const struct snd_soc_dapm_widget *dapm_widgets; |
| 1076 | int num_dapm_widgets; | 1077 | int num_dapm_widgets; |
| 1077 | const struct snd_soc_dapm_route *dapm_routes; | 1078 | const struct snd_soc_dapm_route *dapm_routes; |
| 1078 | int num_dapm_routes; | 1079 | int num_dapm_routes; |
| 1080 | const struct snd_soc_dapm_widget *of_dapm_widgets; | ||
| 1081 | int num_of_dapm_widgets; | ||
| 1082 | const struct snd_soc_dapm_route *of_dapm_routes; | ||
| 1083 | int num_of_dapm_routes; | ||
| 1079 | bool fully_routed; | 1084 | bool fully_routed; |
| 1080 | 1085 | ||
| 1081 | struct work_struct deferred_resume_work; | 1086 | struct work_struct deferred_resume_work; |
