// 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 "debug.h"11#include "registers.h"1213int avs_lnl_core_stall(struct avs_dev *adev, u32 core_mask, bool stall)14{15struct hdac_bus *bus = &adev->base.core;16struct hdac_ext_link *hlink;17int ret;1819ret = avs_mtl_core_stall(adev, core_mask, stall);2021/* On unstall, route interrupts from the links to the DSP firmware. */22if (!ret && !stall)23list_for_each_entry(hlink, &bus->hlink_list, list)24snd_hdac_updatel(hlink->ml_addr, AZX_REG_ML_LCTL, AZX_ML_LCTL_OFLEN,25AZX_ML_LCTL_OFLEN);26return ret;27}282930