Skip to content

Commit 7ba1863

Browse files
plbossartvinodkoul
authored andcommitted
soundwire: intel_ace2x: add check_cmdsync_unlocked helper
This is the last callback needed for all bus management routines on new hardware. Same concept as before, just different register. 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-19-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent b8e39bc commit 7ba1863

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/soundwire/intel_ace2x.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ static int intel_sync_go(struct sdw_intel *sdw)
186186
return ret;
187187
}
188188

189+
static bool intel_check_cmdsync_unlocked(struct sdw_intel *sdw)
190+
{
191+
return hdac_bus_eml_sdw_check_cmdsync_unlocked(sdw->link_res->hbus);
192+
}
193+
189194
/*
190195
* DAI operations
191196
*/
@@ -366,6 +371,7 @@ const struct sdw_intel_hw_ops sdw_intel_lnl_hw_ops = {
366371
.sync_arm = intel_sync_arm,
367372
.sync_go_unlocked = intel_sync_go_unlocked,
368373
.sync_go = intel_sync_go,
374+
.sync_check_cmdsync_unlocked = intel_check_cmdsync_unlocked,
369375
};
370376
EXPORT_SYMBOL_NS(sdw_intel_lnl_hw_ops, SOUNDWIRE_INTEL);
371377

0 commit comments

Comments
 (0)