summaryrefslogtreecommitdiff
path: root/sound/pci/ctxfi/ctvmem.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-06-02 15:26:19 +0200
committerTakashi Iwai <tiwai@suse.de>2009-06-02 15:54:47 +0200
commitc76157d9286ed598c241c212aa5a3c6e5107bd82 (patch)
treea08d4b06184bf37ee55a20e30f9c66a43cee37c2 /sound/pci/ctxfi/ctvmem.h
parentcd391e206f486955e216a61bd9ebcb0e142122e9 (diff)
ALSA: ctxfi - Support SG-buffers
Use SG-buffers instead of contiguous pages. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi/ctvmem.h')
-rw-r--r--sound/pci/ctxfi/ctvmem.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/ctxfi/ctvmem.h b/sound/pci/ctxfi/ctvmem.h
index 17d2d37a9ea7..01e4fd0386a3 100644
--- a/sound/pci/ctxfi/ctvmem.h
+++ b/sound/pci/ctxfi/ctvmem.h
@@ -37,6 +37,8 @@ struct ct_vm_block {
struct list_head list;
};
+struct snd_pcm_substream;
+
/* Virtual memory management object for card device */
struct ct_vm {
void *ptp[CT_PTP_NUM]; /* Device page table pages */
@@ -46,7 +48,8 @@ struct ct_vm {
struct mutex lock;
/* Map host addr (kmalloced/vmalloced) to device logical addr. */
- struct ct_vm_block *(*map)(struct ct_vm *, void *host_addr, int size);
+ struct ct_vm_block *(*map)(struct ct_vm *, struct snd_pcm_substream *,
+ int size);
/* Unmap device logical addr area. */
void (*unmap)(struct ct_vm *, struct ct_vm_block *block);
void *(*get_ptp_virt)(struct ct_vm *vm, int index);