aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/sb/emu8000_patch.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/isa/sb/emu8000_patch.c')
-rw-r--r--sound/isa/sb/emu8000_patch.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/sound/isa/sb/emu8000_patch.c b/sound/isa/sb/emu8000_patch.c
index 2fea67e71c78..80b1cf84a1ae 100644
--- a/sound/isa/sb/emu8000_patch.c
+++ b/sound/isa/sb/emu8000_patch.c
@@ -32,7 +32,7 @@ MODULE_PARM_DESC(emu8000_reset_addr, "reset write address at each time (makes sl
32 * Open up channels. 32 * Open up channels.
33 */ 33 */
34static int 34static int
35snd_emu8000_open_dma(emu8000_t *emu, int write) 35snd_emu8000_open_dma(struct snd_emu8000 *emu, int write)
36{ 36{
37 int i; 37 int i;
38 38
@@ -59,7 +59,7 @@ snd_emu8000_open_dma(emu8000_t *emu, int write)
59 * Close all dram channels. 59 * Close all dram channels.
60 */ 60 */
61static void 61static void
62snd_emu8000_close_dma(emu8000_t *emu) 62snd_emu8000_close_dma(struct snd_emu8000 *emu)
63{ 63{
64 int i; 64 int i;
65 65
@@ -106,7 +106,7 @@ read_word(const void __user *buf, int offset, int mode)
106/* 106/*
107 */ 107 */
108static void 108static void
109snd_emu8000_write_wait(emu8000_t *emu) 109snd_emu8000_write_wait(struct snd_emu8000 *emu)
110{ 110{
111 while ((EMU8000_SMALW_READ(emu) & 0x80000000) != 0) { 111 while ((EMU8000_SMALW_READ(emu) & 0x80000000) != 0) {
112 schedule_timeout_interruptible(1); 112 schedule_timeout_interruptible(1);
@@ -128,7 +128,7 @@ snd_emu8000_write_wait(emu8000_t *emu)
128 * working. 128 * working.
129 */ 129 */
130static inline void 130static inline void
131write_word(emu8000_t *emu, int *offset, unsigned short data) 131write_word(struct snd_emu8000 *emu, int *offset, unsigned short data)
132{ 132{
133 if (emu8000_reset_addr) { 133 if (emu8000_reset_addr) {
134 if (emu8000_reset_addr > 1) 134 if (emu8000_reset_addr > 1)
@@ -144,15 +144,16 @@ write_word(emu8000_t *emu, int *offset, unsigned short data)
144 * the generic soundfont routines as a callback. 144 * the generic soundfont routines as a callback.
145 */ 145 */
146int 146int
147snd_emu8000_sample_new(snd_emux_t *rec, snd_sf_sample_t *sp, 147snd_emu8000_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp,
148 snd_util_memhdr_t *hdr, const void __user *data, long count) 148 struct snd_util_memhdr *hdr,
149 const void __user *data, long count)
149{ 150{
150 int i; 151 int i;
151 int rc; 152 int rc;
152 int offset; 153 int offset;
153 int truesize; 154 int truesize;
154 int dram_offset, dram_start; 155 int dram_offset, dram_start;
155 emu8000_t *emu; 156 struct snd_emu8000 *emu;
156 157
157 emu = rec->hw; 158 emu = rec->hw;
158 snd_assert(sp != NULL, return -EINVAL); 159 snd_assert(sp != NULL, return -EINVAL);
@@ -282,7 +283,8 @@ snd_emu8000_sample_new(snd_emux_t *rec, snd_sf_sample_t *sp,
282 * free a sample block 283 * free a sample block
283 */ 284 */
284int 285int
285snd_emu8000_sample_free(snd_emux_t *rec, snd_sf_sample_t *sp, snd_util_memhdr_t *hdr) 286snd_emu8000_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp,
287 struct snd_util_memhdr *hdr)
286{ 288{
287 if (sp->block) { 289 if (sp->block) {
288 snd_util_mem_free(hdr, sp->block); 290 snd_util_mem_free(hdr, sp->block);
@@ -296,7 +298,7 @@ snd_emu8000_sample_free(snd_emux_t *rec, snd_sf_sample_t *sp, snd_util_memhdr_t
296 * sample_reset callback - terminate voices 298 * sample_reset callback - terminate voices
297 */ 299 */
298void 300void
299snd_emu8000_sample_reset(snd_emux_t *rec) 301snd_emu8000_sample_reset(struct snd_emux *rec)
300{ 302{
301 snd_emux_terminate_all(rec); 303 snd_emux_terminate_all(rec);
302} 304}