Lines Matching +full:2 +full:v
40 if (sp->v.size == 0) { in snd_emu10k1_sample_new()
42 "emu: rom font for sample %d\n", sp->v.sample); in snd_emu10k1_sample_new()
47 sp->v.end -= sp->v.start; in snd_emu10k1_sample_new()
48 sp->v.loopstart -= sp->v.start; in snd_emu10k1_sample_new()
49 sp->v.loopend -= sp->v.start; in snd_emu10k1_sample_new()
50 sp->v.start = 0; in snd_emu10k1_sample_new()
53 sampleend = sp->v.end; in snd_emu10k1_sample_new()
54 if (sampleend > sp->v.size) in snd_emu10k1_sample_new()
55 sampleend = sp->v.size; in snd_emu10k1_sample_new()
56 loopend = sp->v.loopend; in snd_emu10k1_sample_new()
61 if (sp->v.loopstart >= sp->v.loopend) in snd_emu10k1_sample_new()
62 swap(sp->v.loopstart, sp->v.loopend); in snd_emu10k1_sample_new()
65 truesize = sp->v.size + BLANK_HEAD_SIZE; in snd_emu10k1_sample_new()
68 if (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP|SNDRV_SFNT_SAMPLE_REVERSE_LOOP)) in snd_emu10k1_sample_new()
69 loopsize = sp->v.loopend - sp->v.loopstart; in snd_emu10k1_sample_new()
72 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_NO_BLANK) in snd_emu10k1_sample_new()
77 if (! (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS)) in snd_emu10k1_sample_new()
78 blocksize *= 2; in snd_emu10k1_sample_new()
87 sp->v.truesize = blocksize; in snd_emu10k1_sample_new()
92 if (! (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS)) in snd_emu10k1_sample_new()
93 size *= 2; in snd_emu10k1_sample_new()
101 if (! (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS)) in snd_emu10k1_sample_new()
102 size *= 2; in snd_emu10k1_sample_new()
115 if (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP|SNDRV_SFNT_SAMPLE_REVERSE_LOOP)) { in snd_emu10k1_sample_new()
117 if (! (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS)) { in snd_emu10k1_sample_new()
120 woffset = offset / 2; in snd_emu10k1_sample_new()
121 if (offset + loopsize * 2 > blocksize) in snd_emu10k1_sample_new()
125 offset += loopsize * 2; in snd_emu10k1_sample_new()
135 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_BIDIR_LOOP) { in snd_emu10k1_sample_new()
136 sp->v.loopend += loopsize; in snd_emu10k1_sample_new()
138 sp->v.loopstart += loopsize; in snd_emu10k1_sample_new()
139 sp->v.loopend += loopsize; in snd_emu10k1_sample_new()
142 sp->v.end += loopsize; in snd_emu10k1_sample_new()
147 size = sp->v.size - loopend; in snd_emu10k1_sample_new()
150 if (! (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS)) in snd_emu10k1_sample_new()
151 size *= 2; in snd_emu10k1_sample_new()
163 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_NO_BLANK) { in snd_emu10k1_sample_new()
165 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_SINGLESHOT) { in snd_emu10k1_sample_new()
166 sp->v.loopstart = sp->v.end + BLANK_LOOP_START; in snd_emu10k1_sample_new()
167 sp->v.loopend = sp->v.end + BLANK_LOOP_END; in snd_emu10k1_sample_new()
172 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_UNSIGNED) { in snd_emu10k1_sample_new()
174 if (! (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS)) { in snd_emu10k1_sample_new()
186 start_addr = BLANK_HEAD_SIZE * 2; in snd_emu10k1_sample_new()
187 if (! (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS)) in snd_emu10k1_sample_new()
189 sp->v.start += start_addr; in snd_emu10k1_sample_new()
190 sp->v.end += start_addr; in snd_emu10k1_sample_new()
191 sp->v.loopstart += start_addr; in snd_emu10k1_sample_new()
192 sp->v.loopend += start_addr; in snd_emu10k1_sample_new()