Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 25 of 37) sorted by relevance

12

/sound/pci/emu10k1/
Demu10k1_callback.c103 int ch; in snd_emu10k1_synth_get_voice() local
105 if ((ch = vp->ch) < 0) { in snd_emu10k1_synth_get_voice()
110 vp->ch = -1; in snd_emu10k1_synth_get_voice()
113 return ch; in snd_emu10k1_synth_get_voice()
134 snd_emu10k1_ptr_write(hw, DCYSUSM, vp->ch, dcysusv); in release_voice()
136 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, dcysusv); in release_voice()
151 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, 0x807f | DCYSUSV_CHANNELENABLE_MASK); in terminate_voice()
173 if (hw && (vp->ch >= 0)) { in free_voice()
174 snd_emu10k1_ptr_write(hw, IFATN, vp->ch, 0xff00); in free_voice()
175 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, 0x807f | DCYSUSV_CHANNELENABLE_MASK); in free_voice()
[all …]
Demu10k1_main.c72 void snd_emu10k1_voice_init(struct snd_emu10k1 *emu, int ch) in snd_emu10k1_voice_init() argument
74 snd_emu10k1_ptr_write(emu, DCYSUSV, ch, 0); in snd_emu10k1_voice_init()
75 snd_emu10k1_ptr_write(emu, IP, ch, 0); in snd_emu10k1_voice_init()
76 snd_emu10k1_ptr_write(emu, VTFT, ch, 0xffff); in snd_emu10k1_voice_init()
77 snd_emu10k1_ptr_write(emu, CVCF, ch, 0xffff); in snd_emu10k1_voice_init()
78 snd_emu10k1_ptr_write(emu, PTRX, ch, 0); in snd_emu10k1_voice_init()
79 snd_emu10k1_ptr_write(emu, CPF, ch, 0); in snd_emu10k1_voice_init()
80 snd_emu10k1_ptr_write(emu, CCR, ch, 0); in snd_emu10k1_voice_init()
82 snd_emu10k1_ptr_write(emu, PSST, ch, 0); in snd_emu10k1_voice_init()
83 snd_emu10k1_ptr_write(emu, DSL, ch, 0x10); in snd_emu10k1_voice_init()
[all …]
Dp16v.c869 int i, ch; in snd_p16v_suspend() local
873 for (ch = 0; ch < NUM_CHS; ch++) in snd_p16v_suspend()
875 *val = snd_emu10k1_ptr20_read(emu, i, ch); in snd_p16v_suspend()
880 int i, ch; in snd_p16v_resume() local
884 for (ch = 0; ch < NUM_CHS; ch++) in snd_p16v_resume()
886 snd_emu10k1_ptr20_write(emu, i, ch, *val); in snd_p16v_resume()
Demumixer.c1409 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_send_routing_put() local
1410 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; in snd_emu10k1_efx_send_routing_put()
1425 if (mix->epcm->voices[ch]) { in snd_emu10k1_efx_send_routing_put()
1426 update_emu10k1_fxrt(emu, mix->epcm->voices[ch]->number, in snd_emu10k1_efx_send_routing_put()
1477 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_send_volume_put() local
1478 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; in snd_emu10k1_efx_send_volume_put()
1491 if (mix->epcm->voices[ch]) { in snd_emu10k1_efx_send_volume_put()
1492 update_emu10k1_send_volume(emu, mix->epcm->voices[ch]->number, in snd_emu10k1_efx_send_volume_put()
1540 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_attn_put() local
1541 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; in snd_emu10k1_efx_attn_put()
[all …]
/sound/isa/sb/
Demu8000_pcm.c181 static inline int emu8k_get_curpos(struct snd_emu8k_pcm *rec, int ch) in emu8k_get_curpos() argument
183 int val = EMU8000_CCCA_READ(rec->emu, ch) & 0xfffffff; in emu8k_get_curpos()
184 val -= rec->loop_start[ch] - 1; in emu8k_get_curpos()
282 static void setup_voice(struct snd_emu8k_pcm *rec, int ch) in setup_voice() argument
288 EMU8000_DCYSUSV_WRITE(hw, ch, 0x0080); in setup_voice()
289 EMU8000_VTFT_WRITE(hw, ch, 0x0000FFFF); in setup_voice()
290 EMU8000_CVCF_WRITE(hw, ch, 0x0000FFFF); in setup_voice()
291 EMU8000_PTRX_WRITE(hw, ch, 0); in setup_voice()
292 EMU8000_CPF_WRITE(hw, ch, 0); in setup_voice()
295 EMU8000_IP_WRITE(hw, ch, rec->pitch); in setup_voice()
[all …]
Demu8000_callback.c34 static void reset_voice(struct snd_emux *emu, int ch);
51 static void snd_emu8000_tweak_voice(struct snd_emu8000 *emu, int ch);
102 EMU8000_DCYSUS_WRITE(hw, vp->ch, dcysusv); in release_voice()
104 EMU8000_DCYSUSV_WRITE(hw, vp->ch, dcysusv); in release_voice()
116 EMU8000_DCYSUSV_WRITE(hw, vp->ch, 0x807F); in terminate_voice()
195 val = (EMU8000_CVCF_READ(hw, vp->ch) >> 16) & 0xffff; in get_voice()
207 val = EMU8000_CCCA_READ(hw, vp->ch) & 0xffffff; in get_voice()
221 vp->ch = best[i].voice; in get_voice()
236 int ch; in start_voice() local
242 ch = vp->ch; in start_voice()
[all …]
Demu8000.c109 snd_emu8000_dma_chan(struct snd_emu8000 *emu, int ch, int mode) in snd_emu8000_dma_chan() argument
114 EMU8000_CCCA_WRITE(emu, ch, 0); in snd_emu8000_dma_chan()
115 EMU8000_DCYSUSV_WRITE(emu, ch, 0x807F); in snd_emu8000_dma_chan()
118 EMU8000_DCYSUSV_WRITE(emu, ch, 0x80); in snd_emu8000_dma_chan()
119 EMU8000_VTFT_WRITE(emu, ch, 0); in snd_emu8000_dma_chan()
120 EMU8000_CVCF_WRITE(emu, ch, 0); in snd_emu8000_dma_chan()
121 EMU8000_PTRX_WRITE(emu, ch, 0x40000000); in snd_emu8000_dma_chan()
122 EMU8000_CPF_WRITE(emu, ch, 0x40000000); in snd_emu8000_dma_chan()
123 EMU8000_PSST_WRITE(emu, ch, 0); in snd_emu8000_dma_chan()
124 EMU8000_CSL_WRITE(emu, ch, 0); in snd_emu8000_dma_chan()
[all …]
/sound/core/seq/oss/
Dseq_oss_event.c40 static int note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd…
41 static int note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct sn…
42 static int set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel,…
43 static int set_control_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int …
286 note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event … in note_on_event() argument
291 if (! info->ch || ch < 0 || ch >= info->nr_voices) { in note_on_event()
293 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); in note_on_event()
296 if (note == 255 && info->ch[ch].note >= 0) { in note_on_event()
303 if (info->ch[ch].vel) in note_on_event()
309 info->ch[ch].vel = vel; in note_on_event()
[all …]
Dseq_oss_synth.c247 info->ch = kcalloc(info->nr_voices, sizeof(struct seq_oss_chinfo), GFP_KERNEL); in snd_seq_oss_synth_setup()
248 if (!info->ch) { in snd_seq_oss_synth_setup()
336 kfree(info->ch); in snd_seq_oss_synth_cleanup()
337 info->ch = NULL; in snd_seq_oss_synth_cleanup()
386 if (info->ch == NULL || ! info->nr_voices) in reset_channels()
389 info->ch[i].note = -1; in reset_channels()
390 info->ch[i].vel = 0; in reset_channels()
426 kfree(info->ch); in snd_seq_oss_synth_reset()
427 info->ch = NULL; in snd_seq_oss_synth_reset()
/sound/core/
Dvmaster.c61 int err, ch; in slave_init() local
93 for (ch = 0; ch < slave->info.count; ch++) in slave_init()
94 slave->vals[ch] = uctl->value.integer.value[ch]; in slave_init()
123 int err, ch; in slave_get_val() local
128 for (ch = 0; ch < slave->info.count; ch++) in slave_get_val()
129 ucontrol->value.integer.value[ch] = slave->vals[ch]; in slave_get_val()
136 int err, ch, vol; in slave_put_val() local
144 for (ch = 0; ch < slave->info.count; ch++) in slave_put_val()
145 ucontrol->value.integer.value[ch] &= in slave_put_val()
149 for (ch = 0; ch < slave->info.count; ch++) { in slave_put_val()
[all …]
Dpcm_compat.c325 int err, ch, i; in snd_pcm_ioctl_xfern_compat() local
332 if ((ch = substream->runtime->channels) > 128) in snd_pcm_ioctl_xfern_compat()
338 bufs = kmalloc(sizeof(void __user *) * ch, GFP_KERNEL); in snd_pcm_ioctl_xfern_compat()
341 for (i = 0; i < ch; i++) { in snd_pcm_ioctl_xfern_compat()
347 bufs[ch] = compat_ptr(ptr); in snd_pcm_ioctl_xfern_compat()
/sound/mips/
Dsgio2audio.c366 unsigned int ch, unsigned int count) in snd_sgio2audio_dma_pull_frag() argument
376 struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; in snd_sgio2audio_dma_pull_frag()
378 spin_lock_irqsave(&chip->channel[ch].lock, flags); in snd_sgio2audio_dma_pull_frag()
380 src_base = (unsigned long) chip->ring_base | (ch << CHANNEL_RING_SHIFT); in snd_sgio2audio_dma_pull_frag()
381 src_pos = readq(&mace->perif.audio.chan[ch].read_ptr); in snd_sgio2audio_dma_pull_frag()
383 dst_pos = chip->channel[ch].pos; in snd_sgio2audio_dma_pull_frag()
387 chip->channel[ch].size += (count >> 3); /* in frames */ in snd_sgio2audio_dma_pull_frag()
388 ret = chip->channel[ch].size >= runtime->period_size; in snd_sgio2audio_dma_pull_frag()
389 chip->channel[ch].size %= runtime->period_size; in snd_sgio2audio_dma_pull_frag()
404 writeq(src_pos, &mace->perif.audio.chan[ch].read_ptr); /* in bytes */ in snd_sgio2audio_dma_pull_frag()
[all …]
/sound/pci/au88x0/
Dau88x0_core.c145 int ch;
148 for (ch = 0; ch < 0x20; ch++) {
149 if (((1 << ch) & rampchs[mix]) == 0)
152 VORTEX_MIX_INVOL_B + (((mix << 5) + ch) << 2));
157 (((mix << 5) + ch) << 2), a);
160 (((mix << 5) + ch) << 2), a);
162 vortex_mix_killinput(vortex, mix, ch);
271 vortex_mixer_addWTD(vortex_t * vortex, unsigned char mix, unsigned char ch) in vortex_mixer_addWTD() argument
276 if ((temp & (1 << ch)) == 0) { in vortex_mixer_addWTD()
277 hwwrite(vortex->mmio, VORTEX_MIXER_CHNBASE + (ch << 2), mix); in vortex_mixer_addWTD()
[all …]
/sound/ppc/
Dsnd_ps3.c90 static dma_addr_t v_to_bus(struct snd_ps3_card_info *, void *vaddr, int ch);
264 int ch) in v_to_bus() argument
266 return card->dma_start_bus_addr[ch] + in v_to_bus()
267 (paddr - card->dma_start_vaddr[ch]); in v_to_bus()
276 enum snd_ps3_ch ch, size_t byte_count, in snd_ps3_bump_buffer() argument
280 card->dma_last_transfer_vaddr[ch] = in snd_ps3_bump_buffer()
281 card->dma_next_transfer_vaddr[ch]; in snd_ps3_bump_buffer()
282 card->dma_next_transfer_vaddr[ch] += byte_count; in snd_ps3_bump_buffer()
283 if ((card->dma_start_vaddr[ch] + (card->dma_buffer_size / 2)) <= in snd_ps3_bump_buffer()
284 card->dma_next_transfer_vaddr[ch]) { in snd_ps3_bump_buffer()
[all …]
/sound/pci/ice1712/
Dprodigy_hifi.c508 int ch, change = 0; in wm_master_vol_put() local
511 for (ch = 0; ch < 2; ch++) { in wm_master_vol_put()
512 if (ucontrol->value.integer.value[ch] != spec->master[ch]) { in wm_master_vol_put()
513 spec->master[ch] = ucontrol->value.integer.value[ch]; in wm_master_vol_put()
516 wm_set_vol(ice, WM_DAC_ATTEN_L + ch, in wm_master_vol_put()
517 spec->vol[2 + ch], spec->master[ch]); in wm_master_vol_put()
519 wm8766_set_vol(ice, WM8766_LDA1 + ch, in wm_master_vol_put()
520 spec->vol[0 + ch], spec->master[ch]); in wm_master_vol_put()
522 wm8766_set_vol(ice, WM8766_LDA2 + ch, in wm_master_vol_put()
523 spec->vol[4 + ch], spec->master[ch]); in wm_master_vol_put()
[all …]
Dphase.c360 int ch, change = 0; in wm_master_vol_put() local
363 for (ch = 0; ch < 2; ch++) { in wm_master_vol_put()
364 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put()
367 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
368 if (vol != spec->master[ch]) { in wm_master_vol_put()
370 spec->master[ch] = vol; in wm_master_vol_put()
372 wm_set_vol(ice, WM_DAC_ATTEN + dac + ch, in wm_master_vol_put()
373 spec->vol[dac + ch], in wm_master_vol_put()
374 spec->master[ch]); in wm_master_vol_put()
Dse.c180 static void se200pci_WM8766_set_volume(struct snd_ice1712 *ice, int ch, in se200pci_WM8766_set_volume() argument
183 switch (ch) { in se200pci_WM8766_set_volume()
365 int ch; member
381 .ch = 1,
388 .ch = 2,
395 .ch = 0,
503 se200pci_cont[n].ch, in se200pci_cont_update()
Daureon.c792 int ch, change = 0; in wm_master_vol_put() local
795 for (ch = 0; ch < 2; ch++) { in wm_master_vol_put()
796 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put()
799 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
800 if (vol != spec->master[ch]) { in wm_master_vol_put()
802 spec->master[ch] = vol; in wm_master_vol_put()
804 wm_set_vol(ice, WM_DAC_ATTEN + dac + ch, in wm_master_vol_put()
805 spec->vol[dac + ch], in wm_master_vol_put()
806 spec->master[ch]); in wm_master_vol_put()
/sound/synth/emux/
Demux_synth.c103 if (vp == NULL || vp->ch < 0) in snd_emux_note_on()
160 int ch; in snd_emux_note_off() local
175 for (ch = 0; ch < emu->max_voices; ch++) { in snd_emux_note_off()
176 vp = &emu->voices[ch]; in snd_emux_note_off()
210 int ch, do_again = 0; in snd_emux_timer_callback() local
213 for (ch = 0; ch < emu->max_voices; ch++) { in snd_emux_timer_callback()
214 vp = &emu->voices[ch]; in snd_emux_timer_callback()
239 int ch; in snd_emux_key_press() local
254 for (ch = 0; ch < emu->max_voices; ch++) { in snd_emux_key_press()
255 vp = &emu->voices[ch]; in snd_emux_key_press()
[all …]
/sound/pci/
Dcmipci.c440 unsigned int ch; /* channel (0/1) */ member
705 static void snd_cmipci_ch_reset(struct cmipci *cm, int ch) in snd_cmipci_ch_reset() argument
707 int reset = CM_RST_CH0 << (cm->channel[ch].ch); in snd_cmipci_ch_reset()
742 if (!cm->can_multi_ch || !rec->ch) in set_dac_channels()
816 reg = rec->ch ? CM_REG_CH1_FRAME1 : CM_REG_CH0_FRAME1; in snd_cmipci_pcm_prepare()
819 reg = rec->ch ? CM_REG_CH1_FRAME2 : CM_REG_CH0_FRAME2; in snd_cmipci_pcm_prepare()
824 val = rec->ch ? CM_CHADC1 : CM_CHADC0; in snd_cmipci_pcm_prepare()
845 if (rec->ch) { in snd_cmipci_pcm_prepare()
857 if (rec->ch) { in snd_cmipci_pcm_prepare()
865 val &= ~(CM_CH0_SRATE_MASK << (rec->ch * 2)); in snd_cmipci_pcm_prepare()
[all …]
/sound/pci/hda/
Dhda_codec.c911 #define INFO_AMP_VOL(ch) (1 << (1 + (ch))) argument
1006 int ch, int direction, int index) in get_vol_mute() argument
1010 if (info->head.val & INFO_AMP_VOL(ch)) in get_vol_mute()
1011 return info->vol[ch]; in get_vol_mute()
1013 parm = ch ? AC_AMP_GET_RIGHT : AC_AMP_GET_LEFT; in get_vol_mute()
1018 info->vol[ch] = val & 0xff; in get_vol_mute()
1019 info->head.val |= INFO_AMP_VOL(ch); in get_vol_mute()
1020 return info->vol[ch]; in get_vol_mute()
1027 hda_nid_t nid, int ch, int direction, int index, in put_vol_mute() argument
1032 parm = ch ? AC_AMP_SET_RIGHT : AC_AMP_SET_LEFT; in put_vol_mute()
[all …]
/sound/pci/echoaudio/
Dechoaudio.c108 struct snd_interval ch; in hw_rule_capture_channels_by_format() local
110 snd_interval_any(&ch); in hw_rule_capture_channels_by_format()
114 ch.min = 1; in hw_rule_capture_channels_by_format()
116 ch.max = 2; in hw_rule_capture_channels_by_format()
118 ch.max = 1; in hw_rule_capture_channels_by_format()
120 ch.integer = 1; in hw_rule_capture_channels_by_format()
121 return snd_interval_refine(c, &ch); in hw_rule_capture_channels_by_format()
125 ch.min = 1; in hw_rule_capture_channels_by_format()
126 ch.max = 2; in hw_rule_capture_channels_by_format()
127 ch.integer = 1; in hw_rule_capture_channels_by_format()
[all …]
/sound/core/seq/
Dseq_midi_emul.c669 int ch; in reset_all_channels() local
670 for (ch = 0; ch < chset->max_channels; ch++) { in reset_all_channels()
671 struct snd_midi_channel *chan = chset->channels + ch; in reset_all_channels()
677 if (ch == 9) in reset_all_channels()
/sound/core/oss/
Dmixer_oss.c1150 int ch, idx; in snd_mixer_oss_proc_write() local
1156 for (ch = 0; ch < SNDRV_OSS_MAX_MIXERS; ch++) in snd_mixer_oss_proc_write()
1157 if (oss_mixer_names[ch] && strcmp(oss_mixer_names[ch], str) == 0) in snd_mixer_oss_proc_write()
1159 if (ch >= SNDRV_OSS_MAX_MIXERS) { in snd_mixer_oss_proc_write()
1167 mixer_slot_clear(&mixer->slots[ch]); in snd_mixer_oss_proc_write()
1178 slot = (struct slot *)mixer->slots[ch].private_data; in snd_mixer_oss_proc_write()
1188 tbl->oss_id = ch; in snd_mixer_oss_proc_write()
/sound/pci/ca0106/
Dca0106_main.c1328 int ch; in ca0106_init_chip() local
1407 for (ch = 0; ch < 4; ch++) { in ca0106_init_chip()
1409 snd_ca0106_ptr_write(chip, CAPTURE_VOLUME1, ch, 0x30303030); in ca0106_init_chip()
1410 snd_ca0106_ptr_write(chip, CAPTURE_VOLUME2, ch, 0x30303030); in ca0106_init_chip()
1412 snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME1, ch, 0x40404040); in ca0106_init_chip()
1413 snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME2, ch, 0x40404040); in ca0106_init_chip()
1414 snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME1, ch, 0xffffffff); in ca0106_init_chip()
1415 snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME2, ch, 0xffffffff); in ca0106_init_chip()

12