diff options
| author | Joakim Zhang <joakim.zhang@cixtech.com> | 2025-12-05 23:46:20 +0800 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2025-12-07 13:13:20 +0100 |
| commit | a4f2fa516e83f11c3792405599613c12efe6135e (patch) | |
| tree | 230858e36476f4129350bf816bea9317df5edd41 /include | |
| parent | 85a6544777e0f57cce902f7217a377eb74b7d1a4 (diff) | |
ALSA: hda/core: add addr_offset field for bus address translation
Add bus addr_offset field for dma address translation,
for some SoCs such as CIX SKY1 which is ARM64 Arch, HOST
and HDAC has different memory view, so need to do dma address
translation between HOST and HDAC.
Signed-off-by: Joakim Zhang <joakim.zhang@cixtech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20251205154621.3019640-3-joakim.zhang@cixtech.com
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/hdaudio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index 4e0c1d8af09f..f11bfc6b9f42 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h @@ -380,6 +380,9 @@ struct hdac_bus { /* factor used to derive STRIPE control value */ unsigned int sdo_limit; + + /* address offset between host and hadc */ + dma_addr_t addr_offset; }; int snd_hdac_bus_init(struct hdac_bus *bus, struct device *dev, |
