Lines Matching refs:hw
434 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()
497 hw->private_data = mgr; in pcxhr_setup_firmware()
498 hw->ops.open = pcxhr_hwdep_open; in pcxhr_setup_firmware()
499 hw->ops.release = pcxhr_hwdep_release; in pcxhr_setup_firmware()
500 hw->ops.dsp_status = pcxhr_hwdep_dsp_status; in pcxhr_setup_firmware()
501 hw->ops.dsp_load = pcxhr_hwdep_dsp_load; in pcxhr_setup_firmware()
502 hw->exclusive = 1; in pcxhr_setup_firmware()
504 hw->dsp_loaded = mgr->is_hr_stereo ? 1 : 0; in pcxhr_setup_firmware()
506 sprintf(hw->name, PCXHR_HWDEP_ID); in pcxhr_setup_firmware()