diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2011-03-15 02:55:50 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-03-15 03:42:28 -0400 |
commit | 5b2599a07eaee53d713fb68f5343eba88fa249c0 (patch) | |
tree | 43cd8d7bebd8b1d9f86ca8f2db69d985da82e94f /sound/firewire/iso-resources.h | |
parent | be454366324b31922a2460c63c65d5e3cebe9641 (diff) |
ALSA: firewire-lib: allocate DMA buffer separately
For correct cache coherency on some architectures, DMA buffers must be
allocated in a different cache line than data that is concurrently used
by the CPU.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/iso-resources.h')
-rw-r--r-- | sound/firewire/iso-resources.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/firewire/iso-resources.h b/sound/firewire/iso-resources.h index 9feb9f8d4745..3f0730e4d841 100644 --- a/sound/firewire/iso-resources.h +++ b/sound/firewire/iso-resources.h | |||
@@ -24,11 +24,11 @@ struct fw_iso_resources { | |||
24 | unsigned int bandwidth_overhead; | 24 | unsigned int bandwidth_overhead; |
25 | int generation; /* in which allocation is valid */ | 25 | int generation; /* in which allocation is valid */ |
26 | bool allocated; | 26 | bool allocated; |
27 | __be32 buffer[2]; | 27 | __be32 *buffer; |
28 | }; | 28 | }; |
29 | 29 | ||
30 | void fw_iso_resources_init(struct fw_iso_resources *r, | 30 | int fw_iso_resources_init(struct fw_iso_resources *r, |
31 | struct fw_unit *unit); | 31 | struct fw_unit *unit); |
32 | void fw_iso_resources_destroy(struct fw_iso_resources *r); | 32 | void fw_iso_resources_destroy(struct fw_iso_resources *r); |
33 | 33 | ||
34 | int fw_iso_resources_allocate(struct fw_iso_resources *r, | 34 | int fw_iso_resources_allocate(struct fw_iso_resources *r, |