ASoC: Add snd_soc_kcontrol_platform() helper function
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 18 Mar 2014 08:02:05 +0000 (09:02 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 14 Apr 2014 16:22:43 +0000 (17:22 +0100)
commitf6272ff8a5f42c614f4a338013f5323979121e0f
tree3234194eddb26577f3fa1c8e2ea720fe6c005a97
parentea53bf77d147e7e560ac007fdaa30fb98c37c712
ASoC: Add snd_soc_kcontrol_platform() helper function

For platform controls snd_kcontrol_chip() currently returns a pointer to the
platform that registered the control. With the upcoming consolidation of
platform and CODEC controls this will change. Prepare for this by introducing
the snd_soc_kcontrol_platform() helper function that will hide the
implementation details of how the platform for a control can be obtained. This
will allow us to change this easily in the future.

The patch also updates all platforms to use this new helper function.

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