mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
![Gaosheng Cui](/assets/img/avatar_default.png)
snd_dma_sg_ops has been removed since
commit 2c95b92ecd
("ALSA: memalloc: Unify x86 SG-buffer handling
(take#3)"), so remove it.
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Link: https://lore.kernel.org/r/20220909035443.1065737-3-cuigaosheng1@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 lines
654 B
C
16 lines
654 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
#ifndef __MEMALLOC_LOCAL_H
|
|
#define __MEMALLOC_LOCAL_H
|
|
|
|
struct snd_malloc_ops {
|
|
void *(*alloc)(struct snd_dma_buffer *dmab, size_t size);
|
|
void (*free)(struct snd_dma_buffer *dmab);
|
|
dma_addr_t (*get_addr)(struct snd_dma_buffer *dmab, size_t offset);
|
|
struct page *(*get_page)(struct snd_dma_buffer *dmab, size_t offset);
|
|
unsigned int (*get_chunk_size)(struct snd_dma_buffer *dmab,
|
|
unsigned int ofs, unsigned int size);
|
|
int (*mmap)(struct snd_dma_buffer *dmab, struct vm_area_struct *area);
|
|
void (*sync)(struct snd_dma_buffer *dmab, enum snd_dma_sync_mode mode);
|
|
};
|
|
|
|
#endif /* __MEMALLOC_LOCAL_H */
|