/linux-6.6.21/sound/core/oss/ |
D | pcm_oss.c | 541 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_plugin_clear() local 544 plugin = runtime->oss.plugin_first; in snd_pcm_oss_plugin_clear() 550 runtime->oss.plugin_first = runtime->oss.plugin_last = NULL; in snd_pcm_oss_plugin_clear() 556 struct snd_pcm_runtime *runtime = plugin->plug->runtime; in snd_pcm_plugin_insert() local 557 plugin->next = runtime->oss.plugin_first; in snd_pcm_plugin_insert() 559 if (runtime->oss.plugin_first) { in snd_pcm_plugin_insert() 560 runtime->oss.plugin_first->prev = plugin; in snd_pcm_plugin_insert() 561 runtime->oss.plugin_first = plugin; in snd_pcm_plugin_insert() 563 runtime->oss.plugin_last = in snd_pcm_plugin_insert() 564 runtime->oss.plugin_first = plugin; in snd_pcm_plugin_insert() [all …]
|
/linux-6.6.21/sound/core/ |
D | rawmidi.c | 101 static inline bool __snd_rawmidi_ready(struct snd_rawmidi_runtime *runtime) in __snd_rawmidi_ready() argument 103 return runtime->avail >= runtime->avail_min; in __snd_rawmidi_ready() 112 ready = __snd_rawmidi_ready(substream->runtime); in snd_rawmidi_ready() 120 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready_append() local 122 return runtime->avail >= runtime->avail_min && in snd_rawmidi_ready_append() 123 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append() 128 struct snd_rawmidi_runtime *runtime = in snd_rawmidi_input_event_work() local 131 if (runtime->event) in snd_rawmidi_input_event_work() 132 runtime->event(runtime->substream); in snd_rawmidi_input_event_work() 136 static inline void snd_rawmidi_buffer_ref(struct snd_rawmidi_runtime *runtime) in snd_rawmidi_buffer_ref() argument [all …]
|
D | pcm_lib.c | 37 static inline void update_silence_vars(struct snd_pcm_runtime *runtime, in update_silence_vars() argument 47 delta += runtime->boundary; in update_silence_vars() 48 if ((snd_pcm_uframes_t)delta < runtime->silence_filled) in update_silence_vars() 49 runtime->silence_filled -= delta; in update_silence_vars() 51 runtime->silence_filled = 0; in update_silence_vars() 52 runtime->silence_start = new_ptr; in update_silence_vars() 66 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_silence() local 70 if (runtime->silence_size < runtime->boundary) { in snd_pcm_playback_silence() 72 snd_pcm_uframes_t appl_ptr = READ_ONCE(runtime->control->appl_ptr); in snd_pcm_playback_silence() 73 update_silence_vars(runtime, runtime->silence_start, appl_ptr); in snd_pcm_playback_silence() [all …]
|
D | pcm_native.c | 261 if (!(substream->runtime->hw.info & SNDRV_PCM_INFO_MMAP)) in hw_support_mmap() 288 &substream->runtime->hw_constraints; in constrain_mask_params() 324 &substream->runtime->hw_constraints; in constrain_interval_params() 360 &substream->runtime->hw_constraints; in constrain_params_by_rules() 511 params->info = substream->runtime->hw.info; in fixup_unreferenced_params() 579 static int period_to_usecs(struct snd_pcm_runtime *runtime) in period_to_usecs() argument 583 if (! runtime->rate) in period_to_usecs() 587 usecs = (750000 / runtime->rate) * runtime->period_size; in period_to_usecs() 588 usecs += ((750000 % runtime->rate) * runtime->period_size) / in period_to_usecs() 589 runtime->rate; in period_to_usecs() [all …]
|
D | compress_offload.c | 79 struct snd_compr_runtime *runtime; in snd_compr_open() local 120 runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); in snd_compr_open() 121 if (!runtime) { in snd_compr_open() 126 runtime->state = SNDRV_PCM_STATE_OPEN; in snd_compr_open() 127 init_waitqueue_head(&runtime->sleep); in snd_compr_open() 128 data->stream.runtime = runtime; in snd_compr_open() 134 kfree(runtime); in snd_compr_open() 144 struct snd_compr_runtime *runtime = data->stream.runtime; in snd_compr_free() local 148 switch (runtime->state) { in snd_compr_free() 159 if (!data->stream.runtime->dma_buffer_p) in snd_compr_free() [all …]
|
D | pcm.c | 383 struct snd_pcm_runtime *runtime; in snd_pcm_substream_proc_hw_params_read() local 386 runtime = substream->runtime; in snd_pcm_substream_proc_hw_params_read() 387 if (!runtime) { in snd_pcm_substream_proc_hw_params_read() 391 if (runtime->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_substream_proc_hw_params_read() 395 snd_iprintf(buffer, "access: %s\n", snd_pcm_access_name(runtime->access)); in snd_pcm_substream_proc_hw_params_read() 396 snd_iprintf(buffer, "format: %s\n", snd_pcm_format_name(runtime->format)); in snd_pcm_substream_proc_hw_params_read() 397 snd_iprintf(buffer, "subformat: %s\n", snd_pcm_subformat_name(runtime->subformat)); in snd_pcm_substream_proc_hw_params_read() 398 snd_iprintf(buffer, "channels: %u\n", runtime->channels); in snd_pcm_substream_proc_hw_params_read() 399 snd_iprintf(buffer, "rate: %u (%u/%u)\n", runtime->rate, runtime->rate_num, runtime->rate_den); in snd_pcm_substream_proc_hw_params_read() 400 snd_iprintf(buffer, "period_size: %lu\n", runtime->period_size); in snd_pcm_substream_proc_hw_params_read() [all …]
|
/linux-6.6.21/sound/soc/uniphier/ |
D | aio-dma.c | 30 struct snd_pcm_runtime *runtime = sub->substream->runtime; in aiodma_pcm_irq() local 31 int bytes = runtime->period_size * in aiodma_pcm_irq() 32 runtime->channels * samples_to_bytes(runtime, 1); in aiodma_pcm_irq() 36 ret = aiodma_rb_set_threshold(sub, runtime->dma_bytes, in aiodma_pcm_irq() 41 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); in aiodma_pcm_irq() 50 struct snd_compr_runtime *runtime = sub->cstream->runtime; in aiodma_compr_irq() local 51 int bytes = runtime->fragment_size; in aiodma_compr_irq() 99 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_open() local 103 return snd_pcm_hw_constraint_step(runtime, 0, in uniphier_aiodma_open() 110 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_prepare() local [all …]
|
/linux-6.6.21/sound/pci/ctxfi/ |
D | ctpcm.c | 103 static void ct_atc_pcm_free_substream(struct snd_pcm_runtime *runtime) in ct_atc_pcm_free_substream() argument 105 struct ct_atc_pcm *apcm = runtime->private_data; in ct_atc_pcm_free_substream() 111 runtime->private_data = NULL; in ct_atc_pcm_free_substream() 118 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_open() local 129 runtime->hw = ct_spdif_passthru_playback_hw; in ct_pcm_playback_open() 132 runtime->hw = ct_pcm_playback_hw; in ct_pcm_playback_open() 134 runtime->hw.channels_max = 8; in ct_pcm_playback_open() 137 err = snd_pcm_hw_constraint_integer(runtime, in ct_pcm_playback_open() 142 err = snd_pcm_hw_constraint_minmax(runtime, in ct_pcm_playback_open() 153 runtime->private_data = apcm; in ct_pcm_playback_open() [all …]
|
/linux-6.6.21/drivers/staging/vc04_services/bcm2835-audio/ |
D | bcm2835-pcm.c | 47 static void snd_bcm2835_playback_free(struct snd_pcm_runtime *runtime) in snd_bcm2835_playback_free() argument 49 kfree(runtime->private_data); in snd_bcm2835_playback_free() 88 struct snd_pcm_runtime *runtime = substream->runtime; in snd_bcm2835_playback_open_generic() local 127 runtime->private_data = alsa_stream; in snd_bcm2835_playback_open_generic() 128 runtime->private_free = snd_bcm2835_playback_free; in snd_bcm2835_playback_open_generic() 130 runtime->hw = snd_bcm2835_playback_spdif_hw; in snd_bcm2835_playback_open_generic() 134 runtime->hw = snd_bcm2835_playback_hw; in snd_bcm2835_playback_open_generic() 137 snd_pcm_hw_constraint_step(runtime, in snd_bcm2835_playback_open_generic() 143 snd_pcm_hw_constraint_minmax(runtime, in snd_bcm2835_playback_open_generic() 170 struct snd_pcm_runtime *runtime; in snd_bcm2835_playback_close() local [all …]
|
/linux-6.6.21/sound/drivers/ |
D | pcmtest.c | 171 static void check_buf_block_i(struct pcmtst_buf_iter *v_iter, struct snd_pcm_runtime *runtime) in check_buf_block_i() argument 178 current_byte = runtime->dma_area[v_iter->buf_pos]; in check_buf_block_i() 181 ch_num = (v_iter->total_bytes / v_iter->sample_bytes) % runtime->channels; in check_buf_block_i() 183 runtime->channels, in check_buf_block_i() 189 inc_buf_pos(v_iter, 1, runtime->dma_bytes); in check_buf_block_i() 192 inc_buf_pos(v_iter, v_iter->b_rw - i, runtime->dma_bytes); in check_buf_block_i() 195 static void check_buf_block_ni(struct pcmtst_buf_iter *v_iter, struct snd_pcm_runtime *runtime) in check_buf_block_ni() argument 197 unsigned int channels = runtime->channels; in check_buf_block_ni() 204 current_byte = runtime->dma_area[buf_pos_n(v_iter, channels, ch_num)]; in check_buf_block_ni() 212 inc_buf_pos(v_iter, 1, runtime->dma_bytes); in check_buf_block_ni() [all …]
|
/linux-6.6.21/sound/pci/emu10k1/ |
D | p16v.c | 155 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_open_playback_channel() local 163 runtime->hw = snd_p16v_playback_hw; in snd_p16v_pcm_open_playback_channel() 173 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_p16v_pcm_open_playback_channel() 177 runtime->sync.id32[0] = substream->pcm->card->number; in snd_p16v_pcm_open_playback_channel() 178 runtime->sync.id32[1] = 'P'; in snd_p16v_pcm_open_playback_channel() 179 runtime->sync.id32[2] = 16; in snd_p16v_pcm_open_playback_channel() 180 runtime->sync.id32[3] = 'V'; in snd_p16v_pcm_open_playback_channel() 188 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_open_capture_channel() local 196 runtime->hw = snd_p16v_capture_hw; in snd_p16v_pcm_open_capture_channel() 198 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_p16v_pcm_open_capture_channel() [all …]
|
D | emupcm.c | 33 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt() 45 if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97adc_interrupt() 57 if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97mic_interrupt() 69 if (emu->pcm_capture_efx_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_efx_interrupt() 206 struct snd_pcm_runtime *runtime) in snd_emu10k1_constrain_capture_rates() argument 211 runtime->hw.rates = SNDRV_PCM_RATE_11025 | \ in snd_emu10k1_constrain_capture_rates() 214 runtime->hw.rate_min = 11025; in snd_emu10k1_constrain_capture_rates() 215 runtime->hw.rate_max = 44100; in snd_emu10k1_constrain_capture_rates() 218 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_emu10k1_constrain_capture_rates() 224 struct snd_pcm_runtime *runtime) in snd_emu1010_constrain_efx_rate() argument [all …]
|
/linux-6.6.21/sound/isa/sb/ |
D | sb16_main.c | 37 #define runtime_format_bits(runtime) \ argument 38 ((unsigned int)pcm_format_to_bits((runtime)->format)) 41 static void snd_sb16_csp_playback_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_prepare() argument 49 (runtime_format_bits(runtime) == csp->acc_format)) { in snd_sb16_csp_playback_prepare() 57 if (runtime_format_bits(runtime) & (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_U8 | in snd_sb16_csp_playback_prepare() 68 if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_WRITE)) { in snd_sb16_csp_playback_prepare() 76 (runtime->channels > 1) ? in snd_sb16_csp_playback_prepare() 89 static void snd_sb16_csp_capture_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_capture_prepare() argument 97 (runtime_format_bits(runtime) == csp->acc_format)) { in snd_sb16_csp_capture_prepare() 106 if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_READ)) { in snd_sb16_csp_capture_prepare() [all …]
|
D | sb8_main.c | 94 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sb8_playback_prepare() local 97 unsigned char stereo = runtime->channels > 1; in snd_sb8_playback_prepare() 100 rate = runtime->rate; in snd_sb8_playback_prepare() 103 if (runtime->format == SNDRV_PCM_FORMAT_S16_LE) { in snd_sb8_playback_prepare() 112 if (runtime->channels > 1) { in snd_sb8_playback_prepare() 158 runtime->dma_area[0] = 0x80; in snd_sb8_playback_prepare() 159 snd_dma_program(dma, runtime->dma_addr, 1, DMA_MODE_WRITE); in snd_sb8_playback_prepare() 167 snd_sbdsp_command(chip, 256 - runtime->rate_den / 2); in snd_sb8_playback_prepare() 176 snd_sbdsp_command(chip, 256 - runtime->rate_den); in snd_sb8_playback_prepare() 187 snd_dma_program(dma, runtime->dma_addr, in snd_sb8_playback_prepare() [all …]
|
/linux-6.6.21/include/sound/ |
D | pcm.h | 409 void (*private_free)(struct snd_pcm_runtime *runtime); 461 struct snd_pcm_runtime *runtime; member 681 return (substream->runtime->state == SNDRV_PCM_STATE_RUNNING || in snd_pcm_running() 682 (substream->runtime->state == SNDRV_PCM_STATE_DRAINING && in snd_pcm_running() 693 static inline void __snd_pcm_set_state(struct snd_pcm_runtime *runtime, in __snd_pcm_set_state() argument 696 runtime->state = state; in __snd_pcm_set_state() 697 runtime->status->state = state; /* copy for mmap */ in __snd_pcm_set_state() 707 static inline ssize_t bytes_to_samples(struct snd_pcm_runtime *runtime, ssize_t size) in bytes_to_samples() argument 709 return size * 8 / runtime->sample_bits; in bytes_to_samples() 719 static inline snd_pcm_sframes_t bytes_to_frames(struct snd_pcm_runtime *runtime, ssize_t size) in bytes_to_frames() argument [all …]
|
/linux-6.6.21/sound/soc/bcm/ |
D | bcm63xx-pcm-whistler.c | 148 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_prepare() local 153 dma_desc->dma_addr = runtime->dma_addr; in bcm63xx_pcm_prepare() 154 dma_desc->dma_area = runtime->dma_area; in bcm63xx_pcm_prepare() 178 struct bcm63xx_runtime_data *prtd = substream->runtime->private_data; in bcm63xx_pcm_pointer() 181 prtd->dma_addr_next = substream->runtime->dma_addr; in bcm63xx_pcm_pointer() 183 x = bytes_to_frames(substream->runtime, in bcm63xx_pcm_pointer() 184 prtd->dma_addr_next - substream->runtime->dma_addr); in bcm63xx_pcm_pointer() 186 return x == substream->runtime->buffer_size ? 0 : x; in bcm63xx_pcm_pointer() 193 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_open() local 196 runtime->hw = bcm63xx_pcm_hardware; in bcm63xx_pcm_open() [all …]
|
/linux-6.6.21/sound/isa/gus/ |
D | gus_pcm.c | 65 struct snd_pcm_runtime *runtime = substream->runtime; in snd_gf1_pcm_block_change() local 66 struct gus_pcm_private *pcmp = runtime->private_data; in snd_gf1_pcm_block_change() 76 if (snd_pcm_format_unsigned(runtime->format)) in snd_gf1_pcm_block_change() 78 if (snd_pcm_format_width(runtime->format) == 16) in snd_gf1_pcm_block_change() 81 block.buffer = runtime->dma_area + offset; in snd_gf1_pcm_block_change() 82 block.buf_addr = runtime->dma_addr + offset; in snd_gf1_pcm_block_change() 93 struct snd_pcm_runtime *runtime = substream->runtime; in snd_gf1_pcm_trigger_up() local 94 struct gus_pcm_private *pcmp = runtime->private_data; in snd_gf1_pcm_trigger_up() 112 rate = snd_gf1_translate_freq(gus, runtime->rate << 4); in snd_gf1_pcm_trigger_up() 114 voice_ctrl = snd_pcm_format_width(runtime->format) == 16 ? 0x24 : 0x20; in snd_gf1_pcm_trigger_up() [all …]
|
/linux-6.6.21/sound/soc/dwc/ |
D | dwc-pcm.c | 26 struct snd_pcm_runtime *runtime, unsigned int tx_ptr, \ 29 const u##sample_bits (*p)[2] = (void *)runtime->dma_area; \ 30 unsigned int period_pos = tx_ptr % runtime->period_size; \ 37 if (++tx_ptr >= runtime->buffer_size) \ 40 *period_elapsed = period_pos >= runtime->period_size; \ 46 struct snd_pcm_runtime *runtime, unsigned int rx_ptr, \ 49 u##sample_bits (*p)[2] = (void *)runtime->dma_area; \ 50 unsigned int period_pos = rx_ptr % runtime->period_size; \ 57 if (++rx_ptr >= runtime->buffer_size) \ 60 *period_elapsed = period_pos >= runtime->period_size; \ [all …]
|
/linux-6.6.21/sound/soc/qcom/qdsp6/ |
D | q6apm-dai.c | 225 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_prepare() local 226 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_prepare() 242 cfg.sample_rate = runtime->rate; in q6apm_dai_prepare() 243 cfg.num_channels = runtime->channels; in q6apm_dai_prepare() 289 for (i = 0; i < runtime->periods; i++) in q6apm_dai_prepare() 303 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_trigger() local 304 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_trigger() 333 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_open() local 363 runtime->hw = q6apm_dai_hardware_playback; in q6apm_dai_open() 365 runtime->hw = q6apm_dai_hardware_capture; in q6apm_dai_open() [all …]
|
/linux-6.6.21/drivers/media/pci/cobalt/ |
D | cobalt-alsa-pcm.c | 102 struct snd_pcm_runtime *runtime; in cobalt_alsa_announce_pcm_data() local 119 runtime = substream->runtime; in cobalt_alsa_announce_pcm_data() 120 if (runtime == NULL) { in cobalt_alsa_announce_pcm_data() 124 is_s32 = runtime->format == SNDRV_PCM_FORMAT_S32_LE; in cobalt_alsa_announce_pcm_data() 126 stride = runtime->frame_bits >> 3; in cobalt_alsa_announce_pcm_data() 137 if (runtime->dma_area == NULL) { in cobalt_alsa_announce_pcm_data() 143 if (oldptr + length >= runtime->buffer_size) { in cobalt_alsa_announce_pcm_data() 144 unsigned int cnt = runtime->buffer_size - oldptr; in cobalt_alsa_announce_pcm_data() 148 sample_cpy(runtime->dma_area + (oldptr + i) * stride, in cobalt_alsa_announce_pcm_data() 152 sample_cpy(runtime->dma_area + (i - cnt) * stride, in cobalt_alsa_announce_pcm_data() [all …]
|
/linux-6.6.21/sound/drivers/vx/ |
D | vx_pcm.c | 45 static void vx_pcm_read_per_bytes(struct vx_core *chip, struct snd_pcm_runtime *runtime, in vx_pcm_read_per_bytes() argument 49 unsigned char *buf = (unsigned char *)(runtime->dma_area + offset); in vx_pcm_read_per_bytes() 53 buf = (unsigned char *)runtime->dma_area; in vx_pcm_read_per_bytes() 58 buf = (unsigned char *)runtime->dma_area; in vx_pcm_read_per_bytes() 151 struct snd_pcm_runtime *runtime) in vx_set_format() argument 155 if (runtime->channels == 1) in vx_set_format() 157 if (snd_pcm_format_little_endian(runtime->format)) in vx_set_format() 159 if (runtime->rate < 32000 && runtime->rate > 11025) in vx_set_format() 161 else if (runtime->rate <= 11025) in vx_set_format() 164 switch (snd_pcm_format_physical_width(runtime->format)) { in vx_set_format() [all …]
|
/linux-6.6.21/sound/atmel/ |
D | ac97c.c | 88 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_playback_open() local 92 runtime->hw = atmel_ac97c_hw; in atmel_ac97c_playback_open() 94 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_playback_open() 95 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_playback_open() 98 runtime->hw.formats = pcm_format_to_bits(chip->cur_format); in atmel_ac97c_playback_open() 107 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_capture_open() local 111 runtime->hw = atmel_ac97c_hw; in atmel_ac97c_capture_open() 113 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_capture_open() 114 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_capture_open() 117 runtime->hw.formats = pcm_format_to_bits(chip->cur_format); in atmel_ac97c_capture_open() [all …]
|
/linux-6.6.21/sound/soc/amd/ |
D | acp-da7219-max98357a.c | 247 struct snd_pcm_runtime *runtime = substream->runtime; in cz_da7219_play_startup() local 256 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_play_startup() 257 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in cz_da7219_play_startup() 259 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in cz_da7219_play_startup() 268 struct snd_pcm_runtime *runtime = substream->runtime; in cz_da7219_cap_startup() local 277 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_cap_startup() 278 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in cz_da7219_cap_startup() 280 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in cz_da7219_cap_startup() 290 struct snd_pcm_runtime *runtime = substream->runtime; in cz_max_startup() local 299 runtime->hw.channels_max = DUAL_CHANNEL; in cz_max_startup() [all …]
|
/linux-6.6.21/drivers/media/pci/cx18/ |
D | cx18-alsa-pcm.c | 62 struct snd_pcm_runtime *runtime; in cx18_alsa_announce_pcm_data() local 77 runtime = substream->runtime; in cx18_alsa_announce_pcm_data() 78 if (runtime == NULL) { in cx18_alsa_announce_pcm_data() 83 stride = runtime->frame_bits >> 3; in cx18_alsa_announce_pcm_data() 95 if (runtime->dma_area == NULL) { in cx18_alsa_announce_pcm_data() 101 if (oldptr + length >= runtime->buffer_size) { in cx18_alsa_announce_pcm_data() 103 runtime->buffer_size - oldptr; in cx18_alsa_announce_pcm_data() 104 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data() 106 memcpy(runtime->dma_area, pcm_data + cnt * stride, in cx18_alsa_announce_pcm_data() 109 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data() [all …]
|
/linux-6.6.21/sound/soc/sof/intel/ |
D | hda-pcm.c | 99 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_hw_params() 107 dmab = substream->runtime->dma_buffer_p; in hda_dsp_pcm_hw_params() 149 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_ack() 150 struct snd_pcm_runtime *runtime = substream->runtime; in hda_dsp_pcm_ack() local 154 appl_pos = frames_to_bytes(runtime, runtime->control->appl_ptr); in hda_dsp_pcm_ack() 155 buf_size = frames_to_bytes(runtime, runtime->buffer_size); in hda_dsp_pcm_ack() 171 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_trigger() 182 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_pointer() 202 pos = bytes_to_frames(substream->runtime, pos); in hda_dsp_pcm_pointer() 212 struct snd_pcm_runtime *runtime = substream->runtime; in hda_dsp_pcm_open() local [all …]
|