]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: hda: Fix compilation of snd_hdac_adsp_xxx() helpers
authorCezary Rojewski <cezary.rojewski@intel.com>
Fri, 10 Jan 2025 11:33:25 +0000 (12:33 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 10 Jan 2025 16:46:09 +0000 (17:46 +0100)
commit7579790915387396e26041ceafbc07348658edef
tree7bddb24bbbeb73fb3b407f88fb1c33405e45e263
parenta111aee82a8298343cdd2e1b95cc9b1dd68c4558
ALSA: hda: Fix compilation of snd_hdac_adsp_xxx() helpers

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>
include/sound/hdaudio_ext.h
sound/soc/intel/avs/apl.c
sound/soc/intel/avs/cnl.c
sound/soc/intel/avs/registers.h
sound/soc/intel/avs/skl.c