Symbol: voice
drivers/accessibility/speakup/speakup_apollo.c
212
module_param_named(voice, vars[VOICE_ID].u.n.default_val, int, 0444);
drivers/accessibility/speakup/speakup_apollo.c
223
MODULE_PARM_DESC(voice, "Set the voice variable on load.");
drivers/accessibility/speakup/speakup_apollo.c
66
__ATTR(voice, 0644, spk_var_show, spk_var_store);
drivers/accessibility/speakup/speakup_decext.c
242
module_param_named(voice, vars[VOICE_ID].u.n.default_val, int, 0444);
drivers/accessibility/speakup/speakup_decext.c
254
MODULE_PARM_DESC(voice, "Set the voice variable on load.");
drivers/accessibility/speakup/speakup_decext.c
79
__ATTR(voice, 0644, spk_var_show, spk_var_store);
drivers/accessibility/speakup/speakup_decpc.c
177
__ATTR(voice, 0644, spk_var_show, spk_var_store);
drivers/accessibility/speakup/speakup_decpc.c
502
module_param_named(voice, vars[VOICE_ID].u.n.default_val, int, 0444);
drivers/accessibility/speakup/speakup_decpc.c
514
MODULE_PARM_DESC(voice, "Set the voice variable on load.");
drivers/accessibility/speakup/speakup_dectlk.c
322
module_param_named(voice, vars[VOICE_ID].u.n.default_val, int, 0444);
drivers/accessibility/speakup/speakup_dectlk.c
335
MODULE_PARM_DESC(voice, "Set the voice variable on load.");
drivers/accessibility/speakup/speakup_dectlk.c
80
__ATTR(voice, 0644, spk_var_show, spk_var_store);
drivers/accessibility/speakup/speakup_dtlk.c
394
module_param_named(voice, vars[VOICE_ID].u.n.default_val, int, 0444);
drivers/accessibility/speakup/speakup_dtlk.c
406
MODULE_PARM_DESC(voice, "Set the voice variable on load.");
drivers/accessibility/speakup/speakup_dtlk.c
82
__ATTR(voice, 0644, spk_var_show, spk_var_store);
drivers/accessibility/speakup/speakup_ltlk.c
179
module_param_named(voice, vars[VOICE_ID].u.n.default_val, int, 0444);
drivers/accessibility/speakup/speakup_ltlk.c
194
MODULE_PARM_DESC(voice, "Set the voice variable on load.");
drivers/accessibility/speakup/speakup_ltlk.c
64
__ATTR(voice, 0644, spk_var_show, spk_var_store);
drivers/accessibility/speakup/speakup_soft.c
470
module_param_named(voice, vars[VOICE_ID].u.n.default_val, int, 0444);
drivers/accessibility/speakup/speakup_soft.c
483
MODULE_PARM_DESC(voice, "Sets the voice used by the synthesizer.");
drivers/accessibility/speakup/speakup_soft.c
82
__ATTR(voice, 0644, spk_var_show, spk_var_store);
drivers/net/wireless/realtek/rtw89/coex.c
3641
u8 voice: 1;
drivers/net/wireless/realtek/rtw89/coex.c
8107
else if (btinfo.hb1.voice)
include/sound/emu10k1.h
1831
void snd_emu10k1_voice_init(struct snd_emu10k1 * emu, int voice);
include/sound/emux_synth.h
226
void snd_emux_lock_voice(struct snd_emux *emu, int voice);
include/sound/emux_synth.h
227
void snd_emux_unlock_voice(struct snd_emux *emu, int voice);
include/sound/gus.h
250
void (*handler_wave) (struct snd_gus_card * gus, struct snd_gus_voice * voice);
include/sound/gus.h
251
void (*handler_volume) (struct snd_gus_card * gus, struct snd_gus_voice * voice);
include/sound/gus.h
252
void (*handler_effect) (struct snd_gus_card * gus, struct snd_gus_voice * voice);
include/sound/gus.h
277
void (*private_free)(struct snd_gus_voice *voice);
include/sound/gus.h
436
static inline void snd_gf1_select_voice(struct snd_gus_card * gus, int voice)
include/sound/gus.h
441
if (voice != gus->gf1.active_voice) {
include/sound/gus.h
442
gus->gf1.active_voice = voice;
include/sound/gus.h
443
outb(voice, GUSP(gus, GF1PAGE));
include/sound/gus.h
548
void snd_gf1_smart_stop_voice(struct snd_gus_card * gus, unsigned short voice);
include/sound/gus.h
549
void snd_gf1_stop_voice(struct snd_gus_card * gus, unsigned short voice);
include/sound/gus.h
552
void snd_gf1_free_voice(struct snd_gus_card * gus, struct snd_gus_voice *voice);
include/uapi/linux/soundcard.h
1205
#define SEQ_V2_X_CONTROL(dev, voice, controller, value) {_SEQ_NEEDBUF(8);\
include/uapi/linux/soundcard.h
1209
_seqbuf[_seqbufptr+3] = (voice);\
include/uapi/linux/soundcard.h
1219
#define SEQ_PITCHBEND(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value)
include/uapi/linux/soundcard.h
1220
#define SEQ_BENDER_RANGE(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value)
include/uapi/linux/soundcard.h
1221
#define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128)
include/uapi/linux/soundcard.h
1222
#define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/100)
include/uapi/linux/soundcard.h
1223
#define SEQ_PANNING(dev, voice, pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2)
include/uapi/linux/ultrasound.h
100
#define GUS_VOLUME_SCALE(chn, voice, p1, p2) _GUS_CMD(chn, voice, _GUS_VOLUME_SCALE, (p1), (p2))
include/uapi/linux/ultrasound.h
101
#define GUS_VOICE_POS(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICE_POS, \
include/uapi/linux/ultrasound.h
76
#define _GUS_CMD(chn, voice, cmd, p1, p2) \
include/uapi/linux/ultrasound.h
79
_seqbuf[_seqbufptr+3] = voice;\
include/uapi/linux/ultrasound.h
85
#define GUS_VOICESAMPLE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICESAMPLE, (p1), 0) /* OBSOLETE */
include/uapi/linux/ultrasound.h
86
#define GUS_VOICEON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEON, (p1), 0)
include/uapi/linux/ultrasound.h
87
#define GUS_VOICEOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEOFF, 0, 0)
include/uapi/linux/ultrasound.h
88
#define GUS_VOICEFADE(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEFADE, 0, 0)
include/uapi/linux/ultrasound.h
89
#define GUS_VOICEMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEMODE, (p1), 0)
include/uapi/linux/ultrasound.h
90
#define GUS_VOICEBALA(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEBALA, (p1), 0)
include/uapi/linux/ultrasound.h
91
#define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \
include/uapi/linux/ultrasound.h
93
#define GUS_VOICEVOL(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEVOL, (p1), 0)
include/uapi/linux/ultrasound.h
94
#define GUS_VOICEVOL2(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEVOL2, (p1), 0)
include/uapi/linux/ultrasound.h
95
#define GUS_RAMPRANGE(chn, voice, low, high) _GUS_CMD(chn, voice, _GUS_RAMPRANGE, (low), (high))
include/uapi/linux/ultrasound.h
96
#define GUS_RAMPRATE(chn, voice, p1, p2) _GUS_CMD(chn, voice, _GUS_RAMPRATE, (p1), (p2))
include/uapi/linux/ultrasound.h
97
#define GUS_RAMPMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_RAMPMODE, (p1), 0)
include/uapi/linux/ultrasound.h
98
#define GUS_RAMPON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_RAMPON, (p1), 0)
include/uapi/linux/ultrasound.h
99
#define GUS_RAMPOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_RAMPOFF, 0, 0)
include/uapi/sound/asound_fm.h
29
unsigned char voice; /* FM voice (0 to 17) */
include/uapi/sound/asound_fm.h
57
unsigned char voice; /* 0-17 voice channel */
net/bluetooth/sco.c
1134
struct bt_voice voice;
net/bluetooth/sco.c
1168
voice.setting = sco_pi(sk)->setting;
net/bluetooth/sco.c
1170
len = min_t(unsigned int, len, sizeof(voice));
net/bluetooth/sco.c
1171
if (copy_to_user(optval, (char *)&voice, len))
net/bluetooth/sco.c
935
struct bt_voice voice;
net/bluetooth/sco.c
970
voice.setting = sco_pi(sk)->setting;
net/bluetooth/sco.c
972
err = copy_safe_from_sockptr(&voice, sizeof(voice), optval,
net/bluetooth/sco.c
977
sco_pi(sk)->setting = voice.setting;
sound/drivers/opl3/opl3_drums.c
105
unsigned char voice_offset = data->voice;
sound/drivers/opl3/opl3_drums.c
124
unsigned char op_offset = snd_opl3_regmap[data->voice][data->op];
sound/drivers/opl3/opl3_drums.c
125
unsigned char voice_offset = data->voice;
sound/drivers/opl3/opl3_drums.c
33
int voice;
sound/drivers/opl3/opl3_drums.c
44
int voice;
sound/drivers/opl3/opl3_drums.c
70
unsigned char op_offset = snd_opl3_regmap[data->voice][data->op];
sound/drivers/opl3/opl3_drums.c
71
unsigned char voice_offset = data->voice;
sound/drivers/opl3/opl3_midi.c
117
static void debug_alloc(struct snd_opl3 *opl3, char *s, int voice)
sound/drivers/opl3/opl3_midi.c
127
opl3->use_time, s, voice, buf);
sound/drivers/opl3/opl3_midi.c
155
int voice;
sound/drivers/opl3/opl3_midi.c
161
best[i].voice = -1;
sound/drivers/opl3/opl3_midi.c
209
bp->voice = i;
sound/drivers/opl3/opl3_midi.c
214
if (best[i].voice >= 0) {
sound/drivers/opl3/opl3_midi.c
219
best[i].voice);
sound/drivers/opl3/opl3_midi.c
221
return best[i].voice;
sound/drivers/opl3/opl3_midi.c
287
int voice;
sound/drivers/opl3/opl3_midi.c
366
voice = opl3_get_voice(opl3, instr_4op, chan);
sound/drivers/opl3/opl3_midi.c
369
voice = snd_opl3_oss_map[chan->number];
sound/drivers/opl3/opl3_midi.c
372
if (voice < 0)
sound/drivers/opl3/opl3_midi.c
375
if (voice < MAX_OPL2_VOICES) {
sound/drivers/opl3/opl3_midi.c
378
voice_offset = voice;
sound/drivers/opl3/opl3_midi.c
383
voice_offset = voice - MAX_OPL2_VOICES;
sound/drivers/opl3/opl3_midi.c
388
vp = &opl3->voices[voice];
sound/drivers/opl3/opl3_midi.c
395
vp2 = &opl3->voices[voice + 3];
sound/drivers/opl3/opl3_midi.c
527
opl3->voices[voice].keyon_reg = blocknum;
sound/drivers/opl3/opl3_midi.c
532
opl3_dbg(opl3, " --> trigger voice %i\n", voice);
sound/drivers/opl3/opl3_midi.c
539
opl3->voices[voice].note_off = jiffies +
sound/drivers/opl3/opl3_midi.c
542
opl3->voices[voice].note_off_check = 1;
sound/drivers/opl3/opl3_midi.c
544
opl3->voices[voice].note_off_check = 0;
sound/drivers/opl3/opl3_midi.c
557
vp2 = &opl3->voices[voice + 3];
sound/drivers/opl3/opl3_midi.c
565
vp2 = &opl3->voices[voice + 3];
sound/drivers/opl3/opl3_midi.c
573
debug_alloc(opl3, "note on ", voice);
sound/drivers/opl3/opl3_midi.c
591
static void snd_opl3_kill_voice(struct snd_opl3 *opl3, int voice)
sound/drivers/opl3/opl3_midi.c
599
if (snd_BUG_ON(voice >= MAX_OPL3_VOICES))
sound/drivers/opl3/opl3_midi.c
602
vp = &opl3->voices[voice];
sound/drivers/opl3/opl3_midi.c
603
if (voice < MAX_OPL2_VOICES) {
sound/drivers/opl3/opl3_midi.c
606
voice_offset = voice;
sound/drivers/opl3/opl3_midi.c
610
voice_offset = voice - MAX_OPL2_VOICES;
sound/drivers/opl3/opl3_midi.c
614
opl3_dbg(opl3, " --> kill voice %i\n", voice);
sound/drivers/opl3/opl3_midi.c
623
vp2 = &opl3->voices[voice + 3];
sound/drivers/opl3/opl3_midi.c
630
debug_alloc(opl3, "note off", voice);
sound/drivers/opl3/opl3_midi.c
643
int voice;
sound/drivers/opl3/opl3_midi.c
658
for (voice = 0; voice < opl3->max_voices; voice++) {
sound/drivers/opl3/opl3_midi.c
659
vp = &opl3->voices[voice];
sound/drivers/opl3/opl3_midi.c
661
snd_opl3_kill_voice(opl3, voice);
sound/drivers/opl3/opl3_midi.c
667
voice = snd_opl3_oss_map[chan->number];
sound/drivers/opl3/opl3_midi.c
668
snd_opl3_kill_voice(opl3, voice);
sound/drivers/opl3/opl3_midi.c
700
static void snd_opl3_update_pitch(struct snd_opl3 *opl3, int voice)
sound/drivers/opl3/opl3_midi.c
710
if (snd_BUG_ON(voice >= MAX_OPL3_VOICES))
sound/drivers/opl3/opl3_midi.c
713
vp = &opl3->voices[voice];
sound/drivers/opl3/opl3_midi.c
717
if (voice < MAX_OPL2_VOICES) {
sound/drivers/opl3/opl3_midi.c
720
voice_offset = voice;
sound/drivers/opl3/opl3_midi.c
724
voice_offset = voice - MAX_OPL2_VOICES;
sound/drivers/opl3/opl3_midi.c
750
int voice;
sound/drivers/opl3/opl3_midi.c
756
for (voice = 0; voice < opl3->max_voices; voice++) {
sound/drivers/opl3/opl3_midi.c
757
vp = &opl3->voices[voice];
sound/drivers/opl3/opl3_midi.c
759
snd_opl3_update_pitch(opl3, voice);
sound/drivers/opl3/opl3_midi.c
765
voice = snd_opl3_oss_map[chan->number];
sound/drivers/opl3/opl3_midi.c
766
snd_opl3_update_pitch(opl3, voice);
sound/drivers/opl3/opl3_synth.c
126
struct snd_dm_fm_voice voice;
sound/drivers/opl3/opl3_synth.c
127
if (copy_from_user(&voice, argp, sizeof(struct snd_dm_fm_voice)))
sound/drivers/opl3/opl3_synth.c
129
return snd_opl3_set_voice(opl3, &voice);
sound/drivers/opl3/opl3_synth.c
398
if (note->voice >= ((opl3->fm_mode == SNDRV_DM_FM_MODE_OPL3) ?
sound/drivers/opl3/opl3_synth.c
403
if (note->voice < MAX_OPL2_VOICES) {
sound/drivers/opl3/opl3_synth.c
406
voice_offset = note->voice;
sound/drivers/opl3/opl3_synth.c
410
voice_offset = note->voice - MAX_OPL2_VOICES;
sound/drivers/opl3/opl3_synth.c
435
static int snd_opl3_set_voice(struct snd_opl3 * opl3, struct snd_dm_fm_voice * voice)
sound/drivers/opl3/opl3_synth.c
445
if (voice->op > 1)
sound/drivers/opl3/opl3_synth.c
449
if (voice->voice >= ((opl3->fm_mode == SNDRV_DM_FM_MODE_OPL3) ?
sound/drivers/opl3/opl3_synth.c
454
if (voice->voice < MAX_OPL2_VOICES) {
sound/drivers/opl3/opl3_synth.c
457
voice_offset = voice->voice;
sound/drivers/opl3/opl3_synth.c
461
voice_offset = voice->voice - MAX_OPL2_VOICES;
sound/drivers/opl3/opl3_synth.c
465
voice_op = array_index_nospec(voice->op, 4);
sound/drivers/opl3/opl3_synth.c
470
if (voice->am)
sound/drivers/opl3/opl3_synth.c
473
if (voice->vibrato)
sound/drivers/opl3/opl3_synth.c
476
if (voice->do_sustain)
sound/drivers/opl3/opl3_synth.c
479
if (voice->kbd_scale)
sound/drivers/opl3/opl3_synth.c
482
reg_val |= voice->harmonic & OPL3_MULTIPLE_MASK;
sound/drivers/opl3/opl3_synth.c
489
reg_val = (voice->scale_level << 6) & OPL3_KSL_MASK;
sound/drivers/opl3/opl3_synth.c
491
reg_val |= ~voice->volume & OPL3_TOTAL_LEVEL_MASK;
sound/drivers/opl3/opl3_synth.c
498
reg_val = (voice->attack << 4) & OPL3_ATTACK_MASK;
sound/drivers/opl3/opl3_synth.c
500
reg_val |= voice->decay & OPL3_DECAY_MASK;
sound/drivers/opl3/opl3_synth.c
507
reg_val = (voice->sustain << 4) & OPL3_SUSTAIN_MASK;
sound/drivers/opl3/opl3_synth.c
509
reg_val |= voice->release & OPL3_RELEASE_MASK;
sound/drivers/opl3/opl3_synth.c
516
reg_val = (voice->feedback << 1) & OPL3_FEEDBACK_MASK;
sound/drivers/opl3/opl3_synth.c
518
if (voice->connection)
sound/drivers/opl3/opl3_synth.c
522
if (voice->left)
sound/drivers/opl3/opl3_synth.c
524
if (voice->right)
sound/drivers/opl3/opl3_synth.c
532
reg_val = voice->waveform & OPL3_WAVE_SELECT_MASK;
sound/drivers/opl3/opl3_synth.c
61
static int snd_opl3_set_voice(struct snd_opl3 * opl3, struct snd_dm_fm_voice * voice);
sound/drivers/opl4/opl4_synth.c
310
void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice))
sound/drivers/opl4/opl4_synth.c
313
struct opl4_voice *voice;
sound/drivers/opl4/opl4_synth.c
317
voice = &opl4->voices[i];
sound/drivers/opl4/opl4_synth.c
318
if (voice->chan == chan && voice->note == note) {
sound/drivers/opl4/opl4_synth.c
319
func(opl4, voice);
sound/drivers/opl4/opl4_synth.c
329
void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice))
sound/drivers/opl4/opl4_synth.c
332
struct opl4_voice *voice;
sound/drivers/opl4/opl4_synth.c
336
voice = &opl4->voices[i];
sound/drivers/opl4/opl4_synth.c
337
if (voice->chan == chan) {
sound/drivers/opl4/opl4_synth.c
338
func(opl4, voice);
sound/drivers/opl4/opl4_synth.c
347
void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice))
sound/drivers/opl4/opl4_synth.c
350
struct opl4_voice *voice;
sound/drivers/opl4/opl4_synth.c
354
voice = &opl4->voices[i];
sound/drivers/opl4/opl4_synth.c
355
if (voice->chan)
sound/drivers/opl4/opl4_synth.c
356
func(opl4, voice);
sound/drivers/opl4/opl4_synth.c
360
static void snd_opl4_update_volume(struct snd_opl4 *opl4, struct opl4_voice *voice)
sound/drivers/opl4/opl4_synth.c
364
att = voice->sound->tone_attenuate;
sound/drivers/opl4/opl4_synth.c
366
att += snd_opl4_volume_table[voice->chan->gm_volume & 0x7f];
sound/drivers/opl4/opl4_synth.c
367
att += snd_opl4_volume_table[voice->chan->gm_expression & 0x7f];
sound/drivers/opl4/opl4_synth.c
368
att += snd_opl4_volume_table[voice->velocity];
sound/drivers/opl4/opl4_synth.c
369
att = 0x7f - (0x7f - att) * (voice->sound->volume_factor) / 0xfe - volume_boost;
sound/drivers/opl4/opl4_synth.c
374
snd_opl4_write(opl4, OPL4_REG_LEVEL + voice->number,
sound/drivers/opl4/opl4_synth.c
375
(att << 1) | voice->level_direct);
sound/drivers/opl4/opl4_synth.c
376
voice->level_direct = 0;
sound/drivers/opl4/opl4_synth.c
379
static void snd_opl4_update_pan(struct snd_opl4 *opl4, struct opl4_voice *voice)
sound/drivers/opl4/opl4_synth.c
381
int pan = voice->sound->panpot;
sound/drivers/opl4/opl4_synth.c
383
if (!voice->chan->drum_channel)
sound/drivers/opl4/opl4_synth.c
384
pan += (voice->chan->control[MIDI_CTL_MSB_PAN] - 0x40) >> 3;
sound/drivers/opl4/opl4_synth.c
389
voice->reg_misc = (voice->reg_misc & ~OPL4_PAN_POT_MASK)
sound/drivers/opl4/opl4_synth.c
391
snd_opl4_write(opl4, OPL4_REG_MISC + voice->number, voice->reg_misc);
sound/drivers/opl4/opl4_synth.c
395
struct opl4_voice *voice)
sound/drivers/opl4/opl4_synth.c
399
if (voice->chan->drum_channel)
sound/drivers/opl4/opl4_synth.c
401
depth = (7 - voice->sound->vibrato)
sound/drivers/opl4/opl4_synth.c
402
* (voice->chan->control[MIDI_CTL_VIBRATO_DEPTH] & 0x7f);
sound/drivers/opl4/opl4_synth.c
403
depth = (depth >> 7) + voice->sound->vibrato;
sound/drivers/opl4/opl4_synth.c
404
voice->reg_lfo_vibrato &= ~OPL4_VIBRATO_DEPTH_MASK;
sound/drivers/opl4/opl4_synth.c
405
voice->reg_lfo_vibrato |= depth & OPL4_VIBRATO_DEPTH_MASK;
sound/drivers/opl4/opl4_synth.c
406
snd_opl4_write(opl4, OPL4_REG_LFO_VIBRATO + voice->number,
sound/drivers/opl4/opl4_synth.c
407
voice->reg_lfo_vibrato);
sound/drivers/opl4/opl4_synth.c
411
struct opl4_voice *voice)
sound/drivers/opl4/opl4_synth.c
413
struct snd_midi_channel *chan = voice->chan;
sound/drivers/opl4/opl4_synth.c
416
note = chan->drum_channel ? 60 : voice->note;
sound/drivers/opl4/opl4_synth.c
421
pitch = ((note - 60) << 7) * voice->sound->key_scaling / 100 + (60 << 7);
sound/drivers/opl4/opl4_synth.c
422
pitch += voice->sound->pitch_offset;
sound/drivers/opl4/opl4_synth.c
434
snd_opl4_write(opl4, OPL4_REG_OCTAVE + voice->number,
sound/drivers/opl4/opl4_synth.c
436
voice->reg_f_number = (voice->reg_f_number & OPL4_TONE_NUMBER_BIT8)
sound/drivers/opl4/opl4_synth.c
438
snd_opl4_write(opl4, OPL4_REG_F_NUMBER + voice->number, voice->reg_f_number);
sound/drivers/opl4/opl4_synth.c
442
struct opl4_voice *voice)
sound/drivers/opl4/opl4_synth.c
444
snd_opl4_write(opl4, OPL4_REG_ATTACK_DECAY1 + voice->number,
sound/drivers/opl4/opl4_synth.c
445
voice->sound->reg_attack_decay1);
sound/drivers/opl4/opl4_synth.c
446
snd_opl4_write(opl4, OPL4_REG_LEVEL_DECAY2 + voice->number,
sound/drivers/opl4/opl4_synth.c
447
voice->sound->reg_level_decay2);
sound/drivers/opl4/opl4_synth.c
448
snd_opl4_write(opl4, OPL4_REG_RELEASE_CORRECTION + voice->number,
sound/drivers/opl4/opl4_synth.c
449
voice->sound->reg_release_correction);
sound/drivers/opl4/opl4_synth.c
450
snd_opl4_write(opl4, OPL4_REG_TREMOLO + voice->number,
sound/drivers/opl4/opl4_synth.c
451
voice->sound->reg_tremolo);
sound/drivers/opl4/opl4_synth.c
477
struct opl4_voice *voice[2];
sound/drivers/opl4/opl4_synth.c
496
voice[i] = snd_opl4_get_voice(opl4);
sound/drivers/opl4/opl4_synth.c
497
list_move_tail(&voice[i]->list, &opl4->on_voices);
sound/drivers/opl4/opl4_synth.c
498
voice[i]->chan = chan;
sound/drivers/opl4/opl4_synth.c
499
voice[i]->note = note;
sound/drivers/opl4/opl4_synth.c
500
voice[i]->velocity = vel & 0x7f;
sound/drivers/opl4/opl4_synth.c
501
voice[i]->sound = sound[i];
sound/drivers/opl4/opl4_synth.c
506
voice[i]->reg_f_number =
sound/drivers/opl4/opl4_synth.c
508
snd_opl4_write(opl4, OPL4_REG_F_NUMBER + voice[i]->number,
sound/drivers/opl4/opl4_synth.c
509
voice[i]->reg_f_number);
sound/drivers/opl4/opl4_synth.c
510
snd_opl4_write(opl4, OPL4_REG_TONE_NUMBER + voice[i]->number,
sound/drivers/opl4/opl4_synth.c
516
voice[i]->reg_misc = OPL4_LFO_RESET_BIT;
sound/drivers/opl4/opl4_synth.c
517
snd_opl4_update_pan(opl4, voice[i]);
sound/drivers/opl4/opl4_synth.c
518
snd_opl4_update_pitch(opl4, voice[i]);
sound/drivers/opl4/opl4_synth.c
519
voice[i]->level_direct = OPL4_LEVEL_DIRECT_BIT;
sound/drivers/opl4/opl4_synth.c
520
snd_opl4_update_volume(opl4, voice[i]);
sound/drivers/opl4/opl4_synth.c
530
snd_opl4_update_tone_parameters(opl4, voice[i]);
sound/drivers/opl4/opl4_synth.c
531
voice[i]->reg_lfo_vibrato = voice[i]->sound->reg_lfo_vibrato;
sound/drivers/opl4/opl4_synth.c
532
snd_opl4_update_vibrato_depth(opl4, voice[i]);
sound/drivers/opl4/opl4_synth.c
537
voice[i]->reg_misc =
sound/drivers/opl4/opl4_synth.c
538
(voice[i]->reg_misc & 0x1f) | OPL4_KEY_ON_BIT;
sound/drivers/opl4/opl4_synth.c
539
snd_opl4_write(opl4, OPL4_REG_MISC + voice[i]->number,
sound/drivers/opl4/opl4_synth.c
540
voice[i]->reg_misc);
sound/drivers/opl4/opl4_synth.c
544
static void snd_opl4_voice_off(struct snd_opl4 *opl4, struct opl4_voice *voice)
sound/drivers/opl4/opl4_synth.c
546
list_move_tail(&voice->list, &opl4->off_voices);
sound/drivers/opl4/opl4_synth.c
548
voice->reg_misc &= ~OPL4_KEY_ON_BIT;
sound/drivers/opl4/opl4_synth.c
549
snd_opl4_write(opl4, OPL4_REG_MISC + voice->number, voice->reg_misc);
sound/drivers/opl4/opl4_synth.c
559
static void snd_opl4_terminate_voice(struct snd_opl4 *opl4, struct opl4_voice *voice)
sound/drivers/opl4/opl4_synth.c
561
list_move_tail(&voice->list, &opl4->off_voices);
sound/drivers/opl4/opl4_synth.c
563
voice->reg_misc = (voice->reg_misc & ~OPL4_KEY_ON_BIT) | OPL4_DAMP_BIT;
sound/drivers/opl4/opl4_synth.c
564
snd_opl4_write(opl4, OPL4_REG_MISC + voice->number, voice->reg_misc);
sound/isa/gus/gus_irq.c
41
unsigned char voice_status, voice;
sound/isa/gus/gus_irq.c
46
voice = voice_status & 0x1f;
sound/isa/gus/gus_irq.c
47
_current_ = 1 << voice;
sound/isa/gus/gus_irq.c
54
voice, voice_status, inb(GUSP(gus, GF1PAGE)));
sound/isa/gus/gus_irq.c
56
pvoice = &gus->gf1.voices[voice];
sound/isa/gus/gus_pcm.c
114
for (voice = 0; voice < pcmp->voices; voice++) {
sound/isa/gus/gus_pcm.c
115
begin = pcmp->memory + voice * (pcmp->dma_size / runtime->channels);
sound/isa/gus/gus_pcm.c
119
pan = runtime->channels == 2 ? (!voice ? 1 : 14) : 8;
sound/isa/gus/gus_pcm.c
120
vol = !voice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right;
sound/isa/gus/gus_pcm.c
122
snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number);
sound/isa/gus/gus_pcm.c
140
for (voice = 0; voice < pcmp->voices; voice++) {
sound/isa/gus/gus_pcm.c
141
snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number);
sound/isa/gus/gus_pcm.c
150
for (voice = 0; voice < pcmp->voices; voice++) {
sound/isa/gus/gus_pcm.c
151
snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number);
sound/isa/gus/gus_pcm.c
320
static int get_bpos(struct gus_pcm_private *pcmp, int voice, unsigned int pos,
sound/isa/gus/gus_pcm.c
323
unsigned int bpos = pos + (voice * (pcmp->dma_size / 2));
sound/isa/gus/gus_pcm.c
350
int voice, unsigned long pos,
sound/isa/gus/gus_pcm.c
358
bpos = get_bpos(pcmp, voice, pos, len);
sound/isa/gus/gus_pcm.c
367
int voice, unsigned long pos,
sound/isa/gus/gus_pcm.c
375
bpos = get_bpos(pcmp, voice, pos, len);
sound/isa/gus/gus_pcm.c
470
int voice;
sound/isa/gus/gus_pcm.c
478
voice = pcmp->pvoices[0]->number;
sound/isa/gus/gus_pcm.c
479
snd_gf1_stop_voices(gus, voice, voice);
sound/isa/gus/gus_pcm.c
481
voice = pcmp->pvoices[1]->number;
sound/isa/gus/gus_pcm.c
482
snd_gf1_stop_voices(gus, voice, voice);
sound/isa/gus/gus_pcm.c
97
unsigned int voice;
sound/isa/gus/gus_reset.c
103
void snd_gf1_smart_stop_voice(struct snd_gus_card * gus, unsigned short voice)
sound/isa/gus/gus_reset.c
106
snd_gf1_select_voice(gus, voice);
sound/isa/gus/gus_reset.c
110
voice, snd_gf1_i_read16(gus, SNDRV_GF1_VW_VOLUME));
sound/isa/gus/gus_reset.c
116
void snd_gf1_stop_voice(struct snd_gus_card * gus, unsigned short voice)
sound/isa/gus/gus_reset.c
119
snd_gf1_select_voice(gus, voice);
sound/isa/gus/gus_reset.c
123
voice, snd_gf1_i_read16(gus, SNDRV_GF1_VW_VOLUME));
sound/isa/gus/gus_reset.c
245
void snd_gf1_free_voice(struct snd_gus_card * gus, struct snd_gus_voice *voice)
sound/isa/gus/gus_reset.c
247
void (*private_free)(struct snd_gus_voice *voice);
sound/isa/gus/gus_reset.c
249
if (voice == NULL || !voice->use)
sound/isa/gus/gus_reset.c
251
snd_gf1_set_default_handlers(gus, SNDRV_GF1_HANDLER_VOICE | voice->number);
sound/isa/gus/gus_reset.c
252
snd_gf1_clear_voices(gus, voice->number, voice->number);
sound/isa/gus/gus_reset.c
254
private_free = voice->private_free;
sound/isa/gus/gus_reset.c
255
voice->private_free = NULL;
sound/isa/gus/gus_reset.c
256
voice->private_data = NULL;
sound/isa/gus/gus_reset.c
257
if (voice->pcm)
sound/isa/gus/gus_reset.c
259
voice->use = voice->pcm = 0;
sound/isa/gus/gus_reset.c
260
voice->sample_ops = NULL;
sound/isa/gus/gus_reset.c
263
private_free(voice);
sound/isa/gus/gus_reset.c
36
static void snd_gf1_default_interrupt_handler_wave_and_volume(struct snd_gus_card * gus, struct snd_gus_voice * voice)
sound/isa/gus/gus_reset.c
63
struct snd_gus_voice *voice;
sound/isa/gus/gus_reset.c
65
voice = &gus->gf1.voices[what & 0xffff];
sound/isa/gus/gus_reset.c
66
voice->handler_wave =
sound/isa/gus/gus_reset.c
67
voice->handler_volume = snd_gf1_default_interrupt_handler_wave_and_volume;
sound/isa/gus/gus_reset.c
68
voice->handler_effect = NULL;
sound/isa/gus/gus_reset.c
69
voice->volume_change = NULL;
sound/isa/sb/emu8000_callback.c
158
int voice;
sound/isa/sb/emu8000_callback.c
166
best[i].voice = -1;
sound/isa/sb/emu8000_callback.c
202
bp->voice = i;
sound/isa/sb/emu8000_callback.c
207
if (best[i].voice >= 0) {
sound/isa/sb/emu8000_callback.c
208
vp = &emu->voices[best[i].voice];
sound/isa/sb/emu8000_callback.c
209
vp->ch = best[i].voice;
sound/isa/sb/emu8000_pcm.c
436
int voice, unsigned long pos,
sound/isa/sb/emu8000_pcm.c
442
pos = (pos << 1) + rec->loop_start[voice];
sound/isa/sb/emu8000_pcm.c
450
int voice, unsigned long pos, unsigned long count)
sound/isa/sb/emu8000_pcm.c
455
pos = (pos << 1) + rec->loop_start[voice];
sound/isa/sb/emu8000_pcm.c
490
int voice, unsigned long pos,
sound/isa/sb/emu8000_pcm.c
503
int voice, unsigned long pos, unsigned long count)
sound/pci/au88x0/au88x0_synth.c
327
wt_voice_t *voice = &(vortex->wt_voice[wt]);
sound/pci/au88x0/au88x0_synth.c
331
voice->parm0 &= 0xff00ffff;
sound/pci/au88x0/au88x0_synth.c
332
voice->parm0 |= (vol[0] & 0xff) << 0x10;
sound/pci/au88x0/au88x0_synth.c
333
voice->parm1 &= 0xff00ffff;
sound/pci/au88x0/au88x0_synth.c
334
voice->parm1 |= (vol[1] & 0xff) << 0x10;
sound/pci/au88x0/au88x0_synth.c
337
hwwrite(vortex, WT_PARM(wt, 0), voice->parm0);
sound/pci/au88x0/au88x0_synth.c
338
hwwrite(vortex, WT_PARM(wt, 1), voice->parm0);
sound/pci/au88x0/au88x0_synth.c
340
if (voice->this_1D0 & 4) {
sound/pci/au88x0/au88x0_synth.c
345
voice->parm3 &= 0xFFFFC07F;
sound/pci/au88x0/au88x0_synth.c
346
voice->parm3 |= (ecx & 0x7f) << 7;
sound/pci/au88x0/au88x0_synth.c
347
voice->parm3 &= 0xFFFFFF80;
sound/pci/au88x0/au88x0_synth.c
348
voice->parm3 |= (eax & 0x7f);
sound/pci/au88x0/au88x0_synth.c
350
voice->parm3 &= 0xFFE03FFF;
sound/pci/au88x0/au88x0_synth.c
351
voice->parm3 |= (eax & 0xFE00) << 5;
sound/pci/au88x0/au88x0_synth.c
354
hwwrite(vortex, WT_PARM(wt, 3), voice->parm3);
sound/pci/au88x0/au88x0_synth.c
360
wt_voice_t *voice = &(vortex->wt_voice[wt]);
sound/pci/au88x0/au88x0_synth.c
389
voice->parm0 &= 0xffff0001;
sound/pci/au88x0/au88x0_synth.c
390
voice->parm0 |= (eax & 0x7fff) << 1;
sound/pci/au88x0/au88x0_synth.c
391
voice->parm1 = voice->parm0 | 1;
sound/pci/au88x0/au88x0_synth.c
395
hwwrite(vortex->mmio, WT_PARM(wt, 0), voice->parm0);
sound/pci/au88x0/au88x0_synth.c
396
hwwrite(vortex->mmio, WT_PARM(wt, 1), voice->parm1);
sound/pci/au88x0/au88x0_synth.c
56
wt_voice_t *voice = &(vortex->wt_voice[wt]);
sound/pci/au88x0/au88x0_synth.c
95
voice->parm0 = voice->parm1 = 0xcfb23e2f;
sound/pci/au88x0/au88x0_synth.c
96
hwwrite(vortex->mmio, WT_PARM(wt, 0), voice->parm0);
sound/pci/au88x0/au88x0_synth.c
97
hwwrite(vortex->mmio, WT_PARM(wt, 1), voice->parm1);
sound/pci/au88x0/au88x0_wt.h
28
#define WT_STEREO(voice) ((WT_BAR(voice)+ 0x20 +(((voice)&0x1f)>>1))<<2) /* 0x0080 */
sound/pci/au88x0/au88x0_wt.h
29
#define WT_MUTE(voice) ((WT_BAR(voice)+ 0x40 +((voice)&0x1f))<<2) /* 0x0100 */
sound/pci/au88x0/au88x0_wt.h
30
#define WT_RUN(voice) ((WT_BAR(voice)+ 0x60 +((voice)&0x1f))<<2) /* 0x0180 */
sound/pci/emu10k1/emu10k1_callback.c
20
int voice;
sound/pci/emu10k1/emu10k1_callback.c
219
best[i].voice = -1;
sound/pci/emu10k1/emu10k1_callback.c
265
bp->voice = i;
sound/pci/emu10k1/emu10k1_callback.c
287
if (best[i].voice >= 0) {
sound/pci/emu10k1/emu10k1_callback.c
288
vp = &emu->voices[best[i].voice];
sound/pci/emu10k1/emu10k1_callback.c
91
if (best[i].voice >= 0) {
sound/pci/emu10k1/emu10k1_callback.c
93
vp = &emu->voices[best[i].voice];
sound/pci/emu10k1/emu10k1x.c
195
struct emu10k1x_voice *voice;
sound/pci/emu10k1/emu10k1x.c
336
static void snd_emu10k1x_pcm_interrupt(struct emu10k1x *emu, struct emu10k1x_voice *voice)
sound/pci/emu10k1/emu10k1x.c
340
epcm = voice->epcm;
sound/pci/emu10k1/emu10k1x.c
397
if (! epcm->voice) {
sound/pci/emu10k1/emu10k1x.c
398
epcm->voice = &epcm->emu->voices[substream->pcm->device];
sound/pci/emu10k1/emu10k1x.c
399
epcm->voice->use = 1;
sound/pci/emu10k1/emu10k1x.c
400
epcm->voice->epcm = epcm;
sound/pci/emu10k1/emu10k1x.c
417
if (epcm->voice) {
sound/pci/emu10k1/emu10k1x.c
418
epcm->voice->use = 0;
sound/pci/emu10k1/emu10k1x.c
419
epcm->voice->epcm = NULL;
sound/pci/emu10k1/emu10k1x.c
420
epcm->voice = NULL;
sound/pci/emu10k1/emu10k1x.c
432
int voice = epcm->voice->number;
sound/pci/emu10k1/emu10k1x.c
433
u32 *table_base = (u32 *)(emu->dma_buffer->area+1024*voice);
sound/pci/emu10k1/emu10k1x.c
442
snd_emu10k1x_ptr_write(emu, PLAYBACK_LIST_ADDR, voice, emu->dma_buffer->addr+1024*voice);
sound/pci/emu10k1/emu10k1x.c
443
snd_emu10k1x_ptr_write(emu, PLAYBACK_LIST_SIZE, voice, (runtime->periods - 1) << 19);
sound/pci/emu10k1/emu10k1x.c
444
snd_emu10k1x_ptr_write(emu, PLAYBACK_LIST_PTR, voice, 0);
sound/pci/emu10k1/emu10k1x.c
445
snd_emu10k1x_ptr_write(emu, PLAYBACK_POINTER, voice, 0);
sound/pci/emu10k1/emu10k1x.c
446
snd_emu10k1x_ptr_write(emu, PLAYBACK_UNKNOWN1, voice, 0);
sound/pci/emu10k1/emu10k1x.c
447
snd_emu10k1x_ptr_write(emu, PLAYBACK_UNKNOWN2, voice, 0);
sound/pci/emu10k1/emu10k1x.c
448
snd_emu10k1x_ptr_write(emu, PLAYBACK_DMA_ADDR, voice, runtime->dma_addr);
sound/pci/emu10k1/emu10k1x.c
450
snd_emu10k1x_ptr_write(emu, PLAYBACK_PERIOD_SIZE, voice, frames_to_bytes(runtime, runtime->period_size)<<16);
sound/pci/emu10k1/emu10k1x.c
462
int channel = epcm->voice->number;
sound/pci/emu10k1/emu10k1x.c
499
int channel = epcm->voice->number;
sound/pci/emu10k1/emu10k1x.c
578
if (! epcm->voice) {
sound/pci/emu10k1/emu10k1x.c
581
epcm->voice = &epcm->emu->capture_voice;
sound/pci/emu10k1/emu10k1x.c
582
epcm->voice->epcm = epcm;
sound/pci/emu10k1/emu10k1x.c
583
epcm->voice->use = 1;
sound/pci/emu10k1/emu10k1x.c
600
if (epcm->voice) {
sound/pci/emu10k1/emu10k1x.c
601
epcm->voice->use = 0;
sound/pci/emu10k1/emu10k1x.c
602
epcm->voice->epcm = NULL;
sound/pci/emu10k1/emu10k1x.c
603
epcm->voice = NULL;
sound/pci/emu10k1/emumixer.c
1440
static void update_emu10k1_fxrt(struct snd_emu10k1 *emu, int voice, unsigned char *route)
sound/pci/emu10k1/emumixer.c
1443
snd_emu10k1_ptr_write_multiple(emu, voice,
sound/pci/emu10k1/emumixer.c
1448
snd_emu10k1_ptr_write(emu, FXRT, voice,
sound/pci/emu10k1/emumixer.c
1453
static void update_emu10k1_send_volume(struct snd_emu10k1 *emu, int voice, unsigned char *volume)
sound/pci/emu10k1/emumixer.c
1455
snd_emu10k1_ptr_write(emu, PTRX_FXSENDAMOUNT_A, voice, volume[0]);
sound/pci/emu10k1/emumixer.c
1456
snd_emu10k1_ptr_write(emu, PTRX_FXSENDAMOUNT_B, voice, volume[1]);
sound/pci/emu10k1/emumixer.c
1457
snd_emu10k1_ptr_write(emu, PSST_FXSENDAMOUNT_C, voice, volume[2]);
sound/pci/emu10k1/emumixer.c
1458
snd_emu10k1_ptr_write(emu, DSL_FXSENDAMOUNT_D, voice, volume[3]);
sound/pci/emu10k1/emumixer.c
1460
snd_emu10k1_ptr_write(emu, A_SENDAMOUNTS, voice,
sound/pci/emu10k1/emumixer.c
1483
int voice, idx;
sound/pci/emu10k1/emumixer.c
1487
for (voice = 0; voice < 3; voice++)
sound/pci/emu10k1/emumixer.c
1489
ucontrol->value.integer.value[(voice * num_efx) + idx] =
sound/pci/emu10k1/emumixer.c
1490
mix->send_routing[voice][idx] & mask;
sound/pci/emu10k1/emumixer.c
1500
int change = 0, voice, idx, val;
sound/pci/emu10k1/emumixer.c
1505
for (voice = 0; voice < 3; voice++)
sound/pci/emu10k1/emumixer.c
1507
val = ucontrol->value.integer.value[(voice * num_efx) + idx] & mask;
sound/pci/emu10k1/emumixer.c
1508
if (mix->send_routing[voice][idx] != val) {
sound/pci/emu10k1/emumixer.c
1509
mix->send_routing[voice][idx] = val;
sound/pci/emu10k1/emupcm.c
21
struct snd_emu10k1_voice *voice)
sound/pci/emu10k1/emupcm.c
25
epcm = voice->epcm;
sound/pci/emu10k1/emupcm.c
269
int voice;
sound/pci/emu10k1/emupcm.c
271
voice = evoice->number;
sound/pci/emu10k1/emupcm.c
275
snd_emu10k1_ptr_write_multiple(emu, voice,
sound/pci/emu10k1/emupcm.c
297
snd_emu10k1_ptr_write_multiple(emu, voice,
sound/pci/emu10k1/emupcm.c
305
snd_emu10k1_ptr_write(emu, A_CSBA + i, voice, (amh << 16) | aml);
sound/pci/emu10k1/emupcm.c
308
snd_emu10k1_ptr_write(emu, FXRT, voice,
sound/pci/emu10k1/emupcm.c
312
emu->voices[voice].dirty = 1;
sound/pci/emu10k1/emupcm.c
557
unsigned voice,
sound/pci/emu10k1/emupcm.c
569
snd_emu10k1_ptr_write(emu, CD0 + i, voice, sample);
sound/pci/emu10k1/emupcm.c
575
snd_emu10k1_ptr_write(emu, CCR, voice + 1, ccr);
sound/pci/emu10k1/emupcm.c
577
snd_emu10k1_ptr_write(emu, CCR, voice, ccr);
sound/pci/emu10k1/emupcm.c
599
unsigned voice = epcm->voices[i]->number;
sound/pci/emu10k1/emupcm.c
600
snd_emu10k1_ptr_write(emu, CCCA_CURRADDR, voice, loop_start);
sound/pci/emu10k1/emupcm.c
602
snd_emu10k1_playback_fill_cache(emu, voice, sample, stereo);
sound/pci/emu10k1/emupcm.c
677
u32 voice, u32 pitch_target)
sound/pci/emu10k1/emupcm.c
679
u32 ptrx = snd_emu10k1_ptr_read(emu, PTRX, voice);
sound/pci/emu10k1/emupcm.c
680
u32 cpf = snd_emu10k1_ptr_read(emu, CPF, voice);
sound/pci/emu10k1/emupcm.c
681
snd_emu10k1_ptr_write_multiple(emu, voice,
sound/pci/emu10k1/emupcm.c
690
unsigned int voice;
sound/pci/emu10k1/emupcm.c
692
voice = evoice->number;
sound/pci/emu10k1/emupcm.c
693
snd_emu10k1_playback_commit_pitch(emu, voice, evoice->epcm->pitch_target << 16);
sound/pci/emu10k1/emupcm.c
699
unsigned int voice;
sound/pci/emu10k1/emupcm.c
701
voice = evoice->number;
sound/pci/emu10k1/emupcm.c
702
snd_emu10k1_playback_commit_pitch(emu, voice, 0);
sound/pci/emu10k1/emupcm.c
873
int voice = epcm->voices[i]->number;
sound/pci/emu10k1/emupcm.c
874
mask |= 1ULL << voice;
sound/pci/emu10k1/emupcm.c
884
int voice = epcm->voices[i]->number;
sound/pci/emu10k1/emupcm.c
885
snd_emu10k1_ptr_write(emu, CPF_STOP, voice, 1);
sound/pci/emu10k1/emupcm.c
886
snd_emu10k1_playback_commit_pitch(emu, voice, PITCH_48000 << 16);
sound/pci/emu10k1/emuproc.c
430
struct snd_emu10k1_voice *voice;
sound/pci/emu10k1/emuproc.c
439
voice = &emu->voices[idx];
sound/pci/emu10k1/emuproc.c
442
voice->dirty,
sound/pci/emu10k1/emuproc.c
443
voice->last,
sound/pci/emu10k1/emuproc.c
444
types[voice->use]);
sound/pci/emu10k1/irq.c
45
int voice;
sound/pci/emu10k1/irq.c
51
for (voice = 0; voice <= voice_max; voice++) {
sound/pci/emu10k1/irq.c
52
if (voice == 0x20)
sound/pci/emu10k1/irq.c
57
snd_emu10k1_voice_intr_ack(emu, voice);
sound/pci/emu10k1/irq.c
59
snd_emu10k1_voice_intr_disable(emu, voice);
sound/pci/emu10k1/irq.c
67
for (voice = 0; voice <= voice_max; voice++) {
sound/pci/emu10k1/irq.c
68
if (voice == 0x20)
sound/pci/emu10k1/irq.c
73
snd_emu10k1_voice_half_loop_intr_ack(emu, voice);
sound/pci/emu10k1/irq.c
75
snd_emu10k1_voice_half_loop_intr_disable(emu, voice);
sound/pci/emu10k1/voice.c
27
struct snd_emu10k1_voice *voice;
sound/pci/emu10k1/voice.c
43
voice = &emu->voices[i + k];
sound/pci/emu10k1/voice.c
44
if (voice->use) {
sound/pci/emu10k1/voice.c
51
voice = &emu->voices[i + k];
sound/pci/emu10k1/voice.c
52
voice->use = type;
sound/pci/emu10k1/voice.c
53
voice->epcm = epcm;
sound/pci/emu10k1/voice.c
56
voice->last = 1;
sound/pci/sis7019.c
116
struct voice voices[64];
sound/pci/sis7019.c
117
struct voice capture_voice;
sound/pci/sis7019.c
1242
struct voice *voice;
sound/pci/sis7019.c
1298
voice = &sis->voices[i];
sound/pci/sis7019.c
1299
voice->num = i;
sound/pci/sis7019.c
1300
voice->ctrl_base = SIS_PLAY_DMA_ADDR(sis->ioaddr, i);
sound/pci/sis7019.c
1301
voice->wave_base = SIS_WAVE_ADDR(sis->ioaddr, i);
sound/pci/sis7019.c
1304
voice = &sis->capture_voice;
sound/pci/sis7019.c
1305
voice->flags = VOICE_CAPTURE;
sound/pci/sis7019.c
1306
voice->num = SIS_CAPTURE_CHAN_AC97_PCM_IN;
sound/pci/sis7019.c
1307
voice->ctrl_base = SIS_CAPTURE_DMA_ADDR(sis->ioaddr, voice->num);
sound/pci/sis7019.c
187
static void sis_update_sso(struct voice *voice, u16 period)
sound/pci/sis7019.c
189
void __iomem *base = voice->ctrl_base;
sound/pci/sis7019.c
191
voice->sso += period;
sound/pci/sis7019.c
192
if (voice->sso >= voice->buffer_size)
sound/pci/sis7019.c
193
voice->sso -= voice->buffer_size;
sound/pci/sis7019.c
196
if (voice->sso < 8)
sound/pci/sis7019.c
197
voice->sso = 8;
sound/pci/sis7019.c
200
writew(voice->sso & 0xffff, base + SIS_PLAY_DMA_SSO_ESO + 2);
sound/pci/sis7019.c
203
static void sis_update_voice(struct voice *voice)
sound/pci/sis7019.c
205
if (voice->flags & VOICE_SSO_TIMING) {
sound/pci/sis7019.c
206
sis_update_sso(voice, voice->period_size);
sound/pci/sis7019.c
207
} else if (voice->flags & VOICE_SYNC_TIMING) {
sound/pci/sis7019.c
213
if (voice->vperiod > voice->period_size) {
sound/pci/sis7019.c
214
voice->vperiod -= voice->period_size;
sound/pci/sis7019.c
215
if (voice->vperiod < voice->period_size)
sound/pci/sis7019.c
216
sis_update_sso(voice, voice->vperiod);
sound/pci/sis7019.c
218
sis_update_sso(voice, voice->period_size);
sound/pci/sis7019.c
227
sync = voice->sync_cso;
sound/pci/sis7019.c
228
sync -= readw(voice->sync_base + SIS_CAPTURE_DMA_FORMAT_CSO);
sound/pci/sis7019.c
229
if (sync > (voice->sync_buffer_size / 2))
sound/pci/sis7019.c
230
sync -= voice->sync_buffer_size;
sound/pci/sis7019.c
240
sis_update_sso(voice, sync);
sound/pci/sis7019.c
260
voice->vperiod = voice->sync_period_size + 1;
sound/pci/sis7019.c
262
voice->vperiod = voice->sync_period_size + sync + 10;
sound/pci/sis7019.c
264
if (voice->vperiod < voice->buffer_size) {
sound/pci/sis7019.c
265
sis_update_sso(voice, voice->vperiod);
sound/pci/sis7019.c
266
voice->vperiod = 0;
sound/pci/sis7019.c
268
sis_update_sso(voice, voice->period_size);
sound/pci/sis7019.c
270
sync = voice->sync_cso + voice->sync_period_size;
sound/pci/sis7019.c
271
if (sync >= voice->sync_buffer_size)
sound/pci/sis7019.c
272
sync -= voice->sync_buffer_size;
sound/pci/sis7019.c
273
voice->sync_cso = sync;
sound/pci/sis7019.c
276
snd_pcm_period_elapsed(voice->substream);
sound/pci/sis7019.c
279
static void sis_voice_irq(u32 status, struct voice *voice)
sound/pci/sis7019.c
286
voice += bit;
sound/pci/sis7019.c
287
sis_update_voice(voice);
sound/pci/sis7019.c
288
voice++;
sound/pci/sis7019.c
296
struct voice *voice;
sound/pci/sis7019.c
326
voice = &sis->capture_voice;
sound/pci/sis7019.c
327
if (!voice->timing)
sound/pci/sis7019.c
328
snd_pcm_period_elapsed(voice->substream);
sound/pci/sis7019.c
384
static void sis_free_voice(struct sis7019 *sis, struct voice *voice)
sound/pci/sis7019.c
387
if (voice->timing) {
sound/pci/sis7019.c
389
voice->timing->flags &= ~(VOICE_IN_USE | VOICE_SSO_TIMING |
sound/pci/sis7019.c
391
voice->timing = NULL;
sound/pci/sis7019.c
393
voice->flags &= ~(VOICE_IN_USE | VOICE_SSO_TIMING | VOICE_SYNC_TIMING);
sound/pci/sis7019.c
396
static struct voice *__sis_alloc_playback_voice(struct sis7019 *sis)
sound/pci/sis7019.c
399
struct voice *voice;
sound/pci/sis7019.c
403
voice = &sis->voices[i];
sound/pci/sis7019.c
404
if (voice->flags & VOICE_IN_USE)
sound/pci/sis7019.c
406
voice->flags |= VOICE_IN_USE;
sound/pci/sis7019.c
409
voice = NULL;
sound/pci/sis7019.c
412
return voice;
sound/pci/sis7019.c
415
static struct voice *sis_alloc_playback_voice(struct sis7019 *sis)
sound/pci/sis7019.c
426
struct voice *voice = runtime->private_data;
sound/pci/sis7019.c
439
if (needed && !voice->timing) {
sound/pci/sis7019.c
441
voice->timing = __sis_alloc_playback_voice(sis);
sound/pci/sis7019.c
442
if (voice->timing)
sound/pci/sis7019.c
445
if (!voice->timing)
sound/pci/sis7019.c
447
voice->timing->substream = substream;
sound/pci/sis7019.c
448
} else if (!needed && voice->timing) {
sound/pci/sis7019.c
449
sis_free_voice(sis, voice);
sound/pci/sis7019.c
450
voice->timing = NULL;
sound/pci/sis7019.c
460
struct voice *voice;
sound/pci/sis7019.c
462
voice = sis_alloc_playback_voice(sis);
sound/pci/sis7019.c
463
if (!voice)
sound/pci/sis7019.c
466
voice->substream = substream;
sound/pci/sis7019.c
467
runtime->private_data = voice;
sound/pci/sis7019.c
481
struct voice *voice = runtime->private_data;
sound/pci/sis7019.c
483
sis_free_voice(sis, voice);
sound/pci/sis7019.c
490
struct voice *voice = runtime->private_data;
sound/pci/sis7019.c
491
void __iomem *ctrl_base = voice->ctrl_base;
sound/pci/sis7019.c
492
void __iomem *wave_base = voice->wave_base;
sound/pci/sis7019.c
518
voice->flags |= VOICE_SSO_TIMING;
sound/pci/sis7019.c
519
voice->sso = runtime->period_size - 1;
sound/pci/sis7019.c
520
voice->period_size = runtime->period_size;
sound/pci/sis7019.c
521
voice->buffer_size = runtime->buffer_size;
sound/pci/sis7019.c
558
struct voice *voice;
sound/pci/sis7019.c
589
voice = s->runtime->private_data;
sound/pci/sis7019.c
590
if (voice->flags & VOICE_CAPTURE) {
sound/pci/sis7019.c
591
record |= 1 << voice->num;
sound/pci/sis7019.c
592
voice = voice->timing;
sound/pci/sis7019.c
598
if (voice)
sound/pci/sis7019.c
599
play[voice->num / 32] |= 1 << (voice->num & 0x1f);
sound/pci/sis7019.c
625
struct voice *voice = runtime->private_data;
sound/pci/sis7019.c
628
cso = readl(voice->ctrl_base + SIS_PLAY_DMA_FORMAT_CSO);
sound/pci/sis7019.c
637
struct voice *voice = &sis->capture_voice;
sound/pci/sis7019.c
643
if (voice->flags & VOICE_IN_USE)
sound/pci/sis7019.c
644
voice = NULL;
sound/pci/sis7019.c
646
voice->flags |= VOICE_IN_USE;
sound/pci/sis7019.c
649
if (!voice)
sound/pci/sis7019.c
652
voice->substream = substream;
sound/pci/sis7019.c
653
runtime->private_data = voice;
sound/pci/sis7019.c
682
static void sis_prepare_timing_voice(struct voice *voice,
sound/pci/sis7019.c
687
struct voice *timing = voice->timing;
sound/pci/sis7019.c
741
timing->sync_base = voice->ctrl_base;
sound/pci/sis7019.c
788
struct voice *voice = runtime->private_data;
sound/pci/sis7019.c
789
void __iomem *rec_base = voice->ctrl_base;
sound/pci/sis7019.c
812
if (voice->timing) {
sound/pci/sis7019.c
813
sis_prepare_timing_voice(voice, substream);
sound/pci/sis7019.c
82
struct voice *timing;
sound/pci/trident/trident.h
316
void (*private_free)(struct snd_trident_voice *voice);
sound/pci/trident/trident.h
331
struct snd_trident_voice *voice; /* active voice */
sound/pci/trident/trident.h
411
void snd_trident_free_voice(struct snd_trident * trident, struct snd_trident_voice *voice);
sound/pci/trident/trident.h
412
void snd_trident_start_voice(struct snd_trident * trident, unsigned int voice);
sound/pci/trident/trident.h
413
void snd_trident_stop_voice(struct snd_trident * trident, unsigned int voice);
sound/pci/trident/trident.h
414
void snd_trident_write_voice_regs(struct snd_trident * trident, struct snd_trident_voice *voice);
sound/pci/trident/trident_main.c
1005
struct snd_trident_voice *voice = runtime->private_data;
sound/pci/trident/trident_main.c
1017
voice->LBA = runtime->dma_addr;
sound/pci/trident/trident_main.c
1018
outl(voice->LBA, TRID_REG(trident, LEGACY_DMAR0));
sound/pci/trident/trident_main.c
1019
if (voice->memblk)
sound/pci/trident/trident_main.c
1020
voice->LBA = voice->memblk->offset;
sound/pci/trident/trident_main.c
1054
voice->Delta = snd_trident_convert_rate(runtime->rate);
sound/pci/trident/trident_main.c
1055
voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
sound/pci/trident/trident_main.c
1056
voice->isync = 1;
sound/pci/trident/trident_main.c
1057
voice->isync_mark = runtime->period_size;
sound/pci/trident/trident_main.c
1058
voice->isync_max = runtime->buffer_size;
sound/pci/trident/trident_main.c
1061
voice->CSO = 0;
sound/pci/trident/trident_main.c
1062
voice->ESO = voice->isync_ESO = (runtime->period_size * 2) + 6 - 1;
sound/pci/trident/trident_main.c
1063
voice->CTRL = snd_trident_control_mode(substream);
sound/pci/trident/trident_main.c
1064
voice->FMC = 3;
sound/pci/trident/trident_main.c
1065
voice->RVol = 0x7f;
sound/pci/trident/trident_main.c
1066
voice->CVol = 0x7f;
sound/pci/trident/trident_main.c
1067
voice->GVSel = 1;
sound/pci/trident/trident_main.c
1068
voice->Pan = 0x7f; /* mute */
sound/pci/trident/trident_main.c
1069
voice->Vol = 0x3ff; /* mute */
sound/pci/trident/trident_main.c
1070
voice->EC = 0;
sound/pci/trident/trident_main.c
1071
voice->Alpha = 0;
sound/pci/trident/trident_main.c
1072
voice->FMS = 0;
sound/pci/trident/trident_main.c
1073
voice->Attribute = 0;
sound/pci/trident/trident_main.c
1075
snd_trident_write_voice_regs(trident, voice);
sound/pci/trident/trident_main.c
1113
struct snd_trident_voice *voice = runtime->private_data;
sound/pci/trident/trident_main.c
1114
struct snd_trident_voice *evoice = voice ? voice->extra : NULL;
sound/pci/trident/trident_main.c
1118
voice->extra = NULL;
sound/pci/trident/trident_main.c
1138
struct snd_trident_voice *voice = runtime->private_data;
sound/pci/trident/trident_main.c
1139
struct snd_trident_voice *evoice = voice->extra;
sound/pci/trident/trident_main.c
1143
voice->LBA = runtime->dma_addr;
sound/pci/trident/trident_main.c
1144
voice->Delta = snd_trident_convert_adc_rate(runtime->rate);
sound/pci/trident/trident_main.c
1145
voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
sound/pci/trident/trident_main.c
1148
voice->CSO = 0;
sound/pci/trident/trident_main.c
1149
voice->ESO = runtime->buffer_size - 1; /* in samples */
sound/pci/trident/trident_main.c
1150
voice->CTRL = snd_trident_control_mode(substream);
sound/pci/trident/trident_main.c
1151
voice->FMC = 0;
sound/pci/trident/trident_main.c
1152
voice->RVol = 0;
sound/pci/trident/trident_main.c
1153
voice->CVol = 0;
sound/pci/trident/trident_main.c
1154
voice->GVSel = 1;
sound/pci/trident/trident_main.c
1155
voice->Pan = T4D_DEFAULT_PCM_PAN;
sound/pci/trident/trident_main.c
1156
voice->Vol = 0;
sound/pci/trident/trident_main.c
1157
voice->EC = 0;
sound/pci/trident/trident_main.c
1158
voice->Alpha = 0;
sound/pci/trident/trident_main.c
1159
voice->FMS = 0;
sound/pci/trident/trident_main.c
1161
voice->Attribute = (2 << (30-16)) |
sound/pci/trident/trident_main.c
1166
snd_trident_write_voice_regs(trident, voice);
sound/pci/trident/trident_main.c
1170
evoice->spurious_threshold = voice->spurious_threshold;
sound/pci/trident/trident_main.c
1171
evoice->LBA = voice->LBA;
sound/pci/trident/trident_main.c
1174
evoice->CTRL = voice->CTRL;
sound/pci/trident/trident_main.c
1208
struct snd_trident_voice *voice = runtime->private_data;
sound/pci/trident/trident_main.c
1209
struct snd_trident_voice *evoice = voice->extra;
sound/pci/trident/trident_main.c
1214
if (voice->memblk)
sound/pci/trident/trident_main.c
1215
voice->LBA = voice->memblk->offset;
sound/pci/trident/trident_main.c
1217
voice->LBA = runtime->dma_addr;
sound/pci/trident/trident_main.c
1220
voice->ESO = runtime->buffer_size - 1; /* in samples */
sound/pci/trident/trident_main.c
1223
voice->Delta = 0x1000;
sound/pci/trident/trident_main.c
1224
voice->spurious_threshold = snd_trident_spurious_threshold(48000, runtime->period_size);
sound/pci/trident/trident_main.c
1226
voice->CSO = 0;
sound/pci/trident/trident_main.c
1227
voice->CTRL = snd_trident_control_mode(substream);
sound/pci/trident/trident_main.c
1228
voice->FMC = 3;
sound/pci/trident/trident_main.c
1229
voice->RVol = 0x7f;
sound/pci/trident/trident_main.c
1230
voice->CVol = 0x7f;
sound/pci/trident/trident_main.c
1231
voice->GVSel = 1;
sound/pci/trident/trident_main.c
1232
voice->Pan = 0x7f; /* mute */
sound/pci/trident/trident_main.c
1233
voice->Vol = 0x3ff; /* mute */
sound/pci/trident/trident_main.c
1234
voice->EC = 0;
sound/pci/trident/trident_main.c
1235
voice->Alpha = 0;
sound/pci/trident/trident_main.c
1236
voice->FMS = 0;
sound/pci/trident/trident_main.c
1237
voice->Attribute = 0;
sound/pci/trident/trident_main.c
1240
outb(((voice->number & 0x3f) | 0x80), TRID_REG(trident, T4D_RCI + voice->foldback_chan));
sound/pci/trident/trident_main.c
1242
snd_trident_write_voice_regs(trident, voice);
sound/pci/trident/trident_main.c
1245
evoice->Delta = voice->Delta;
sound/pci/trident/trident_main.c
1246
evoice->spurious_threshold = voice->spurious_threshold;
sound/pci/trident/trident_main.c
1247
evoice->LBA = voice->LBA;
sound/pci/trident/trident_main.c
1250
evoice->CTRL = voice->CTRL;
sound/pci/trident/trident_main.c
1348
struct snd_trident_voice *voice = runtime->private_data;
sound/pci/trident/trident_main.c
1349
struct snd_trident_voice *evoice = voice->extra;
sound/pci/trident/trident_main.c
1359
voice->Delta = snd_trident_convert_rate(runtime->rate);
sound/pci/trident/trident_main.c
1360
voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
sound/pci/trident/trident_main.c
1364
if (voice->memblk)
sound/pci/trident/trident_main.c
1365
voice->LBA = voice->memblk->offset;
sound/pci/trident/trident_main.c
1367
voice->LBA = LBAO;
sound/pci/trident/trident_main.c
1369
voice->isync = 1;
sound/pci/trident/trident_main.c
1370
voice->isync3 = 1;
sound/pci/trident/trident_main.c
1371
voice->isync_mark = runtime->period_size;
sound/pci/trident/trident_main.c
1372
voice->isync_max = runtime->buffer_size;
sound/pci/trident/trident_main.c
1376
voice->ESO = voice->isync_ESO = (runtime->period_size * 2) + 6 - 1;
sound/pci/trident/trident_main.c
1379
voice->CTRL = snd_trident_control_mode(substream);
sound/pci/trident/trident_main.c
1381
voice->FMC = 3;
sound/pci/trident/trident_main.c
1382
voice->RVol = 0x7f;
sound/pci/trident/trident_main.c
1383
voice->CVol = 0x7f;
sound/pci/trident/trident_main.c
1384
voice->GVSel = 1;
sound/pci/trident/trident_main.c
1385
voice->Pan = 0x7f;
sound/pci/trident/trident_main.c
1386
voice->Vol = 0x3ff;
sound/pci/trident/trident_main.c
1387
voice->EC = 0;
sound/pci/trident/trident_main.c
1388
voice->CSO = 0;
sound/pci/trident/trident_main.c
1389
voice->Alpha = 0;
sound/pci/trident/trident_main.c
1390
voice->FMS = 0;
sound/pci/trident/trident_main.c
1391
voice->Attribute = 0;
sound/pci/trident/trident_main.c
1394
snd_trident_write_voice_regs(trident, voice);
sound/pci/trident/trident_main.c
1399
outw((voice->CSO & 0xffff), TRID_REG(trident, NX_SPCTRL_SPCSO));
sound/pci/trident/trident_main.c
1400
outb((voice->CSO >> 16), TRID_REG(trident, NX_SPCTRL_SPCSO + 2));
sound/pci/trident/trident_main.c
1409
voice->Delta = 0x800;
sound/pci/trident/trident_main.c
1410
voice->spurious_threshold = snd_trident_spurious_threshold(48000, runtime->period_size);
sound/pci/trident/trident_main.c
1413
if (voice->memblk)
sound/pci/trident/trident_main.c
1414
voice->LBA = voice->memblk->offset;
sound/pci/trident/trident_main.c
1416
voice->LBA = runtime->dma_addr;
sound/pci/trident/trident_main.c
1418
voice->CSO = 0;
sound/pci/trident/trident_main.c
1419
voice->ESO = runtime->buffer_size - 1; /* in samples */
sound/pci/trident/trident_main.c
1420
voice->CTRL = snd_trident_control_mode(substream);
sound/pci/trident/trident_main.c
1421
voice->FMC = 3;
sound/pci/trident/trident_main.c
1422
voice->GVSel = 1;
sound/pci/trident/trident_main.c
1423
voice->EC = 0;
sound/pci/trident/trident_main.c
1424
voice->Alpha = 0;
sound/pci/trident/trident_main.c
1425
voice->FMS = 0;
sound/pci/trident/trident_main.c
1426
voice->Vol = mix->vol;
sound/pci/trident/trident_main.c
1427
voice->RVol = mix->rvol;
sound/pci/trident/trident_main.c
1428
voice->CVol = mix->cvol;
sound/pci/trident/trident_main.c
1429
voice->Pan = mix->pan;
sound/pci/trident/trident_main.c
1430
voice->Attribute = (1<<(30-16))|(7<<(26-16))|
sound/pci/trident/trident_main.c
1433
snd_trident_write_voice_regs(trident, voice);
sound/pci/trident/trident_main.c
1436
evoice->Delta = voice->Delta;
sound/pci/trident/trident_main.c
1437
evoice->spurious_threshold = voice->spurious_threshold;
sound/pci/trident/trident_main.c
1438
evoice->LBA = voice->LBA;
sound/pci/trident/trident_main.c
1441
evoice->CTRL = voice->CTRL;
sound/pci/trident/trident_main.c
1488
struct snd_trident_voice *voice, *evoice;
sound/pci/trident/trident_main.c
1510
voice = s->runtime->private_data;
sound/pci/trident/trident_main.c
1511
evoice = voice->extra;
sound/pci/trident/trident_main.c
1512
what |= 1 << (voice->number & 0x1f);
sound/pci/trident/trident_main.c
1514
whati |= 1 << (voice->number & 0x1f);
sound/pci/trident/trident_main.c
1522
voice->running = 1;
sound/pci/trident/trident_main.c
1523
voice->stimer = val;
sound/pci/trident/trident_main.c
1525
voice->running = 0;
sound/pci/trident/trident_main.c
1528
if (voice->capture)
sound/pci/trident/trident_main.c
1530
if (voice->spdif)
sound/pci/trident/trident_main.c
1583
struct snd_trident_voice *voice = runtime->private_data;
sound/pci/trident/trident_main.c
1586
if (!voice->running)
sound/pci/trident/trident_main.c
1591
outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR));
sound/pci/trident/trident_main.c
1620
struct snd_trident_voice *voice = runtime->private_data;
sound/pci/trident/trident_main.c
1623
if (!voice->running)
sound/pci/trident/trident_main.c
1650
struct snd_trident_voice *voice = runtime->private_data;
sound/pci/trident/trident_main.c
1653
if (!voice->running)
sound/pci/trident/trident_main.c
1782
struct snd_trident_voice *voice = runtime->private_data;
sound/pci/trident/trident_main.c
1785
if (voice) {
sound/pci/trident/trident_main.c
1786
trident = voice->trident;
sound/pci/trident/trident_main.c
1787
snd_trident_free_voice(trident, voice);
sound/pci/trident/trident_main.c
1795
struct snd_trident_voice *voice;
sound/pci/trident/trident_main.c
1797
voice = snd_trident_alloc_voice(trident, SNDRV_TRIDENT_VOICE_TYPE_PCM, 0, 0);
sound/pci/trident/trident_main.c
1798
if (voice == NULL)
sound/pci/trident/trident_main.c
1800
snd_trident_pcm_mixer_build(trident, voice, substream);
sound/pci/trident/trident_main.c
1801
voice->substream = substream;
sound/pci/trident/trident_main.c
1802
runtime->private_data = voice;
sound/pci/trident/trident_main.c
1823
struct snd_trident_voice *voice = runtime->private_data;
sound/pci/trident/trident_main.c
1825
snd_trident_pcm_mixer_free(trident, voice, substream);
sound/pci/trident/trident_main.c
1843
struct snd_trident_voice *voice;
sound/pci/trident/trident_main.c
1846
voice = snd_trident_alloc_voice(trident, SNDRV_TRIDENT_VOICE_TYPE_PCM, 0, 0);
sound/pci/trident/trident_main.c
1847
if (voice == NULL)
sound/pci/trident/trident_main.c
1849
voice->spdif = 1;
sound/pci/trident/trident_main.c
1850
voice->substream = substream;
sound/pci/trident/trident_main.c
1855
runtime->private_data = voice;
sound/pci/trident/trident_main.c
1922
struct snd_trident_voice *voice;
sound/pci/trident/trident_main.c
1925
voice = snd_trident_alloc_voice(trident, SNDRV_TRIDENT_VOICE_TYPE_PCM, 0, 0);
sound/pci/trident/trident_main.c
1926
if (voice == NULL)
sound/pci/trident/trident_main.c
1928
voice->capture = 1;
sound/pci/trident/trident_main.c
1929
voice->substream = substream;
sound/pci/trident/trident_main.c
1930
runtime->private_data = voice;
sound/pci/trident/trident_main.c
1966
struct snd_trident_voice *voice;
sound/pci/trident/trident_main.c
1969
voice = snd_trident_alloc_voice(trident, SNDRV_TRIDENT_VOICE_TYPE_PCM, 0, 0);
sound/pci/trident/trident_main.c
1970
if (voice == NULL)
sound/pci/trident/trident_main.c
1972
voice->foldback_chan = substream->number;
sound/pci/trident/trident_main.c
1973
voice->substream = substream;
sound/pci/trident/trident_main.c
1974
runtime->private_data = voice;
sound/pci/trident/trident_main.c
1993
struct snd_trident_voice *voice;
sound/pci/trident/trident_main.c
1995
voice = runtime->private_data;
sound/pci/trident/trident_main.c
1999
outb(0x00, TRID_REG(trident, T4D_RCI + voice->foldback_chan));
sound/pci/trident/trident_main.c
2620
if (mix->voice != NULL)
sound/pci/trident/trident_main.c
2621
snd_trident_write_vol_reg(trident, mix->voice, val);
sound/pci/trident/trident_main.c
2683
if (mix->voice != NULL)
sound/pci/trident/trident_main.c
2684
snd_trident_write_pan_reg(trident, mix->voice, val);
sound/pci/trident/trident_main.c
2737
if (mix->voice != NULL)
sound/pci/trident/trident_main.c
2738
snd_trident_write_rvol_reg(trident, mix->voice, val);
sound/pci/trident/trident_main.c
2794
if (mix->voice != NULL)
sound/pci/trident/trident_main.c
2795
snd_trident_write_cvol_reg(trident, mix->voice, val);
sound/pci/trident/trident_main.c
281
void snd_trident_start_voice(struct snd_trident * trident, unsigned int voice)
sound/pci/trident/trident_main.c
283
unsigned int mask = 1 << (voice & 0x1f);
sound/pci/trident/trident_main.c
2839
struct snd_trident_voice *voice,
sound/pci/trident/trident_main.c
284
unsigned int reg = (voice & 0x20) ? T4D_START_B : T4D_START_A;
sound/pci/trident/trident_main.c
2844
if (snd_BUG_ON(!trident || !voice || !substream))
sound/pci/trident/trident_main.c
2847
tmix->voice = voice;
sound/pci/trident/trident_main.c
2856
static int snd_trident_pcm_mixer_free(struct snd_trident *trident, struct snd_trident_voice *voice, struct snd_pcm_substream *substream)
sound/pci/trident/trident_main.c
2863
tmix->voice = NULL;
sound/pci/trident/trident_main.c
2958
tmix->voice = NULL;
sound/pci/trident/trident_main.c
305
void snd_trident_stop_voice(struct snd_trident * trident, unsigned int voice)
sound/pci/trident/trident_main.c
307
unsigned int mask = 1 << (voice & 0x1f);
sound/pci/trident/trident_main.c
308
unsigned int reg = (voice & 0x20) ? T4D_STOP_B : T4D_STOP_A;
sound/pci/trident/trident_main.c
3470
struct snd_trident_voice *voice;
sound/pci/trident/trident_main.c
35
struct snd_trident_voice * voice,
sound/pci/trident/trident_main.c
3551
voice = &trident->synth.voices[i];
sound/pci/trident/trident_main.c
3552
voice->number = i;
sound/pci/trident/trident_main.c
3553
voice->trident = trident;
sound/pci/trident/trident_main.c
3623
struct snd_trident_voice *voice;
sound/pci/trident/trident_main.c
3642
voice = &trident->synth.voices[channel];
sound/pci/trident/trident_main.c
3643
if (!voice->pcm || voice->substream == NULL) {
sound/pci/trident/trident_main.c
3647
delta = (int)stimer - (int)voice->stimer;
sound/pci/trident/trident_main.c
3650
if ((unsigned int)delta < voice->spurious_threshold) {
sound/pci/trident/trident_main.c
3657
voice->stimer = stimer;
sound/pci/trident/trident_main.c
3658
if (voice->isync) {
sound/pci/trident/trident_main.c
3659
if (!voice->isync3) {
sound/pci/trident/trident_main.c
3664
tmp = voice->isync_max - tmp;
sound/pci/trident/trident_main.c
3668
if (tmp < voice->isync_mark) {
sound/pci/trident/trident_main.c
3670
tmp = voice->isync_ESO - 7;
sound/pci/trident/trident_main.c
3672
tmp = voice->isync_ESO + 2;
sound/pci/trident/trident_main.c
3674
snd_trident_stop_voice(trident, voice->number);
sound/pci/trident/trident_main.c
3675
snd_trident_write_eso_reg(trident, voice, tmp);
sound/pci/trident/trident_main.c
3676
snd_trident_start_voice(trident, voice->number);
sound/pci/trident/trident_main.c
3678
} else if (voice->isync2) {
sound/pci/trident/trident_main.c
3679
voice->isync2 = 0;
sound/pci/trident/trident_main.c
3681
snd_trident_stop_voice(trident, voice->number);
sound/pci/trident/trident_main.c
3682
snd_trident_write_cso_reg(trident, voice, voice->isync_mark);
sound/pci/trident/trident_main.c
3683
snd_trident_write_eso_reg(trident, voice, voice->ESO);
sound/pci/trident/trident_main.c
3684
snd_trident_start_voice(trident, voice->number);
sound/pci/trident/trident_main.c
3687
if (voice->extra) {
sound/pci/trident/trident_main.c
3689
snd_trident_stop_voice(trident, voice->extra->number);
sound/pci/trident/trident_main.c
3690
snd_trident_write_cso_reg(trident, voice->extra, 0);
sound/pci/trident/trident_main.c
3691
snd_trident_start_voice(trident, voice->extra->number);
sound/pci/trident/trident_main.c
3695
snd_pcm_period_elapsed(voice->substream);
sound/pci/trident/trident_main.c
3750
void snd_trident_free_voice(struct snd_trident * trident, struct snd_trident_voice *voice)
sound/pci/trident/trident_main.c
3754
if (voice == NULL || !voice->use)
sound/pci/trident/trident_main.c
3756
snd_trident_clear_voices(trident, voice->number, voice->number);
sound/pci/trident/trident_main.c
3758
private_free = voice->private_free;
sound/pci/trident/trident_main.c
3759
voice->private_free = NULL;
sound/pci/trident/trident_main.c
3760
voice->private_data = NULL;
sound/pci/trident/trident_main.c
3761
if (voice->pcm)
sound/pci/trident/trident_main.c
3762
snd_trident_free_pcm_channel(trident, voice->number);
sound/pci/trident/trident_main.c
3763
if (voice->synth)
sound/pci/trident/trident_main.c
3764
snd_trident_free_synth_channel(trident, voice->number);
sound/pci/trident/trident_main.c
3765
voice->use = voice->pcm = voice->synth = voice->midi = 0;
sound/pci/trident/trident_main.c
3766
voice->capture = voice->spdif = 0;
sound/pci/trident/trident_main.c
3767
voice->sample_ops = NULL;
sound/pci/trident/trident_main.c
3768
voice->substream = NULL;
sound/pci/trident/trident_main.c
3769
voice->extra = NULL;
sound/pci/trident/trident_main.c
3772
private_free(voice);
sound/pci/trident/trident_main.c
38
struct snd_trident_voice * voice,
sound/pci/trident/trident_main.c
426
struct snd_trident_voice * voice)
sound/pci/trident/trident_main.c
431
regs[1] = voice->LBA;
sound/pci/trident/trident_main.c
432
regs[4] = (voice->GVSel << 31) |
sound/pci/trident/trident_main.c
433
((voice->Pan & 0x0000007f) << 24) |
sound/pci/trident/trident_main.c
434
((voice->CTRL & 0x0000000f) << 12);
sound/pci/trident/trident_main.c
435
FmcRvolCvol = ((voice->FMC & 3) << 14) |
sound/pci/trident/trident_main.c
436
((voice->RVol & 0x7f) << 7) |
sound/pci/trident/trident_main.c
437
(voice->CVol & 0x7f);
sound/pci/trident/trident_main.c
441
regs[4] |= voice->number > 31 ?
sound/pci/trident/trident_main.c
442
(voice->Vol & 0x000003ff) :
sound/pci/trident/trident_main.c
443
((voice->Vol & 0x00003fc) << (16-2)) |
sound/pci/trident/trident_main.c
444
(voice->EC & 0x00000fff);
sound/pci/trident/trident_main.c
445
regs[0] = (voice->CSO << 16) | ((voice->Alpha & 0x00000fff) << 4) |
sound/pci/trident/trident_main.c
446
(voice->FMS & 0x0000000f);
sound/pci/trident/trident_main.c
447
regs[2] = (voice->ESO << 16) | (voice->Delta & 0x0ffff);
sound/pci/trident/trident_main.c
448
regs[3] = (voice->Attribute << 16) | FmcRvolCvol;
sound/pci/trident/trident_main.c
451
regs[4] |= ((voice->Vol & 0x000003fc) << (16-2)) |
sound/pci/trident/trident_main.c
452
(voice->EC & 0x00000fff);
sound/pci/trident/trident_main.c
453
regs[0] = (voice->CSO << 16) | ((voice->Alpha & 0x00000fff) << 4) |
sound/pci/trident/trident_main.c
454
(voice->FMS & 0x0000000f);
sound/pci/trident/trident_main.c
455
regs[2] = (voice->ESO << 16) | (voice->Delta & 0x0ffff);
sound/pci/trident/trident_main.c
459
regs[4] |= ((voice->Vol & 0x000003fc) << (16-2)) |
sound/pci/trident/trident_main.c
460
(voice->EC & 0x00000fff);
sound/pci/trident/trident_main.c
461
regs[0] = (voice->Delta << 24) | (voice->CSO & 0x00ffffff);
sound/pci/trident/trident_main.c
462
regs[2] = ((voice->Delta << 16) & 0xff000000) |
sound/pci/trident/trident_main.c
463
(voice->ESO & 0x00ffffff);
sound/pci/trident/trident_main.c
464
regs[3] = (voice->Alpha << 20) |
sound/pci/trident/trident_main.c
465
((voice->FMS & 0x0000000f) << 16) | FmcRvolCvol;
sound/pci/trident/trident_main.c
472
outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR));
sound/pci/trident/trident_main.c
480
dev_dbg(trident->card->dev, "written %i channel:\n", voice->number);
sound/pci/trident/trident_main.c
509
struct snd_trident_voice * voice,
sound/pci/trident/trident_main.c
512
voice->CSO = CSO;
sound/pci/trident/trident_main.c
513
outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR));
sound/pci/trident/trident_main.c
515
outw(voice->CSO, TRID_REG(trident, CH_DX_CSO_ALPHA_FMS) + 2);
sound/pci/trident/trident_main.c
517
outl((voice->Delta << 24) |
sound/pci/trident/trident_main.c
518
(voice->CSO & 0x00ffffff), TRID_REG(trident, CH_NX_DELTA_CSO));
sound/pci/trident/trident_main.c
53
static void snd_trident_print_voice_regs(struct snd_trident *trident, int voice)
sound/pci/trident/trident_main.c
535
struct snd_trident_voice * voice,
sound/pci/trident/trident_main.c
538
voice->ESO = ESO;
sound/pci/trident/trident_main.c
539
outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR));
sound/pci/trident/trident_main.c
541
outw(voice->ESO, TRID_REG(trident, CH_DX_ESO_DELTA) + 2);
sound/pci/trident/trident_main.c
543
outl(((voice->Delta << 16) & 0xff000000) | (voice->ESO & 0x00ffffff),
sound/pci/trident/trident_main.c
561
struct snd_trident_voice * voice,
sound/pci/trident/trident_main.c
564
voice->Vol = Vol;
sound/pci/trident/trident_main.c
565
outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR));
sound/pci/trident/trident_main.c
569
outb(voice->Vol >> 2, TRID_REG(trident, CH_GVSEL_PAN_VOL_CTRL_EC + 2));
sound/pci/trident/trident_main.c
57
dev_dbg(trident->card->dev, "Trident voice %i:\n", voice);
sound/pci/trident/trident_main.c
573
outw((voice->CTRL << 12) | voice->Vol,
sound/pci/trident/trident_main.c
58
outb(voice, TRID_REG(trident, T4D_LFO_GC_CIR));
sound/pci/trident/trident_main.c
592
struct snd_trident_voice * voice,
sound/pci/trident/trident_main.c
595
voice->Pan = Pan;
sound/pci/trident/trident_main.c
596
outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR));
sound/pci/trident/trident_main.c
597
outb(((voice->GVSel & 0x01) << 7) | (voice->Pan & 0x7f),
sound/pci/trident/trident_main.c
614
struct snd_trident_voice * voice,
sound/pci/trident/trident_main.c
617
voice->RVol = RVol;
sound/pci/trident/trident_main.c
618
outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR));
sound/pci/trident/trident_main.c
619
outw(((voice->FMC & 0x0003) << 14) | ((voice->RVol & 0x007f) << 7) |
sound/pci/trident/trident_main.c
620
(voice->CVol & 0x007f),
sound/pci/trident/trident_main.c
638
struct snd_trident_voice * voice,
sound/pci/trident/trident_main.c
641
voice->CVol = CVol;
sound/pci/trident/trident_main.c
642
outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR));
sound/pci/trident/trident_main.c
643
outw(((voice->FMC & 0x0003) << 14) | ((voice->RVol & 0x007f) << 7) |
sound/pci/trident/trident_main.c
644
(voice->CVol & 0x007f),
sound/pci/trident/trident_main.c
781
struct snd_trident_voice *voice = runtime->private_data;
sound/pci/trident/trident_main.c
785
if (voice->memblk)
sound/pci/trident/trident_main.c
786
snd_trident_free_pages(trident, voice->memblk);
sound/pci/trident/trident_main.c
787
voice->memblk = snd_trident_alloc_pages(trident, substream);
sound/pci/trident/trident_main.c
788
if (voice->memblk == NULL)
sound/pci/trident/trident_main.c
812
struct snd_trident_voice *voice = runtime->private_data;
sound/pci/trident/trident_main.c
813
struct snd_trident_voice *evoice = voice->extra;
sound/pci/trident/trident_main.c
822
voice->extra = evoice;
sound/pci/trident/trident_main.c
828
voice->extra = evoice = NULL;
sound/pci/trident/trident_main.c
873
struct snd_trident_voice *voice = runtime->private_data;
sound/pci/trident/trident_main.c
874
struct snd_trident_voice *evoice = voice ? voice->extra : NULL;
sound/pci/trident/trident_main.c
877
if (voice && voice->memblk) {
sound/pci/trident/trident_main.c
878
snd_trident_free_pages(trident, voice->memblk);
sound/pci/trident/trident_main.c
879
voice->memblk = NULL;
sound/pci/trident/trident_main.c
884
voice->extra = NULL;
sound/pci/trident/trident_main.c
904
struct snd_trident_voice *voice = runtime->private_data;
sound/pci/trident/trident_main.c
905
struct snd_trident_voice *evoice = voice->extra;
sound/pci/trident/trident_main.c
911
voice->Delta = snd_trident_convert_rate(runtime->rate);
sound/pci/trident/trident_main.c
912
voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
sound/pci/trident/trident_main.c
915
if (voice->memblk)
sound/pci/trident/trident_main.c
916
voice->LBA = voice->memblk->offset;
sound/pci/trident/trident_main.c
918
voice->LBA = runtime->dma_addr;
sound/pci/trident/trident_main.c
920
voice->CSO = 0;
sound/pci/trident/trident_main.c
921
voice->ESO = runtime->buffer_size - 1; /* in samples */
sound/pci/trident/trident_main.c
922
voice->CTRL = snd_trident_control_mode(substream);
sound/pci/trident/trident_main.c
923
voice->FMC = 3;
sound/pci/trident/trident_main.c
924
voice->GVSel = 1;
sound/pci/trident/trident_main.c
925
voice->EC = 0;
sound/pci/trident/trident_main.c
926
voice->Alpha = 0;
sound/pci/trident/trident_main.c
927
voice->FMS = 0;
sound/pci/trident/trident_main.c
928
voice->Vol = mix->vol;
sound/pci/trident/trident_main.c
929
voice->RVol = mix->rvol;
sound/pci/trident/trident_main.c
930
voice->CVol = mix->cvol;
sound/pci/trident/trident_main.c
931
voice->Pan = mix->pan;
sound/pci/trident/trident_main.c
932
voice->Attribute = 0;
sound/pci/trident/trident_main.c
934
voice->Attribute = (1<<(30-16))|(2<<(26-16))|
sound/pci/trident/trident_main.c
937
voice->Attribute = 0;
sound/pci/trident/trident_main.c
940
snd_trident_write_voice_regs(trident, voice);
sound/pci/trident/trident_main.c
943
evoice->Delta = voice->Delta;
sound/pci/trident/trident_main.c
944
evoice->spurious_threshold = voice->spurious_threshold;
sound/pci/trident/trident_main.c
945
evoice->LBA = voice->LBA;
sound/pci/trident/trident_main.c
948
evoice->CTRL = voice->CTRL;
sound/pci/ymfpci/ymfpci.h
237
void (*interrupt)(struct snd_ymfpci *chip, struct snd_ymfpci_voice *voice);
sound/pci/ymfpci/ymfpci_main.c
197
struct snd_ymfpci_voice *voice, *voice2;
sound/pci/ymfpci/ymfpci_main.c
202
voice = &chip->voices[idx];
sound/pci/ymfpci/ymfpci_main.c
204
if (voice->use || (voice2 && voice2->use))
sound/pci/ymfpci/ymfpci_main.c
2052
int voice, bank, reg;
sound/pci/ymfpci/ymfpci_main.c
206
voice->use = 1;
sound/pci/ymfpci/ymfpci_main.c
2083
for (voice = 0; voice < YDSXG_PLAYBACK_VOICES; voice++) {
sound/pci/ymfpci/ymfpci_main.c
2084
chip->voices[voice].number = voice;
sound/pci/ymfpci/ymfpci_main.c
2085
chip->voices[voice].bank = (struct snd_ymfpci_playback_bank *)ptr;
sound/pci/ymfpci/ymfpci_main.c
2086
chip->voices[voice].bank_addr = ptr_addr;
sound/pci/ymfpci/ymfpci_main.c
2088
chip->bank_playback[voice][bank] = (struct snd_ymfpci_playback_bank *)ptr;
sound/pci/ymfpci/ymfpci_main.c
2097
for (voice = 0; voice < YDSXG_CAPTURE_VOICES; voice++)
sound/pci/ymfpci/ymfpci_main.c
2099
chip->bank_capture[voice][bank] = (struct snd_ymfpci_capture_bank *)ptr;
sound/pci/ymfpci/ymfpci_main.c
2107
for (voice = 0; voice < YDSXG_EFFECT_VOICES; voice++)
sound/pci/ymfpci/ymfpci_main.c
2109
chip->bank_effect[voice][bank] = (struct snd_ymfpci_effect_bank *)ptr;
sound/pci/ymfpci/ymfpci_main.c
211
voice->pcm = 1;
sound/pci/ymfpci/ymfpci_main.c
216
voice->synth = 1;
sound/pci/ymfpci/ymfpci_main.c
219
voice->midi = 1;
sound/pci/ymfpci/ymfpci_main.c
225
*rvoice = voice;
sound/pci/ymfpci/ymfpci_main.c
273
static void snd_ymfpci_pcm_interrupt(struct snd_ymfpci *chip, struct snd_ymfpci_voice *voice)
sound/pci/ymfpci/ymfpci_main.c
278
ypcm = voice->ypcm;
sound/pci/ymfpci/ymfpci_main.c
285
pos = le32_to_cpu(voice->bank[chip->active_bank].start);
sound/pci/ymfpci/ymfpci_main.c
311
bank = &voice->bank[next_bank];
sound/pci/ymfpci/ymfpci_main.c
463
struct snd_ymfpci_voice *voice = ypcm->voices[voiceidx];
sound/pci/ymfpci/ymfpci_main.c
473
if (snd_BUG_ON(!voice))
sound/pci/ymfpci/ymfpci_main.c
498
ypcm->chip->src441_used == voice->number)) {
sound/pci/ymfpci/ymfpci_main.c
499
ypcm->chip->src441_used = voice->number;
sound/pci/ymfpci/ymfpci_main.c
503
if (ypcm->chip->src441_used == voice->number &&
sound/pci/ymfpci/ymfpci_main.c
512
bank = &voice->bank[nbank];
sound/pci/ymfpci/ymfpci_main.c
716
struct snd_ymfpci_voice *voice = ypcm->voices[0];
sound/pci/ymfpci/ymfpci_main.c
718
if (!(ypcm->running && voice))
sound/pci/ymfpci/ymfpci_main.c
720
return le32_to_cpu(voice->bank[chip->active_bank].start);
sound/pci/ymfpci/ymfpci_main.c
754
struct snd_ymfpci_voice *voice;
sound/pci/ymfpci/ymfpci_main.c
761
voice = &chip->voices[nvoice];
sound/pci/ymfpci/ymfpci_main.c
762
if (voice->interrupt)
sound/pci/ymfpci/ymfpci_main.c
763
voice->interrupt(chip, voice);
sound/soc/codecs/mt6359-accdet.c
337
v >= priv->data->four_key.voice)
sound/soc/codecs/mt6359-accdet.c
339
if (v < priv->data->four_key.voice &&
sound/soc/codecs/mt6359-accdet.h
61
unsigned int voice;
sound/soc/codecs/wm8753.c
1001
voice |= 0x0090;
sound/soc/codecs/wm8753.c
1004
voice |= 0x0080;
sound/soc/codecs/wm8753.c
1007
voice |= 0x0010;
sound/soc/codecs/wm8753.c
1017
snd_soc_component_write(component, WM8753_PCM, voice);
sound/soc/codecs/wm8753.c
891
u16 voice = snd_soc_component_read(component, WM8753_PCM) & 0x01ec;
sound/soc/codecs/wm8753.c
896
voice |= 0x0002;
sound/soc/codecs/wm8753.c
901
voice |= 0x0001;
sound/soc/codecs/wm8753.c
904
voice |= 0x0003;
sound/soc/codecs/wm8753.c
907
voice |= 0x0013;
sound/soc/codecs/wm8753.c
913
snd_soc_component_write(component, WM8753_PCM, voice);
sound/soc/codecs/wm8753.c
926
u16 voice = snd_soc_component_read(component, WM8753_PCM) & 0x01f3;
sound/soc/codecs/wm8753.c
934
voice |= 0x0004;
sound/soc/codecs/wm8753.c
937
voice |= 0x0008;
sound/soc/codecs/wm8753.c
940
voice |= 0x000c;
sound/soc/codecs/wm8753.c
949
snd_soc_component_write(component, WM8753_PCM, voice);
sound/soc/codecs/wm8753.c
959
u16 voice, ioctl;
sound/soc/codecs/wm8753.c
961
voice = snd_soc_component_read(component, WM8753_PCM) & 0x011f;
sound/soc/codecs/wm8753.c
972
voice |= 0x0040;
sound/soc/codecs/wm8753.c
987
voice |= 0x0080;
sound/soc/codecs/wm8753.c
996
voice &= ~0x0010;
sound/soc/samsung/tm2_wm5110.c
433
SND_SOC_DAILINK_DEFS(voice,
sound/soc/samsung/tm2_wm5110.c
463
SND_SOC_DAILINK_REG(voice),
sound/soc/ti/omap-twl4030.c
204
SND_SOC_DAILINK_DEFS(voice,
sound/soc/ti/omap-twl4030.c
222
SND_SOC_DAILINK_REG(voice),
sound/synth/emux/emux_oss.c
325
int voice;
sound/synth/emux/emux_oss.c
331
voice = event[3];
sound/synth/emux/emux_oss.c
332
if (voice < 0 || voice >= port->chset.max_channels)
sound/synth/emux/emux_oss.c
335
chan = &port->chset.channels[voice];
sound/synth/emux/emux_oss.c
363
fake_event(emu, port, voice, MIDI_CTL_ALL_NOTES_OFF, 0, atomic, hop);
sound/synth/emux/emux_oss.c
366
fake_event(emu, port, voice, MIDI_CTL_ALL_SOUNDS_OFF, 0, atomic, hop);
sound/synth/emux/emux_oss.c
420
int voice;
sound/synth/emux/emux_oss.c
429
voice = event[3];
sound/synth/emux/emux_oss.c
430
if (voice < 0 || voice >= port->chset.max_channels)
sound/synth/emux/emux_oss.c
433
chan = &port->chset.channels[voice];
sound/synth/emux/emux_synth.c
915
void snd_emux_lock_voice(struct snd_emux *emu, int voice)
sound/synth/emux/emux_synth.c
918
if (emu->voices[voice].state == SNDRV_EMUX_ST_OFF)
sound/synth/emux/emux_synth.c
919
emu->voices[voice].state = SNDRV_EMUX_ST_LOCKED;
sound/synth/emux/emux_synth.c
923
voice, emu->voices[voice].state);
sound/synth/emux/emux_synth.c
930
void snd_emux_unlock_voice(struct snd_emux *emu, int voice)
sound/synth/emux/emux_synth.c
933
if (emu->voices[voice].state == SNDRV_EMUX_ST_LOCKED)
sound/synth/emux/emux_synth.c
934
emu->voices[voice].state = SNDRV_EMUX_ST_OFF;
sound/synth/emux/emux_synth.c
938
voice, emu->voices[voice].state);