diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-05-01 19:02:42 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-06 19:31:02 +0300 |
commit | 92fa12426741d52b39ec92ad77c9843d3fc2b3d6 (patch) | |
tree | 18f65f88bc363c4f40fec03db1a566731e51b724 /include/sound/soc-dapm.h | |
parent | 561ed680b764b288feeb74a24e1d9fb3da98ec7b (diff) | |
download | linux-92fa12426741d52b39ec92ad77c9843d3fc2b3d6.tar.xz |
ASoC: dapm: Add new widgets to the end of the widget list
Currently new widgets are appended to the beginning of the cards widget
list. This has the effect that widgets that are created while iterating
over the widget list in snd_soc_dapm_new_widgets() (like e.g. the
auto-disable widgets) are not covered during that invocation of the
function. If no further invocations of snd_soc_dapm_new_widgets() happen
these widgets will not be fully initialized and e.g. no debugfs entries are
created for them.
By adding new widgets to the end of the widget list we make sure that
widgets that are created in snd_soc_dapm_new_widgets() will still be
handled during the same snd_soc_dapm_new_widgets() invocation and are
always fully initialized.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc-dapm.h')
0 files changed, 0 insertions, 0 deletions