Lines Matching refs:entry
369 static void snd_pcm_stream_proc_info_read(struct snd_info_entry *entry, in snd_pcm_stream_proc_info_read() argument
372 snd_pcm_proc_info_read(((struct snd_pcm_str *)entry->private_data)->substream, in snd_pcm_stream_proc_info_read()
376 static void snd_pcm_substream_proc_info_read(struct snd_info_entry *entry, in snd_pcm_substream_proc_info_read() argument
379 snd_pcm_proc_info_read(entry->private_data, buffer); in snd_pcm_substream_proc_info_read()
382 static void snd_pcm_substream_proc_hw_params_read(struct snd_info_entry *entry, in snd_pcm_substream_proc_hw_params_read() argument
385 struct snd_pcm_substream *substream = entry->private_data; in snd_pcm_substream_proc_hw_params_read()
419 static void snd_pcm_substream_proc_sw_params_read(struct snd_info_entry *entry, in snd_pcm_substream_proc_sw_params_read() argument
422 struct snd_pcm_substream *substream = entry->private_data; in snd_pcm_substream_proc_sw_params_read()
447 static void snd_pcm_substream_proc_status_read(struct snd_info_entry *entry, in snd_pcm_substream_proc_status_read() argument
450 struct snd_pcm_substream *substream = entry->private_data; in snd_pcm_substream_proc_status_read()
484 static void snd_pcm_xrun_injection_write(struct snd_info_entry *entry, in snd_pcm_xrun_injection_write() argument
487 struct snd_pcm_substream *substream = entry->private_data; in snd_pcm_xrun_injection_write()
497 static void snd_pcm_xrun_debug_read(struct snd_info_entry *entry, in snd_pcm_xrun_debug_read() argument
500 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_read()
504 static void snd_pcm_xrun_debug_write(struct snd_info_entry *entry, in snd_pcm_xrun_debug_write() argument
507 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_write()
517 struct snd_info_entry *entry; in snd_pcm_stream_proc_init() local
522 if ((entry = snd_info_create_card_entry(pcm->card, name, pcm->card->proc_root)) == NULL) in snd_pcm_stream_proc_init()
524 entry->mode = S_IFDIR | S_IRUGO | S_IXUGO; in snd_pcm_stream_proc_init()
525 if (snd_info_register(entry) < 0) { in snd_pcm_stream_proc_init()
526 snd_info_free_entry(entry); in snd_pcm_stream_proc_init()
529 pstr->proc_root = entry; in snd_pcm_stream_proc_init()
531 if ((entry = snd_info_create_card_entry(pcm->card, "info", pstr->proc_root)) != NULL) { in snd_pcm_stream_proc_init()
532 snd_info_set_text_ops(entry, pstr, snd_pcm_stream_proc_info_read); in snd_pcm_stream_proc_init()
533 if (snd_info_register(entry) < 0) { in snd_pcm_stream_proc_init()
534 snd_info_free_entry(entry); in snd_pcm_stream_proc_init()
535 entry = NULL; in snd_pcm_stream_proc_init()
538 pstr->proc_info_entry = entry; in snd_pcm_stream_proc_init()
541 if ((entry = snd_info_create_card_entry(pcm->card, "xrun_debug", in snd_pcm_stream_proc_init()
543 entry->c.text.read = snd_pcm_xrun_debug_read; in snd_pcm_stream_proc_init()
544 entry->c.text.write = snd_pcm_xrun_debug_write; in snd_pcm_stream_proc_init()
545 entry->mode |= S_IWUSR; in snd_pcm_stream_proc_init()
546 entry->private_data = pstr; in snd_pcm_stream_proc_init()
547 if (snd_info_register(entry) < 0) { in snd_pcm_stream_proc_init()
548 snd_info_free_entry(entry); in snd_pcm_stream_proc_init()
549 entry = NULL; in snd_pcm_stream_proc_init()
552 pstr->proc_xrun_debug_entry = entry; in snd_pcm_stream_proc_init()
572 struct snd_info_entry *entry; in snd_pcm_substream_proc_init() local
579 if ((entry = snd_info_create_card_entry(card, name, substream->pstr->proc_root)) == NULL) in snd_pcm_substream_proc_init()
581 entry->mode = S_IFDIR | S_IRUGO | S_IXUGO; in snd_pcm_substream_proc_init()
582 if (snd_info_register(entry) < 0) { in snd_pcm_substream_proc_init()
583 snd_info_free_entry(entry); in snd_pcm_substream_proc_init()
586 substream->proc_root = entry; in snd_pcm_substream_proc_init()
588 if ((entry = snd_info_create_card_entry(card, "info", substream->proc_root)) != NULL) { in snd_pcm_substream_proc_init()
589 snd_info_set_text_ops(entry, substream, in snd_pcm_substream_proc_init()
591 if (snd_info_register(entry) < 0) { in snd_pcm_substream_proc_init()
592 snd_info_free_entry(entry); in snd_pcm_substream_proc_init()
593 entry = NULL; in snd_pcm_substream_proc_init()
596 substream->proc_info_entry = entry; in snd_pcm_substream_proc_init()
598 if ((entry = snd_info_create_card_entry(card, "hw_params", substream->proc_root)) != NULL) { in snd_pcm_substream_proc_init()
599 snd_info_set_text_ops(entry, substream, in snd_pcm_substream_proc_init()
601 if (snd_info_register(entry) < 0) { in snd_pcm_substream_proc_init()
602 snd_info_free_entry(entry); in snd_pcm_substream_proc_init()
603 entry = NULL; in snd_pcm_substream_proc_init()
606 substream->proc_hw_params_entry = entry; in snd_pcm_substream_proc_init()
608 if ((entry = snd_info_create_card_entry(card, "sw_params", substream->proc_root)) != NULL) { in snd_pcm_substream_proc_init()
609 snd_info_set_text_ops(entry, substream, in snd_pcm_substream_proc_init()
611 if (snd_info_register(entry) < 0) { in snd_pcm_substream_proc_init()
612 snd_info_free_entry(entry); in snd_pcm_substream_proc_init()
613 entry = NULL; in snd_pcm_substream_proc_init()
616 substream->proc_sw_params_entry = entry; in snd_pcm_substream_proc_init()
618 if ((entry = snd_info_create_card_entry(card, "status", substream->proc_root)) != NULL) { in snd_pcm_substream_proc_init()
619 snd_info_set_text_ops(entry, substream, in snd_pcm_substream_proc_init()
621 if (snd_info_register(entry) < 0) { in snd_pcm_substream_proc_init()
622 snd_info_free_entry(entry); in snd_pcm_substream_proc_init()
623 entry = NULL; in snd_pcm_substream_proc_init()
626 substream->proc_status_entry = entry; in snd_pcm_substream_proc_init()
629 entry = snd_info_create_card_entry(card, "xrun_injection", in snd_pcm_substream_proc_init()
631 if (entry) { in snd_pcm_substream_proc_init()
632 entry->private_data = substream; in snd_pcm_substream_proc_init()
633 entry->c.text.read = NULL; in snd_pcm_substream_proc_init()
634 entry->c.text.write = snd_pcm_xrun_injection_write; in snd_pcm_substream_proc_init()
635 entry->mode = S_IFREG | S_IWUSR; in snd_pcm_substream_proc_init()
636 if (snd_info_register(entry) < 0) { in snd_pcm_substream_proc_init()
637 snd_info_free_entry(entry); in snd_pcm_substream_proc_init()
638 entry = NULL; in snd_pcm_substream_proc_init()
641 substream->proc_xrun_injection_entry = entry; in snd_pcm_substream_proc_init()
1186 static void snd_pcm_proc_read(struct snd_info_entry *entry, in snd_pcm_proc_read() argument
1210 struct snd_info_entry *entry; in snd_pcm_proc_init() local
1212 if ((entry = snd_info_create_module_entry(THIS_MODULE, "pcm", NULL)) != NULL) { in snd_pcm_proc_init()
1213 snd_info_set_text_ops(entry, NULL, snd_pcm_proc_read); in snd_pcm_proc_init()
1214 if (snd_info_register(entry) < 0) { in snd_pcm_proc_init()
1215 snd_info_free_entry(entry); in snd_pcm_proc_init()
1216 entry = NULL; in snd_pcm_proc_init()
1219 snd_pcm_proc_entry = entry; in snd_pcm_proc_init()