• Home
  • Raw
  • Download

Lines Matching refs:pstr

111 			struct snd_pcm_str *pstr;  in snd_pcm_control_ioctl()  local
130 pstr = &pcm->streams[stream]; in snd_pcm_control_ioctl()
131 if (pstr->substream_count == 0) { in snd_pcm_control_ioctl()
135 if (subdevice >= pstr->substream_count) { in snd_pcm_control_ioctl()
139 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl()
452 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_read() local
453 snd_iprintf(buffer, "%d\n", pstr->xrun_debug); in snd_pcm_xrun_debug_read()
459 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_write() local
462 pstr->xrun_debug = simple_strtoul(line, NULL, 10); in snd_pcm_xrun_debug_write()
466 static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr) in snd_pcm_stream_proc_init() argument
468 struct snd_pcm *pcm = pstr->pcm; in snd_pcm_stream_proc_init()
473 pstr->stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c'); in snd_pcm_stream_proc_init()
481 pstr->proc_root = entry; in snd_pcm_stream_proc_init()
483 if ((entry = snd_info_create_card_entry(pcm->card, "info", pstr->proc_root)) != NULL) { in snd_pcm_stream_proc_init()
484 snd_info_set_text_ops(entry, pstr, snd_pcm_stream_proc_info_read); in snd_pcm_stream_proc_init()
490 pstr->proc_info_entry = entry; in snd_pcm_stream_proc_init()
494 pstr->proc_root)) != NULL) { in snd_pcm_stream_proc_init()
498 entry->private_data = pstr; in snd_pcm_stream_proc_init()
504 pstr->proc_xrun_debug_entry = entry; in snd_pcm_stream_proc_init()
509 static int snd_pcm_stream_proc_done(struct snd_pcm_str *pstr) in snd_pcm_stream_proc_done() argument
512 snd_info_free_entry(pstr->proc_xrun_debug_entry); in snd_pcm_stream_proc_done()
513 pstr->proc_xrun_debug_entry = NULL; in snd_pcm_stream_proc_done()
515 snd_info_free_entry(pstr->proc_info_entry); in snd_pcm_stream_proc_done()
516 pstr->proc_info_entry = NULL; in snd_pcm_stream_proc_done()
517 snd_info_free_entry(pstr->proc_root); in snd_pcm_stream_proc_done()
518 pstr->proc_root = NULL; in snd_pcm_stream_proc_done()
531 if ((entry = snd_info_create_card_entry(card, name, substream->pstr->proc_root)) == NULL) in snd_pcm_substream_proc_init()
598 static inline int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr) { return 0; } in snd_pcm_stream_proc_init() argument
599 static inline int snd_pcm_stream_proc_done(struct snd_pcm_str *pstr) { return 0; } in snd_pcm_stream_proc_done() argument
620 struct snd_pcm_str *pstr = &pcm->streams[stream]; in snd_pcm_new_stream() local
624 mutex_init(&pstr->oss.setup_mutex); in snd_pcm_new_stream()
626 pstr->stream = stream; in snd_pcm_new_stream()
627 pstr->pcm = pcm; in snd_pcm_new_stream()
628 pstr->substream_count = substream_count; in snd_pcm_new_stream()
630 err = snd_pcm_stream_proc_init(pstr); in snd_pcm_new_stream()
644 substream->pstr = pstr; in snd_pcm_new_stream()
653 pstr->substream = substream; in snd_pcm_new_stream()
660 pstr->substream = NULL; in snd_pcm_new_stream()
741 static void snd_pcm_free_stream(struct snd_pcm_str * pstr) in snd_pcm_free_stream() argument
747 substream = pstr->substream; in snd_pcm_free_stream()
755 snd_pcm_stream_proc_done(pstr); in snd_pcm_free_stream()
757 for (setup = pstr->oss.setup_list; setup; setup = setupn) { in snd_pcm_free_stream()
793 struct snd_pcm_str * pstr; in snd_pcm_attach_substream() local
804 pstr = &pcm->streams[stream]; in snd_pcm_attach_substream()
805 if (pstr->substream == NULL || pstr->substream_count == 0) in snd_pcm_attach_substream()
842 if (pstr->substream_count > 1) in snd_pcm_attach_substream()
844 substream = pstr->substream; in snd_pcm_attach_substream()
846 for (substream = pstr->substream; substream; in snd_pcm_attach_substream()
861 for (substream = pstr->substream; substream; substream = substream->next) in snd_pcm_attach_substream()
865 for (substream = pstr->substream; substream; substream = substream->next) in snd_pcm_attach_substream()
902 pstr->substream_opened++; in snd_pcm_attach_substream()
923 substream->pstr->substream_opened--; in snd_pcm_detach_substream()