aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/cs46xx_dsp_spos.h6
-rw-r--r--include/sound/pcm.h38
-rw-r--r--include/sound/sb.h1
3 files changed, 43 insertions, 2 deletions
diff --git a/include/sound/cs46xx_dsp_spos.h b/include/sound/cs46xx_dsp_spos.h
index 7c44667e79a6..49b03c9e5e55 100644
--- a/include/sound/cs46xx_dsp_spos.h
+++ b/include/sound/cs46xx_dsp_spos.h
@@ -118,9 +118,11 @@ struct dsp_scb_descriptor {
118 118
119 struct snd_info_entry *proc_info; 119 struct snd_info_entry *proc_info;
120 int ref_count; 120 int ref_count;
121 spinlock_t lock;
122 121
123 int deleted; 122 u16 volume[2];
123 unsigned int deleted :1;
124 unsigned int updated :1;
125 unsigned int volume_set :1;
124}; 126};
125 127
126struct dsp_task_descriptor { 128struct dsp_task_descriptor {
diff --git a/include/sound/pcm.h b/include/sound/pcm.h
index e26fb3c58037..1d4ca2aae50d 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -913,6 +913,44 @@ int snd_pcm_lib_preallocate_pages_for_all(struct snd_pcm *pcm,
913int snd_pcm_lib_malloc_pages(struct snd_pcm_substream *substream, size_t size); 913int snd_pcm_lib_malloc_pages(struct snd_pcm_substream *substream, size_t size);
914int snd_pcm_lib_free_pages(struct snd_pcm_substream *substream); 914int snd_pcm_lib_free_pages(struct snd_pcm_substream *substream);
915 915
916int _snd_pcm_lib_alloc_vmalloc_buffer(struct snd_pcm_substream *substream,
917 size_t size, gfp_t gfp_flags);
918int snd_pcm_lib_free_vmalloc_buffer(struct snd_pcm_substream *substream);
919struct page *snd_pcm_lib_get_vmalloc_page(struct snd_pcm_substream *substream,
920 unsigned long offset);
921#if 0 /* for kernel-doc */
922/**
923 * snd_pcm_lib_alloc_vmalloc_buffer - allocate virtual DMA buffer
924 * @substream: the substream to allocate the buffer to
925 * @size: the requested buffer size, in bytes
926 *
927 * Allocates the PCM substream buffer using vmalloc(), i.e., the memory is
928 * contiguous in kernel virtual space, but not in physical memory. Use this
929 * if the buffer is accessed by kernel code but not by device DMA.
930 *
931 * Returns 1 if the buffer was changed, 0 if not changed, or a negative error
932 * code.
933 */
934static int snd_pcm_lib_alloc_vmalloc_buffer
935 (struct snd_pcm_substream *substream, size_t size);
936/**
937 * snd_pcm_lib_alloc_vmalloc_32_buffer - allocate 32-bit-addressable buffer
938 * @substream: the substream to allocate the buffer to
939 * @size: the requested buffer size, in bytes
940 *
941 * This function works like snd_pcm_lib_alloc_vmalloc_buffer(), but uses
942 * vmalloc_32(), i.e., the pages are allocated from 32-bit-addressable memory.
943 */
944static int snd_pcm_lib_alloc_vmalloc_32_buffer
945 (struct snd_pcm_substream *substream, size_t size);
946#endif
947#define snd_pcm_lib_alloc_vmalloc_buffer(subs, size) \
948 _snd_pcm_lib_alloc_vmalloc_buffer \
949 (subs, size, GFP_KERNEL | __GFP_HIGHMEM | __GFP_ZERO)
950#define snd_pcm_lib_alloc_vmalloc_32_buffer(subs, size) \
951 _snd_pcm_lib_alloc_vmalloc_buffer \
952 (subs, size, GFP_KERNEL | GFP_DMA32 | __GFP_ZERO)
953
916#ifdef CONFIG_SND_DMA_SGBUF 954#ifdef CONFIG_SND_DMA_SGBUF
917/* 955/*
918 * SG-buffer handling 956 * SG-buffer handling
diff --git a/include/sound/sb.h b/include/sound/sb.h
index 4e62ee1e4115..95353542256a 100644
--- a/include/sound/sb.h
+++ b/include/sound/sb.h
@@ -33,6 +33,7 @@ enum sb_hw_type {
33 SB_HW_20, 33 SB_HW_20,
34 SB_HW_201, 34 SB_HW_201,
35 SB_HW_PRO, 35 SB_HW_PRO,
36 SB_HW_JAZZ16, /* Media Vision Jazz16 */
36 SB_HW_16, 37 SB_HW_16,
37 SB_HW_16CSP, /* SB16 with CSP chip */ 38 SB_HW_16CSP, /* SB16 with CSP chip */
38 SB_HW_ALS100, /* Avance Logic ALS100 chip */ 39 SB_HW_ALS100, /* Avance Logic ALS100 chip */