Lines Matching refs:hw
79 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()
150 hw->private_free = snd_sb_csp_free; in snd_sb_csp_new()
153 hw->ops.open = snd_sb_csp_open; in snd_sb_csp_new()
154 hw->ops.ioctl = snd_sb_csp_ioctl; in snd_sb_csp_new()
155 hw->ops.release = snd_sb_csp_release; in snd_sb_csp_new()
160 *rhwdep = hw; in snd_sb_csp_new()
185 static int snd_sb_csp_open(struct snd_hwdep * hw, struct file *file) in snd_sb_csp_open() argument
187 struct snd_sb_csp *p = hw->private_data; in snd_sb_csp_open()
194 static int snd_sb_csp_ioctl(struct snd_hwdep * hw, struct file *file, unsigned int cmd, unsigned lo… in snd_sb_csp_ioctl() argument
196 struct snd_sb_csp *p = hw->private_data; in snd_sb_csp_ioctl()
264 static int snd_sb_csp_release(struct snd_hwdep * hw, struct file *file) in snd_sb_csp_release() argument
266 struct snd_sb_csp *p = hw->private_data; in snd_sb_csp_release()