• Home
  • Raw
  • Download

Lines Matching full:pstr

122 			struct snd_pcm_str *pstr;  in snd_pcm_control_ioctl()  local
142 pstr = &pcm->streams[stream]; in snd_pcm_control_ioctl()
143 if (pstr->substream_count == 0) { in snd_pcm_control_ioctl()
147 if (subdevice >= pstr->substream_count) { in snd_pcm_control_ioctl()
151 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl()
504 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_read() local
505 snd_iprintf(buffer, "%d\n", pstr->xrun_debug); in snd_pcm_xrun_debug_read()
511 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_write() local
514 pstr->xrun_debug = simple_strtoul(line, NULL, 10); in snd_pcm_xrun_debug_write()
518 static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr) in snd_pcm_stream_proc_init() argument
520 struct snd_pcm *pcm = pstr->pcm; in snd_pcm_stream_proc_init()
525 pstr->stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c'); in snd_pcm_stream_proc_init()
535 pstr->proc_root = entry; in snd_pcm_stream_proc_init()
536 entry = snd_info_create_card_entry(pcm->card, "info", pstr->proc_root); in snd_pcm_stream_proc_init()
538 snd_info_set_text_ops(entry, pstr, snd_pcm_stream_proc_info_read); in snd_pcm_stream_proc_init()
544 pstr->proc_info_entry = entry; in snd_pcm_stream_proc_init()
548 pstr->proc_root); in snd_pcm_stream_proc_init()
553 entry->private_data = pstr; in snd_pcm_stream_proc_init()
559 pstr->proc_xrun_debug_entry = entry; in snd_pcm_stream_proc_init()
564 static int snd_pcm_stream_proc_done(struct snd_pcm_str *pstr) in snd_pcm_stream_proc_done() argument
567 snd_info_free_entry(pstr->proc_xrun_debug_entry); in snd_pcm_stream_proc_done()
568 pstr->proc_xrun_debug_entry = NULL; in snd_pcm_stream_proc_done()
570 snd_info_free_entry(pstr->proc_info_entry); in snd_pcm_stream_proc_done()
571 pstr->proc_info_entry = NULL; in snd_pcm_stream_proc_done()
572 snd_info_free_entry(pstr->proc_root); in snd_pcm_stream_proc_done()
573 pstr->proc_root = NULL; in snd_pcm_stream_proc_done()
587 substream->pstr->proc_root); in snd_pcm_substream_proc_init()
678 static inline int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr) { return 0; } in snd_pcm_stream_proc_init() argument
679 static inline int snd_pcm_stream_proc_done(struct snd_pcm_str *pstr) { return 0; } in snd_pcm_stream_proc_done() argument
702 struct snd_pcm_str *pstr = &pcm->streams[stream]; in snd_pcm_new_stream() local
706 mutex_init(&pstr->oss.setup_mutex); in snd_pcm_new_stream()
708 pstr->stream = stream; in snd_pcm_new_stream()
709 pstr->pcm = pcm; in snd_pcm_new_stream()
710 pstr->substream_count = substream_count; in snd_pcm_new_stream()
714 snd_device_initialize(&pstr->dev, pcm->card); in snd_pcm_new_stream()
715 pstr->dev.groups = pcm_dev_attr_groups; in snd_pcm_new_stream()
716 dev_set_name(&pstr->dev, "pcmC%iD%i%c", pcm->card->number, pcm->device, in snd_pcm_new_stream()
720 err = snd_pcm_stream_proc_init(pstr); in snd_pcm_new_stream()
732 substream->pstr = pstr; in snd_pcm_new_stream()
738 pstr->substream = substream; in snd_pcm_new_stream()
748 pstr->substream = NULL; in snd_pcm_new_stream()
874 static void free_chmap(struct snd_pcm_str *pstr) in free_chmap() argument
876 if (pstr->chmap_kctl) { in free_chmap()
877 snd_ctl_remove(pstr->pcm->card, pstr->chmap_kctl); in free_chmap()
878 pstr->chmap_kctl = NULL; in free_chmap()
882 static void snd_pcm_free_stream(struct snd_pcm_str * pstr) in snd_pcm_free_stream() argument
888 substream = pstr->substream; in snd_pcm_free_stream()
896 snd_pcm_stream_proc_done(pstr); in snd_pcm_free_stream()
898 for (setup = pstr->oss.setup_list; setup; setup = setupn) { in snd_pcm_free_stream()
904 free_chmap(pstr); in snd_pcm_free_stream()
905 if (pstr->substream_count) in snd_pcm_free_stream()
906 put_device(&pstr->dev); in snd_pcm_free_stream()
945 struct snd_pcm_str * pstr; in snd_pcm_attach_substream() local
958 pstr = &pcm->streams[stream]; in snd_pcm_attach_substream()
959 if (pstr->substream == NULL || pstr->substream_count == 0) in snd_pcm_attach_substream()
977 if (pstr->substream_count > 1) in snd_pcm_attach_substream()
979 substream = pstr->substream; in snd_pcm_attach_substream()
981 for (substream = pstr->substream; substream; in snd_pcm_attach_substream()
995 for (substream = pstr->substream; substream; substream = substream->next) { in snd_pcm_attach_substream()
1036 pstr->substream_opened++; in snd_pcm_attach_substream()
1064 substream->pstr->substream_opened--; in snd_pcm_detach_substream()
1070 struct snd_pcm_str *pstr = container_of(dev, struct snd_pcm_str, dev); in show_pcm_class() local
1071 struct snd_pcm *pcm = pstr->pcm; in show_pcm_class()