Home
last modified time | relevance | path

Searched refs:pstr (Results 1 – 20 of 20) sorted by relevance

/linux/sound/usb/line6/
H A Dpcm.c148 struct line6_pcm_stream *pstr, int direction, int type) in line6_buffer_acquire() argument
156 if (!test_and_set_bit(type, &pstr->opened) && !pstr->buffer) { in line6_buffer_acquire()
157 pstr->buffer = in line6_buffer_acquire()
161 if (!pstr->buffer) in line6_buffer_acquire()
171 struct line6_pcm_stream *pstr, int type) in line6_buffer_release() argument
173 clear_bit(type, &pstr->opened); in line6_buffer_release()
174 if (!pstr->opened) { in line6_buffer_release()
175 line6_wait_clear_audio_urbs(line6pcm, pstr); in line6_buffer_release()
176 kfree(pstr->buffer); in line6_buffer_release()
177 pstr->buffer = NULL; in line6_buffer_release()
[all …]
/linux/sound/core/
H A Dpcm.c106 struct snd_pcm_str *pstr; in snd_pcm_control_ioctl() local
123 pstr = &pcm->streams[stream]; in snd_pcm_control_ioctl()
124 if (pstr->substream_count == 0) in snd_pcm_control_ioctl()
126 if (subdevice >= pstr->substream_count) in snd_pcm_control_ioctl()
128 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl()
480 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_read()
481 snd_iprintf(buffer, "%d\n", pstr->xrun_debug); in snd_pcm_xrun_debug_read()
487 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_write()
490 pstr->xrun_debug = simple_strtoul(line, NULL, 10); in snd_pcm_xrun_debug_write()
494 static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr)
482 struct snd_pcm_str *pstr = entry->private_data; snd_pcm_xrun_debug_read() local
489 struct snd_pcm_str *pstr = entry->private_data; snd_pcm_xrun_debug_write() local
496 snd_pcm_stream_proc_init(struct snd_pcm_str * pstr) snd_pcm_stream_proc_init() argument
525 snd_pcm_stream_proc_done(struct snd_pcm_str * pstr) snd_pcm_stream_proc_done() argument
584 snd_pcm_stream_proc_init(struct snd_pcm_str * pstr) snd_pcm_stream_proc_init() argument
585 snd_pcm_stream_proc_done(struct snd_pcm_str * pstr) snd_pcm_stream_proc_done() argument
597 struct snd_pcm_str *pstr = dev_get_drvdata(dev); do_pcm_suspend() local
630 struct snd_pcm_str *pstr = &pcm->streams[stream]; snd_pcm_new_stream() local
804 free_chmap(struct snd_pcm_str * pstr) free_chmap() argument
814 snd_pcm_free_stream(struct snd_pcm_str * pstr) snd_pcm_free_stream() argument
879 struct snd_pcm_str * pstr; snd_pcm_attach_substream() local
1012 struct snd_pcm_str *pstr = dev_get_drvdata(dev); pcm_class_show() local
[all...]
H A Drawmidi.c637 info->subdevices_count = substream->pstr->substream_count; in snd_rawmidi_info()
638 info->subdevices_avail = (substream->pstr->substream_count - in snd_rawmidi_info()
639 substream->pstr->substream_opened); in snd_rawmidi_info()
662 struct snd_rawmidi_str *pstr; in __snd_rawmidi_info_select() local
671 pstr = &rmidi->streams[info->stream]; in __snd_rawmidi_info_select()
672 if (pstr->substream_count == 0) in __snd_rawmidi_info_select()
674 if (info->subdevice >= pstr->substream_count) in __snd_rawmidi_info_select()
676 list_for_each_entry(substream, &pstr->substreams, list) { in __snd_rawmidi_info_select()
1812 substream->pstr = stream; in snd_rawmidi_alloc_substreams()
H A Dpcm_native.c224 struct snd_pcm_str *pstr = substream->pstr; in snd_pcm_info() local
235 info->subdevices_count = pstr->substream_count; in snd_pcm_info()
236 info->subdevices_avail = pstr->substream_count - pstr->substream_opened; in snd_pcm_info()
H A Dpcm_lib.c157 ((substream)->pstr->xrun_debug & (mask))
/linux/sound/hda/codecs/hdmi/
H A Dsimplehdmi.c16 struct hda_pcm_stream *pstr; in snd_hda_hdmi_simple_build_pcms() local
28 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; in snd_hda_hdmi_simple_build_pcms()
29 *pstr = spec->pcm_playback; in snd_hda_hdmi_simple_build_pcms()
30 pstr->nid = per_cvt->cvt_nid; in snd_hda_hdmi_simple_build_pcms()
31 if (pstr->channels_max <= 2 && chans && chans <= 16) in snd_hda_hdmi_simple_build_pcms()
32 pstr->channels_max = chans; in snd_hda_hdmi_simple_build_pcms()
H A Dhdmi.c1856 struct hda_pcm_stream *pstr; in snd_hda_hdmi_generic_build_pcms() local
1867 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; in snd_hda_hdmi_generic_build_pcms()
1868 pstr->substreams = 1; in snd_hda_hdmi_generic_build_pcms()
1869 pstr->ops = generic_ops; in snd_hda_hdmi_generic_build_pcms()
1872 pstr->channels_min = per_cvt->channels_min; in snd_hda_hdmi_generic_build_pcms()
1873 pstr->channels_max = per_cvt->channels_max; in snd_hda_hdmi_generic_build_pcms()
/linux/sound/soc/fsl/
H A Dmpc5200_dma.c126 substream->pstr->stream, runtime->frame_bits, in psc_dma_trigger()
140 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_trigger()
158 substream->pstr->stream, s->period_count); in psc_dma_trigger()
163 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_trigger()
173 substream->pstr->stream, cmd); in psc_dma_trigger()
222 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_open()
249 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_close()
274 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_pointer()
H A Dmpc5200_psc_ac97.c143 if (substream->pstr->stream != SNDRV_PCM_STREAM_CAPTURE) in psc_ac97_hw_analog_params()
173 substream->pstr->stream); in psc_ac97_trigger()
182 substream->pstr->stream); in psc_ac97_trigger()
H A Dmpc5200_dma.h80 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in to_psc_dma_stream()
/linux/sound/soc/google/
H A Dchv3-i2s.c158 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in chv3_dma_close()
211 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) { in chv3_dma_prepare()
240 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) { in chv3_dma_pointer()
262 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in chv3_dma_ack()
/linux/sound/core/oss/
H A Dpcm_oss.c2030 if (substream->pstr->substream_count > 1) in snd_pcm_oss_get_caps1()
2974 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_read()
2977 guard(mutex)(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_read()
2978 setup = pstr->oss.setup_list; in snd_pcm_oss_proc_read()
2994 static void snd_pcm_oss_proc_free_setup_list(struct snd_pcm_str * pstr) in snd_pcm_oss_proc_read()
2998 for (setup = pstr->oss.setup_list, pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
3004 pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
3010 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_write()
3017 guard(mutex)(&pstr in snd_pcm_oss_proc_write()
2976 struct snd_pcm_str *pstr = entry->private_data; snd_pcm_oss_proc_read() local
2996 snd_pcm_oss_proc_free_setup_list(struct snd_pcm_str * pstr) snd_pcm_oss_proc_free_setup_list() argument
3012 struct snd_pcm_str *pstr = entry->private_data; snd_pcm_oss_proc_write() local
3090 struct snd_pcm_str *pstr = &pcm->streams[stream]; snd_pcm_oss_proc_init() local
3113 struct snd_pcm_str *pstr = &pcm->streams[stream]; snd_pcm_oss_proc_done() local
[all...]
/linux/tools/perf/
H A Dbuiltin-diff.c1064 static int abstime_str_dup(char **pstr) in abstime_str_dup()
1074 *pstr = str; in abstime_str_dup()
1078 static int parse_absolute_time(struct data__file *d, char **pstr) in parse_absolute_time()
1080 char *p = *pstr; in parse_absolute_time()
1087 p = strchr(*pstr, ':'); in parse_absolute_time()
1089 if (p == *pstr) { in parse_absolute_time()
1102 ret = perf_time__parse_for_ranges(*pstr, d->session, in parse_absolute_time()
1110 *pstr = NULL; in parse_absolute_time()
1112 *pstr = p; in parse_absolute_time()
1062 abstime_str_dup(char ** pstr) abstime_str_dup() argument
1076 parse_absolute_time(struct data__file * d,char ** pstr) parse_absolute_time() argument
/linux/drivers/media/pci/solo6x10/
H A Dsolo6x10-g723.c78 struct snd_pcm_str *pstr = in solo_g723_isr() local
83 for (ss = pstr->substream; ss != NULL; ss = ss->next) { in solo_g723_isr()
/linux/drivers/staging/greybus/
H A Daudio_codec.h124 char pstr[NAME_SIZE]; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dfw_tracer.c461 char *substr, *pstr = str; in mlx5_tracer_get_num_of_params() local
469 substr = strstr(pstr, VAL_PARM); in mlx5_tracer_get_num_of_params()
472 pstr = substr; in mlx5_tracer_get_num_of_params()
473 substr = strstr(pstr, VAL_PARM); in mlx5_tracer_get_num_of_params()
/linux/sound/usb/usx2y/
H A Dusbusx2yaudio.c753 struct snd_card *card = substream->pstr->pcm->card; in snd_usx2y_pcm_hw_params()
/linux/drivers/firmware/cirrus/
H A Dcs_dsp.c417 const char **pstr) in cs_dsp_debugfs_string_read() argument
423 if (*pstr) { in cs_dsp_debugfs_string_read()
424 str = kasprintf(GFP_KERNEL, "%s\n", *pstr); in cs_dsp_debugfs_string_read()
/linux/sound/drivers/
H A Daloop.c201 int device = dpcm->substream->pstr->pcm->device;
/linux/sound/pci/rme9652/
H A Dhdspm.c5462 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_hdspm_hw_params()