diff options
| author | Cezary Rojewski <cezary.rojewski@intel.com> | 2025-01-10 12:33:25 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-08 09:57:32 +0100 |
| commit | 8f6c2ed42e87980e3873112ba740dd587cf8d4d0 (patch) | |
| tree | 2110068789c0c7c00f7cdad4e2f4aaf43b0d9e99 /kernel/fail_function.c | |
| parent | 11ba17769eb51c646ff5992e0506d2a8383d9978 (diff) | |
| download | linux-8f6c2ed42e87980e3873112ba740dd587cf8d4d0.tar.gz linux-8f6c2ed42e87980e3873112ba740dd587cf8d4d0.tar.bz2 linux-8f6c2ed42e87980e3873112ba740dd587cf8d4d0.zip | |
ALSA: hda: Fix compilation of snd_hdac_adsp_xxx() helpers
[ Upstream commit 7579790915387396e26041ceafbc07348658edef ]
The snd_hdac_adsp_xxx() wrap snd_hdac_reg_xxx() helpers to simplify
register access for AudioDSP drivers e.g.: the avs-driver. Byte- and
word-variants of said helps do not expand to bare readx/writex()
operations but functions instead and, due to pointer type
incompatibility, cause compilation to fail.
As the macros are utilized by the avs-driver alone, relocate the code
introduced with commit c19bd02e9029 ("ALSA: hda: Add helper macros for
DSP capable devices") into the avs/ directory and update it to operate
on 'adev' i.e.: the avs-driver-context directly to fix the issue.
Fixes: c19bd02e9029 ("ALSA: hda: Add helper macros for DSP capable devices")
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20250110113326.3809897-2-cezary.rojewski@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/fail_function.c')
0 files changed, 0 insertions, 0 deletions
