/sound/pci/ctxfi/ |
D | cthw20k2.c | 30 struct hw hw; member 39 static u32 hw_read_20kx(struct hw *hw, u32 reg); 40 static void hw_write_20kx(struct hw *hw, u32 reg, u32 data); 363 static int src_commit_write(struct hw *hw, unsigned int idx, void *blk) in src_commit_write() argument 371 hw_write_20kx(hw, SRC_UPZ+idx*0x100+i*0x4, 0); in src_commit_write() 374 hw_write_20kx(hw, SRC_DN0Z+idx*0x100+i*0x4, 0); in src_commit_write() 377 hw_write_20kx(hw, SRC_DN1Z+idx*0x100+i*0x4, 0); in src_commit_write() 387 hw_write_20kx(hw, MIXER_PRING_LO_HI+4*pm_idx, ctl->mpr); in src_commit_write() 388 hw_write_20kx(hw, MIXER_PMOPLO+8*pm_idx, 0x3); in src_commit_write() 389 hw_write_20kx(hw, MIXER_PMOPHI+8*pm_idx, 0x0); in src_commit_write() [all …]
|
D | cthw20k1.c | 31 struct hw hw; member 36 static u32 hw_read_20kx(struct hw *hw, u32 reg); 37 static void hw_write_20kx(struct hw *hw, u32 reg, u32 data); 38 static u32 hw_read_pci(struct hw *hw, u32 reg); 39 static void hw_write_pci(struct hw *hw, u32 reg, u32 data); 363 static int src_commit_write(struct hw *hw, unsigned int idx, void *blk) in src_commit_write() argument 371 hw_write_20kx(hw, SRCUPZ+idx*0x100+i*0x4, 0); in src_commit_write() 374 hw_write_20kx(hw, SRCDN0Z+idx*0x100+i*0x4, 0); in src_commit_write() 377 hw_write_20kx(hw, SRCDN1Z+idx*0x100+i*0x4, 0); in src_commit_write() 387 hw_write_20kx(hw, PRING_LO_HI+4*pm_idx, ctl->mpr); in src_commit_write() [all …]
|
D | ctsrc.c | 40 struct hw *hw; in src_set_state() local 42 hw = src->rsc.hw; in src_set_state() 43 hw->src_set_state(src->rsc.ctrl_blk, state); in src_set_state() 50 struct hw *hw; in src_set_bm() local 52 hw = src->rsc.hw; in src_set_bm() 53 hw->src_set_bm(src->rsc.ctrl_blk, bm); in src_set_bm() 60 struct hw *hw; in src_set_sf() local 62 hw = src->rsc.hw; in src_set_sf() 63 hw->src_set_sf(src->rsc.ctrl_blk, sf); in src_set_sf() 70 struct hw *hw; in src_set_pm() local [all …]
|
D | cthardware.h | 72 struct hw { struct 73 int (*card_init)(struct hw *hw, struct card_conf *info); argument 74 int (*card_stop)(struct hw *hw); argument 75 int (*pll_init)(struct hw *hw, unsigned int rsr); argument 77 int (*suspend)(struct hw *hw); argument 78 int (*resume)(struct hw *hw, struct card_conf *info); argument 80 int (*is_adc_source_selected)(struct hw *hw, enum ADCSRC source); argument 81 int (*select_adc_source)(struct hw *hw, enum ADCSRC source); argument 82 struct capabilities (*capabilities)(struct hw *hw); argument 83 int (*output_switch_get)(struct hw *hw); argument [all …]
|
D | ctresource.c | 138 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw) in rsc_init() argument 146 rsc->hw = hw; in rsc_init() 148 if (!hw) { in rsc_init() 155 err = hw->src_rsc_get_ctrl_blk(&rsc->ctrl_blk); in rsc_init() 158 err = hw->amixer_rsc_get_ctrl_blk(&rsc->ctrl_blk); in rsc_init() 165 dev_err(((struct hw *)hw)->card->dev, in rsc_init() 171 dev_err(((struct hw *)hw)->card->dev, in rsc_init() 181 if ((NULL != rsc->hw) && (NULL != rsc->ctrl_blk)) { in rsc_uninit() 184 rsc->hw->src_rsc_put_ctrl_blk(rsc->ctrl_blk); in rsc_uninit() 187 rsc->hw->amixer_rsc_put_ctrl_blk(rsc->ctrl_blk); in rsc_uninit() [all …]
|
D | ctdaio.c | 107 static unsigned int daio_device_index(enum DAIOTYP type, struct hw *hw) in daio_device_index() argument 109 switch (hw->chip_type) { in daio_device_index() 143 dao->hw->dao_get_spos(dao->ctrl_blk, spos); in dao_spdif_get_spos() 149 dao->hw->dao_set_spos(dao->ctrl_blk, spos); in dao_spdif_set_spos() 155 dao->hw->dao_commit_write(dao->hw, in dao_commit_write() 156 daio_device_index(dao->daio.type, dao->hw), dao->ctrl_blk); in dao_commit_write() 280 dai->hw->dai_srt_set_srcm(dai->ctrl_blk, src->ops->index(src)); in dai_set_srt_srcl() 287 dai->hw->dai_srt_set_srco(dai->ctrl_blk, src->ops->index(src)); in dai_set_srt_srcr() 298 dai->hw->dai_srt_set_rsr(dai->ctrl_blk, rsr); in dai_set_srt_msr() 304 dai->hw->dai_srt_set_ec(dai->ctrl_blk, enb); in dai_set_enb_src() [all …]
|
D | ctamixer.c | 61 struct hw *hw; in amixer_set_input() local 63 hw = amixer->rsc.hw; in amixer_set_input() 64 hw->amixer_set_mode(amixer->rsc.ctrl_blk, AMIXER_Y_IMMEDIATE); in amixer_set_input() 67 hw->amixer_set_x(amixer->rsc.ctrl_blk, BLANK_SLOT); in amixer_set_input() 69 hw->amixer_set_x(amixer->rsc.ctrl_blk, in amixer_set_input() 78 struct hw *hw; in amixer_set_y() local 80 hw = amixer->rsc.hw; in amixer_set_y() 81 hw->amixer_set_y(amixer->rsc.ctrl_blk, y); in amixer_set_y() 88 struct hw *hw; in amixer_set_invalid_squash() local 90 hw = amixer->rsc.hw; in amixer_set_invalid_squash() [all …]
|
D | cttimer.c | 150 struct hw *hw = atimer->atc->hw; in ct_xfitimer_irq_rearm() local 153 hw->set_timer_tick(hw, ticks); in ct_xfitimer_irq_rearm() 155 hw->set_timer_irq(hw, 1); in ct_xfitimer_irq_rearm() 162 struct hw *hw = atimer->atc->hw; in ct_xfitimer_irq_stop() local 163 hw->set_timer_irq(hw, 0); in ct_xfitimer_irq_stop() 164 hw->set_timer_tick(hw, 0); in ct_xfitimer_irq_stop() 171 struct hw *hw = atimer->atc->hw; in ct_xfitimer_get_wc() local 172 return hw->get_wc(hw); in ct_xfitimer_get_wc() 412 struct hw *hw; in ct_timer_new() local 422 hw = atc->hw; in ct_timer_new() [all …]
|
D | ctresource.h | 41 struct hw *hw; /* Chip specific object for hardware access means */ member 54 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw); 63 struct hw *hw; /* Chip specific object for hardware access */ member 68 unsigned int amount, struct hw *hw);
|
D | ctatc.c | 109 typedef int (*create_t)(struct hw *, void **); 113 int (*create)(struct hw *hw, void **rmgr); 851 struct hw *hw = atc->hw; in atc_pll_init() local 853 err = hw->pll_init(hw, rate); in atc_pll_init() 943 struct hw *hw = atc->hw; in atc_select_line_in() local 947 if (hw->is_adc_source_selected(hw, ADC_LINEIN)) in atc_select_line_in() 953 hw->select_adc_source(hw, ADC_LINEIN); in atc_select_line_in() 965 struct hw *hw = atc->hw; in atc_select_mic_in() local 969 if (hw->is_adc_source_selected(hw, ADC_MICIN)) in atc_select_mic_in() 975 hw->select_adc_source(hw, ADC_MICIN); in atc_select_mic_in() [all …]
|
/sound/isa/sb/ |
D | emu8000_callback.c | 45 static void set_pitch(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 46 static void set_volume(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 47 static void set_pan(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 48 static void set_fmmod(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 49 static void set_tremfreq(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 50 static void set_fm2frq2(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 51 static void set_filterQ(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 85 snd_emu8000_ops_setup(struct snd_emu8000 *hw) in snd_emu8000_ops_setup() argument 87 hw->emu->ops = emu8000_ops; in snd_emu8000_ops_setup() 99 struct snd_emu8000 *hw; in release_voice() local [all …]
|
D | emu8000_synth.c | 40 struct snd_emu8000 *hw; in snd_emu8000_probe() local 43 hw = *(struct snd_emu8000**)SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_emu8000_probe() 44 if (hw == NULL) in snd_emu8000_probe() 47 if (hw->emu) in snd_emu8000_probe() 53 hw->emu = emu; in snd_emu8000_probe() 54 snd_emu8000_ops_setup(hw); in snd_emu8000_probe() 56 emu->hw = hw; in snd_emu8000_probe() 58 emu->num_ports = hw->seq_ports; in snd_emu8000_probe() 60 if (hw->memhdr) { in snd_emu8000_probe() 62 snd_util_memhdr_free(hw->memhdr); in snd_emu8000_probe() [all …]
|
D | emu8000_pcm.c | 246 runtime->hw = emu8k_pcm_hw; in emu8k_pcm_open() 247 runtime->hw.buffer_bytes_max = emu->mem_size - LOOP_BLANK_SIZE * 3; in emu8k_pcm_open() 248 runtime->hw.period_bytes_max = runtime->hw.buffer_bytes_max / 2; in emu8k_pcm_open() 284 struct snd_emu8000 *hw = rec->emu; in setup_voice() local 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 …]
|
D | emu8000.c | 1064 static int snd_emu8000_free(struct snd_emu8000 *hw) in snd_emu8000_free() argument 1066 release_and_free_resource(hw->res_port1); in snd_emu8000_free() 1067 release_and_free_resource(hw->res_port2); in snd_emu8000_free() 1068 release_and_free_resource(hw->res_port3); in snd_emu8000_free() 1069 kfree(hw); in snd_emu8000_free() 1077 struct snd_emu8000 *hw = device->device_data; in snd_emu8000_dev_free() local 1078 return snd_emu8000_free(hw); in snd_emu8000_dev_free() 1089 struct snd_emu8000 *hw; in snd_emu8000_new() local 1101 hw = kzalloc(sizeof(*hw), GFP_KERNEL); in snd_emu8000_new() 1102 if (hw == NULL) in snd_emu8000_new() [all …]
|
/sound/pci/emu10k1/ |
D | emu10k1_callback.c | 39 static void lookup_voices(struct snd_emux *emux, struct snd_emu10k1 *hw, 49 static void set_fmmod(struct snd_emu10k1 *hw, struct snd_emux_voice *vp); 50 static void set_fm2frq2(struct snd_emu10k1 *hw, struct snd_emux_voice *vp); 51 static void set_filterQ(struct snd_emu10k1 *hw, struct snd_emux_voice *vp); 92 snd_emu10k1_synth_get_voice(struct snd_emu10k1 *hw) in snd_emu10k1_synth_get_voice() argument 99 emu = hw->synth; in snd_emu10k1_synth_get_voice() 101 lookup_voices(emu, hw, best, 1); /* no OFF voices */ in snd_emu10k1_synth_get_voice() 132 struct snd_emu10k1 *hw; in release_voice() local 134 hw = vp->hw; in release_voice() 136 snd_emu10k1_ptr_write(hw, DCYSUSM, vp->ch, dcysusv); in release_voice() [all …]
|
D | emu10k1_synth.c | 36 struct snd_emu10k1 *hw; in snd_emu10k1_synth_probe() local 55 hw = arg->hwptr; in snd_emu10k1_synth_probe() 56 emux->hw = hw; in snd_emu10k1_synth_probe() 60 emux->memhdr = hw->memhdr; in snd_emu10k1_synth_probe() 64 emux->midi_devidx = hw->audigy ? 2 : 1; in snd_emu10k1_synth_probe() 73 spin_lock_irqsave(&hw->voice_lock, flags); in snd_emu10k1_synth_probe() 74 hw->synth = emux; in snd_emu10k1_synth_probe() 75 hw->get_synth_voice = snd_emu10k1_synth_get_voice; in snd_emu10k1_synth_probe() 76 spin_unlock_irqrestore(&hw->voice_lock, flags); in snd_emu10k1_synth_probe() 87 struct snd_emu10k1 *hw; in snd_emu10k1_synth_remove() local [all …]
|
/sound/core/ |
D | hwdep.c | 59 struct snd_hwdep *hw = file->private_data; in snd_hwdep_llseek() local 60 if (hw->ops.llseek) in snd_hwdep_llseek() 61 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek() 68 struct snd_hwdep *hw = file->private_data; in snd_hwdep_read() local 69 if (hw->ops.read) in snd_hwdep_read() 70 return hw->ops.read(hw, buf, count, offset); in snd_hwdep_read() 77 struct snd_hwdep *hw = file->private_data; in snd_hwdep_write() local 78 if (hw->ops.write) in snd_hwdep_write() 79 return hw->ops.write(hw, buf, count, offset); in snd_hwdep_write() 86 struct snd_hwdep *hw; in snd_hwdep_open() local [all …]
|
D | hwdep_compat.c | 33 static int snd_hwdep_dsp_load_compat(struct snd_hwdep *hw, in snd_hwdep_dsp_load_compat() argument 55 return snd_hwdep_dsp_load(hw, dst); in snd_hwdep_dsp_load_compat() 65 struct snd_hwdep *hw = file->private_data; in snd_hwdep_ioctl_compat() local 73 return snd_hwdep_dsp_load_compat(hw, argp); in snd_hwdep_ioctl_compat() 75 if (hw->ops.ioctl_compat) in snd_hwdep_ioctl_compat() 76 return hw->ops.ioctl_compat(hw, file, cmd, arg); in snd_hwdep_ioctl_compat()
|
/sound/usb/usx2y/ |
D | usX2Yhwdep.c | 60 static int snd_us428ctls_mmap(struct snd_hwdep * hw, struct file *filp, struct vm_area_struct *area) in snd_us428ctls_mmap() argument 63 struct usX2Ydev *us428 = hw->private_data; in snd_us428ctls_mmap() 85 area->vm_private_data = hw->private_data; in snd_us428ctls_mmap() 89 static unsigned int snd_us428ctls_poll(struct snd_hwdep *hw, struct file *file, poll_table *wait) in snd_us428ctls_poll() argument 92 struct usX2Ydev *us428 = hw->private_data; in snd_us428ctls_poll() 106 static int snd_usX2Y_hwdep_dsp_status(struct snd_hwdep *hw, in snd_usX2Y_hwdep_dsp_status() argument 114 struct usX2Ydev *us428 = hw->private_data; in snd_usX2Y_hwdep_dsp_status() 197 static int snd_usX2Y_hwdep_dsp_load(struct snd_hwdep *hw, in snd_usX2Y_hwdep_dsp_load() argument 200 struct usX2Ydev *priv = hw->private_data; in snd_usX2Y_hwdep_dsp_load() 233 err = usX2Y_create_alsa_devices(hw->card); in snd_usX2Y_hwdep_dsp_load() [all …]
|
/sound/oss/ |
D | waveartist.c | 96 struct address_info hw; /* hardware */ member 161 waveartist_set_ctlr(struct address_info *hw, unsigned char clear, unsigned char set) in waveartist_set_ctlr() argument 163 unsigned int ctlr_port = hw->io_base + CTLR; in waveartist_set_ctlr() 175 unsigned int ctlr_port = devc->hw.io_base + CTLR; in waveartist_iack() 194 struct address_info *hw = &devc->hw; in waveartist_reset() local 197 waveartist_set_ctlr(hw, -1, RESET); in waveartist_reset() 199 waveartist_set_ctlr(hw, RESET, 0); in waveartist_reset() 205 if (inb(hw->io_base + STATR) & CMD_RF) { in waveartist_reset() 206 res = inw(hw->io_base + CMDR); in waveartist_reset() 231 unsigned int io_base = devc->hw.io_base; in waveartist_cmd() [all …]
|
/sound/synth/emux/ |
D | emux_hwdep.c | 88 snd_emux_hwdep_ioctl(struct snd_hwdep * hw, struct file *file, in snd_emux_hwdep_ioctl() argument 91 struct snd_emux *emu = hw->private_data; in snd_emux_hwdep_ioctl() 125 struct snd_hwdep *hw; in snd_emux_init_hwdep() local 128 if ((err = snd_hwdep_new(emu->card, SNDRV_EMUX_HWDEP_NAME, emu->hwdep_idx, &hw)) < 0) in snd_emux_init_hwdep() 130 emu->hwdep = hw; in snd_emux_init_hwdep() 131 strcpy(hw->name, SNDRV_EMUX_HWDEP_NAME); in snd_emux_init_hwdep() 132 hw->iface = SNDRV_HWDEP_IFACE_EMUX_WAVETABLE; in snd_emux_init_hwdep() 133 hw->ops.ioctl = snd_emux_hwdep_ioctl; in snd_emux_init_hwdep() 136 hw->ops.ioctl_compat = snd_emux_hwdep_ioctl; in snd_emux_init_hwdep() 137 hw->exclusive = 1; in snd_emux_init_hwdep() [all …]
|
/sound/firewire/fireface/ |
D | ff-pcm.c | 66 static void limit_channels_and_rates(struct snd_pcm_hardware *hw, in limit_channels_and_rates() argument 73 hw->channels_min = UINT_MAX; in limit_channels_and_rates() 74 hw->channels_max = 0; in limit_channels_and_rates() 75 hw->rate_min = UINT_MAX; in limit_channels_and_rates() 76 hw->rate_max = 0; in limit_channels_and_rates() 84 hw->channels_min = min(hw->channels_min, channels); in limit_channels_and_rates() 85 hw->channels_max = max(hw->channels_max, channels); in limit_channels_and_rates() 88 hw->rates |= snd_pcm_rate_to_rate_bit(rate); in limit_channels_and_rates() 89 hw->rate_min = min(hw->rate_min, rate); in limit_channels_and_rates() 90 hw->rate_max = max(hw->rate_max, rate); in limit_channels_and_rates() [all …]
|
/sound/firewire/oxfw/ |
D | oxfw-pcm.c | 80 static void limit_channels_and_rates(struct snd_pcm_hardware *hw, u8 **formats) in limit_channels_and_rates() argument 85 hw->channels_min = UINT_MAX; in limit_channels_and_rates() 86 hw->channels_max = 0; in limit_channels_and_rates() 88 hw->rate_min = UINT_MAX; in limit_channels_and_rates() 89 hw->rate_max = 0; in limit_channels_and_rates() 90 hw->rates = 0; in limit_channels_and_rates() 100 hw->channels_min = min(hw->channels_min, formation.pcm); in limit_channels_and_rates() 101 hw->channels_max = max(hw->channels_max, formation.pcm); in limit_channels_and_rates() 103 hw->rate_min = min(hw->rate_min, formation.rate); in limit_channels_and_rates() 104 hw->rate_max = max(hw->rate_max, formation.rate); in limit_channels_and_rates() [all …]
|
/sound/drivers/opl3/ |
D | opl3_lib.c | 264 timer->hw = snd_opl3_timer1; in snd_opl3_timer1_init() 284 timer->hw = snd_opl3_timer2; in snd_opl3_timer2_init() 294 void snd_opl3_interrupt(struct snd_hwdep * hw) in snd_opl3_interrupt() argument 300 if (hw == NULL) in snd_opl3_interrupt() 303 opl3 = hw->private_data; in snd_opl3_interrupt() 486 struct snd_hwdep *hw; in snd_opl3_hwdep_new() local 495 if ((err = snd_hwdep_new(card, "OPL2/OPL3", device, &hw)) < 0) { in snd_opl3_hwdep_new() 499 hw->private_data = opl3; in snd_opl3_hwdep_new() 500 hw->exclusive = 1; in snd_opl3_hwdep_new() 503 hw->oss_type = SNDRV_OSS_DEVICE_TYPE_DMFM; in snd_opl3_hwdep_new() [all …]
|
/sound/firewire/bebob/ |
D | bebob_pcm.c | 69 limit_channels_and_rates(struct snd_pcm_hardware *hw, in limit_channels_and_rates() argument 74 hw->channels_min = UINT_MAX; in limit_channels_and_rates() 75 hw->channels_max = 0; in limit_channels_and_rates() 77 hw->rate_min = UINT_MAX; in limit_channels_and_rates() 78 hw->rate_max = 0; in limit_channels_and_rates() 79 hw->rates = 0; in limit_channels_and_rates() 86 hw->channels_min = min(hw->channels_min, formations[i].pcm); in limit_channels_and_rates() 87 hw->channels_max = max(hw->channels_max, formations[i].pcm); in limit_channels_and_rates() 89 hw->rate_min = min(hw->rate_min, snd_bebob_rate_table[i]); in limit_channels_and_rates() 90 hw->rate_max = max(hw->rate_max, snd_bebob_rate_table[i]); in limit_channels_and_rates() [all …]
|