]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sst-haswell-pcm: Move controls and DAPM elements to component
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 20 Aug 2014 11:08:48 +0000 (13:08 +0200)
committerMark Brown <broonie@linaro.org>
Sat, 6 Sep 2014 13:44:33 +0000 (14:44 +0100)
commitab138d18fb88baaf8295e9da9ca437b770caba07
tree45f6103eb1890dde470fd46c114dbcb4aaeacd3e
parenta1dffa303aee8cf6d897ab940e03e3451d4a418a
ASoC: sst-haswell-pcm: Move controls and DAPM elements to component

The sst-haswell-pcm driver registers both a snd_soc_component and a
snd_soc_platform and expects that the DAPM widgets for the DAIs registered by
component are added to the DAPM context of the platform. This requires us to
have a hack in the ASoC core which does so. Moving the DAPM elements over to
the component allows us to remove this hack.

While we are at it also move the controls over to the component. The controls
don't need the platform for anything other than snd_soc_platform_get_drvdata(),
this can easily be replaced by snd_soc_component_get_drvdata(). As the long
term goal is to register only a single component this is a step in the right
direction.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/intel/sst-haswell-pcm.c