• Pierre-Louis Bossart's avatar
    ASoC: add helper to change platform name for all dailinks · cb50358b
    Pierre-Louis Bossart authored
    To reuse the same machine drivers with Atom/SST, Skylake and SOF, we
    need to change the default platform_name (or platforms->name in the
    "modern" representation).
    
    So far, this override was done with an automatic override, which was
    broken by a set of changes for DT platforms related to deferred probe
    handling.
    
    This automatic override is actually not really needed, the machine
    driver can already receive the platform name as a platform_data
    parameter. This is used e.g. for HDaudio support where we have
    different PCI aliases used for different platforms. We can reuse the
    same mechanism and modify the machine drivers to override the dailinks
    prior to registrating the card.
    
    This will require additional work for SOF, but with this helper it'll
    be just two lines of additional code per machine driver which is
    reused, not the end of the world.
    
    This helper can be simplified when all drivers have transitioned to
    the "modern" representation of dailinks.
    Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    cb50358b
soc.h 55.6 KB