/Linux-v4.19/sound/core/ |
D | rawmidi.c | 91 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready() local 93 return runtime->avail >= runtime->avail_min; in snd_rawmidi_ready() 99 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready_append() local 101 return runtime->avail >= runtime->avail_min && in snd_rawmidi_ready_append() 102 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append() 107 struct snd_rawmidi_runtime *runtime = in snd_rawmidi_input_event_work() local 110 if (runtime->event) in snd_rawmidi_input_event_work() 111 runtime->event(runtime->substream); in snd_rawmidi_input_event_work() 116 struct snd_rawmidi_runtime *runtime; in snd_rawmidi_runtime_create() local 118 runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); in snd_rawmidi_runtime_create() [all …]
|
D | pcm_lib.c | 62 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_silence() local 66 if (runtime->silence_size < runtime->boundary) { in snd_pcm_playback_silence() 68 snd_pcm_uframes_t appl_ptr = READ_ONCE(runtime->control->appl_ptr); in snd_pcm_playback_silence() 69 if (runtime->silence_start != appl_ptr) { in snd_pcm_playback_silence() 70 n = appl_ptr - runtime->silence_start; in snd_pcm_playback_silence() 72 n += runtime->boundary; in snd_pcm_playback_silence() 73 if ((snd_pcm_uframes_t)n < runtime->silence_filled) in snd_pcm_playback_silence() 74 runtime->silence_filled -= n; in snd_pcm_playback_silence() 76 runtime->silence_filled = 0; in snd_pcm_playback_silence() 77 runtime->silence_start = appl_ptr; in snd_pcm_playback_silence() [all …]
|
D | pcm_native.c | 266 if (!(substream->runtime->hw.info & SNDRV_PCM_INFO_MMAP)) in hw_support_mmap() 281 &substream->runtime->hw_constraints; in constrain_mask_params() 317 &substream->runtime->hw_constraints; in constrain_interval_params() 353 &substream->runtime->hw_constraints; in constrain_params_by_rules() 503 params->info = substream->runtime->hw.info; in fixup_unreferenced_params() 571 static int period_to_usecs(struct snd_pcm_runtime *runtime) in period_to_usecs() argument 575 if (! runtime->rate) in period_to_usecs() 579 usecs = (750000 / runtime->rate) * runtime->period_size; in period_to_usecs() 580 usecs += ((750000 % runtime->rate) * runtime->period_size) / in period_to_usecs() 581 runtime->rate; in period_to_usecs() [all …]
|
D | compress_offload.c | 94 struct snd_compr_runtime *runtime; in snd_compr_open() local 135 runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); in snd_compr_open() 136 if (!runtime) { in snd_compr_open() 141 runtime->state = SNDRV_PCM_STATE_OPEN; in snd_compr_open() 142 init_waitqueue_head(&runtime->sleep); in snd_compr_open() 143 data->stream.runtime = runtime; in snd_compr_open() 149 kfree(runtime); in snd_compr_open() 159 struct snd_compr_runtime *runtime = data->stream.runtime; in snd_compr_free() local 163 switch (runtime->state) { in snd_compr_free() 174 kfree(data->stream.runtime->buffer); in snd_compr_free() [all …]
|
D | pcm_memory.c | 163 if (substream->runtime) { in snd_pcm_lib_preallocate_proc_write() 330 struct snd_pcm_runtime *runtime; in snd_pcm_lib_malloc_pages() local 338 runtime = substream->runtime; in snd_pcm_lib_malloc_pages() 340 if (runtime->dma_buffer_p) { in snd_pcm_lib_malloc_pages() 344 if (runtime->dma_buffer_p->bytes >= size) { in snd_pcm_lib_malloc_pages() 345 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages() 366 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages() 381 struct snd_pcm_runtime *runtime; in snd_pcm_lib_free_pages() local 385 runtime = substream->runtime; in snd_pcm_lib_free_pages() 386 if (runtime->dma_area == NULL) in snd_pcm_lib_free_pages() [all …]
|
/Linux-v4.19/sound/core/oss/ |
D | pcm_oss.c | 556 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_plugin_clear() local 559 plugin = runtime->oss.plugin_first; in snd_pcm_oss_plugin_clear() 565 runtime->oss.plugin_first = runtime->oss.plugin_last = NULL; in snd_pcm_oss_plugin_clear() 571 struct snd_pcm_runtime *runtime = plugin->plug->runtime; in snd_pcm_plugin_insert() local 572 plugin->next = runtime->oss.plugin_first; in snd_pcm_plugin_insert() 574 if (runtime->oss.plugin_first) { in snd_pcm_plugin_insert() 575 runtime->oss.plugin_first->prev = plugin; in snd_pcm_plugin_insert() 576 runtime->oss.plugin_first = plugin; in snd_pcm_plugin_insert() 578 runtime->oss.plugin_last = in snd_pcm_plugin_insert() 579 runtime->oss.plugin_first = plugin; in snd_pcm_plugin_insert() [all …]
|
/Linux-v4.19/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() 98 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_open() local 102 return snd_pcm_hw_constraint_step(runtime, 0, in uniphier_aiodma_open() 110 substream->runtime->dma_bytes = params_buffer_bytes(params); in uniphier_aiodma_hw_params() [all …]
|
/Linux-v4.19/sound/soc/nuc900/ |
D | nuc900-pcm.c | 50 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 …]
|
/Linux-v4.19/sound/pci/ctxfi/ |
D | ctpcm.c | 107 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() 146 err = snd_pcm_hw_constraint_minmax(runtime, in ct_pcm_playback_open() 157 runtime->private_data = apcm; in ct_pcm_playback_open() [all …]
|
/Linux-v4.19/drivers/media/pci/cobalt/ |
D | cobalt-alsa-pcm.c | 103 struct snd_pcm_runtime *runtime; in cobalt_alsa_announce_pcm_data() local 120 runtime = substream->runtime; in cobalt_alsa_announce_pcm_data() 121 if (runtime == NULL) { in cobalt_alsa_announce_pcm_data() 125 is_s32 = runtime->format == SNDRV_PCM_FORMAT_S32_LE; in cobalt_alsa_announce_pcm_data() 127 stride = runtime->frame_bits >> 3; in cobalt_alsa_announce_pcm_data() 138 if (runtime->dma_area == NULL) { in cobalt_alsa_announce_pcm_data() 144 if (oldptr + length >= runtime->buffer_size) { in cobalt_alsa_announce_pcm_data() 145 unsigned int cnt = runtime->buffer_size - oldptr; in cobalt_alsa_announce_pcm_data() 149 sample_cpy(runtime->dma_area + (oldptr + i) * stride, in cobalt_alsa_announce_pcm_data() 153 sample_cpy(runtime->dma_area + (i - cnt) * stride, in cobalt_alsa_announce_pcm_data() [all …]
|
/Linux-v4.19/drivers/media/pci/cx18/ |
D | cx18-alsa-pcm.c | 72 struct snd_pcm_runtime *runtime; in cx18_alsa_announce_pcm_data() local 87 runtime = substream->runtime; in cx18_alsa_announce_pcm_data() 88 if (runtime == NULL) { in cx18_alsa_announce_pcm_data() 93 stride = runtime->frame_bits >> 3; in cx18_alsa_announce_pcm_data() 105 if (runtime->dma_area == NULL) { in cx18_alsa_announce_pcm_data() 111 if (oldptr + length >= runtime->buffer_size) { in cx18_alsa_announce_pcm_data() 113 runtime->buffer_size - oldptr; in cx18_alsa_announce_pcm_data() 114 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data() 116 memcpy(runtime->dma_area, pcm_data + cnt * stride, in cx18_alsa_announce_pcm_data() 119 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data() [all …]
|
/Linux-v4.19/drivers/media/pci/ivtv/ |
D | ivtv-alsa-pcm.c | 70 struct snd_pcm_runtime *runtime; in ivtv_alsa_announce_pcm_data() local 85 runtime = substream->runtime; in ivtv_alsa_announce_pcm_data() 86 if (runtime == NULL) { in ivtv_alsa_announce_pcm_data() 91 stride = runtime->frame_bits >> 3; in ivtv_alsa_announce_pcm_data() 103 if (runtime->dma_area == NULL) { in ivtv_alsa_announce_pcm_data() 109 if (oldptr + length >= runtime->buffer_size) { in ivtv_alsa_announce_pcm_data() 111 runtime->buffer_size - oldptr; in ivtv_alsa_announce_pcm_data() 112 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data() 114 memcpy(runtime->dma_area, pcm_data + cnt * stride, in ivtv_alsa_announce_pcm_data() 117 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data() [all …]
|
/Linux-v4.19/sound/pci/emu10k1/ |
D | emupcm.c | 49 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 …]
|
D | p16v.c | 166 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 …]
|
/Linux-v4.19/drivers/staging/vc04_services/bcm2835-audio/ |
D | bcm2835-pcm.c | 45 static void snd_bcm2835_playback_free(struct snd_pcm_runtime *runtime) in snd_bcm2835_playback_free() argument 48 kfree(runtime->private_data); in snd_bcm2835_playback_free() 49 runtime->private_data = NULL; in snd_bcm2835_playback_free() 76 (int) (alsa_stream->period_size * alsa_stream->substream->runtime->periods), in bcm2835_playback_fifo() 77 frames_to_bytes(alsa_stream->substream->runtime, alsa_stream->substream->runtime->status->hw_ptr), in bcm2835_playback_fifo() 97 struct snd_pcm_runtime *runtime = substream->runtime; in snd_bcm2835_playback_open_generic() local 150 runtime->private_data = alsa_stream; in snd_bcm2835_playback_open_generic() 151 runtime->private_free = snd_bcm2835_playback_free; in snd_bcm2835_playback_open_generic() 153 runtime->hw = snd_bcm2835_playback_spdif_hw; in snd_bcm2835_playback_open_generic() 157 runtime->hw = snd_bcm2835_playback_hw; in snd_bcm2835_playback_open_generic() [all …]
|
/Linux-v4.19/sound/isa/sb/ |
D | sb16_main.c | 52 #define runtime_format_bits(runtime) \ argument 53 ((unsigned int)pcm_format_to_bits((runtime)->format)) 56 static void snd_sb16_csp_playback_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_prepare() argument 64 (runtime_format_bits(runtime) == csp->acc_format)) { in snd_sb16_csp_playback_prepare() 72 if (runtime_format_bits(runtime) & (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_U8 | in snd_sb16_csp_playback_prepare() 83 if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_WRITE)) { in snd_sb16_csp_playback_prepare() 91 (runtime->channels > 1) ? in snd_sb16_csp_playback_prepare() 104 static void snd_sb16_csp_capture_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_capture_prepare() argument 112 (runtime_format_bits(runtime) == csp->acc_format)) { in snd_sb16_csp_capture_prepare() 121 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 | 108 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 …]
|
/Linux-v4.19/include/sound/ |
D | pcm.h | 410 void (*private_free)(struct snd_pcm_runtime *runtime); 461 struct snd_pcm_runtime *runtime; member 676 return (substream->runtime->status->state == SNDRV_PCM_STATE_RUNNING || in snd_pcm_running() 677 (substream->runtime->status->state == SNDRV_PCM_STATE_DRAINING && in snd_pcm_running() 686 static inline ssize_t bytes_to_samples(struct snd_pcm_runtime *runtime, ssize_t size) in bytes_to_samples() argument 688 return size * 8 / runtime->sample_bits; in bytes_to_samples() 696 static inline snd_pcm_sframes_t bytes_to_frames(struct snd_pcm_runtime *runtime, ssize_t size) in bytes_to_frames() argument 698 return size * 8 / runtime->frame_bits; in bytes_to_frames() 706 static inline ssize_t samples_to_bytes(struct snd_pcm_runtime *runtime, ssize_t size) in samples_to_bytes() argument 708 return size * runtime->sample_bits / 8; in samples_to_bytes() [all …]
|
/Linux-v4.19/sound/isa/gus/ |
D | gus_pcm.c | 80 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 …]
|
/Linux-v4.19/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-v4.19/drivers/media/usb/tm6000/ |
D | tm6000-alsa.c | 103 vfree(substream->runtime->dma_area); in dsp_buffer_free() 104 substream->runtime->dma_area = NULL; in dsp_buffer_free() 105 substream->runtime->dma_bytes = 0; in dsp_buffer_free() 114 if (substream->runtime->dma_area) { in dsp_buffer_alloc() 115 if (substream->runtime->dma_bytes > size) in dsp_buffer_alloc() 121 substream->runtime->dma_area = vmalloc(size); in dsp_buffer_alloc() 122 if (!substream->runtime->dma_area) in dsp_buffer_alloc() 125 substream->runtime->dma_bytes = size; in dsp_buffer_alloc() 166 struct snd_pcm_runtime *runtime = substream->runtime; in snd_tm6000_pcm_open() local 169 err = snd_pcm_hw_constraint_pow2(runtime, 0, in snd_tm6000_pcm_open() [all …]
|
/Linux-v4.19/sound/drivers/vx/ |
D | vx_pcm.c | 60 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 …]
|
/Linux-v4.19/sound/soc/fsl/ |
D | imx-pcm-fiq.c | 80 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 …]
|
/Linux-v4.19/sound/atmel/ |
D | ac97c.c | 92 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_playback_open() local 96 runtime->hw = atmel_ac97c_hw; in atmel_ac97c_playback_open() 98 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_playback_open() 99 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_playback_open() 102 runtime->hw.formats = pcm_format_to_bits(chip->cur_format); in atmel_ac97c_playback_open() 111 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_capture_open() local 115 runtime->hw = atmel_ac97c_hw; in atmel_ac97c_capture_open() 117 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_capture_open() 118 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_capture_open() 121 runtime->hw.formats = pcm_format_to_bits(chip->cur_format); in atmel_ac97c_capture_open() [all …]
|
/Linux-v4.19/sound/soc/qcom/qdsp6/ |
D | q6asm-dai.c | 180 struct snd_pcm_runtime *runtime = substream->runtime; in q6asm_dai_prepare() local 182 struct q6asm_dai_rtd *prtd = runtime->private_data; in q6asm_dai_prepare() 245 prtd->audio_client, runtime->rate, in q6asm_dai_prepare() 246 runtime->channels, NULL, in q6asm_dai_prepare() 250 runtime->rate, runtime->channels, in q6asm_dai_prepare() 254 for (i = 0; i < runtime->periods; i++) in q6asm_dai_prepare() 269 struct snd_pcm_runtime *runtime = substream->runtime; in q6asm_dai_trigger() local 270 struct q6asm_dai_rtd *prtd = runtime->private_data; in q6asm_dai_trigger() 296 struct snd_pcm_runtime *runtime = substream->runtime; in q6asm_dai_open() local 329 runtime->hw = q6asm_dai_hardware_playback; in q6asm_dai_open() [all …]
|