• Home
  • Raw
  • Download

Lines Matching refs:hw

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()
51 hw->memhdr = snd_util_memhdr_new(hw->mem_size); in snd_emu8000_probe()
52 if (hw->memhdr == NULL) { in snd_emu8000_probe()
54 hw->emu = NULL; in snd_emu8000_probe()
58 emu->memhdr = hw->memhdr; in snd_emu8000_probe()
59 emu->midi_ports = hw->seq_ports < 2 ? hw->seq_ports : 2; /* number of virmidi ports */ in snd_emu8000_probe()
64 if (snd_emux_register(emu, dev->card, hw->index, "Emu8000") < 0) { in snd_emu8000_probe()
66 snd_util_memhdr_free(hw->memhdr); in snd_emu8000_probe()
67 hw->emu = NULL; in snd_emu8000_probe()
68 hw->memhdr = NULL; in snd_emu8000_probe()
72 if (hw->mem_size > 0) in snd_emu8000_probe()
73 snd_emu8000_pcm_new(dev->card, hw, 1); in snd_emu8000_probe()
75 dev->driver_data = hw; in snd_emu8000_probe()
87 struct snd_emu8000 *hw; in snd_emu8000_remove() local
92 hw = dev->driver_data; in snd_emu8000_remove()
93 if (hw->pcm) in snd_emu8000_remove()
94 snd_device_free(dev->card, hw->pcm); in snd_emu8000_remove()
95 snd_emux_free(hw->emu); in snd_emu8000_remove()
96 snd_util_memhdr_free(hw->memhdr); in snd_emu8000_remove()
97 hw->emu = NULL; in snd_emu8000_remove()
98 hw->memhdr = NULL; in snd_emu8000_remove()