• Home
  • Raw
  • Download

Lines Matching refs:device

45 static int snd_pcm_dev_free(struct snd_device *device);
46 static int snd_pcm_dev_register(struct snd_device *device);
47 static int snd_pcm_dev_disconnect(struct snd_device *device);
49 static struct snd_pcm *snd_pcm_get(struct snd_card *card, int device) in snd_pcm_get() argument
54 if (pcm->card == card && pcm->device == device) in snd_pcm_get()
60 static int snd_pcm_next(struct snd_card *card, int device) in snd_pcm_next() argument
65 if (pcm->card == card && pcm->device > device) in snd_pcm_next()
66 return pcm->device; in snd_pcm_next()
81 if (pcm->card == newpcm->card && pcm->device == newpcm->device) in snd_pcm_add()
85 pcm->device > newpcm->device)) { in snd_pcm_add()
101 int device; in snd_pcm_control_ioctl() local
103 if (get_user(device, (int __user *)arg)) in snd_pcm_control_ioctl()
106 device = snd_pcm_next(card, device); in snd_pcm_control_ioctl()
108 if (put_user(device, (int __user *)arg)) in snd_pcm_control_ioctl()
115 unsigned int device, subdevice; in snd_pcm_control_ioctl() local
123 if (get_user(device, &info->device)) in snd_pcm_control_ioctl()
133 pcm = snd_pcm_get(card, device); in snd_pcm_control_ioctl()
361 snd_iprintf(buffer, "device: %d\n", info->device); in snd_pcm_proc_info_read()
525 sprintf(name, "pcm%i%c", pcm->device, in snd_pcm_stream_proc_init()
709 dev_set_name(&pstr->dev, "pcmC%iD%i%c", pcm->card->number, pcm->device, in snd_pcm_new_stream()
760 static int _snd_pcm_new(struct snd_card *card, const char *id, int device, in _snd_pcm_new() argument
780 pcm->device = device; in _snd_pcm_new()
820 int snd_pcm_new(struct snd_card *card, const char *id, int device, in snd_pcm_new() argument
823 return _snd_pcm_new(card, id, device, playback_count, capture_count, in snd_pcm_new()
848 int snd_pcm_new_internal(struct snd_card *card, const char *id, int device, in snd_pcm_new_internal() argument
852 return _snd_pcm_new(card, id, device, playback_count, capture_count, in snd_pcm_new_internal()
915 static int snd_pcm_dev_free(struct snd_device *device) in snd_pcm_dev_free() argument
917 struct snd_pcm *pcm = device->device_data; in snd_pcm_dev_free()
1047 static ssize_t show_pcm_class(struct device *dev, in show_pcm_class()
1082 static int snd_pcm_dev_register(struct snd_device *device) in snd_pcm_dev_register() argument
1089 if (snd_BUG_ON(!device || !device->device_data)) in snd_pcm_dev_register()
1091 pcm = device->device_data; in snd_pcm_dev_register()
1112 err = snd_register_device(devtype, pcm->card, pcm->device, in snd_pcm_dev_register()
1132 static int snd_pcm_dev_disconnect(struct snd_device *device) in snd_pcm_dev_disconnect() argument
1134 struct snd_pcm *pcm = device->device_data; in snd_pcm_dev_disconnect()
1214 pcm->card->number, pcm->device, pcm->id, pcm->name); in snd_pcm_proc_read()