ALSA: firewire-lib: allocate DMA buffer separately
[sfrench/cifs-2.6.git] / sound / firewire / iso-resources.h
index 9feb9f8d474585306d66cb6fd4c4669ee1f438c1..3f0730e4d84181771067199708f497146762d244 100644 (file)
@@ -24,11 +24,11 @@ struct fw_iso_resources {
        unsigned int bandwidth_overhead;
        int generation; /* in which allocation is valid */
        bool allocated;
-       __be32 buffer[2];
+       __be32 *buffer;
 };
 
-void fw_iso_resources_init(struct fw_iso_resources *r,
-                          struct fw_unit *unit);
+int fw_iso_resources_init(struct fw_iso_resources *r,
+                         struct fw_unit *unit);
 void fw_iso_resources_destroy(struct fw_iso_resources *r);
 
 int fw_iso_resources_allocate(struct fw_iso_resources *r,