// SPDX-License-Identifier: GPL-2.0-only1/*2* Copyright(c) 2021-2025 Intel Corporation3*4* Authors: Cezary Rojewski <[email protected]>5* Amadeusz Slawinski <[email protected]>6*/78#include <sound/hdaudio_ext.h>9#include "avs.h"10#include "registers.h"1112int avs_lnl_core_stall(struct avs_dev *adev, u32 core_mask, bool stall)13{14struct hdac_bus *bus = &adev->base.core;15struct hdac_ext_link *hlink;16int ret;1718ret = avs_mtl_core_stall(adev, core_mask, stall);1920/* On unstall, route interrupts from the links to the DSP firmware. */21if (!ret && !stall)22list_for_each_entry(hlink, &bus->hlink_list, list)23snd_hdac_updatel(hlink->ml_addr, AZX_REG_ML_LCTL, AZX_ML_LCTL_OFLEN,24AZX_ML_LCTL_OFLEN);25return ret;26}272829