Lines Matching refs:hw
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()
502 strcpy(hw->name, hw->id); in snd_opl3_hwdep_new()
505 strcpy(hw->name, "OPL2 FM"); in snd_opl3_hwdep_new()
506 hw->iface = SNDRV_HWDEP_IFACE_OPL2; in snd_opl3_hwdep_new()
509 strcpy(hw->name, "OPL3 FM"); in snd_opl3_hwdep_new()
510 hw->iface = SNDRV_HWDEP_IFACE_OPL3; in snd_opl3_hwdep_new()
513 strcpy(hw->name, "OPL4 FM"); in snd_opl3_hwdep_new()
514 hw->iface = SNDRV_HWDEP_IFACE_OPL4; in snd_opl3_hwdep_new()
519 hw->ops.open = snd_opl3_open; in snd_opl3_hwdep_new()
520 hw->ops.ioctl = snd_opl3_ioctl; in snd_opl3_hwdep_new()
521 hw->ops.write = snd_opl3_write; in snd_opl3_hwdep_new()
522 hw->ops.release = snd_opl3_release; in snd_opl3_hwdep_new()
524 opl3->hwdep = hw; in snd_opl3_hwdep_new()
529 strcpy(opl3->seq_dev->name, hw->name); in snd_opl3_hwdep_new()
534 *rhwdep = hw; in snd_opl3_hwdep_new()