Home
last modified time | relevance | path

Searched refs:runtime (Results 1 – 25 of 253) sorted by relevance

1234567891011

/sound/core/
Drawmidi.c91 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready() local
92 return runtime->avail >= runtime->avail_min; in snd_rawmidi_ready()
98 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready_append() local
99 return runtime->avail >= runtime->avail_min && in snd_rawmidi_ready_append()
100 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append()
105 struct snd_rawmidi_runtime *runtime = in snd_rawmidi_input_event_work() local
107 if (runtime->event) in snd_rawmidi_input_event_work()
108 runtime->event(runtime->substream); in snd_rawmidi_input_event_work()
112 static inline void snd_rawmidi_buffer_ref(struct snd_rawmidi_runtime *runtime) in snd_rawmidi_buffer_ref() argument
114 runtime->buffer_ref++; in snd_rawmidi_buffer_ref()
[all …]
Dpcm_lib.c55 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_silence() local
58 if (runtime->silence_size < runtime->boundary) { in snd_pcm_playback_silence()
60 if (runtime->silence_start != runtime->control->appl_ptr) { in snd_pcm_playback_silence()
61 n = runtime->control->appl_ptr - runtime->silence_start; in snd_pcm_playback_silence()
63 n += runtime->boundary; in snd_pcm_playback_silence()
64 if ((snd_pcm_uframes_t)n < runtime->silence_filled) in snd_pcm_playback_silence()
65 runtime->silence_filled -= n; in snd_pcm_playback_silence()
67 runtime->silence_filled = 0; in snd_pcm_playback_silence()
68 runtime->silence_start = runtime->control->appl_ptr; in snd_pcm_playback_silence()
70 if (runtime->silence_filled >= runtime->buffer_size) in snd_pcm_playback_silence()
[all …]
Dpcm_native.c200 struct snd_pcm_runtime *runtime; in snd_pcm_info() local
216 runtime = substream->runtime; in snd_pcm_info()
241 if (!(substream->runtime->hw.info & SNDRV_PCM_INFO_MMAP)) in hw_support_mmap()
284 struct snd_pcm_hw_constraints *constrs = &substream->runtime->hw_constraints; in snd_pcm_hw_refine()
430 hw = &substream->runtime->hw; in snd_pcm_hw_refine()
475 static int period_to_usecs(struct snd_pcm_runtime *runtime) in period_to_usecs() argument
479 if (! runtime->rate) in period_to_usecs()
483 usecs = (750000 / runtime->rate) * runtime->period_size; in period_to_usecs()
484 usecs += ((750000 % runtime->rate) * runtime->period_size) / in period_to_usecs()
485 runtime->rate; in period_to_usecs()
[all …]
Dcompress_offload.c88 struct snd_compr_runtime *runtime; in snd_compr_open() local
126 runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); in snd_compr_open()
127 if (!runtime) { in snd_compr_open()
132 runtime->state = SNDRV_PCM_STATE_OPEN; in snd_compr_open()
133 init_waitqueue_head(&runtime->sleep); in snd_compr_open()
134 data->stream.runtime = runtime; in snd_compr_open()
140 kfree(runtime); in snd_compr_open()
150 struct snd_compr_runtime *runtime = data->stream.runtime; in snd_compr_free() local
152 switch (runtime->state) { in snd_compr_free()
163 kfree(data->stream.runtime->buffer); in snd_compr_free()
[all …]
Dpcm_memory.c164 if (substream->runtime) { in snd_pcm_lib_preallocate_proc_write()
334 struct snd_pcm_runtime *runtime; in snd_pcm_lib_malloc_pages() local
342 runtime = substream->runtime; in snd_pcm_lib_malloc_pages()
344 if (runtime->dma_buffer_p) { in snd_pcm_lib_malloc_pages()
348 if (runtime->dma_buffer_p->bytes >= size) { in snd_pcm_lib_malloc_pages()
349 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
370 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
386 struct snd_pcm_runtime *runtime; in snd_pcm_lib_free_pages() local
390 runtime = substream->runtime; in snd_pcm_lib_free_pages()
391 if (runtime->dma_area == NULL) in snd_pcm_lib_free_pages()
[all …]
Dpcm.c391 struct snd_pcm_runtime *runtime; in snd_pcm_substream_proc_hw_params_read() local
394 runtime = substream->runtime; in snd_pcm_substream_proc_hw_params_read()
395 if (!runtime) { in snd_pcm_substream_proc_hw_params_read()
399 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_substream_proc_hw_params_read()
403 snd_iprintf(buffer, "access: %s\n", snd_pcm_access_name(runtime->access)); in snd_pcm_substream_proc_hw_params_read()
404 snd_iprintf(buffer, "format: %s\n", snd_pcm_format_name(runtime->format)); in snd_pcm_substream_proc_hw_params_read()
405 snd_iprintf(buffer, "subformat: %s\n", snd_pcm_subformat_name(runtime->subformat)); in snd_pcm_substream_proc_hw_params_read()
406 snd_iprintf(buffer, "channels: %u\n", runtime->channels); in snd_pcm_substream_proc_hw_params_read()
407 snd_iprintf(buffer, "rate: %u (%u/%u)\n", runtime->rate, runtime->rate_num, runtime->rate_den); in snd_pcm_substream_proc_hw_params_read()
408 snd_iprintf(buffer, "period_size: %lu\n", runtime->period_size); in snd_pcm_substream_proc_hw_params_read()
[all …]
/sound/core/oss/
Dpcm_oss.c566 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_plugin_clear() local
569 plugin = runtime->oss.plugin_first; in snd_pcm_oss_plugin_clear()
575 runtime->oss.plugin_first = runtime->oss.plugin_last = NULL; in snd_pcm_oss_plugin_clear()
581 struct snd_pcm_runtime *runtime = plugin->plug->runtime; in snd_pcm_plugin_insert() local
582 plugin->next = runtime->oss.plugin_first; in snd_pcm_plugin_insert()
584 if (runtime->oss.plugin_first) { in snd_pcm_plugin_insert()
585 runtime->oss.plugin_first->prev = plugin; in snd_pcm_plugin_insert()
586 runtime->oss.plugin_first = plugin; in snd_pcm_plugin_insert()
588 runtime->oss.plugin_last = in snd_pcm_plugin_insert()
589 runtime->oss.plugin_first = plugin; in snd_pcm_plugin_insert()
[all …]
/sound/soc/blackfin/
Dbf5xx-ac97-pcm.c58 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_mmap_copy() local
59 struct sport_device *sport = runtime->private_data; in bf5xx_mmap_copy()
60 unsigned int chan_mask = ac97_chan_mask[runtime->channels - 1]; in bf5xx_mmap_copy()
63 sport->tx_pos, (__u16 *)runtime->dma_area + sport->tx_pos * in bf5xx_mmap_copy()
64 runtime->channels, count, chan_mask); in bf5xx_mmap_copy()
65 sport->tx_pos += runtime->period_size; in bf5xx_mmap_copy()
66 if (sport->tx_pos >= runtime->buffer_size) in bf5xx_mmap_copy()
67 sport->tx_pos %= runtime->buffer_size; in bf5xx_mmap_copy()
71 sport->rx_pos, (__u16 *)runtime->dma_area + sport->rx_pos * in bf5xx_mmap_copy()
72 runtime->channels, count); in bf5xx_mmap_copy()
[all …]
Dbf5xx-i2s-pcm.c88 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_prepare() local
89 struct sport_device *sport = runtime->private_data; in bf5xx_pcm_prepare()
90 int period_bytes = frames_to_bytes(runtime, runtime->period_size); in bf5xx_pcm_prepare()
96 period_bytes = period_bytes / runtime->channels * 8; in bf5xx_pcm_prepare()
101 sport_config_tx_dma(sport, runtime->dma_area, in bf5xx_pcm_prepare()
102 runtime->periods, period_bytes); in bf5xx_pcm_prepare()
105 sport_config_rx_dma(sport, runtime->dma_area, in bf5xx_pcm_prepare()
106 runtime->periods, period_bytes); in bf5xx_pcm_prepare()
114 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_trigger() local
115 struct sport_device *sport = runtime->private_data; in bf5xx_pcm_trigger()
[all …]
/sound/soc/nuc900/
Dnuc900-pcm.c50 struct snd_pcm_runtime *runtime = substream->runtime; in nuc900_update_dma_register() local
51 struct nuc900_audio *nuc900_audio = runtime->private_data; in nuc900_update_dma_register()
62 AUDIO_WRITE(mmio_addr, runtime->dma_addr); in nuc900_update_dma_register()
63 AUDIO_WRITE(mmio_len, runtime->dma_bytes); in nuc900_update_dma_register()
68 struct snd_pcm_runtime *runtime = substream->runtime; in nuc900_dma_start() local
69 struct nuc900_audio *nuc900_audio = runtime->private_data; in nuc900_dma_start()
79 struct snd_pcm_runtime *runtime = substream->runtime; in nuc900_dma_stop() local
80 struct nuc900_audio *nuc900_audio = runtime->private_data; in nuc900_dma_stop()
91 struct nuc900_audio *nuc900_audio = substream->runtime->private_data; in nuc900_dma_interrupt()
147 struct snd_pcm_runtime *runtime = substream->runtime; in nuc900_dma_prepare() local
[all …]
/sound/pci/ctxfi/
Dctpcm.c107 static void ct_atc_pcm_free_substream(struct snd_pcm_runtime *runtime) in ct_atc_pcm_free_substream() argument
109 struct ct_atc_pcm *apcm = runtime->private_data; in ct_atc_pcm_free_substream()
115 runtime->private_data = NULL; in ct_atc_pcm_free_substream()
122 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_open() local
133 runtime->hw = ct_spdif_passthru_playback_hw; in ct_pcm_playback_open()
136 runtime->hw = ct_pcm_playback_hw; in ct_pcm_playback_open()
138 runtime->hw.channels_max = 8; in ct_pcm_playback_open()
141 err = snd_pcm_hw_constraint_integer(runtime, in ct_pcm_playback_open()
147 err = snd_pcm_hw_constraint_minmax(runtime, in ct_pcm_playback_open()
160 runtime->private_data = apcm; in ct_pcm_playback_open()
[all …]
/sound/pci/emu10k1/
Demupcm.c49 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt()
61 if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97adc_interrupt()
73 if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97mic_interrupt()
85 if (emu->pcm_capture_efx_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_efx_interrupt()
95 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_efx_playback_pointer() local
96 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_emu10k1_efx_playback_pointer()
102 ptr += runtime->buffer_size; in snd_emu10k1_efx_playback_pointer()
104 ptr %= runtime->buffer_size; in snd_emu10k1_efx_playback_pointer()
290 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_pcm_init_voice() local
300 stereo = runtime->channels == 2; in snd_emu10k1_pcm_init_voice()
[all …]
Dp16v.c166 static void snd_p16v_pcm_free_substream(struct snd_pcm_runtime *runtime) in snd_p16v_pcm_free_substream() argument
168 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_p16v_pcm_free_substream()
179 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_open_playback_channel() local
193 runtime->private_data = epcm; in snd_p16v_pcm_open_playback_channel()
194 runtime->private_free = snd_p16v_pcm_free_substream; in snd_p16v_pcm_open_playback_channel()
196 runtime->hw = snd_p16v_playback_hw; in snd_p16v_pcm_open_playback_channel()
211 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) in snd_p16v_pcm_open_playback_channel()
214 runtime->sync.id32[0] = substream->pcm->card->number; in snd_p16v_pcm_open_playback_channel()
215 runtime->sync.id32[1] = 'P'; in snd_p16v_pcm_open_playback_channel()
216 runtime->sync.id32[2] = 16; in snd_p16v_pcm_open_playback_channel()
[all …]
/sound/isa/sb/
Dsb8_main.c108 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sb8_playback_prepare() local
111 unsigned char stereo = runtime->channels > 1; in snd_sb8_playback_prepare()
114 rate = runtime->rate; in snd_sb8_playback_prepare()
117 if (runtime->format == SNDRV_PCM_FORMAT_S16_LE) { in snd_sb8_playback_prepare()
126 if (runtime->channels > 1) { in snd_sb8_playback_prepare()
172 runtime->dma_area[0] = 0x80; in snd_sb8_playback_prepare()
173 snd_dma_program(dma, runtime->dma_addr, 1, DMA_MODE_WRITE); in snd_sb8_playback_prepare()
181 snd_sbdsp_command(chip, 256 - runtime->rate_den / 2); in snd_sb8_playback_prepare()
190 snd_sbdsp_command(chip, 256 - runtime->rate_den); in snd_sb8_playback_prepare()
201 snd_dma_program(dma, runtime->dma_addr, in snd_sb8_playback_prepare()
[all …]
Dsb16_main.c53 static void snd_sb16_csp_playback_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_prepare() argument
61 ((1U << runtime->format) == csp->acc_format)) { in snd_sb16_csp_playback_prepare()
69 if ((1 << runtime->format) & (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_U8 | in snd_sb16_csp_playback_prepare()
80 if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_WRITE)) { in snd_sb16_csp_playback_prepare()
88 (runtime->channels > 1) ? in snd_sb16_csp_playback_prepare()
101 static void snd_sb16_csp_capture_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_capture_prepare() argument
109 ((1U << runtime->format) == csp->acc_format)) { in snd_sb16_csp_capture_prepare()
118 if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_READ)) { in snd_sb16_csp_capture_prepare()
126 (runtime->channels > 1) ? in snd_sb16_csp_capture_prepare()
152 static void snd_sb16_csp_playback_open(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_open() argument
[all …]
/sound/isa/gus/
Dgus_pcm.c80 struct snd_pcm_runtime *runtime = substream->runtime; in snd_gf1_pcm_block_change() local
81 struct gus_pcm_private *pcmp = runtime->private_data; in snd_gf1_pcm_block_change()
91 if (snd_pcm_format_unsigned(runtime->format)) in snd_gf1_pcm_block_change()
93 if (snd_pcm_format_width(runtime->format) == 16) in snd_gf1_pcm_block_change()
96 block.buffer = runtime->dma_area + offset; in snd_gf1_pcm_block_change()
97 block.buf_addr = runtime->dma_addr + offset; in snd_gf1_pcm_block_change()
108 struct snd_pcm_runtime *runtime = substream->runtime; in snd_gf1_pcm_trigger_up() local
109 struct gus_pcm_private *pcmp = runtime->private_data; in snd_gf1_pcm_trigger_up()
127 rate = snd_gf1_translate_freq(gus, runtime->rate << 4); in snd_gf1_pcm_trigger_up()
129 voice_ctrl = snd_pcm_format_width(runtime->format) == 16 ? 0x24 : 0x20; in snd_gf1_pcm_trigger_up()
[all …]
/sound/drivers/vx/
Dvx_pcm.c60 static void vx_pcm_read_per_bytes(struct vx_core *chip, struct snd_pcm_runtime *runtime, in vx_pcm_read_per_bytes() argument
64 unsigned char *buf = (unsigned char *)(runtime->dma_area + offset); in vx_pcm_read_per_bytes()
68 buf = (unsigned char *)runtime->dma_area; in vx_pcm_read_per_bytes()
73 buf = (unsigned char *)runtime->dma_area; in vx_pcm_read_per_bytes()
78 buf = (unsigned char *)runtime->dma_area; in vx_pcm_read_per_bytes()
167 struct snd_pcm_runtime *runtime) in vx_set_format() argument
171 if (runtime->channels == 1) in vx_set_format()
173 if (snd_pcm_format_little_endian(runtime->format)) in vx_set_format()
175 if (runtime->rate < 32000 && runtime->rate > 11025) in vx_set_format()
177 else if (runtime->rate <= 11025) in vx_set_format()
[all …]
/sound/soc/fsl/
Dimx-pcm-fiq.c80 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_hw_params() local
81 struct imx_pcm_runtime_data *iprtd = runtime->private_data; in snd_imx_pcm_hw_params()
95 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_prepare() local
96 struct imx_pcm_runtime_data *iprtd = runtime->private_data; in snd_imx_pcm_prepare()
114 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_trigger() local
115 struct imx_pcm_runtime_data *iprtd = runtime->private_data; in snd_imx_pcm_trigger()
151 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_pointer() local
152 struct imx_pcm_runtime_data *iprtd = runtime->private_data; in snd_imx_pcm_pointer()
154 return bytes_to_frames(substream->runtime, iprtd->offset); in snd_imx_pcm_pointer()
175 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_open() local
[all …]
Dfsl_asrc_dma.c51 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_asrc_dma_complete() local
52 struct fsl_asrc_pair *pair = runtime->private_data; in fsl_asrc_dma_complete()
65 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_asrc_dma_prepare_and_submit() local
66 struct fsl_asrc_pair *pair = runtime->private_data; in fsl_asrc_dma_prepare_and_submit()
71 if (!substream->runtime->no_period_wakeup) in fsl_asrc_dma_prepare_and_submit()
76 pair->dma_chan[!dir], runtime->dma_addr, in fsl_asrc_dma_prepare_and_submit()
105 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_asrc_dma_trigger() local
106 struct fsl_asrc_pair *pair = runtime->private_data; in fsl_asrc_dma_trigger()
140 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_asrc_dma_hw_params() local
141 struct fsl_asrc_pair *pair = runtime->private_data; in fsl_asrc_dma_hw_params()
[all …]
/sound/firewire/tascam/
Damdtp-tascam.c45 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s32() local
50 src = (void *)runtime->dma_area + in write_pcm_s32()
51 frames_to_bytes(runtime, s->pcm_buffer_pointer); in write_pcm_s32()
52 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer; in write_pcm_s32()
61 src = (void *)runtime->dma_area; in write_pcm_s32()
70 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s16() local
75 src = (void *)runtime->dma_area + in write_pcm_s16()
76 frames_to_bytes(runtime, s->pcm_buffer_pointer); in write_pcm_s16()
77 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer; in write_pcm_s16()
86 src = (void *)runtime->dma_area; in write_pcm_s16()
[all …]
Dtascam-pcm.c40 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_init_hw_params() local
44 runtime->hw = hardware; in pcm_init_hw_params()
47 runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; in pcm_init_hw_params()
51 runtime->hw.formats = in pcm_init_hw_params()
61 runtime->hw.channels_min = runtime->hw.channels_max = pcm_channels; in pcm_init_hw_params()
63 set_buffer_params(&runtime->hw); in pcm_init_hw_params()
65 return amdtp_tscm_add_pcm_hw_constraints(stream, runtime); in pcm_init_hw_params()
93 substream->runtime->hw.rate_min = rate; in pcm_open()
94 substream->runtime->hw.rate_max = rate; in pcm_open()
125 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { in pcm_capture_hw_params()
[all …]
/sound/atmel/
Dac97c.c113 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_prepare_dma() local
120 if (runtime->dma_addr & 1 || runtime->buffer_size & 1) { in atmel_ac97c_prepare_dma()
130 buffer_len = frames_to_bytes(runtime, runtime->buffer_size); in atmel_ac97c_prepare_dma()
131 period_len = frames_to_bytes(runtime, runtime->period_size); in atmel_ac97c_prepare_dma()
133 cdesc = dw_dma_cyclic_prep(chan, runtime->dma_addr, buffer_len, in atmel_ac97c_prepare_dma()
178 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_playback_open() local
182 runtime->hw = atmel_ac97c_hw; in atmel_ac97c_playback_open()
184 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_playback_open()
185 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_playback_open()
188 runtime->hw.formats = pcm_format_to_bits(chip->cur_format); in atmel_ac97c_playback_open()
[all …]
/sound/soc/samsung/
Didma.c73 struct snd_pcm_runtime *runtime = substream->runtime; in idma_enqueue() local
74 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_enqueue()
95 val |= (((runtime->dma_bytes >> 2) & in idma_enqueue()
109 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_setcallbk()
141 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_done()
150 struct snd_pcm_runtime *runtime = substream->runtime; in idma_hw_params() local
151 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_hw_params()
161 runtime->dma_bytes = params_buffer_bytes(params); in idma_hw_params()
163 prtd->start = prtd->pos = runtime->dma_addr; in idma_hw_params()
166 prtd->end = runtime->dma_addr + runtime->dma_bytes; in idma_hw_params()
[all …]
/sound/usb/
Dpcm.c82 subs = (struct snd_usb_substream *)substream->runtime->private_data; in snd_usb_pcm_pointer()
87 substream->runtime->delay = snd_usb_pcm_delay(subs, in snd_usb_pcm_pointer()
88 substream->runtime->rate); in snd_usb_pcm_pointer()
90 return hwptr_done / (substream->runtime->frame_bits >> 3); in snd_usb_pcm_pointer()
728 struct snd_usb_substream *subs = substream->runtime->private_data; in snd_usb_hw_params()
774 struct snd_usb_substream *subs = substream->runtime->private_data; in snd_usb_hw_free()
795 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usb_pcm_prepare() local
796 struct snd_usb_substream *subs = runtime->private_data; in snd_usb_pcm_prepare()
840 bytes_to_frames(runtime, subs->data_endpoint->maxpacksize); in snd_usb_pcm_prepare()
842 bytes_to_frames(runtime, subs->data_endpoint->curpacksize); in snd_usb_pcm_prepare()
[all …]
/sound/drivers/
Daloop.c206 struct snd_pcm_runtime *runtime, *cruntime; in loopback_check_format() local
216 runtime = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]-> in loopback_check_format()
217 substream->runtime; in loopback_check_format()
219 substream->runtime; in loopback_check_format()
220 check = runtime->format != cruntime->format || in loopback_check_format()
221 runtime->rate != cruntime->rate || in loopback_check_format()
222 runtime->channels != cruntime->channels; in loopback_check_format()
231 runtime = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]-> in loopback_check_format()
232 substream->runtime; in loopback_check_format()
235 if (setup->format != runtime->format) { in loopback_check_format()
[all …]

1234567891011