• Home
  • Raw
  • Download

Lines Matching refs:hw

576 	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
748 if ((err = snd_hwdep_new(card, SND_USX2Y_USBPCM_ID, 1, &hw)) < 0) in usX2Y_hwdep_pcm_new()
751 hw->iface = SNDRV_HWDEP_IFACE_USX2Y_PCM; in usX2Y_hwdep_pcm_new()
752 hw->private_data = usX2Y(card); in usX2Y_hwdep_pcm_new()
753 hw->private_free = snd_usX2Y_hwdep_pcm_private_free; in usX2Y_hwdep_pcm_new()
754 hw->ops.open = snd_usX2Y_hwdep_pcm_open; in usX2Y_hwdep_pcm_new()
755 hw->ops.release = snd_usX2Y_hwdep_pcm_release; in usX2Y_hwdep_pcm_new()
756 hw->ops.mmap = snd_usX2Y_hwdep_pcm_mmap; in usX2Y_hwdep_pcm_new()
757 hw->exclusive = 1; in usX2Y_hwdep_pcm_new()
758 sprintf(hw->name, "/proc/bus/usb/%03d/%03d/hwdeppcm", dev->bus->busnum, dev->devnum); in usX2Y_hwdep_pcm_new()