Home
last modified time | relevance | path

Searched refs:hw (Results 1 – 25 of 129) sorted by relevance

123456

/sound/isa/sb/
Demu8000_callback.c44 static void set_pitch(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
45 static void set_volume(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
46 static void set_pan(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
47 static void set_fmmod(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
48 static void set_tremfreq(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
49 static void set_fm2frq2(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
50 static void set_filterQ(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
84 snd_emu8000_ops_setup(struct snd_emu8000 *hw) in snd_emu8000_ops_setup() argument
86 hw->emu->ops = emu8000_ops; in snd_emu8000_ops_setup()
98 struct snd_emu8000 *hw; in release_voice() local
[all …]
Demu8000_synth.c38 struct snd_emu8000 *hw; in snd_emu8000_new_device() local
41 hw = *(struct snd_emu8000**)SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_emu8000_new_device()
42 if (hw == NULL) in snd_emu8000_new_device()
45 if (hw->emu) in snd_emu8000_new_device()
51 hw->emu = emu; in snd_emu8000_new_device()
52 snd_emu8000_ops_setup(hw); in snd_emu8000_new_device()
54 emu->hw = hw; in snd_emu8000_new_device()
56 emu->num_ports = hw->seq_ports; in snd_emu8000_new_device()
58 if (hw->memhdr) { in snd_emu8000_new_device()
60 snd_util_memhdr_free(hw->memhdr); in snd_emu8000_new_device()
[all …]
Demu8000_pcm.c246 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 …]
Demu8000.c1052 static int snd_emu8000_free(struct snd_emu8000 *hw) in snd_emu8000_free() argument
1054 release_and_free_resource(hw->res_port1); in snd_emu8000_free()
1055 release_and_free_resource(hw->res_port2); in snd_emu8000_free()
1056 release_and_free_resource(hw->res_port3); in snd_emu8000_free()
1057 kfree(hw); in snd_emu8000_free()
1065 struct snd_emu8000 *hw = device->device_data; in snd_emu8000_dev_free() local
1066 return snd_emu8000_free(hw); in snd_emu8000_dev_free()
1077 struct snd_emu8000 *hw; in snd_emu8000_new() local
1089 hw = kzalloc(sizeof(*hw), GFP_KERNEL); in snd_emu8000_new()
1090 if (hw == NULL) in snd_emu8000_new()
[all …]
Dsb16_main.c160 runtime->hw.formats |= csp->acc_format; in snd_sb16_csp_playback_open()
164 runtime->hw.formats |= SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW | in snd_sb16_csp_playback_open()
191 runtime->hw.formats |= csp->acc_format; in snd_sb16_csp_capture_open()
195 runtime->hw.formats |= SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW | in snd_sb16_csp_capture_open()
526 runtime->hw = snd_sb16_playback; in snd_sb16_playback_open()
534 runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE; in snd_sb16_playback_open()
537 runtime->hw.buffer_bytes_max = in snd_sb16_playback_open()
538 runtime->hw.period_bytes_max = 64 * 1024; in snd_sb16_playback_open()
550 runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE; in snd_sb16_playback_open()
553 runtime->hw.formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8; in snd_sb16_playback_open()
[all …]
Dsb16_csp.c79 static void snd_sb_csp_free(struct snd_hwdep *hw);
80 static int snd_sb_csp_open(struct snd_hwdep * hw, struct file *file);
81 static int snd_sb_csp_ioctl(struct snd_hwdep * hw, struct file *file, unsigned int cmd, unsigned lo…
82 static int snd_sb_csp_release(struct snd_hwdep * hw, struct file *file);
120 struct snd_hwdep *hw; in snd_sb_csp_new() local
128 if ((err = snd_hwdep_new(chip->card, "SB16-CSP", device, &hw)) < 0) in snd_sb_csp_new()
132 snd_device_free(chip->card, hw); in snd_sb_csp_new()
147 sprintf(hw->name, "CSP v%d.%d", (version >> 4), (version & 0x0f)); in snd_sb_csp_new()
148 hw->iface = SNDRV_HWDEP_IFACE_SB16CSP; in snd_sb_csp_new()
149 hw->private_data = p; in snd_sb_csp_new()
[all …]
/sound/pci/emu10k1/
Demu10k1_callback.c38 static void lookup_voices(struct snd_emux *emux, struct snd_emu10k1 *hw,
48 static void set_fmmod(struct snd_emu10k1 *hw, struct snd_emux_voice *vp);
49 static void set_fm2frq2(struct snd_emu10k1 *hw, struct snd_emux_voice *vp);
50 static void set_filterQ(struct snd_emu10k1 *hw, struct snd_emux_voice *vp);
89 snd_emu10k1_synth_get_voice(struct snd_emu10k1 *hw) in snd_emu10k1_synth_get_voice() argument
97 emu = hw->synth; in snd_emu10k1_synth_get_voice()
100 lookup_voices(emu, hw, best, 1); /* no OFF voices */ in snd_emu10k1_synth_get_voice()
130 struct snd_emu10k1 *hw; in release_voice() local
132 hw = vp->hw; in release_voice()
134 snd_emu10k1_ptr_write(hw, DCYSUSM, vp->ch, dcysusv); in release_voice()
[all …]
Demu10k1_synth.c34 struct snd_emu10k1 *hw; in snd_emu10k1_synth_new_device() local
53 hw = arg->hwptr; in snd_emu10k1_synth_new_device()
54 emux->hw = hw; in snd_emu10k1_synth_new_device()
58 emux->memhdr = hw->memhdr; in snd_emu10k1_synth_new_device()
62 emux->midi_devidx = hw->audigy ? 2 : 1; in snd_emu10k1_synth_new_device()
71 spin_lock_irqsave(&hw->voice_lock, flags); in snd_emu10k1_synth_new_device()
72 hw->synth = emux; in snd_emu10k1_synth_new_device()
73 hw->get_synth_voice = snd_emu10k1_synth_get_voice; in snd_emu10k1_synth_new_device()
74 spin_unlock_irqrestore(&hw->voice_lock, flags); in snd_emu10k1_synth_new_device()
84 struct snd_emu10k1 *hw; in snd_emu10k1_synth_delete_device() local
[all …]
Demupcm.c48 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt()
1074 runtime->hw = snd_emu10k1_efx_playback; in snd_emu10k1_efx_playback_open()
1104 runtime->hw = snd_emu10k1_playback; in snd_emu10k1_playback_open()
1154 runtime->hw = snd_emu10k1_capture; in snd_emu10k1_capture_open()
1190 runtime->hw = snd_emu10k1_capture; in snd_emu10k1_capture_mic_open()
1191 runtime->hw.rates = SNDRV_PCM_RATE_8000; in snd_emu10k1_capture_mic_open()
1192 runtime->hw.rate_min = runtime->hw.rate_max = 8000; in snd_emu10k1_capture_mic_open()
1193 runtime->hw.channels_min = 1; in snd_emu10k1_capture_mic_open()
1230 runtime->hw = snd_emu10k1_capture_efx; in snd_emu10k1_capture_efx_open()
1231 runtime->hw.rates = SNDRV_PCM_RATE_48000; in snd_emu10k1_capture_efx_open()
[all …]
/sound/core/
Dhwdep.c58 struct snd_hwdep *hw = file->private_data; in snd_hwdep_llseek() local
59 if (hw->ops.llseek) in snd_hwdep_llseek()
60 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek()
67 struct snd_hwdep *hw = file->private_data; in snd_hwdep_read() local
68 if (hw->ops.read) in snd_hwdep_read()
69 return hw->ops.read(hw, buf, count, offset); in snd_hwdep_read()
76 struct snd_hwdep *hw = file->private_data; in snd_hwdep_write() local
77 if (hw->ops.write) in snd_hwdep_write()
78 return hw->ops.write(hw, buf, count, offset); in snd_hwdep_write()
85 struct snd_hwdep *hw; in snd_hwdep_open() local
[all …]
Dhwdep_compat.c33 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()
Dtimer.c289 if (list_empty(&timer->open_list_head) && timer->hw.open) in snd_timer_open()
290 timer->hw.open(timer); in snd_timer_open()
340 timer->hw.close) in snd_timer_close()
341 timer->hw.close(timer); in snd_timer_close()
370 if (timer->hw.c_resolution) in snd_timer_resolution()
371 return timer->hw.c_resolution(timer); in snd_timer_resolution()
372 return timer->hw.resolution; in snd_timer_resolution()
402 if (timer->hw.flags & SNDRV_TIMER_HW_SLAVE) in snd_timer_notify1()
417 if (timer->hw.flags & SNDRV_TIMER_HW_SLAVE) in snd_timer_start1()
424 timer->hw.start(timer); in snd_timer_start1()
[all …]
/sound/usb/usx2y/
DusX2Yhwdep.c63 static int snd_us428ctls_mmap(struct snd_hwdep * hw, struct file *filp, struct vm_area_struct *area) in snd_us428ctls_mmap() argument
66 struct usX2Ydev *us428 = hw->private_data; in snd_us428ctls_mmap()
88 area->vm_private_data = hw->private_data; in snd_us428ctls_mmap()
92 static unsigned int snd_us428ctls_poll(struct snd_hwdep *hw, struct file *file, poll_table *wait) in snd_us428ctls_poll() argument
95 struct usX2Ydev *us428 = hw->private_data; in snd_us428ctls_poll()
109 static int snd_usX2Y_hwdep_open(struct snd_hwdep *hw, struct file *file) in snd_usX2Y_hwdep_open() argument
114 static int snd_usX2Y_hwdep_release(struct snd_hwdep *hw, struct file *file) in snd_usX2Y_hwdep_release() argument
119 static int snd_usX2Y_hwdep_dsp_status(struct snd_hwdep *hw, in snd_usX2Y_hwdep_dsp_status() argument
127 struct usX2Ydev *us428 = hw->private_data; in snd_usX2Y_hwdep_dsp_status()
210 static int snd_usX2Y_hwdep_dsp_load(struct snd_hwdep *hw, in snd_usX2Y_hwdep_dsp_load() argument
[all …]
Dus122l.c164 static int usb_stream_hwdep_open(struct snd_hwdep *hw, struct file *file) in usb_stream_hwdep_open() argument
166 struct us122l *us122l = hw->private_data; in usb_stream_hwdep_open()
168 snd_printdd(KERN_DEBUG "%p %p\n", hw, file); in usb_stream_hwdep_open()
169 if (hw->used >= 2) in usb_stream_hwdep_open()
179 static int usb_stream_hwdep_release(struct snd_hwdep *hw, struct file *file) in usb_stream_hwdep_release() argument
181 struct us122l *us122l = hw->private_data; in usb_stream_hwdep_release()
183 snd_printdd(KERN_DEBUG "%p %p\n", hw, file); in usb_stream_hwdep_release()
196 static int usb_stream_hwdep_mmap(struct snd_hwdep *hw, in usb_stream_hwdep_mmap() argument
200 struct us122l *us122l = hw->private_data; in usb_stream_hwdep_mmap()
233 static unsigned int usb_stream_hwdep_poll(struct snd_hwdep *hw, in usb_stream_hwdep_poll() argument
[all …]
Dusx2yhwdeppcm.c576 runtime->hw = SNDRV_PCM_STREAM_PLAYBACK == substream->stream ? snd_usX2Y_2c : in snd_usX2Y_usbpcm_open()
653 static int snd_usX2Y_hwdep_pcm_open(struct snd_hwdep *hw, struct file *file) in snd_usX2Y_hwdep_pcm_open() argument
656 struct snd_card *card = hw->card; in snd_usX2Y_hwdep_pcm_open()
665 static int snd_usX2Y_hwdep_pcm_release(struct snd_hwdep *hw, struct file *file) in snd_usX2Y_hwdep_pcm_release() argument
667 struct snd_card *card = hw->card; in snd_usX2Y_hwdep_pcm_release()
670 usX2Y(hw->card)->chip_status &= ~USX2Y_STAT_CHIP_MMAP_PCM_URBS; in snd_usX2Y_hwdep_pcm_release()
707 static int snd_usX2Y_hwdep_pcm_mmap(struct snd_hwdep * hw, struct file *filp, struct vm_area_struct… in snd_usX2Y_hwdep_pcm_mmap() argument
710 struct usX2Ydev *usX2Y = hw->private_data; in snd_usX2Y_hwdep_pcm_mmap()
726 area->vm_private_data = hw->private_data; in snd_usX2Y_hwdep_pcm_mmap()
742 struct snd_hwdep *hw; in usX2Y_hwdep_pcm_new() local
[all …]
/sound/synth/emux/
Demux_hwdep.c31 snd_emux_hwdep_open(struct snd_hwdep *hw, struct file *file) in snd_emux_hwdep_open() argument
41 snd_emux_hwdep_release(struct snd_hwdep *hw, struct file *file) in snd_emux_hwdep_release() argument
104 snd_emux_hwdep_ioctl(struct snd_hwdep * hw, struct file *file, in snd_emux_hwdep_ioctl() argument
107 struct snd_emux *emu = hw->private_data; in snd_emux_hwdep_ioctl()
141 struct snd_hwdep *hw; in snd_emux_init_hwdep() local
144 if ((err = snd_hwdep_new(emu->card, SNDRV_EMUX_HWDEP_NAME, emu->hwdep_idx, &hw)) < 0) in snd_emux_init_hwdep()
146 emu->hwdep = hw; in snd_emux_init_hwdep()
147 strcpy(hw->name, SNDRV_EMUX_HWDEP_NAME); in snd_emux_init_hwdep()
148 hw->iface = SNDRV_HWDEP_IFACE_EMUX_WAVETABLE; in snd_emux_init_hwdep()
149 hw->ops.open = snd_emux_hwdep_open; in snd_emux_init_hwdep()
[all …]
/sound/drivers/vx/
Dvx_hwdep.c122 static int vx_hwdep_open(struct snd_hwdep *hw, struct file *file) in vx_hwdep_open() argument
127 static int vx_hwdep_release(struct snd_hwdep *hw, struct file *file) in vx_hwdep_release() argument
132 static int vx_hwdep_dsp_status(struct snd_hwdep *hw, in vx_hwdep_dsp_status() argument
142 struct vx_core *vx = hw->private_data; in vx_hwdep_dsp_status()
165 static int vx_hwdep_dsp_load(struct snd_hwdep *hw, in vx_hwdep_dsp_load() argument
168 struct vx_core *vx = hw->private_data; in vx_hwdep_dsp_load()
239 struct snd_hwdep *hw; in snd_vx_setup_firmware() local
241 if ((err = snd_hwdep_new(chip->card, SND_VX_HWDEP_ID, 0, &hw)) < 0) in snd_vx_setup_firmware()
244 hw->iface = SNDRV_HWDEP_IFACE_VX; in snd_vx_setup_firmware()
245 hw->private_data = chip; in snd_vx_setup_firmware()
[all …]
/sound/oss/
Dwaveartist.c96 struct address_info hw; /* hardware */ member
160 waveartist_set_ctlr(struct address_info *hw, unsigned char clear, unsigned char set) in waveartist_set_ctlr() argument
162 unsigned int ctlr_port = hw->io_base + CTLR; in waveartist_set_ctlr()
174 unsigned int ctlr_port = devc->hw.io_base + CTLR; in waveartist_iack()
199 struct address_info *hw = &devc->hw; in waveartist_reset() local
202 waveartist_set_ctlr(hw, -1, RESET); in waveartist_reset()
204 waveartist_set_ctlr(hw, RESET, 0); in waveartist_reset()
210 if (inb(hw->io_base + STATR) & CMD_RF) { in waveartist_reset()
211 res = inw(hw->io_base + CMDR); in waveartist_reset()
236 unsigned int io_base = devc->hw.io_base; in waveartist_cmd()
[all …]
/sound/drivers/opl3/
Dopl3_lib.c263 timer->hw = snd_opl3_timer1; in snd_opl3_timer1_init()
283 timer->hw = snd_opl3_timer2; in snd_opl3_timer2_init()
293 void snd_opl3_interrupt(struct snd_hwdep * hw) in snd_opl3_interrupt() argument
299 if (hw == NULL) in snd_opl3_interrupt()
302 opl3 = hw->private_data; in snd_opl3_interrupt()
487 struct snd_hwdep *hw; in snd_opl3_hwdep_new() local
496 if ((err = snd_hwdep_new(card, "OPL2/OPL3", device, &hw)) < 0) { in snd_opl3_hwdep_new()
500 hw->private_data = opl3; in snd_opl3_hwdep_new()
501 hw->exclusive = 1; in snd_opl3_hwdep_new()
504 hw->oss_type = SNDRV_OSS_DEVICE_TYPE_DMFM; in snd_opl3_hwdep_new()
[all …]
/sound/pci/pcxhr/
Dpcxhr_hwdep.c434 static int pcxhr_hwdep_dsp_status(struct snd_hwdep *hw, in pcxhr_hwdep_dsp_status() argument
437 struct pcxhr_mgr *mgr = hw->private_data; in pcxhr_hwdep_dsp_status()
441 if (hw->dsp_loaded & (1 << PCXHR_FIRMWARE_DSP_MAIN_INDEX)) in pcxhr_hwdep_dsp_status()
448 static int pcxhr_hwdep_dsp_load(struct snd_hwdep *hw, in pcxhr_hwdep_dsp_load() argument
451 struct pcxhr_mgr *mgr = hw->private_data; in pcxhr_hwdep_dsp_load()
474 static int pcxhr_hwdep_open(struct snd_hwdep *hw, struct file *file) in pcxhr_hwdep_open() argument
479 static int pcxhr_hwdep_release(struct snd_hwdep *hw, struct file *file) in pcxhr_hwdep_release() argument
487 struct snd_hwdep *hw; in pcxhr_setup_firmware() local
492 err = snd_hwdep_new(mgr->chip[0]->card, PCXHR_HWDEP_ID, 0, &hw); in pcxhr_setup_firmware()
496 hw->iface = SNDRV_HWDEP_IFACE_PCXHR; in pcxhr_setup_firmware()
[all …]
/sound/pci/mixart/
Dmixart_hwdep.c584 static int mixart_hwdep_open(struct snd_hwdep *hw, struct file *file) in mixart_hwdep_open() argument
589 static int mixart_hwdep_release(struct snd_hwdep *hw, struct file *file) in mixart_hwdep_release() argument
594 static int mixart_hwdep_dsp_status(struct snd_hwdep *hw, in mixart_hwdep_dsp_status() argument
597 struct mixart_mgr *mgr = hw->private_data; in mixart_hwdep_dsp_status()
609 static int mixart_hwdep_dsp_load(struct snd_hwdep *hw, in mixart_hwdep_dsp_load() argument
612 struct mixart_mgr* mgr = hw->private_data; in mixart_hwdep_dsp_load()
638 struct snd_hwdep *hw; in snd_mixart_setup_firmware() local
641 if ((err = snd_hwdep_new(mgr->chip[0]->card, SND_MIXART_HWDEP_ID, 0, &hw)) < 0) in snd_mixart_setup_firmware()
644 hw->iface = SNDRV_HWDEP_IFACE_MIXART; in snd_mixart_setup_firmware()
645 hw->private_data = mgr; in snd_mixart_setup_firmware()
[all …]
/sound/pci/vx222/
Dvx222.c138 struct snd_vx_hardware *hw, in snd_vx222_create() argument
154 vx_ops = hw->type == VX_TYPE_BOARD ? &vx222_old_ops : &vx222_ops; in snd_vx222_create()
155 chip = snd_vx_create(card, hw, vx_ops, in snd_vx222_create()
196 struct snd_vx_hardware *hw; in snd_vx222_probe() local
213 hw = &vx222_old_hw; in snd_vx222_probe()
218 hw = &vx222_mic_hw; in snd_vx222_probe()
220 hw = &vx222_v2_hw; in snd_vx222_probe()
223 if ((err = snd_vx222_create(card, pci, hw, &vx)) < 0) { in snd_vx222_probe()
/sound/soc/
Dsoc-core.c172 runtime->hw.rate_min = in soc_pcm_open()
175 runtime->hw.rate_max = in soc_pcm_open()
178 runtime->hw.channels_min = in soc_pcm_open()
181 runtime->hw.channels_max = in soc_pcm_open()
184 runtime->hw.formats = in soc_pcm_open()
186 runtime->hw.rates = in soc_pcm_open()
189 runtime->hw.rate_min = in soc_pcm_open()
192 runtime->hw.rate_max = in soc_pcm_open()
195 runtime->hw.channels_min = in soc_pcm_open()
198 runtime->hw.channels_max = in soc_pcm_open()
[all …]
/sound/aoa/soundbus/i2sbus/
Dpcm.c77 struct snd_pcm_hardware *hw; in i2sbus_pcm_open() local
89 hw = &pi->substream->runtime->hw; in i2sbus_pcm_open()
124 hw->info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | in i2sbus_pcm_open()
141 hw->rates = rates; in i2sbus_pcm_open()
159 hw->formats = formats & (SNDRV_PCM_FMTBIT_S16_BE | in i2sbus_pcm_open()
169 hw->rate_min = 5512; in i2sbus_pcm_open()
170 hw->rate_max = 192000; in i2sbus_pcm_open()
180 hw->formats &= (1ULL << i2sdev->format); in i2sbus_pcm_open()
182 hw->rate_min = i2sdev->rate; in i2sbus_pcm_open()
183 hw->rate_max = i2sdev->rate; in i2sbus_pcm_open()
[all …]
/sound/isa/wavefront/
Dwavefront_fx.c153 snd_wavefront_fx_open (struct snd_hwdep *hw, struct file *file) in snd_wavefront_fx_open() argument
156 if (!try_module_get(hw->card->module)) in snd_wavefront_fx_open()
158 file->private_data = hw; in snd_wavefront_fx_open()
163 snd_wavefront_fx_release (struct snd_hwdep *hw, struct file *file) in snd_wavefront_fx_release() argument
166 module_put(hw->card->module); in snd_wavefront_fx_release()

123456