mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
ASoC/SoundWire: Intel: lnl: enable interrupts after first power-up/before last power-down
The HDaudio mlink support makes it more logical to couple interrupt enabling/disabling with power-up/down sequences. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Acked-by: Vinod Koul <vkoul@kernel.org> Link: https://patch.msgid.link/20241007121241.30914-3-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
eac79786c7
commit
e0941775e6
@@ -175,6 +175,9 @@ static int intel_link_power_up(struct sdw_intel *sdw)
|
||||
__func__, ret);
|
||||
goto out;
|
||||
}
|
||||
|
||||
hdac_bus_eml_enable_interrupt_unlocked(sdw->link_res->hbus, true,
|
||||
AZX_REG_ML_LEPTR_ID_SDW, true);
|
||||
}
|
||||
|
||||
*shim_mask |= BIT(link_id);
|
||||
@@ -201,6 +204,10 @@ static int intel_link_power_down(struct sdw_intel *sdw)
|
||||
|
||||
*shim_mask &= ~BIT(link_id);
|
||||
|
||||
if (!*shim_mask)
|
||||
hdac_bus_eml_enable_interrupt_unlocked(sdw->link_res->hbus, true,
|
||||
AZX_REG_ML_LEPTR_ID_SDW, false);
|
||||
|
||||
ret = hdac_bus_eml_sdw_power_down_unlocked(sdw->link_res->hbus, link_id);
|
||||
if (ret < 0) {
|
||||
dev_err(sdw->cdns.dev, "%s: hdac_bus_eml_sdw_power_down failed: %d\n",
|
||||
|
||||
Reference in New Issue
Block a user