/sound/pci/ctxfi/ |
D | cthw20k2.c | 26 struct hw hw; member 35 static u32 hw_read_20kx(struct hw *hw, u32 reg); 36 static void hw_write_20kx(struct hw *hw, u32 reg, u32 data); 359 static int src_commit_write(struct hw *hw, unsigned int idx, void *blk) in src_commit_write() argument 367 hw_write_20kx(hw, SRC_UPZ+idx*0x100+i*0x4, 0); in src_commit_write() 370 hw_write_20kx(hw, SRC_DN0Z+idx*0x100+i*0x4, 0); in src_commit_write() 373 hw_write_20kx(hw, SRC_DN1Z+idx*0x100+i*0x4, 0); in src_commit_write() 383 hw_write_20kx(hw, MIXER_PRING_LO_HI+4*pm_idx, ctl->mpr); in src_commit_write() 384 hw_write_20kx(hw, MIXER_PMOPLO+8*pm_idx, 0x3); in src_commit_write() 385 hw_write_20kx(hw, MIXER_PMOPHI+8*pm_idx, 0x0); in src_commit_write() [all …]
|
D | cthw20k1.c | 27 struct hw hw; member 32 static u32 hw_read_20kx(struct hw *hw, u32 reg); 33 static void hw_write_20kx(struct hw *hw, u32 reg, u32 data); 34 static u32 hw_read_pci(struct hw *hw, u32 reg); 35 static void hw_write_pci(struct hw *hw, u32 reg, u32 data); 359 static int src_commit_write(struct hw *hw, unsigned int idx, void *blk) in src_commit_write() argument 367 hw_write_20kx(hw, SRCUPZ+idx*0x100+i*0x4, 0); in src_commit_write() 370 hw_write_20kx(hw, SRCDN0Z+idx*0x100+i*0x4, 0); in src_commit_write() 373 hw_write_20kx(hw, SRCDN1Z+idx*0x100+i*0x4, 0); in src_commit_write() 383 hw_write_20kx(hw, PRING_LO_HI+4*pm_idx, ctl->mpr); in src_commit_write() [all …]
|
D | ctsrc.c | 36 struct hw *hw; in src_set_state() local 38 hw = src->rsc.hw; in src_set_state() 39 hw->src_set_state(src->rsc.ctrl_blk, state); in src_set_state() 46 struct hw *hw; in src_set_bm() local 48 hw = src->rsc.hw; in src_set_bm() 49 hw->src_set_bm(src->rsc.ctrl_blk, bm); in src_set_bm() 56 struct hw *hw; in src_set_sf() local 58 hw = src->rsc.hw; in src_set_sf() 59 hw->src_set_sf(src->rsc.ctrl_blk, sf); in src_set_sf() 66 struct hw *hw; in src_set_pm() local [all …]
|
D | cthardware.h | 69 struct hw { struct 70 int (*card_init)(struct hw *hw, struct card_conf *info); argument 71 int (*card_stop)(struct hw *hw); argument 72 int (*pll_init)(struct hw *hw, unsigned int rsr); argument 74 int (*suspend)(struct hw *hw); argument 75 int (*resume)(struct hw *hw, struct card_conf *info); argument 77 int (*is_adc_source_selected)(struct hw *hw, enum ADCSRC source); argument 78 int (*select_adc_source)(struct hw *hw, enum ADCSRC source); argument 79 struct capabilities (*capabilities)(struct hw *hw); argument 80 int (*output_switch_get)(struct hw *hw); argument [all …]
|
D | ctresource.c | 133 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw) in rsc_init() argument 141 rsc->hw = hw; in rsc_init() 143 if (!hw) { in rsc_init() 150 err = hw->src_rsc_get_ctrl_blk(&rsc->ctrl_blk); in rsc_init() 153 err = hw->amixer_rsc_get_ctrl_blk(&rsc->ctrl_blk); in rsc_init() 160 dev_err(((struct hw *)hw)->card->dev, in rsc_init() 166 dev_err(((struct hw *)hw)->card->dev, in rsc_init() 176 if ((NULL != rsc->hw) && (NULL != rsc->ctrl_blk)) { in rsc_uninit() 179 rsc->hw->src_rsc_put_ctrl_blk(rsc->ctrl_blk); in rsc_uninit() 182 rsc->hw->amixer_rsc_put_ctrl_blk(rsc->ctrl_blk); in rsc_uninit() [all …]
|
D | ctdaio.c | 103 static unsigned int daio_device_index(enum DAIOTYP type, struct hw *hw) in daio_device_index() argument 105 switch (hw->chip_type) { in daio_device_index() 139 dao->hw->dao_get_spos(dao->ctrl_blk, spos); in dao_spdif_get_spos() 145 dao->hw->dao_set_spos(dao->ctrl_blk, spos); in dao_spdif_set_spos() 151 dao->hw->dao_commit_write(dao->hw, in dao_commit_write() 152 daio_device_index(dao->daio.type, dao->hw), dao->ctrl_blk); in dao_commit_write() 276 dai->hw->dai_srt_set_srcm(dai->ctrl_blk, src->ops->index(src)); in dai_set_srt_srcl() 283 dai->hw->dai_srt_set_srco(dai->ctrl_blk, src->ops->index(src)); in dai_set_srt_srcr() 294 dai->hw->dai_srt_set_rsr(dai->ctrl_blk, rsr); in dai_set_srt_msr() 300 dai->hw->dai_srt_set_ec(dai->ctrl_blk, enb); in dai_set_enb_src() [all …]
|
D | ctamixer.c | 56 struct hw *hw; in amixer_set_input() local 58 hw = amixer->rsc.hw; in amixer_set_input() 59 hw->amixer_set_mode(amixer->rsc.ctrl_blk, AMIXER_Y_IMMEDIATE); in amixer_set_input() 62 hw->amixer_set_x(amixer->rsc.ctrl_blk, BLANK_SLOT); in amixer_set_input() 64 hw->amixer_set_x(amixer->rsc.ctrl_blk, in amixer_set_input() 73 struct hw *hw; in amixer_set_y() local 75 hw = amixer->rsc.hw; in amixer_set_y() 76 hw->amixer_set_y(amixer->rsc.ctrl_blk, y); in amixer_set_y() 83 struct hw *hw; in amixer_set_invalid_squash() local 85 hw = amixer->rsc.hw; in amixer_set_invalid_squash() [all …]
|
D | cttimer.c | 146 struct hw *hw = atimer->atc->hw; in ct_xfitimer_irq_rearm() local 149 hw->set_timer_tick(hw, ticks); in ct_xfitimer_irq_rearm() 151 hw->set_timer_irq(hw, 1); in ct_xfitimer_irq_rearm() 158 struct hw *hw = atimer->atc->hw; in ct_xfitimer_irq_stop() local 159 hw->set_timer_irq(hw, 0); in ct_xfitimer_irq_stop() 160 hw->set_timer_tick(hw, 0); in ct_xfitimer_irq_stop() 167 struct hw *hw = atimer->atc->hw; in ct_xfitimer_get_wc() local 168 return hw->get_wc(hw); in ct_xfitimer_get_wc() 408 struct hw *hw; in ct_timer_new() local 418 hw = atc->hw; in ct_timer_new() [all …]
|
D | ctresource.h | 37 struct hw *hw; /* Chip specific object for hardware access means */ member 50 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw); 59 struct hw *hw; /* Chip specific object for hardware access */ member 64 unsigned int amount, struct hw *hw);
|
/sound/isa/sb/ |
D | emu8000_callback.c | 32 static void set_pitch(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 33 static void set_volume(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 34 static void set_pan(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 35 static void set_fmmod(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 36 static void set_tremfreq(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 37 static void set_fm2frq2(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 38 static void set_filterQ(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 72 snd_emu8000_ops_setup(struct snd_emu8000 *hw) in snd_emu8000_ops_setup() argument 74 hw->emu->ops = emu8000_ops; in snd_emu8000_ops_setup() 86 struct snd_emu8000 *hw; in release_voice() local [all …]
|
D | emu8000_synth.c | 27 struct snd_emu8000 *hw; in snd_emu8000_probe() local 30 hw = *(struct snd_emu8000**)SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_emu8000_probe() 31 if (hw == NULL) in snd_emu8000_probe() 34 if (hw->emu) in snd_emu8000_probe() 40 hw->emu = emu; in snd_emu8000_probe() 41 snd_emu8000_ops_setup(hw); in snd_emu8000_probe() 43 emu->hw = hw; in snd_emu8000_probe() 45 emu->num_ports = hw->seq_ports; in snd_emu8000_probe() 47 if (hw->memhdr) { in snd_emu8000_probe() 49 snd_util_memhdr_free(hw->memhdr); in snd_emu8000_probe() [all …]
|
D | emu8000_pcm.c | 233 runtime->hw = emu8k_pcm_hw; in emu8k_pcm_open() 234 runtime->hw.buffer_bytes_max = emu->mem_size - LOOP_BLANK_SIZE * 3; in emu8k_pcm_open() 235 runtime->hw.period_bytes_max = runtime->hw.buffer_bytes_max / 2; in emu8k_pcm_open() 271 struct snd_emu8000 *hw = rec->emu; in setup_voice() local 275 EMU8000_DCYSUSV_WRITE(hw, ch, 0x0080); in setup_voice() 276 EMU8000_VTFT_WRITE(hw, ch, 0x0000FFFF); in setup_voice() 277 EMU8000_CVCF_WRITE(hw, ch, 0x0000FFFF); in setup_voice() 278 EMU8000_PTRX_WRITE(hw, ch, 0); in setup_voice() 279 EMU8000_CPF_WRITE(hw, ch, 0); in setup_voice() 282 EMU8000_IP_WRITE(hw, ch, rec->pitch); in setup_voice() [all …]
|
/sound/pci/emu10k1/ |
D | emu10k1_callback.c | 26 static void lookup_voices(struct snd_emux *emux, struct snd_emu10k1 *hw, 36 static void set_fmmod(struct snd_emu10k1 *hw, struct snd_emux_voice *vp); 37 static void set_fm2frq2(struct snd_emu10k1 *hw, struct snd_emux_voice *vp); 38 static void set_filterQ(struct snd_emu10k1 *hw, struct snd_emux_voice *vp); 79 snd_emu10k1_synth_get_voice(struct snd_emu10k1 *hw) in snd_emu10k1_synth_get_voice() argument 86 emu = hw->synth; in snd_emu10k1_synth_get_voice() 88 lookup_voices(emu, hw, best, 1); /* no OFF voices */ in snd_emu10k1_synth_get_voice() 120 struct snd_emu10k1 *hw; in release_voice() local 122 hw = vp->hw; in release_voice() 124 snd_emu10k1_ptr_write(hw, DCYSUSM, vp->ch, dcysusv); in release_voice() [all …]
|
D | emu10k1_synth.c | 23 struct snd_emu10k1 *hw; in snd_emu10k1_synth_probe() local 42 hw = arg->hwptr; in snd_emu10k1_synth_probe() 43 emux->hw = hw; in snd_emu10k1_synth_probe() 47 emux->memhdr = hw->memhdr; in snd_emu10k1_synth_probe() 51 emux->midi_devidx = hw->audigy ? 2 : 1; in snd_emu10k1_synth_probe() 60 spin_lock_irqsave(&hw->voice_lock, flags); in snd_emu10k1_synth_probe() 61 hw->synth = emux; in snd_emu10k1_synth_probe() 62 hw->get_synth_voice = snd_emu10k1_synth_get_voice; in snd_emu10k1_synth_probe() 63 spin_unlock_irqrestore(&hw->voice_lock, flags); in snd_emu10k1_synth_probe() 74 struct snd_emu10k1 *hw; in snd_emu10k1_synth_remove() local [all …]
|
/sound/core/ |
D | hwdep.c | 44 struct snd_hwdep *hw = file->private_data; in snd_hwdep_llseek() local 45 if (hw->ops.llseek) in snd_hwdep_llseek() 46 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek() 53 struct snd_hwdep *hw = file->private_data; in snd_hwdep_read() local 54 if (hw->ops.read) in snd_hwdep_read() 55 return hw->ops.read(hw, buf, count, offset); in snd_hwdep_read() 62 struct snd_hwdep *hw = file->private_data; in snd_hwdep_write() local 63 if (hw->ops.write) in snd_hwdep_write() 64 return hw->ops.write(hw, buf, count, offset); in snd_hwdep_write() 71 struct snd_hwdep *hw; in snd_hwdep_open() local [all …]
|
/sound/soc/codecs/ |
D | tlv320aic32x4-clk.c | 17 #define to_clk_aic32x4(_hw) container_of(_hw, struct clk_aic32x4, hw) 19 struct clk_hw hw; member 47 static int clk_aic32x4_pll_prepare(struct clk_hw *hw) in clk_aic32x4_pll_prepare() argument 49 struct clk_aic32x4 *pll = to_clk_aic32x4(hw); in clk_aic32x4_pll_prepare() 55 static void clk_aic32x4_pll_unprepare(struct clk_hw *hw) in clk_aic32x4_pll_unprepare() argument 57 struct clk_aic32x4 *pll = to_clk_aic32x4(hw); in clk_aic32x4_pll_unprepare() 63 static int clk_aic32x4_pll_is_prepared(struct clk_hw *hw) in clk_aic32x4_pll_is_prepared() argument 65 struct clk_aic32x4 *pll = to_clk_aic32x4(hw); in clk_aic32x4_pll_is_prepared() 193 static unsigned long clk_aic32x4_pll_recalc_rate(struct clk_hw *hw, in clk_aic32x4_pll_recalc_rate() argument 196 struct clk_aic32x4 *pll = to_clk_aic32x4(hw); in clk_aic32x4_pll_recalc_rate() [all …]
|
/sound/usb/usx2y/ |
D | usX2Yhwdep.c | 47 static int snd_us428ctls_mmap(struct snd_hwdep *hw, struct file *filp, struct vm_area_struct *area) in snd_us428ctls_mmap() argument 50 struct usx2ydev *us428 = hw->private_data; in snd_us428ctls_mmap() 65 area->vm_private_data = hw->private_data; in snd_us428ctls_mmap() 69 static __poll_t snd_us428ctls_poll(struct snd_hwdep *hw, struct file *file, poll_table *wait) in snd_us428ctls_poll() argument 72 struct usx2ydev *us428 = hw->private_data; in snd_us428ctls_poll() 87 static int snd_usx2y_hwdep_dsp_status(struct snd_hwdep *hw, in snd_usx2y_hwdep_dsp_status() argument 95 struct usx2ydev *us428 = hw->private_data; in snd_usx2y_hwdep_dsp_status() 178 static int snd_usx2y_hwdep_dsp_load(struct snd_hwdep *hw, in snd_usx2y_hwdep_dsp_load() argument 181 struct usx2ydev *priv = hw->private_data; in snd_usx2y_hwdep_dsp_load() 212 err = usx2y_create_alsa_devices(hw->card); in snd_usx2y_hwdep_dsp_load() [all …]
|
/sound/soc/qcom/qdsp6/ |
D | q6afe-clocks.c | 40 struct clk_hw hw; member 43 #define to_q6afe_clk(_hw) container_of(_hw, struct q6afe_clk, hw) 50 static int clk_q6afe_prepare(struct clk_hw *hw) in clk_q6afe_prepare() argument 52 struct q6afe_clk *clk = to_q6afe_clk(hw); in clk_q6afe_prepare() 58 static void clk_q6afe_unprepare(struct clk_hw *hw) in clk_q6afe_unprepare() argument 60 struct q6afe_clk *clk = to_q6afe_clk(hw); in clk_q6afe_unprepare() 66 static int clk_q6afe_set_rate(struct clk_hw *hw, unsigned long rate, in clk_q6afe_set_rate() argument 69 struct q6afe_clk *clk = to_q6afe_clk(hw); in clk_q6afe_set_rate() 76 static unsigned long clk_q6afe_recalc_rate(struct clk_hw *hw, in clk_q6afe_recalc_rate() argument 79 struct q6afe_clk *clk = to_q6afe_clk(hw); in clk_q6afe_recalc_rate() [all …]
|
/sound/virtio/ |
D | virtio_pcm.c | 106 vss->hw.info = in virtsnd_pcm_build_hw() 121 vss->hw.channels_min = info->channels_min; in virtsnd_pcm_build_hw() 122 vss->hw.channels_max = info->channels_max; in virtsnd_pcm_build_hw() 126 vss->hw.formats = 0; in virtsnd_pcm_build_hw() 139 vss->hw.formats |= pcm_format_to_bits(alsa_fmt); in virtsnd_pcm_build_hw() 142 if (!vss->hw.formats) { in virtsnd_pcm_build_hw() 151 vss->hw.rates = 0; in virtsnd_pcm_build_hw() 155 if (!vss->hw.rate_min || in virtsnd_pcm_build_hw() 156 vss->hw.rate_min > g_v2a_rate_map[i].rate) in virtsnd_pcm_build_hw() 157 vss->hw.rate_min = g_v2a_rate_map[i].rate; in virtsnd_pcm_build_hw() [all …]
|
/sound/firewire/fireface/ |
D | ff-pcm.c | 72 static void limit_channels_and_rates(struct snd_pcm_hardware *hw, in limit_channels_and_rates() argument 78 hw->channels_min = UINT_MAX; in limit_channels_and_rates() 79 hw->channels_max = 0; in limit_channels_and_rates() 80 hw->rate_min = UINT_MAX; in limit_channels_and_rates() 81 hw->rate_max = 0; in limit_channels_and_rates() 94 hw->channels_min = min(hw->channels_min, channels); in limit_channels_and_rates() 95 hw->channels_max = max(hw->channels_max, channels); in limit_channels_and_rates() 98 hw->rates |= snd_pcm_rate_to_rate_bit(rate); in limit_channels_and_rates() 99 hw->rate_min = min(hw->rate_min, rate); in limit_channels_and_rates() 100 hw->rate_max = max(hw->rate_max, rate); in limit_channels_and_rates() [all …]
|
/sound/soc/intel/skylake/ |
D | skl-ssp-clk.c | 19 #define to_skl_clk(_hw) container_of(_hw, struct skl_clk, hw) 22 struct clk_hw *hw; member 27 struct clk_hw hw; member 200 static int skl_clk_prepare(struct clk_hw *hw) in skl_clk_prepare() argument 202 struct skl_clk *clkdev = to_skl_clk(hw); in skl_clk_prepare() 207 static void skl_clk_unprepare(struct clk_hw *hw) in skl_clk_unprepare() argument 209 struct skl_clk *clkdev = to_skl_clk(hw); in skl_clk_unprepare() 214 static int skl_clk_set_rate(struct clk_hw *hw, unsigned long rate, in skl_clk_set_rate() argument 217 struct skl_clk *clkdev = to_skl_clk(hw); in skl_clk_set_rate() 239 static unsigned long skl_clk_recalc_rate(struct clk_hw *hw, in skl_clk_recalc_rate() argument [all …]
|
/sound/drivers/opl3/ |
D | opl3_lib.c | 250 timer->hw = snd_opl3_timer1; in snd_opl3_timer1_init() 271 timer->hw = snd_opl3_timer2; in snd_opl3_timer2_init() 281 void snd_opl3_interrupt(struct snd_hwdep * hw) in snd_opl3_interrupt() argument 287 if (hw == NULL) in snd_opl3_interrupt() 290 opl3 = hw->private_data; in snd_opl3_interrupt() 482 struct snd_hwdep *hw; in snd_opl3_hwdep_new() local 491 err = snd_hwdep_new(card, "OPL2/OPL3", device, &hw); in snd_opl3_hwdep_new() 496 hw->private_data = opl3; in snd_opl3_hwdep_new() 497 hw->exclusive = 1; in snd_opl3_hwdep_new() 500 hw->oss_type = SNDRV_OSS_DEVICE_TYPE_DMFM; in snd_opl3_hwdep_new() [all …]
|
/sound/synth/emux/ |
D | emux_hwdep.c | 79 snd_emux_hwdep_ioctl(struct snd_hwdep * hw, struct file *file, in snd_emux_hwdep_ioctl() argument 82 struct snd_emux *emu = hw->private_data; in snd_emux_hwdep_ioctl() 116 struct snd_hwdep *hw; in snd_emux_init_hwdep() local 119 err = snd_hwdep_new(emu->card, SNDRV_EMUX_HWDEP_NAME, emu->hwdep_idx, &hw); in snd_emux_init_hwdep() 122 emu->hwdep = hw; in snd_emux_init_hwdep() 123 strcpy(hw->name, SNDRV_EMUX_HWDEP_NAME); in snd_emux_init_hwdep() 124 hw->iface = SNDRV_HWDEP_IFACE_EMUX_WAVETABLE; in snd_emux_init_hwdep() 125 hw->ops.ioctl = snd_emux_hwdep_ioctl; in snd_emux_init_hwdep() 128 hw->ops.ioctl_compat = snd_emux_hwdep_ioctl; in snd_emux_init_hwdep() 129 hw->exclusive = 1; in snd_emux_init_hwdep() [all …]
|
/sound/firewire/bebob/ |
D | bebob_pcm.c | 68 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() 76 hw->rate_min = UINT_MAX; in limit_channels_and_rates() 77 hw->rate_max = 0; in limit_channels_and_rates() 78 hw->rates = 0; in limit_channels_and_rates() 85 hw->channels_min = min(hw->channels_min, formations[i].pcm); in limit_channels_and_rates() 86 hw->channels_max = max(hw->channels_max, formations[i].pcm); in limit_channels_and_rates() 88 hw->rate_min = min(hw->rate_min, snd_bebob_rate_table[i]); in limit_channels_and_rates() 89 hw->rate_max = max(hw->rate_max, snd_bebob_rate_table[i]); 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 …]
|