• Home
  • Raw
  • Download

Lines Matching full:pstr

107 			struct snd_pcm_str *pstr;  in snd_pcm_control_ioctl()  local
127 pstr = &pcm->streams[stream]; in snd_pcm_control_ioctl()
128 if (pstr->substream_count == 0) { in snd_pcm_control_ioctl()
132 if (subdevice >= pstr->substream_count) { in snd_pcm_control_ioctl()
136 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl()
490 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_read() local
491 snd_iprintf(buffer, "%d\n", pstr->xrun_debug); in snd_pcm_xrun_debug_read()
497 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_write() local
500 pstr->xrun_debug = simple_strtoul(line, NULL, 10); in snd_pcm_xrun_debug_write()
504 static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr) in snd_pcm_stream_proc_init() argument
506 struct snd_pcm *pcm = pstr->pcm; in snd_pcm_stream_proc_init()
511 pstr->stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c'); in snd_pcm_stream_proc_init()
517 pstr->proc_root = entry; in snd_pcm_stream_proc_init()
518 entry = snd_info_create_card_entry(pcm->card, "info", pstr->proc_root); in snd_pcm_stream_proc_init()
520 snd_info_set_text_ops(entry, pstr, snd_pcm_stream_proc_info_read); in snd_pcm_stream_proc_init()
523 pstr->proc_root); in snd_pcm_stream_proc_init()
525 snd_info_set_text_ops(entry, pstr, snd_pcm_xrun_debug_read); in snd_pcm_stream_proc_init()
533 static int snd_pcm_stream_proc_done(struct snd_pcm_str *pstr) in snd_pcm_stream_proc_done() argument
535 snd_info_free_entry(pstr->proc_root); in snd_pcm_stream_proc_done()
536 pstr->proc_root = NULL; in snd_pcm_stream_proc_done()
565 substream->pstr->proc_root); in snd_pcm_substream_proc_init()
592 static inline int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr) { return 0; } in snd_pcm_stream_proc_init() argument
593 static inline int snd_pcm_stream_proc_done(struct snd_pcm_str *pstr) { return 0; } in snd_pcm_stream_proc_done() argument
606 struct snd_pcm_str *pstr = container_of(dev, struct snd_pcm_str, dev); in do_pcm_suspend() local
608 if (!pstr->pcm->no_device_suspend) in do_pcm_suspend()
609 snd_pcm_suspend_all(pstr->pcm); in do_pcm_suspend()
640 struct snd_pcm_str *pstr = &pcm->streams[stream]; in snd_pcm_new_stream() local
644 mutex_init(&pstr->oss.setup_mutex); in snd_pcm_new_stream()
646 pstr->stream = stream; in snd_pcm_new_stream()
647 pstr->pcm = pcm; in snd_pcm_new_stream()
648 pstr->substream_count = substream_count; in snd_pcm_new_stream()
652 snd_device_initialize(&pstr->dev, pcm->card); in snd_pcm_new_stream()
653 pstr->dev.groups = pcm_dev_attr_groups; in snd_pcm_new_stream()
654 pstr->dev.type = &pcm_dev_type; in snd_pcm_new_stream()
655 dev_set_name(&pstr->dev, "pcmC%iD%i%c", pcm->card->number, pcm->device, in snd_pcm_new_stream()
659 err = snd_pcm_stream_proc_init(pstr); in snd_pcm_new_stream()
671 substream->pstr = pstr; in snd_pcm_new_stream()
677 pstr->substream = substream; in snd_pcm_new_stream()
687 pstr->substream = NULL; in snd_pcm_new_stream()
811 static void free_chmap(struct snd_pcm_str *pstr) in free_chmap() argument
813 if (pstr->chmap_kctl) { in free_chmap()
814 struct snd_card *card = pstr->pcm->card; in free_chmap()
817 snd_ctl_remove(card, pstr->chmap_kctl); in free_chmap()
819 pstr->chmap_kctl = NULL; in free_chmap()
823 static void snd_pcm_free_stream(struct snd_pcm_str * pstr) in snd_pcm_free_stream() argument
831 snd_pcm_stream_proc_done(pstr); in snd_pcm_free_stream()
833 substream = pstr->substream; in snd_pcm_free_stream()
841 for (setup = pstr->oss.setup_list; setup; setup = setupn) { in snd_pcm_free_stream()
847 free_chmap(pstr); in snd_pcm_free_stream()
848 if (pstr->substream_count) in snd_pcm_free_stream()
849 put_device(&pstr->dev); in snd_pcm_free_stream()
888 struct snd_pcm_str * pstr; in snd_pcm_attach_substream() local
901 pstr = &pcm->streams[stream]; in snd_pcm_attach_substream()
902 if (pstr->substream == NULL || pstr->substream_count == 0) in snd_pcm_attach_substream()
920 if (pstr->substream_count > 1) in snd_pcm_attach_substream()
922 substream = pstr->substream; in snd_pcm_attach_substream()
924 for (substream = pstr->substream; substream; in snd_pcm_attach_substream()
938 for (substream = pstr->substream; substream; substream = substream->next) { in snd_pcm_attach_substream()
981 pstr->substream_opened++; in snd_pcm_attach_substream()
1012 substream->pstr->substream_opened--; in snd_pcm_detach_substream()
1018 struct snd_pcm_str *pstr = container_of(dev, struct snd_pcm_str, dev); in show_pcm_class() local
1019 struct snd_pcm *pcm = pstr->pcm; in show_pcm_class()