• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/core/seq/oss/

Lines Matching refs:rec

103 	struct seq_oss_synth *rec;
107 if ((rec = kzalloc(sizeof(*rec), GFP_KERNEL)) == NULL) {
111 rec->seq_device = -1;
112 rec->synth_type = reg->type;
113 rec->synth_subtype = reg->subtype;
114 rec->nr_voices = reg->nvoices;
115 rec->oper = reg->oper;
116 rec->private_data = reg->private_data;
117 rec->opened = 0;
118 snd_use_lock_init(&rec->use_lock);
121 strlcpy(rec->name, dev->name, sizeof(rec->name));
133 kfree(rec);
138 rec->seq_device = i;
139 synth_devs[i] = rec;
140 debug_printk(("synth %s registered %d\n", rec->name, i));
142 dev->driver_data = rec;
145 snd_oss_info_register(SNDRV_OSS_INFO_DEV_SYNTH, i, rec->name);
155 struct seq_oss_synth *rec = dev->driver_data;
160 if (synth_devs[index] == rec)
178 if (rec->seq_device < SNDRV_CARDS)
179 snd_oss_info_unregister(SNDRV_OSS_INFO_DEV_SYNTH, rec->seq_device);
182 snd_use_lock_sync(&rec->use_lock);
183 kfree(rec);
194 struct seq_oss_synth *rec;
198 rec = synth_devs[dev];
199 if (rec)
200 snd_use_lock_use(&rec->use_lock);
202 return rec;
214 struct seq_oss_synth *rec;
221 rec = get_sdev(i);
222 if (rec == NULL)
224 if (rec->oper.open == NULL || rec->oper.close == NULL) {
225 snd_use_lock_free(&rec->use_lock);
237 if (!try_module_get(rec->oper.owner)) {
238 snd_use_lock_free(&rec->use_lock);
241 if (rec->oper.open(&info->arg, rec->private_data) < 0) {
242 module_put(rec->oper.owner);
243 snd_use_lock_free(&rec->use_lock);
246 info->nr_voices = rec->nr_voices;
251 rec->oper.close(&info->arg);
252 module_put(rec->oper.owner);
253 snd_use_lock_free(&rec->use_lock);
260 rec->opened++;
262 snd_use_lock_free(&rec->use_lock);
309 struct seq_oss_synth *rec;
324 rec = get_sdev(i);
325 if (rec == NULL)
327 if (rec->opened > 0) {
329 rec->oper.close(&info->arg);
330 module_put(rec->oper.owner);
331 rec->opened = 0;
333 snd_use_lock_free(&rec->use_lock);
363 struct seq_oss_synth *rec;
370 if ((rec = get_sdev(dev)) == NULL)
372 if (! rec->opened) {
373 snd_use_lock_free(&rec->use_lock);
376 return rec;
404 struct seq_oss_synth *rec;
433 rec = get_sdev(dev);
434 if (rec == NULL)
436 if (rec->oper.reset) {
437 rec->oper.reset(&info->arg);
446 snd_use_lock_free(&rec->use_lock);
458 struct seq_oss_synth *rec;
466 if ((rec = get_synthdev(dp, dev)) == NULL)
469 if (rec->oper.load_patch == NULL)
472 rc = rec->oper.load_patch(&dp->synths[dev].arg, fmt, buf, p, c);
473 snd_use_lock_free(&rec->use_lock);
483 struct seq_oss_synth *rec;
484 rec = get_synthdev(dp, dev);
485 if (rec) {
486 snd_use_lock_free(&rec->use_lock);
572 struct seq_oss_synth *rec;
577 if ((rec = get_synthdev(dp, dev)) == NULL)
579 if (rec->oper.ioctl == NULL)
582 rc = rec->oper.ioctl(&dp->synths[dev].arg, cmd, addr);
583 snd_use_lock_free(&rec->use_lock);
608 struct seq_oss_synth *rec;
622 if ((rec = get_synthdev(dp, dev)) == NULL)
624 inf->synth_type = rec->synth_type;
625 inf->synth_subtype = rec->synth_subtype;
626 inf->nr_voices = rec->nr_voices;
628 strlcpy(inf->name, rec->name, sizeof(inf->name));
629 snd_use_lock_free(&rec->use_lock);
643 struct seq_oss_synth *rec;
648 rec = get_sdev(i);
649 if (rec == NULL) {
653 snd_iprintf(buf, "[%s]\n", rec->name);
655 rec->synth_type, rec->synth_subtype,
656 rec->nr_voices);
658 enabled_str((long)rec->oper.ioctl),
659 enabled_str((long)rec->oper.load_patch));
660 snd_use_lock_free(&rec->use_lock);