Lines Matching +full:30 +full:v
28 /* reserve all 30 voices for loading */ in snd_emu8000_open_dma()
35 EMU8000_VTFT_WRITE(emu, 30, 0); in snd_emu8000_open_dma()
36 EMU8000_PSST_WRITE(emu, 30, 0x1d8); in snd_emu8000_open_dma()
37 EMU8000_CSL_WRITE(emu, 30, 0x1e0); in snd_emu8000_open_dma()
38 EMU8000_CCCA_WRITE(emu, 30, 0x1d8); in snd_emu8000_open_dma()
152 truesize = sp->v.size; in snd_emu8000_sample_new()
153 if (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP|SNDRV_SFNT_SAMPLE_REVERSE_LOOP)) in snd_emu8000_sample_new()
154 truesize += sp->v.loopend - sp->v.loopstart; in snd_emu8000_sample_new()
155 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_NO_BLANK) in snd_emu8000_sample_new()
164 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS) { in snd_emu8000_sample_new()
165 if (!access_ok(data, sp->v.size)) in snd_emu8000_sample_new()
168 if (!access_ok(data, sp->v.size * 2)) in snd_emu8000_sample_new()
177 sp->v.truesize = truesize * 2; /* in bytes */ in snd_emu8000_sample_new()
200 for (i = 0; i < sp->v.size; i++) { in snd_emu8000_sample_new()
203 s = read_word(data, offset, sp->v.mode_flags); in snd_emu8000_sample_new()
212 if (i == sp->v.loopend && in snd_emu8000_sample_new()
213 (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP|SNDRV_SFNT_SAMPLE_REVERSE_LOOP))) in snd_emu8000_sample_new()
215 int looplen = sp->v.loopend - sp->v.loopstart; in snd_emu8000_sample_new()
220 s = read_word(data, offset - k, sp->v.mode_flags); in snd_emu8000_sample_new()
223 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_BIDIR_LOOP) { in snd_emu8000_sample_new()
224 sp->v.loopend += looplen; in snd_emu8000_sample_new()
226 sp->v.loopstart += looplen; in snd_emu8000_sample_new()
227 sp->v.loopend += looplen; in snd_emu8000_sample_new()
229 sp->v.end += looplen; in snd_emu8000_sample_new()
234 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_NO_BLANK) { in snd_emu8000_sample_new()
238 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_SINGLESHOT) { in snd_emu8000_sample_new()
239 sp->v.loopstart = sp->v.end + BLANK_LOOP_START; in snd_emu8000_sample_new()
240 sp->v.loopend = sp->v.end + BLANK_LOOP_END; in snd_emu8000_sample_new()
245 sp->v.start += dram_start; in snd_emu8000_sample_new()
246 sp->v.end += dram_start; in snd_emu8000_sample_new()
247 sp->v.loopstart += dram_start; in snd_emu8000_sample_new()
248 sp->v.loopend += dram_start; in snd_emu8000_sample_new()