Home
last modified time | relevance | path

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

/sound/usb/line6/
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 …]
/sound/core/
Dpcm.c107 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
[all …]
Drawmidi.c602 info->subdevices_count = substream->pstr->substream_count; in snd_rawmidi_info()
603 info->subdevices_avail = (substream->pstr->substream_count - in snd_rawmidi_info()
604 substream->pstr->substream_opened); in snd_rawmidi_info()
626 struct snd_rawmidi_str *pstr; in __snd_rawmidi_info_select() local
635 pstr = &rmidi->streams[info->stream]; in __snd_rawmidi_info_select()
636 if (pstr->substream_count == 0) in __snd_rawmidi_info_select()
638 if (info->subdevice >= pstr->substream_count) in __snd_rawmidi_info_select()
640 list_for_each_entry(substream, &pstr->substreams, list) { in __snd_rawmidi_info_select()
1636 substream->pstr = stream; in snd_rawmidi_alloc_substreams()
Dpcm_native.c205 struct snd_pcm_str *pstr = substream->pstr; in snd_pcm_info() local
216 info->subdevices_count = pstr->substream_count; in snd_pcm_info()
217 info->subdevices_avail = pstr->substream_count - pstr->substream_opened; in snd_pcm_info()
Dpcm_lib.c131 ((substream)->pstr->xrun_debug & (mask))
/sound/soc/fsl/
Dmpc5200_dma.c132 substream->pstr->stream, runtime->frame_bits, in psc_dma_trigger()
147 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_trigger()
165 substream->pstr->stream, s->period_count); in psc_dma_trigger()
170 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_trigger()
180 substream->pstr->stream, cmd); in psc_dma_trigger()
229 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_open()
256 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_close()
281 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_pointer()
Dmpc5200_psc_ac97.c155 if (substream->pstr->stream != SNDRV_PCM_STREAM_CAPTURE) in psc_ac97_hw_analog_params()
185 substream->pstr->stream); in psc_ac97_trigger()
194 substream->pstr->stream); in psc_ac97_trigger()
Dmpc5200_dma.h80 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in to_psc_dma_stream()
/sound/core/oss/
Dpcm_oss.c2019 if (substream->pstr->substream_count > 1) in snd_pcm_oss_get_caps1()
2946 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_read() local
2947 struct snd_pcm_oss_setup *setup = pstr->oss.setup_list; in snd_pcm_oss_proc_read()
2948 mutex_lock(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_read()
2962 mutex_unlock(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_read()
2965 static void snd_pcm_oss_proc_free_setup_list(struct snd_pcm_str * pstr) in snd_pcm_oss_proc_free_setup_list() argument
2969 for (setup = pstr->oss.setup_list, pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
2975 pstr->oss.setup_list = NULL; in snd_pcm_oss_proc_free_setup_list()
2981 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_oss_proc_write() local
2988 mutex_lock(&pstr->oss.setup_mutex); in snd_pcm_oss_proc_write()
[all …]
/sound/pci/hda/
Dpatch_hdmi.c2294 struct hda_pcm_stream *pstr; in generic_hdmi_build_pcms() local
2305 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; in generic_hdmi_build_pcms()
2306 pstr->substreams = 1; in generic_hdmi_build_pcms()
2307 pstr->ops = generic_ops; in generic_hdmi_build_pcms()
3091 struct hda_pcm_stream *pstr; in simple_playback_build_pcms() local
3103 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; in simple_playback_build_pcms()
3104 *pstr = spec->pcm_playback; in simple_playback_build_pcms()
3105 pstr->nid = per_cvt->cvt_nid; in simple_playback_build_pcms()
3106 if (pstr->channels_max <= 2 && chans && chans <= 16) in simple_playback_build_pcms()
3107 pstr->channels_max = chans; in simple_playback_build_pcms()
/sound/pci/rme9652/
Drme9652.c1878 substream->pstr->stream, in snd_rme9652_playback_copy()
1895 substream->pstr->stream, in snd_rme9652_playback_copy_kernel()
1914 substream->pstr->stream, in snd_rme9652_capture_copy()
1931 substream->pstr->stream, in snd_rme9652_capture_copy_kernel()
1947 substream->pstr->stream, in snd_rme9652_hw_silence()
1991 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_rme9652_hw_params()
Dhdsp.c3901 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in snd_hdsp_playback_copy()
3916 channel_buf = hdsp_channel_buffer_location(hdsp, substream->pstr->stream, channel); in snd_hdsp_playback_copy_kernel()
3933 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in snd_hdsp_capture_copy()
3948 channel_buf = hdsp_channel_buffer_location(hdsp, substream->pstr->stream, channel); in snd_hdsp_capture_copy_kernel()
3962 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); in snd_hdsp_hw_silence()
4011 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_hdsp_hw_params()
Dhdspm.c5511 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_hdspm_hw_params()
/sound/usb/usx2y/
Dusbusx2yaudio.c741 struct snd_card *card = substream->pstr->pcm->card; in snd_usx2y_pcm_hw_params()
/sound/drivers/
Daloop.c190 int device = dpcm->substream->pstr->pcm->device; in get_setup()
/sound/pci/korg1212/
Dkorg1212.c1506 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_korg1212_hw_params()