Skip to content
  • Jeeja KP's avatar
    ASoC: Intel: Skylake: Add support for deferred DSP module bind · b8c722dd
    Jeeja KP authored
    
    
    Module at the end of DSP pipeline that needs to be connected to a module
    in another pipeline are represented as a PGA(leaf node) and in PGA event
    handler these modules are bound/unbounded. Modules other than PGA leaf
    can be connected directly or via switch to a module in another pipeline.
    Example: reference path.
    
    To support the deferred DSP module bind, following changes are done:
    o When the path is enabled, the destination module that needs to be
    bound may not be initialized. If the module is not initialized, add
    these modules in a deferred bind list.
    o When the destination module is initialized, check for these modules
    in deferred bind list. If found, bind them.
    o When the destination module is deleted, Unbind the modules.
    o When the source module is deleted, remove the entry from the deferred
    bind list.
    
    Signed-off-by: default avatarJeeja KP <jeeja.kp@intel.com>
    Acked-by: default avatarVinod Koul <vinod.koul@intel.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    b8c722dd