aboutsummaryrefslogtreecommitdiff
path: root/drivers/soundwire
diff options
context:
space:
mode:
authorPierre-Louis Bossart2020-09-01 23:05:52 +0800
committerVinod Koul2020-09-03 16:14:39 +0530
commit94eed66107ffabdf9c07a922bfcd7e396fe83053 (patch)
treef7ca9282a9037c12a32a55cd270644d27892d8ab /drivers/soundwire
parent88d7c71ea5b29b322d9c72103a196234cb5040db (diff)
soundwire: intel: add multi-link hw_synchronization information
set the flags as required by hardware implementation Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20200901150556.19432-7-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire')
-rw-r--r--drivers/soundwire/intel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c
index 8634d33c388c..272826973426 100644
--- a/drivers/soundwire/intel.c
+++ b/drivers/soundwire/intel.c
@@ -1400,7 +1400,14 @@ int intel_master_startup(struct platform_device *pdev)
dev_dbg(dev, "Multi-link is disabled\n");
bus->multi_link = false;
} else {
+ /*
+ * hardware-based synchronization is required regardless
+ * of the number of segments used by a stream: SSP-based
+ * synchronization is gated by gsync when the multi-master
+ * mode is set.
+ */
bus->multi_link = true;
+ bus->hw_sync_min_links = 1;
}
/* Initialize shim, controller */