diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-06-02 09:26:19 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-06-02 09:54:47 -0400 |
commit | c76157d9286ed598c241c212aa5a3c6e5107bd82 (patch) | |
tree | a08d4b06184bf37ee55a20e30f9c66a43cee37c2 /sound/pci/ctxfi/ctvmem.h | |
parent | cd391e206f486955e216a61bd9ebcb0e142122e9 (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.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/ctxfi/ctvmem.h b/sound/pci/ctxfi/ctvmem.h index 17d2d37a9ea..01e4fd0386a 100644 --- a/sound/pci/ctxfi/ctvmem.h +++ b/sound/pci/ctxfi/ctvmem.h | |||
@@ -37,6 +37,8 @@ struct ct_vm_block { | |||
37 | struct list_head list; | 37 | struct list_head list; |
38 | }; | 38 | }; |
39 | 39 | ||
40 | struct snd_pcm_substream; | ||
41 | |||
40 | /* Virtual memory management object for card device */ | 42 | /* Virtual memory management object for card device */ |
41 | struct ct_vm { | 43 | struct ct_vm { |
42 | void *ptp[CT_PTP_NUM]; /* Device page table pages */ | 44 | void *ptp[CT_PTP_NUM]; /* Device page table pages */ |
@@ -46,7 +48,8 @@ struct ct_vm { | |||
46 | struct mutex lock; | 48 | struct mutex lock; |
47 | 49 | ||
48 | /* Map host addr (kmalloced/vmalloced) to device logical addr. */ | 50 | /* Map host addr (kmalloced/vmalloced) to device logical addr. */ |
49 | struct ct_vm_block *(*map)(struct ct_vm *, void *host_addr, int size); | 51 | struct ct_vm_block *(*map)(struct ct_vm *, struct snd_pcm_substream *, |
52 | int size); | ||
50 | /* Unmap device logical addr area. */ | 53 | /* Unmap device logical addr area. */ |
51 | void (*unmap)(struct ct_vm *, struct ct_vm_block *block); | 54 | void (*unmap)(struct ct_vm *, struct ct_vm_block *block); |
52 | void *(*get_ptp_virt)(struct ct_vm *vm, int index); | 55 | void *(*get_ptp_virt)(struct ct_vm *vm, int index); |