| /kernel/linux/linux-5.10/sound/core/ |
| D | rawmidi.c | 98 static inline bool __snd_rawmidi_ready(struct snd_rawmidi_runtime *runtime) in __snd_rawmidi_ready() argument 100 return runtime->avail >= runtime->avail_min; in __snd_rawmidi_ready() 105 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready() local 109 spin_lock_irqsave(&runtime->lock, flags); in snd_rawmidi_ready() 110 ready = __snd_rawmidi_ready(runtime); in snd_rawmidi_ready() 111 spin_unlock_irqrestore(&runtime->lock, flags); in snd_rawmidi_ready() 118 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready_append() local 120 return runtime->avail >= runtime->avail_min && in snd_rawmidi_ready_append() 121 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append() 126 struct snd_rawmidi_runtime *runtime = in snd_rawmidi_input_event_work() local [all …]
|
| D | pcm_native.c | 246 if (!(substream->runtime->hw.info & SNDRV_PCM_INFO_MMAP)) in hw_support_mmap() 270 &substream->runtime->hw_constraints; in constrain_mask_params() 306 &substream->runtime->hw_constraints; in constrain_interval_params() 342 &substream->runtime->hw_constraints; in constrain_params_by_rules() 493 params->info = substream->runtime->hw.info; in fixup_unreferenced_params() 561 static int period_to_usecs(struct snd_pcm_runtime *runtime) in period_to_usecs() argument 565 if (! runtime->rate) in period_to_usecs() 569 usecs = (750000 / runtime->rate) * runtime->period_size; in period_to_usecs() 570 usecs += ((750000 % runtime->rate) * runtime->period_size) / in period_to_usecs() 571 runtime->rate; in period_to_usecs() [all …]
|
| D | pcm_lib.c | 38 * runtime->silence_start: starting pointer to silence area 39 * runtime->silence_filled: size filled with silence 40 * runtime->silence_threshold: threshold from application 41 * runtime->silence_size: maximal size from application 43 * when runtime->silence_size >= runtime->boundary - fill processed area with silence immediately 47 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_silence() local 51 if (runtime->silence_size < runtime->boundary) { in snd_pcm_playback_silence() 53 snd_pcm_uframes_t appl_ptr = READ_ONCE(runtime->control->appl_ptr); in snd_pcm_playback_silence() 54 if (runtime->silence_start != appl_ptr) { in snd_pcm_playback_silence() 55 n = appl_ptr - runtime->silence_start; in snd_pcm_playback_silence() [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/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_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 | 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() 57 * runtime->silence_start: starting pointer to silence area 58 * runtime->silence_filled: size filled with silence 59 * runtime->silence_threshold: threshold from application 60 * runtime->silence_size: maximal size from application [all …]
|
| /kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/ |
| D | 0028_linux_drivers_memory.patch | 40 + struct fsl_ifc_runtime __iomem *runtime = ctrl->rregs; 53 + nand_evter_intr_en = ifc_in32(&runtime->ifc_nand.nand_evter_intr_en); 54 + nor_evter_intr_en = ifc_in32(&runtime->ifc_nor.nor_evter_intr_en); 55 + gpcm_evter_intr_en = ifc_in32(&runtime->ifc_gpcm.gpcm_evter_intr_en); 60 + ifc_out32(0x0, &runtime->ifc_nand.nand_evter_intr_en); 61 + ifc_out32(0x0, &runtime->ifc_nor.nor_evter_intr_en); 62 + ifc_out32(0x0, &runtime->ifc_gpcm.gpcm_evter_intr_en); 93 + ifc_in32(&runtime->ifc_nand.ncfgr); 95 + ifc_in32(&runtime->ifc_nand.nand_fcr0); 97 + ifc_in32(&runtime->ifc_nand.nand_fcr1); [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | pm_runtime.h | 17 /* Runtime PM flag argument bits */ 66 * pm_runtime_get_if_in_use - Conditionally bump up runtime PM usage counter. 69 * Increment the runtime PM usage counter of @dev if its runtime PM status is 70 * %RPM_ACTIVE and its runtime PM usage counter is greater than 0. 78 * pm_suspend_ignore_children - Set runtime PM behavior regarding children. 83 * the runtime PM framework going forward if @enable is %true, or they will 92 * pm_runtime_get_noresume - Bump up runtime PM usage counter of a device. 101 * pm_runtime_put_noidle - Drop runtime PM usage counter of a device. 104 * Decrement the runtime PM usage counter of @dev unless it is 0 already. 112 * pm_runtime_suspended - Check whether or not a device is runtime-suspended. [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | pm_runtime.h | 17 /* Runtime PM flag argument bits */ 27 * (system suspend, hibernation or runtime PM). 30 * macro, which uses the provided callbacks for both runtime PM and system 99 * pm_runtime_get_if_in_use - Conditionally bump up runtime PM usage counter. 102 * Increment the runtime PM usage counter of @dev if its runtime PM status is 103 * %RPM_ACTIVE and its runtime PM usage counter is greater than 0. 111 * pm_suspend_ignore_children - Set runtime PM behavior regarding children. 116 * the runtime PM framework going forward if @enable is %true, or they will 125 * pm_runtime_get_noresume - Bump up runtime PM usage counter of a device. 134 * pm_runtime_put_noidle - Drop runtime PM usage counter of a device. [all …]
|
| /kernel/linux/linux-5.10/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() 89 struct snd_pcm_runtime *runtime = substream->runtime; in snd_bcm2835_playback_open_generic() local 128 runtime->private_data = alsa_stream; in snd_bcm2835_playback_open_generic() 129 runtime->private_free = snd_bcm2835_playback_free; in snd_bcm2835_playback_open_generic() 131 runtime->hw = snd_bcm2835_playback_spdif_hw; in snd_bcm2835_playback_open_generic() 135 runtime->hw = snd_bcm2835_playback_hw; in snd_bcm2835_playback_open_generic() 138 snd_pcm_hw_constraint_step(runtime, in snd_bcm2835_playback_open_generic() 144 snd_pcm_hw_constraint_minmax(runtime, in snd_bcm2835_playback_open_generic() 171 struct snd_pcm_runtime *runtime; in snd_bcm2835_playback_close() local [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/sound/soc/bcm/ |
| D | bcm63xx-pcm-whistler.c | 49 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_hw_params() local 52 runtime->dma_bytes = params_buffer_bytes(params); in bcm63xx_pcm_hw_params() 152 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_prepare() local 157 dma_desc->dma_addr = runtime->dma_addr; in bcm63xx_pcm_prepare() 158 dma_desc->dma_area = runtime->dma_area; in bcm63xx_pcm_prepare() 182 struct bcm63xx_runtime_data *prtd = substream->runtime->private_data; in bcm63xx_pcm_pointer() 185 prtd->dma_addr_next = substream->runtime->dma_addr; in bcm63xx_pcm_pointer() 187 x = bytes_to_frames(substream->runtime, in bcm63xx_pcm_pointer() 188 prtd->dma_addr_next - substream->runtime->dma_addr); in bcm63xx_pcm_pointer() 190 return x == substream->runtime->buffer_size ? 0 : x; in bcm63xx_pcm_pointer() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/qcom/qdsp6/ |
| D | q6apm-dai.c | 212 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_prepare() local 213 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_prepare() 229 cfg.sample_rate = runtime->rate; in q6apm_dai_prepare() 230 cfg.num_channels = runtime->channels; in q6apm_dai_prepare() 275 for (i = 0; i < runtime->periods; i++) in q6apm_dai_prepare() 288 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_ack() local 289 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_ack() 293 avail_periods = (runtime->control->appl_ptr - prtd->queue_ptr)/runtime->period_size; in q6apm_dai_ack() 300 prtd->queue_ptr += runtime->period_size; in q6apm_dai_ack() 310 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_trigger() local [all …]
|
| /kernel/linux/linux-5.10/sound/pci/emu10k1/ |
| D | emupcm.c | 35 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt() 47 if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97adc_interrupt() 59 if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97mic_interrupt() 71 if (emu->pcm_capture_efx_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_efx_interrupt() 81 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_efx_playback_pointer() local 82 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_emu10k1_efx_playback_pointer() 88 ptr += runtime->buffer_size; in snd_emu10k1_efx_playback_pointer() 90 ptr %= runtime->buffer_size; in snd_emu10k1_efx_playback_pointer() 276 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_pcm_init_voice() local 286 stereo = runtime->channels == 2; in snd_emu10k1_pcm_init_voice() [all …]
|
| D | p16v.c | 152 static void snd_p16v_pcm_free_substream(struct snd_pcm_runtime *runtime) in snd_p16v_pcm_free_substream() argument 154 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_p16v_pcm_free_substream() 165 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_open_playback_channel() local 179 runtime->private_data = epcm; in snd_p16v_pcm_open_playback_channel() 180 runtime->private_free = snd_p16v_pcm_free_substream; in snd_p16v_pcm_open_playback_channel() 182 runtime->hw = snd_p16v_playback_hw; in snd_p16v_pcm_open_playback_channel() 197 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) in snd_p16v_pcm_open_playback_channel() 200 runtime->sync.id32[0] = substream->pcm->card->number; in snd_p16v_pcm_open_playback_channel() 201 runtime->sync.id32[1] = 'P'; in snd_p16v_pcm_open_playback_channel() 202 runtime->sync.id32[2] = 16; in snd_p16v_pcm_open_playback_channel() [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/include/sound/ |
| D | pcm.h | 409 void (*private_free)(struct snd_pcm_runtime *runtime); 460 /* -- runtime information -- */ 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() 688 * @runtime: PCM runtime to set 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() 702 * @runtime: PCM runtime instance [all …]
|