Home
last modified time | relevance | path

Searched refs:woinst (Results 1 – 5 of 5) sorted by relevance

/linux-2.4.37.9/drivers/sound/emu10k1/
Dcardwo.c49 struct woinst *woinst = wave_dev->woinst; in query_format() local
58 woinst->num_voices = 1; in query_format()
60 woinst->num_voices = wave_fmt->channels; in query_format()
91 if (i < 0 || j < 0 || woinst->state != WAVE_STATE_CLOSED || in query_format()
120 static int get_voice(struct emu10k1_card *card, struct woinst *woinst, unsigned int voicenum) in get_voice() argument
122 struct emu_voice *voice = &woinst->voice[voicenum]; in get_voice()
130 if (woinst->format.channels == 2) in get_voice()
133 if (woinst->format.bitsperchannel == 16) in get_voice()
142 voice->initial_pitch = (u16) (srToPitch(woinst->format.samplingrate) >> 8); in get_voice()
143 voice->pitch_target = samplerate_to_linearpitch(woinst->format.samplingrate); in get_voice()
[all …]
Daudio.c53 static void calculate_ofrag(struct woinst *);
147 struct woinst *woinst = wave_dev->woinst; in emu10k1_audio_write() local
159 spin_lock_irqsave(&woinst->lock, flags); in emu10k1_audio_write()
161 if (woinst->mmapped) { in emu10k1_audio_write()
162 spin_unlock_irqrestore(&woinst->lock, flags); in emu10k1_audio_write()
166 if (woinst->format.passthrough) { in emu10k1_audio_write()
169 woinst->buffer.ossfragshift = PT_BLOCKSIZE_LOG2; in emu10k1_audio_write()
170 woinst->buffer.numfrags = PT_BLOCKCOUNT; in emu10k1_audio_write()
171 calculate_ofrag(woinst); in emu10k1_audio_write()
174 spin_unlock_irqrestore(&woinst->lock, flags); in emu10k1_audio_write()
[all …]
Dcardwo.h63 struct woinst struct
84 void emu10k1_waveout_getxfersize(struct woinst*, u32 *); argument
85 void emu10k1_waveout_xferdata(struct woinst*, u8*, u32 *);
86 void emu10k1_waveout_fillsilence(struct woinst*);
88 void emu10k1_waveout_update(struct woinst*);
Dpassthrough.c86 struct woinst *woinst = wave_dev->woinst; in pt_putblock() local
104 woinst->total_copied += PT_BLOCKSIZE; in pt_putblock()
226 struct woinst *woinst = wave_dev->woinst; in emu10k1_pt_waveout_update() local
237 woinst->total_played = pt->blocks_played * woinst->buffer.fragment_size + pos; in emu10k1_pt_waveout_update()
238 woinst->buffer.hw_pos = pos; in emu10k1_pt_waveout_update()
Daudio.h40 struct woinst *woinst; member