• Lars-Peter Clausen's avatar
    ASoC: Add snd_soc_kcontrol_platform() helper function · f6272ff8
    Lars-Peter Clausen authored
    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: default avatarLars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: default avatarMark Brown <broonie@linaro.org>
    f6272ff8
sst-haswell-pcm.c 23.1 KB