diff options
author | Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> | 2023-09-29 14:24:32 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-09-29 15:17:52 +0300 |
commit | 7eb878e768fd952739a03bf4bbd021496a818eb9 (patch) | |
tree | 20b4d6a9e47bb5731d6985ce5e6925d0c0c36cd4 /sound/soc/intel/avs/messages.h | |
parent | 26033ae6bd896d89aac4a3194ceb5dc673ce9214 (diff) | |
download | linux-7eb878e768fd952739a03bf4bbd021496a818eb9.tar.xz |
ASoC: Intel: avs: Use generic size defines
Instead of using PAGE_SIZE as base of definitions in headers, use
generic size defines. While x86 platforms use 4096 as page size, there
are platforms which use different page sizes. Two of changed defines are
for memory windows on DSP side, which have fixed size independent of
host side page size. Another one is for CLDMA buffer which also doesn't
need to change with page size.
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20230929112436.787058-3-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/avs/messages.h')
-rw-r--r-- | sound/soc/intel/avs/messages.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/intel/avs/messages.h b/sound/soc/intel/avs/messages.h index 7f23a304b4a9..d0344e242e5b 100644 --- a/sound/soc/intel/avs/messages.h +++ b/sound/soc/intel/avs/messages.h @@ -9,9 +9,11 @@ #ifndef __SOUND_SOC_INTEL_AVS_MSGS_H #define __SOUND_SOC_INTEL_AVS_MSGS_H +#include <linux/sizes.h> + struct avs_dev; -#define AVS_MAILBOX_SIZE 4096 +#define AVS_MAILBOX_SIZE SZ_4K enum avs_msg_target { AVS_FW_GEN_MSG = 0, |