mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
soundwire: intel_init: use eml_lock parameter
Now that the ASoC/SOF/HDAudio parts has retrieved the mutex and set the parameter, we can use it to share the same synchronization across the two domains. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20230515071042.2038-10-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
be1798d0d7
commit
e52cae0bb4
@ -69,18 +69,19 @@ static struct sdw_intel_link_dev *intel_link_dev_register(struct sdw_intel_res *
|
||||
link->ip_offset = 0;
|
||||
link->shim = res->mmio_base + res->shim_base;
|
||||
link->alh = res->mmio_base + res->alh_base;
|
||||
link->shim_lock = &ctx->shim_lock;
|
||||
} else {
|
||||
link->registers = res->mmio_base + SDW_IP_BASE(link_id);
|
||||
link->ip_offset = SDW_CADENCE_MCP_IP_OFFSET;
|
||||
link->shim = res->mmio_base + SDW_SHIM2_GENERIC_BASE(link_id);
|
||||
link->shim_vs = res->mmio_base + SDW_SHIM2_VS_BASE(link_id);
|
||||
link->shim_lock = res->eml_lock;
|
||||
}
|
||||
|
||||
link->ops = res->ops;
|
||||
link->dev = res->dev;
|
||||
|
||||
link->clock_stop_quirks = res->clock_stop_quirks;
|
||||
link->shim_lock = &ctx->shim_lock;
|
||||
link->shim_mask = &ctx->shim_mask;
|
||||
link->link_mask = ctx->link_mask;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user