/sound/core/seq/ |
D | seq_midi_emul.c | 53 int control, int value); 149 ev->data.control.param, ev->data.control.value); in snd_midi_process_event() 152 chan->midi_program = ev->data.control.value; in snd_midi_process_event() 155 chan->midi_pitchbend = ev->data.control.value; in snd_midi_process_event() 156 if (ops->control) in snd_midi_process_event() 157 ops->control(drv, MIDI_CTL_PITCHBEND, chan); in snd_midi_process_event() 160 chan->midi_pressure = ev->data.control.value; in snd_midi_process_event() 161 if (ops->control) in snd_midi_process_event() 162 ops->control(drv, MIDI_CTL_CHAN_PRESSURE, chan); in snd_midi_process_event() 166 if (ev->data.control.param < 32) { in snd_midi_process_event() [all …]
|
D | seq_midi_event.c | 329 ev->data.control.channel = dev->buf[0] & 0x0f; in one_param_ctrl_event() 330 ev->data.control.value = dev->buf[1]; in one_param_ctrl_event() 336 ev->data.control.channel = dev->buf[0] & 0x0f; in pitchbend_ctrl_event() 337 ev->data.control.value = (int)dev->buf[2] * 128 + (int)dev->buf[1] - 8192; in pitchbend_ctrl_event() 343 ev->data.control.channel = dev->buf[0] & 0x0f; in two_param_ctrl_event() 344 ev->data.control.param = dev->buf[1]; in two_param_ctrl_event() 345 ev->data.control.value = dev->buf[2]; in two_param_ctrl_event() 351 ev->data.control.value = dev->buf[1]; in one_param_event() 357 ev->data.control.value = (int)dev->buf[2] * 128 + (int)dev->buf[1]; in songpos_event() 431 buf[0] = ev->data.control.value & 0x7f; in one_param_decode() [all …]
|
/sound/aoa/soundbus/i2sbus/ |
D | core.c | 86 i2sbus_control_remove_dev(i2sdev->control, i2sdev); in i2sbus_release_dev() 153 struct i2sbus_control *control, in i2sbus_add_dev() argument 230 dev->control = control; in i2sbus_add_dev() 298 if (i2sbus_control_add_dev(dev->control, dev)) { in i2sbus_add_dev() 309 i2sbus_control_cell(dev->control, dev, 1); in i2sbus_add_dev() 310 i2sbus_control_enable(dev->control, dev); in i2sbus_add_dev() 311 i2sbus_control_clock(dev->control, dev, 1); in i2sbus_add_dev() 334 struct i2sbus_control *control = NULL; in i2sbus_probe() local 336 err = i2sbus_control_init(dev, &control); in i2sbus_probe() 339 if (!control) { in i2sbus_probe() [all …]
|
D | pcm.c | 273 out_le32(&pi->dbdma->control, (RUN | PAUSE | 1) << 16); in i2sbus_wait_for_stop() 496 i2sbus_control_enable(i2sdev->control, i2sdev); in i2sbus_pcm_prepare() 497 i2sbus_control_cell(i2sdev->control, i2sdev, 1); in i2sbus_pcm_prepare() 501 i2sbus_control_clock(i2sdev->control, i2sdev, 0); in i2sbus_pcm_prepare() 517 i2sbus_control_enable(i2sdev->control, i2sdev); in i2sbus_pcm_prepare() 518 i2sbus_control_cell(i2sdev->control, i2sdev, 1); in i2sbus_pcm_prepare() 519 i2sbus_control_clock(i2sdev->control, i2sdev, 1); in i2sbus_pcm_prepare() 564 out_le32(&pi->dbdma->control, 1 << 16); in i2sbus_pcm_trigger() 576 out_le32(&pi->dbdma->control, (RUN | PAUSE | 1) << 16); in i2sbus_pcm_trigger() 589 out_le32(&pi->dbdma->control, (RUN << 16) | RUN); in i2sbus_pcm_trigger() [all …]
|
D | Makefile | 2 snd-aoa-i2sbus-objs := core.o pcm.o control.o
|
/sound/synth/emux/ |
D | emux_nrpn.c | 31 int control; member 59 if (table[i].control == type) { in send_converted_effect() 296 if (chan->control[MIDI_CTL_NONREG_PARM_NUM_MSB] == 127 && in snd_emux_nrpn() 297 chan->control[MIDI_CTL_NONREG_PARM_NUM_LSB] <= 26) { in snd_emux_nrpn() 301 val = (chan->control[MIDI_CTL_MSB_DATA_ENTRY] << 7) | in snd_emux_nrpn() 302 chan->control[MIDI_CTL_LSB_DATA_ENTRY]; in snd_emux_nrpn() 306 port, chan, chan->control[MIDI_CTL_NONREG_PARM_NUM_LSB], in snd_emux_nrpn() 312 chan->control[MIDI_CTL_NONREG_PARM_NUM_MSB] == 1) { in snd_emux_nrpn() 316 val = chan->control[MIDI_CTL_MSB_DATA_ENTRY]; in snd_emux_nrpn() 319 port, chan, chan->control[MIDI_CTL_NONREG_PARM_NUM_LSB], in snd_emux_nrpn() [all …]
|
D | emux_synth.c | 346 if (chan->control[type] >= 64) in snd_emux_control() 662 pan = chan->control[MIDI_CTL_MSB_PAN] - 64; in calc_pan() 761 expression_vol = chan->control[MIDI_CTL_MSB_EXPRESSION]; in calc_volume() 766 main_vol = chan->control[MIDI_CTL_MSB_MAIN_VOLUME]; in calc_volume() 776 main_vol = chan->control[MIDI_CTL_MSB_MAIN_VOLUME] * vp->reg.amplitude / 127; in calc_volume() 880 val = chan->control[MIDI_CTL_MSB_BANK]; in get_bank() 883 return chan->control[MIDI_CTL_LSB_BANK]; in get_bank() 889 return chan->control[MIDI_CTL_MSB_BANK]; in get_bank() 894 return chan->control[MIDI_CTL_MSB_BANK]; in get_bank()
|
D | emux_oss.c | 458 chan->control[MIDI_CTL_MSB_PAN] = (int)p1 << 3; in gusspec_control() 501 ev.data.control.channel = ch; in fake_event() 502 ev.data.control.param = param; in fake_event() 503 ev.data.control.value = val; in fake_event()
|
/sound/soc/codecs/ |
D | wm8958-dsp2.c | 198 struct wm8994 *control = wm8994->wm8994; in wm8958_dsp_start_mbc() local 213 if (control->pdata.num_mbc_cfgs) { in wm8958_dsp_start_mbc() 215 = &control->pdata.mbc_cfgs[wm8994->mbc_cfg]; in wm8958_dsp_start_mbc() 242 struct wm8994 *control = wm8994->wm8994; in wm8958_dsp_start_vss() local 252 if (control->pdata.num_mbc_cfgs) { in wm8958_dsp_start_vss() 254 = &control->pdata.mbc_cfgs[wm8994->mbc_cfg]; in wm8958_dsp_start_vss() 261 if (control->pdata.num_vss_cfgs) { in wm8958_dsp_start_vss() 263 = &control->pdata.vss_cfgs[wm8994->vss_cfg]; in wm8958_dsp_start_vss() 269 if (control->pdata.num_vss_hpf_cfgs) { in wm8958_dsp_start_vss() 271 = &control->pdata.vss_hpf_cfgs[wm8994->vss_hpf_cfg]; in wm8958_dsp_start_vss() [all …]
|
D | wm8994.c | 112 struct wm8994 *control = wm8994->wm8994; in wm8958_micd_set_rate() local 126 if (control->pdata.micd_rates) { in wm8958_micd_set_rate() 127 rates = control->pdata.micd_rates; in wm8958_micd_set_rate() 128 num_rates = control->pdata.num_micd_rates; in wm8958_micd_set_rate() 325 struct wm8994 *control = wm8994->wm8994; in wm8994_set_drc() local 326 struct wm8994_pdata *pdata = &control->pdata; in wm8994_set_drc() 362 struct wm8994 *control = wm8994->wm8994; in wm8994_put_drc_enum() local 363 struct wm8994_pdata *pdata = &control->pdata; in wm8994_put_drc_enum() 397 struct wm8994 *control = wm8994->wm8994; in wm8994_set_retune_mobile() local 398 struct wm8994_pdata *pdata = &control->pdata; in wm8994_set_retune_mobile() [all …]
|
/sound/usb/ |
D | mixer_quirks.c | 52 unsigned int unitid, control, cmask; member 67 unsigned int control, in snd_create_std_mono_ctl_offset() argument 84 cval->control = control; in snd_create_std_mono_ctl_offset() 120 unsigned int control, in snd_create_std_mono_ctl() argument 126 return snd_create_std_mono_ctl_offset(mixer, unitid, control, cmask, in snd_create_std_mono_ctl() 139 err = snd_create_std_mono_ctl(mixer, t->unitid, t->control, in snd_create_std_mono_table() 1000 unsigned int control, cmask; in snd_ftu_create_volume_ctls() local 1007 control = out + 1; in snd_ftu_create_volume_ctls() 1013 err = snd_create_std_mono_ctl(mixer, id, control, in snd_ftu_create_volume_ctls() 1024 err = snd_create_std_mono_ctl(mixer, id, control, in snd_ftu_create_volume_ctls() [all …]
|
D | mixer.c | 115 find_map(struct mixer_build *state, int unitid, int control) in find_map() argument 124 (!control || !p->control || control == p->control)) in find_map() 433 (cval->control << 8) | channel, in get_cur_mix_raw() 451 cval->control, channel, err); in snd_usb_get_cur_mix_value() 535 __func__, channel, cval->control); in snd_usb_set_cur_mix_value() 540 UAC_SET_CUR, (cval->control << 8) | channel, in snd_usb_set_cur_mix_value() 1017 if (get_ctl_value(cval, UAC_GET_MAX, (cval->control << 8) | minchn, &cval->max) < 0 || in get_min_max_with_quirks() 1018 get_ctl_value(cval, UAC_GET_MIN, (cval->control << 8) | minchn, &cval->min) < 0) { in get_min_max_with_quirks() 1022 cval->control, cval->head.id); in get_min_max_with_quirks() 1026 (cval->control << 8) | minchn, in get_min_max_with_quirks() [all …]
|
/sound/core/ |
D | pcm_compat.c | 481 struct snd_pcm_mmap_control32 control; member 491 volatile struct snd_pcm_mmap_control *control; in snd_pcm_ioctl_sync_ptr_compat() local 502 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_compat() 503 get_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_compat() 511 control = runtime->control; in snd_pcm_ioctl_sync_ptr_compat() 518 control->appl_ptr = scontrol.appl_ptr; in snd_pcm_ioctl_sync_ptr_compat() 520 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_compat() 522 control->avail_min = scontrol.avail_min; in snd_pcm_ioctl_sync_ptr_compat() 524 scontrol.avail_min = control->avail_min; in snd_pcm_ioctl_sync_ptr_compat() 537 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_compat() [all …]
|
D | control.c | 122 struct snd_kcontrol *control; in snd_ctl_release() local 132 list_for_each_entry(control, &card->controls, list) in snd_ctl_release() 133 for (idx = 0; idx < control->count; idx++) in snd_ctl_release() 134 if (control->vd[idx].owner == ctl) in snd_ctl_release() 135 control->vd[idx].owner = NULL; in snd_ctl_release() 886 struct snd_ctl_elem_value *control) in snd_ctl_elem_read() argument 892 kctl = snd_ctl_find_id(card, &control->id); in snd_ctl_elem_read() 896 index_offset = snd_ctl_get_ioff(kctl, &control->id); in snd_ctl_elem_read() 901 snd_ctl_build_ioff(&control->id, kctl, index_offset); in snd_ctl_elem_read() 902 return kctl->get(kctl, control); in snd_ctl_elem_read() [all …]
|
/sound/firewire/oxfw/ |
D | oxfw-spkr.c | 145 static int spkr_mute_get(struct snd_kcontrol *control, in spkr_mute_get() argument 148 struct snd_oxfw *oxfw = control->private_data; in spkr_mute_get() 156 static int spkr_mute_put(struct snd_kcontrol *control, in spkr_mute_put() argument 159 struct snd_oxfw *oxfw = control->private_data; in spkr_mute_put() 178 static int spkr_volume_info(struct snd_kcontrol *control, in spkr_volume_info() argument 181 struct snd_oxfw *oxfw = control->private_data; in spkr_volume_info() 194 static int spkr_volume_get(struct snd_kcontrol *control, in spkr_volume_get() argument 197 struct snd_oxfw *oxfw = control->private_data; in spkr_volume_get() 207 static int spkr_volume_put(struct snd_kcontrol *control, in spkr_volume_put() argument 210 struct snd_oxfw *oxfw = control->private_data; in spkr_volume_put()
|
/sound/core/seq/oss/ |
D | seq_oss_midi.c | 481 ev.data.control.channel = c; in snd_seq_oss_midi_reset() 482 ev.data.control.param = MIDI_CTL_ALL_NOTES_OFF; in snd_seq_oss_midi_reset() 485 ev.data.control.param = in snd_seq_oss_midi_reset() 489 ev.data.control.value = 0; in snd_seq_oss_midi_reset() 587 ossev.l.p1 = ev->data.control.param; in send_synth_event() 588 ossev.l.val = ev->data.control.value; in send_synth_event() 589 ossev.l.chn = ev->data.control.channel; in send_synth_event() 593 ossev.l.val = ev->data.control.value + 8192; in send_synth_event() 594 ossev.l.chn = ev->data.control.channel; in send_synth_event()
|
/sound/usb/6fire/ |
D | control.c | 530 struct snd_kcontrol *control; in usb6fire_control_add_virtual() local 540 control = snd_ctl_new1(&elems[i], rt); in usb6fire_control_add_virtual() 541 if (!control) in usb6fire_control_add_virtual() 543 ret = snd_ctl_add(card, control); in usb6fire_control_add_virtual() 546 ret = snd_ctl_add_slave(vmaster, control); in usb6fire_control_add_virtual() 610 chip->control = rt; in usb6fire_control_init() 619 kfree(chip->control); in usb6fire_control_destroy() 620 chip->control = NULL; in usb6fire_control_destroy()
|
/sound/pci/ |
D | sis7019.c | 532 u32 format, dma_addr, control, sso_eso, delta, reg; in sis_pcm_playback_prepare() local 551 control = leo | SIS_PLAY_DMA_LOOP | SIS_PLAY_DMA_INTR_AT_LEO; in sis_pcm_playback_prepare() 555 control |= SIS_PLAY_DMA_INTR_AT_MLP; in sis_pcm_playback_prepare() 562 control &= ~SIS_PLAY_DMA_INTR_AT_LEO; in sis_pcm_playback_prepare() 563 control |= SIS_PLAY_DMA_INTR_AT_SSO; in sis_pcm_playback_prepare() 573 writel(control, ctrl_base + SIS_PLAY_DMA_CONTROL); in sis_pcm_playback_prepare() 736 u32 format, control, sso_eso, delta; in sis_prepare_timing_voice() local 805 control = timing->buffer_size - 1; in sis_prepare_timing_voice() 806 control |= SIS_PLAY_DMA_LOOP | SIS_PLAY_DMA_INTR_AT_SSO; in sis_prepare_timing_voice() 816 writel(control, play_base + SIS_PLAY_DMA_CONTROL); in sis_prepare_timing_voice() [all …]
|
/sound/soc/ |
D | soc-topology.c | 442 if (sm->dobj.control.kcontrol->tlv.p) in remove_mixer() 443 p = sm->dobj.control.kcontrol->tlv.p; in remove_mixer() 444 snd_ctl_remove(card, sm->dobj.control.kcontrol); in remove_mixer() 464 snd_ctl_remove(card, se->dobj.control.kcontrol); in remove_enum() 467 kfree(se->dobj.control.dvalues); in remove_enum() 469 kfree(se->dobj.control.dtexts[i]); in remove_enum() 487 snd_ctl_remove(card, sb->dobj.control.kcontrol); in remove_bytes() 521 kfree(se->dobj.control.dvalues); in remove_widget() 523 kfree(se->dobj.control.dtexts[j]); in remove_widget() 821 &sbe->dobj.control.kcontrol); in soc_tplg_dbytes_create() [all …]
|
/sound/ppc/ |
D | pmac.c | 175 out_le32(&chip->awacs->control, chip->control_mask | (chip->rate_index << 8)); in snd_pmac_pcm_set_format() 186 out_le32(&rec->dma->control, (RUN|WAKE|FLUSH|PAUSE) << 16); in snd_pmac_dma_stop() 203 out_le32(&rec->dma->control, status | (status << 16)); in snd_pmac_dma_run() 423 out_le32(&rec->dma->control, (RUN|PAUSE|FLUSH|WAKE) << 16); in snd_pmac_pcm_dead_xfer() 456 out_le32(&rec->dma->control, ((RUN|WAKE) << 16) + (RUN|WAKE)); in snd_pmac_pcm_dead_xfer() 747 out_le32(&chip->playback.dma->control, (RUN|PAUSE|FLUSH|WAKE|DEAD) << 16); in snd_pmac_dbdma_reset() 749 out_le32(&chip->capture.dma->control, (RUN|PAUSE|FLUSH|WAKE|DEAD) << 16); in snd_pmac_dbdma_reset() 767 out_le32(&chip->awacs->control, in snd_pmac_beep_dma_start() 768 (in_le32(&chip->awacs->control) & ~0x1f00) in snd_pmac_beep_dma_start() 808 int ctrl = in_le32(&chip->awacs->control); in snd_pmac_ctrl_intr() [all …]
|
/sound/mips/ |
D | sgio2audio.c | 461 writeq(CHANNEL_CONTROL_RESET, &mace->perif.audio.chan[ch].control); in snd_sgio2audio_dma_start() 463 writeq(0, &mace->perif.audio.chan[ch].control); in snd_sgio2audio_dma_start() 471 &mace->perif.audio.chan[ch].control); in snd_sgio2audio_dma_start() 479 writeq(0, &mace->perif.audio.chan[chan->idx].control); in snd_sgio2audio_dma_stop() 802 writeq(AUDIO_CONTROL_RESET, &mace->perif.audio.control); in snd_sgio2audio_free() 804 writeq(0, &mace->perif.audio.control); in snd_sgio2audio_free() 840 if (!(readq(&mace->perif.audio.control) & AUDIO_CONTROL_CODEC_PRESENT)) in snd_sgio2audio_create() 881 writeq(AUDIO_CONTROL_RESET, &mace->perif.audio.control); in snd_sgio2audio_create() 883 writeq(0, &mace->perif.audio.control); in snd_sgio2audio_create()
|
/sound/oss/ |
D | sb_common.c | 1009 unsigned char control; in smw_midi_init() local 1016 control = inb(mpu_base + 7); in smw_midi_init() 1017 outb((control | 3), mpu_base + 7); /* Set last two bits to 1 (?) */ in smw_midi_init() 1018 outb(((control & 0xfe) | 2), mpu_base + 7); /* xxxxxxx0 resets the mc */ in smw_midi_init() 1022 outb((control & 0xfc), mpu_base + 7); /* xxxxxx00 enables RAM */ in smw_midi_init() 1075 control = 0; in smw_midi_init() 1089 control |= scsi_irq_bits[SMW_SCSI_IRQ] << 6; in smw_midi_init() 1101 control |= 0x10; /* Uses IRQ12 if bit 0x20 == 0 */ in smw_midi_init() 1104 outb((control | 0x03), mpu_base + 7); /* xxxxxx11 restarts */ in smw_midi_init()
|
/sound/aoa/core/ |
D | alsa.c | 87 int aoa_snd_ctl_add(struct snd_kcontrol* control) in aoa_snd_ctl_add() argument 93 err = snd_ctl_add(aoa_card->alsa_card, control); in aoa_snd_ctl_add()
|
/sound/pci/oxygen/ |
D | oxygen_io.c | 215 int oxygen_write_spi(struct oxygen *chip, u8 control, unsigned int data) in oxygen_write_spi() argument 223 if (control & OXYGEN_SPI_DATA_LENGTH_3) in oxygen_write_spi() 225 oxygen_write8(chip, OXYGEN_SPI_CONTROL, control); in oxygen_write_spi()
|
/sound/drivers/opl4/ |
D | opl4_synth.c | 393 pan += (voice->chan->control[MIDI_CTL_MSB_PAN] - 0x40) >> 3; in snd_opl4_update_pan() 411 * (voice->chan->control[MIDI_CTL_VIBRATO_DEPTH] & 0x7f); in snd_opl4_update_vibrato_depth() 591 chan->control[MIDI_CTL_VIBRATO_DEPTH] = chan->control[MIDI_CTL_MSB_MODWHEEL]; in snd_opl4_control()
|