/sound/pci/emu10k1/ |
D | emu10k1_callback.c | 104 int ch; in snd_emu10k1_synth_get_voice() local 106 if ((ch = vp->ch) < 0) { in snd_emu10k1_synth_get_voice() 114 vp->ch = -1; in snd_emu10k1_synth_get_voice() 116 return ch; in snd_emu10k1_synth_get_voice() 136 snd_emu10k1_ptr_write(hw, DCYSUSM, vp->ch, dcysusv); in release_voice() 138 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, dcysusv); in release_voice() 153 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, 0x807f | DCYSUSV_CHANNELENABLE_MASK); in terminate_voice() 175 if (hw && (vp->ch >= 0)) { in free_voice() 176 snd_emu10k1_ptr_write(hw, IFATN, vp->ch, 0xff00); in free_voice() 177 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, 0x807f | DCYSUSV_CHANNELENABLE_MASK); in free_voice() [all …]
|
D | emu10k1_main.c | 73 void snd_emu10k1_voice_init(struct snd_emu10k1 *emu, int ch) in snd_emu10k1_voice_init() argument 75 snd_emu10k1_ptr_write(emu, DCYSUSV, ch, 0); in snd_emu10k1_voice_init() 76 snd_emu10k1_ptr_write(emu, IP, ch, 0); in snd_emu10k1_voice_init() 77 snd_emu10k1_ptr_write(emu, VTFT, ch, 0xffff); in snd_emu10k1_voice_init() 78 snd_emu10k1_ptr_write(emu, CVCF, ch, 0xffff); in snd_emu10k1_voice_init() 79 snd_emu10k1_ptr_write(emu, PTRX, ch, 0); in snd_emu10k1_voice_init() 80 snd_emu10k1_ptr_write(emu, CPF, ch, 0); in snd_emu10k1_voice_init() 81 snd_emu10k1_ptr_write(emu, CCR, ch, 0); in snd_emu10k1_voice_init() 83 snd_emu10k1_ptr_write(emu, PSST, ch, 0); in snd_emu10k1_voice_init() 84 snd_emu10k1_ptr_write(emu, DSL, ch, 0x10); in snd_emu10k1_voice_init() [all …]
|
D | p16v.c | 898 int i, ch; in snd_p16v_suspend() local 902 for (ch = 0; ch < NUM_CHS; ch++) in snd_p16v_suspend() 904 *val = snd_emu10k1_ptr20_read(emu, i, ch); in snd_p16v_suspend() 909 int i, ch; in snd_p16v_resume() local 913 for (ch = 0; ch < NUM_CHS; ch++) in snd_p16v_resume() 915 snd_emu10k1_ptr20_write(emu, i, ch, *val); in snd_p16v_resume()
|
/sound/isa/sb/ |
D | emu8000_pcm.c | 182 static inline int emu8k_get_curpos(struct snd_emu8k_pcm *rec, int ch) in emu8k_get_curpos() argument 184 int val = EMU8000_CCCA_READ(rec->emu, ch) & 0xfffffff; in emu8k_get_curpos() 185 val -= rec->loop_start[ch] - 1; in emu8k_get_curpos() 280 static void setup_voice(struct snd_emu8k_pcm *rec, int ch) in setup_voice() argument 286 EMU8000_DCYSUSV_WRITE(hw, ch, 0x0080); in setup_voice() 287 EMU8000_VTFT_WRITE(hw, ch, 0x0000FFFF); in setup_voice() 288 EMU8000_CVCF_WRITE(hw, ch, 0x0000FFFF); in setup_voice() 289 EMU8000_PTRX_WRITE(hw, ch, 0); in setup_voice() 290 EMU8000_CPF_WRITE(hw, ch, 0); in setup_voice() 293 EMU8000_IP_WRITE(hw, ch, rec->pitch); in setup_voice() [all …]
|
D | emu8000_callback.c | 35 static void reset_voice(struct snd_emux *emu, int ch); 52 static void snd_emu8000_tweak_voice(struct snd_emu8000 *emu, int ch); 103 EMU8000_DCYSUS_WRITE(hw, vp->ch, dcysusv); in release_voice() 105 EMU8000_DCYSUSV_WRITE(hw, vp->ch, dcysusv); in release_voice() 117 EMU8000_DCYSUSV_WRITE(hw, vp->ch, 0x807F); in terminate_voice() 196 val = (EMU8000_CVCF_READ(hw, vp->ch) >> 16) & 0xffff; in get_voice() 208 val = EMU8000_CCCA_READ(hw, vp->ch) & 0xffffff; in get_voice() 222 vp->ch = best[i].voice; in get_voice() 237 int ch; in start_voice() local 243 ch = vp->ch; in start_voice() [all …]
|
D | emu8000.c | 110 snd_emu8000_dma_chan(struct snd_emu8000 *emu, int ch, int mode) in snd_emu8000_dma_chan() argument 115 EMU8000_CCCA_WRITE(emu, ch, 0); in snd_emu8000_dma_chan() 116 EMU8000_DCYSUSV_WRITE(emu, ch, 0x807F); in snd_emu8000_dma_chan() 119 EMU8000_DCYSUSV_WRITE(emu, ch, 0x80); in snd_emu8000_dma_chan() 120 EMU8000_VTFT_WRITE(emu, ch, 0); in snd_emu8000_dma_chan() 121 EMU8000_CVCF_WRITE(emu, ch, 0); in snd_emu8000_dma_chan() 122 EMU8000_PTRX_WRITE(emu, ch, 0x40000000); in snd_emu8000_dma_chan() 123 EMU8000_CPF_WRITE(emu, ch, 0x40000000); in snd_emu8000_dma_chan() 124 EMU8000_PSST_WRITE(emu, ch, 0); in snd_emu8000_dma_chan() 125 EMU8000_CSL_WRITE(emu, ch, 0); in snd_emu8000_dma_chan() [all …]
|
/sound/core/seq/oss/ |
D | seq_oss_event.c | 41 static int note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd… 42 static int note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct sn… 43 static int set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel,… 44 static int set_control_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int … 287 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 297 if (! info->ch || ch < 0 || ch >= info->nr_voices) { in note_on_event() 299 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); in note_on_event() 302 ch = array_index_nospec(ch, info->nr_voices); in note_on_event() 303 if (note == 255 && info->ch[ch].note >= 0) { in note_on_event() 310 if (info->ch[ch].vel) in note_on_event() [all …]
|
D | seq_oss_synth.c | 250 info->ch = kcalloc(info->nr_voices, sizeof(struct seq_oss_chinfo), GFP_KERNEL); in snd_seq_oss_synth_setup() 251 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() 388 if (info->ch == NULL || ! info->nr_voices) in reset_channels() 391 info->ch[i].note = -1; in reset_channels() 392 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/ |
D | vmaster.c | 64 int err, ch; in slave_update() local 73 for (ch = 0; ch < slave->info.count; ch++) in slave_update() 74 slave->vals[ch] = uctl->value.integer.value[ch]; in slave_update() 144 int err, ch; in slave_get_val() local 149 for (ch = 0; ch < slave->info.count; ch++) in slave_get_val() 150 ucontrol->value.integer.value[ch] = slave->vals[ch]; in slave_get_val() 157 int err, ch, vol; in slave_put_val() local 165 for (ch = 0; ch < slave->info.count; ch++) in slave_put_val() 166 ucontrol->value.integer.value[ch] &= in slave_put_val() 170 for (ch = 0; ch < slave->info.count; ch++) { in slave_put_val() [all …]
|
/sound/mips/ |
D | sgio2audio.c | 359 unsigned int ch, unsigned int count) in snd_sgio2audio_dma_pull_frag() argument 369 struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; in snd_sgio2audio_dma_pull_frag() 371 spin_lock_irqsave(&chip->channel[ch].lock, flags); in snd_sgio2audio_dma_pull_frag() 373 src_base = (unsigned long) chip->ring_base | (ch << CHANNEL_RING_SHIFT); in snd_sgio2audio_dma_pull_frag() 374 src_pos = readq(&mace->perif.audio.chan[ch].read_ptr); in snd_sgio2audio_dma_pull_frag() 376 dst_pos = chip->channel[ch].pos; in snd_sgio2audio_dma_pull_frag() 380 chip->channel[ch].size += (count >> 3); /* in frames */ in snd_sgio2audio_dma_pull_frag() 381 ret = chip->channel[ch].size >= runtime->period_size; in snd_sgio2audio_dma_pull_frag() 382 chip->channel[ch].size %= runtime->period_size; in snd_sgio2audio_dma_pull_frag() 397 writeq(src_pos, &mace->perif.audio.chan[ch].read_ptr); /* in bytes */ in snd_sgio2audio_dma_pull_frag() [all …]
|
/sound/usb/6fire/ |
D | control.c | 193 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_vol_put() local 196 if (ch > 4) { in usb6fire_control_output_vol_put() 202 if (rt->output_vol[ch] != ucontrol->value.integer.value[0]) { in usb6fire_control_output_vol_put() 203 rt->output_vol[ch] = ucontrol->value.integer.value[0]; in usb6fire_control_output_vol_put() 204 rt->ovol_updated &= ~(1 << ch); in usb6fire_control_output_vol_put() 207 if (rt->output_vol[ch + 1] != ucontrol->value.integer.value[1]) { in usb6fire_control_output_vol_put() 208 rt->output_vol[ch + 1] = ucontrol->value.integer.value[1]; in usb6fire_control_output_vol_put() 209 rt->ovol_updated &= ~(2 << ch); in usb6fire_control_output_vol_put() 223 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_vol_get() local 225 if (ch > 4) { in usb6fire_control_output_vol_get() [all …]
|
/sound/pci/au88x0/ |
D | au88x0_core.c | 145 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/ |
D | snd_ps3.c | 201 static dma_addr_t v_to_bus(struct snd_ps3_card_info *card, void *paddr, int ch) in v_to_bus() argument 203 return card->dma_start_bus_addr[ch] + in v_to_bus() 204 (paddr - card->dma_start_vaddr[ch]); in v_to_bus() 213 enum snd_ps3_ch ch, size_t byte_count, in snd_ps3_bump_buffer() argument 217 card->dma_last_transfer_vaddr[ch] = in snd_ps3_bump_buffer() 218 card->dma_next_transfer_vaddr[ch]; in snd_ps3_bump_buffer() 219 card->dma_next_transfer_vaddr[ch] += byte_count; in snd_ps3_bump_buffer() 220 if ((card->dma_start_vaddr[ch] + (card->dma_buffer_size / 2)) <= in snd_ps3_bump_buffer() 221 card->dma_next_transfer_vaddr[ch]) { in snd_ps3_bump_buffer() 222 card->dma_next_transfer_vaddr[ch] = card->dma_start_vaddr[ch]; in snd_ps3_bump_buffer() [all …]
|
/sound/soc/qcom/ |
D | lpass-platform.c | 196 int ret, ch = pcm_data->rdma_ch; in lpass_platform_pcmops_prepare() local 199 LPAIF_RDMABASE_REG(v, ch), in lpass_platform_pcmops_prepare() 208 LPAIF_RDMABUFF_REG(v, ch), in lpass_platform_pcmops_prepare() 217 LPAIF_RDMAPER_REG(v, ch), in lpass_platform_pcmops_prepare() 226 LPAIF_RDMACTL_REG(v, ch), in lpass_platform_pcmops_prepare() 245 int ret, ch = pcm_data->rdma_ch; in lpass_platform_pcmops_trigger() local 254 LPAIF_IRQ_ALL(ch)); in lpass_platform_pcmops_trigger() 263 LPAIF_IRQ_ALL(ch), in lpass_platform_pcmops_trigger() 264 LPAIF_IRQ_ALL(ch)); in lpass_platform_pcmops_trigger() 272 LPAIF_RDMACTL_REG(v, ch), in lpass_platform_pcmops_trigger() [all …]
|
/sound/pci/ice1712/ |
D | prodigy_hifi.c | 508 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 …]
|
D | maya44.c | 208 int ch, changed = 0; in maya_vol_put() local 211 for (ch = 0; ch < 2; ch++) { in maya_vol_put() 212 val = ucontrol->value.integer.value[ch]; in maya_vol_put() 215 if (val == wm->volumes[idx][ch]) in maya_vol_put() 222 changed |= wm8776_write_bits(chip->ice, wm, vol->regs[ch], in maya_vol_put() 224 if (vol->mux_bits[ch]) in maya_vol_put() 226 vol->mux_bits[ch], in maya_vol_put() 227 val ? 0 : vol->mux_bits[ch]); in maya_vol_put() 228 wm->volumes[idx][ch] = val; in maya_vol_put()
|
D | phase.c | 359 int ch, change = 0; in wm_master_vol_put() local 362 for (ch = 0; ch < 2; ch++) { in wm_master_vol_put() 363 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() 366 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put() 367 if (vol != spec->master[ch]) { in wm_master_vol_put() 369 spec->master[ch] = vol; in wm_master_vol_put() 371 wm_set_vol(ice, WM_DAC_ATTEN + dac + ch, in wm_master_vol_put() 372 spec->vol[dac + ch], in wm_master_vol_put() 373 spec->master[ch]); in wm_master_vol_put()
|
D | se.c | 179 static void se200pci_WM8766_set_volume(struct snd_ice1712 *ice, int ch, in se200pci_WM8766_set_volume() argument 182 switch (ch) { in se200pci_WM8766_set_volume() 364 int ch; member 380 .ch = 1, 387 .ch = 2, 394 .ch = 0, 495 se200pci_cont[n].ch, in se200pci_cont_update()
|
/sound/synth/emux/ |
D | emux_synth.c | 104 if (vp == NULL || vp->ch < 0) in snd_emux_note_on() 161 int ch; in snd_emux_note_off() local 176 for (ch = 0; ch < emu->max_voices; ch++) { in snd_emux_note_off() 177 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() 238 int ch; in snd_emux_key_press() local 253 for (ch = 0; ch < emu->max_voices; ch++) { in snd_emux_key_press() 254 vp = &emu->voices[ch]; in snd_emux_key_press() [all …]
|
/sound/pci/ |
D | cmipci.c | 440 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/soc/intel/common/ |
D | sst-firmware.c | 49 struct dma_chan *ch; member 71 if (dma->ch == NULL) { in sst_dsp_dma_copy() 79 desc = dma->ch->device->device_prep_dma_memcpy(dma->ch, dest_addr, in sst_dsp_dma_copy() 222 dma->ch = dma_request_channel(mask, dma_chan_filter, dsp); in sst_dsp_dma_get_channel() 223 if (dma->ch == NULL) { in sst_dsp_dma_get_channel() 234 ret = dmaengine_slave_config(dma->ch, &slave); in sst_dsp_dma_get_channel() 238 dma_release_channel(dma->ch); in sst_dsp_dma_get_channel() 239 dma->ch = NULL; in sst_dsp_dma_get_channel() 250 if (!dma->ch) in sst_dsp_dma_put_channel() 253 dma_release_channel(dma->ch); in sst_dsp_dma_put_channel() [all …]
|
/sound/usb/ |
D | mixer_quirks.c | 1078 int err, ch; in snd_ftu_create_effect_return_ctls() local 1085 for (ch = 0; ch < 4; ++ch) { in snd_ftu_create_effect_return_ctls() 1086 cmask = 1 << ch; in snd_ftu_create_effect_return_ctls() 1088 "Effect Return %d Volume", ch + 1); in snd_ftu_create_effect_return_ctls() 1102 int err, ch; in snd_ftu_create_effect_send_ctls() local 1109 for (ch = 0; ch < 8; ++ch) { in snd_ftu_create_effect_send_ctls() 1110 cmask = 1 << ch; in snd_ftu_create_effect_send_ctls() 1112 "Effect Send AIn%d Volume", ch + 1); in snd_ftu_create_effect_send_ctls() 1119 for (ch = 8; ch < 16; ++ch) { in snd_ftu_create_effect_send_ctls() 1120 cmask = 1 << ch; in snd_ftu_create_effect_send_ctls() [all …]
|
/sound/pci/echoaudio/ |
D | echoaudio.c | 152 struct snd_interval ch; in hw_rule_capture_channels_by_format() local 154 snd_interval_any(&ch); in hw_rule_capture_channels_by_format() 158 ch.min = 1; in hw_rule_capture_channels_by_format() 160 ch.max = 2; in hw_rule_capture_channels_by_format() 162 ch.max = 1; in hw_rule_capture_channels_by_format() 164 ch.integer = 1; in hw_rule_capture_channels_by_format() 165 return snd_interval_refine(c, &ch); in hw_rule_capture_channels_by_format() 169 ch.min = 1; in hw_rule_capture_channels_by_format() 170 ch.max = 2; in hw_rule_capture_channels_by_format() 171 ch.integer = 1; in hw_rule_capture_channels_by_format() [all …]
|
/sound/core/seq/ |
D | seq_midi_emul.c | 673 int ch; in reset_all_channels() local 674 for (ch = 0; ch < chset->max_channels; ch++) { in reset_all_channels() 675 struct snd_midi_channel *chan = chset->channels + ch; in reset_all_channels() 681 if (ch == 9) in reset_all_channels()
|
/sound/pci/hda/ |
D | hda_codec.c | 1189 int ch, int dir, int idx, int mask, int val) in snd_hda_codec_amp_update() argument 1191 unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx); in snd_hda_codec_amp_update() 1216 int ch, ret = 0; in snd_hda_codec_amp_stereo() local 1220 for (ch = 0; ch < 2; ch++) in snd_hda_codec_amp_stereo() 1221 ret |= snd_hda_codec_amp_update(codec, nid, ch, direction, in snd_hda_codec_amp_stereo() 1241 int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, in snd_hda_codec_amp_init() argument 1249 orig = snd_hda_codec_amp_read(codec, nid, ch, dir, idx); in snd_hda_codec_amp_init() 1253 return snd_hda_codec_amp_update(codec, nid, ch, dir, idx, mask, val); in snd_hda_codec_amp_init() 1271 int ch, ret = 0; in snd_hda_codec_amp_init_stereo() local 1275 for (ch = 0; ch < 2; ch++) in snd_hda_codec_amp_init_stereo() [all …]
|