/linux-master/sound/core/ |
H A D | pcm.c | 376 struct snd_pcm_runtime *runtime; local 379 runtime = substream->runtime; 380 if (!runtime) { 384 if (runtime->state == SNDRV_PCM_STATE_OPEN) { 388 snd_iprintf(buffer, "access: %s\n", snd_pcm_access_name(runtime->access)); 389 snd_iprintf(buffer, "format: %s\n", snd_pcm_format_name(runtime->format)); 390 snd_iprintf(buffer, "subformat: %s\n", snd_pcm_subformat_name(runtime->subformat)); 391 snd_iprintf(buffer, "channels: %u\n", runtime->channels); 392 snd_iprintf(buffer, "rate: %u (%u/%u)\n", runtime 411 struct snd_pcm_runtime *runtime; local 437 struct snd_pcm_runtime *runtime; local 880 struct snd_pcm_runtime *runtime; local 978 struct snd_pcm_runtime *runtime; local [all...] |
/linux-master/sound/soc/amd/ps/ |
H A D | ps-pdm-dma.c | 185 struct snd_pcm_runtime *runtime; local 190 runtime = substream->runtime; 197 runtime->hw = acp63_pdm_hardware_capture; 199 ret = snd_pcm_hw_constraint_integer(runtime, 213 runtime->private_data = pdm_data; 224 rtd = substream->runtime->private_data; 229 rtd->dma_addr = substream->runtime->dma_addr; 257 rtd = stream->runtime->private_data; 258 buffersize = frames_to_bytes(stream->runtime, 281 struct snd_pcm_runtime *runtime = substream->runtime; local 408 struct snd_pcm_runtime *runtime; local [all...] |
/linux-master/sound/soc/loongson/ |
H A D | loongson_dma.c | 94 struct loongson_runtime_data *prtd = substream->runtime->private_data; 139 struct snd_pcm_runtime *runtime = substream->runtime; local 141 struct loongson_runtime_data *prtd = runtime->private_data; 161 runtime->dma_bytes = buf_len; 164 mem_addr = runtime->dma_addr; 202 struct snd_pcm_runtime *runtime = substream->runtime; local 203 struct loongson_runtime_data *prtd = runtime->private_data; 211 x = bytes_to_frames(runtime, add 228 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/usb/line6/ |
H A D | capture.c | 88 struct snd_pcm_runtime *runtime = substream->runtime; local 94 if (runtime == NULL) 97 if (line6pcm->in.pos_done + frames > runtime->buffer_size) { 104 len = runtime->buffer_size - line6pcm->in.pos_done; 107 memcpy(runtime->dma_area + 110 memcpy(runtime->dma_area, fbuf + len * bytes_per_frame, 119 memcpy(runtime->dma_area + 124 if (line6pcm->in.pos_done >= runtime->buffer_size) 125 line6pcm->in.pos_done -= runtime 222 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/include/sound/ |
H A D | pcm-indirect.h | 38 struct snd_pcm_runtime *runtime = substream->runtime; local 39 snd_pcm_uframes_t appl_ptr = runtime->control->appl_ptr; 44 if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) 45 diff += runtime->boundary; 48 rec->sw_ready += (int)frames_to_bytes(runtime, diff); 100 return bytes_to_frames(substream->runtime, rec->sw_io); 112 struct snd_pcm_runtime *runtime = substream->runtime; local 113 snd_pcm_uframes_t appl_ptr = runtime [all...] |
/linux-master/sound/soc/kirkwood/ |
H A D | kirkwood-dma.c | 105 struct snd_pcm_runtime *runtime = substream->runtime; local 111 err = snd_pcm_hw_constraint_minmax(runtime, 118 err = snd_pcm_hw_constraint_step(runtime, 0, 124 err = snd_pcm_hw_constraint_step(substream->runtime, 0, 183 unsigned long addr = substream->runtime->dma_addr; 200 struct snd_pcm_runtime *runtime = substream->runtime; local 205 size = frames_to_bytes(runtime, runtime [all...] |
/linux-master/sound/usb/usx2y/ |
H A D | usbusx2yaudio.c | 61 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; local 82 if ((hwptr_done + len) > runtime->buffer_size) { 83 cnt = runtime->buffer_size - hwptr_done; 85 memcpy(runtime->dma_area + hwptr_done * usx2y->stride, cp, blen); 86 memcpy(runtime->dma_area, cp + blen, len * usx2y->stride - blen); 88 memcpy(runtime->dma_area + hwptr_done * usx2y->stride, cp, 93 if (hwptr_done >= runtime->buffer_size) 94 hwptr_done -= runtime->buffer_size; 100 if (subs->transfer_done >= runtime 122 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; local 175 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; local 812 struct snd_pcm_runtime *runtime = substream->runtime; local 847 struct snd_pcm_runtime *runtime = substream->runtime; local 908 struct snd_pcm_runtime *runtime = substream->runtime; local 922 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/drivers/ |
H A D | aloop.c | 338 struct snd_pcm_runtime *runtime, *cruntime; local 348 runtime = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]-> 349 substream->runtime; 351 substream->runtime; 352 check = runtime->format != cruntime->format || 353 runtime->rate != cruntime->rate || 354 runtime->channels != cruntime->channels || 355 is_access_interleaved(runtime->access) != 365 runtime = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]-> 366 substream->runtime; 403 struct snd_pcm_runtime *runtime = substream->runtime; local 460 struct snd_pcm_runtime *runtime = substream->runtime; local 480 struct snd_pcm_runtime *runtime = substream->runtime; local 526 struct snd_pcm_runtime *runtime = dpcm->substream->runtime; local 570 struct snd_pcm_runtime *runtime = play->substream->runtime; local 721 loopback_snd_timer_check_resolution(struct snd_pcm_runtime *runtime, unsigned long resolution) argument 909 struct snd_pcm_runtime *runtime = substream->runtime; local 949 loopback_runtime_free(struct snd_pcm_runtime *runtime) argument 957 struct snd_pcm_runtime *runtime = substream->runtime; local 1232 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/usb/ |
H A D | pcm.c | 33 struct snd_pcm_runtime *runtime) 41 queued = bytes_to_frames(runtime, subs->inflight_bytes); 58 est_delay = frame_diff * runtime->rate / 1000; 74 struct snd_pcm_runtime *runtime = substream->runtime; local 75 struct snd_usb_substream *subs = runtime->private_data; 82 runtime->delay = snd_usb_pcm_delay(subs, runtime); 84 return bytes_to_frames(runtime, hwptr_done); 305 struct snd_usb_substream *subs = substream->runtime 32 snd_usb_pcm_delay(struct snd_usb_substream *subs, struct snd_pcm_runtime *runtime) argument 608 in_free_wheeling_mode(struct snd_pcm_runtime *runtime) argument 614 lowlatency_playback_available(struct snd_pcm_runtime *runtime, struct snd_usb_substream *subs) argument 639 struct snd_pcm_runtime *runtime = substream->runtime; local 1082 setup_hw_info(struct snd_pcm_runtime *runtime, struct snd_usb_substream *subs) argument 1209 struct snd_pcm_runtime *runtime = substream->runtime; local 1269 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; local 1352 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; local 1409 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; local 1426 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; local 1474 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; local [all...] |
/linux-master/sound/soc/sti/ |
H A D | uniperif_reader.c | 81 static int uni_reader_prepare_pcm(struct snd_pcm_runtime *runtime, argument 91 switch (runtime->format) { 117 switch (runtime->format) { 137 if ((runtime->channels % 2) || (runtime->channels < 2) || 138 (runtime->channels > 10)) { 143 SET_UNIPERIF_I2S_FMT_NUM_CH(reader, runtime->channels / 2); 149 static int uni_reader_prepare_tdm(struct snd_pcm_runtime *runtime, argument 157 frame_size = sti_uniperiph_get_user_frame_size(runtime); 191 struct snd_pcm_runtime *runtime local [all...] |
/linux-master/sound/pci/emu10k1/ |
H A D | emu10k1x.c | 342 static void snd_emu10k1x_pcm_free_substream(struct snd_pcm_runtime *runtime) argument 344 kfree(runtime->private_data); 371 struct snd_pcm_runtime *runtime = substream->runtime; local 374 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); 377 err = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 64); 387 runtime->private_data = epcm; 388 runtime->private_free = snd_emu10k1x_pcm_free_substream; 390 runtime->hw = snd_emu10k1x_playback_hw; 405 struct snd_pcm_runtime *runtime local 420 struct snd_pcm_runtime *runtime = substream->runtime; local 441 struct snd_pcm_runtime *runtime = substream->runtime; local 471 struct snd_pcm_runtime *runtime = substream->runtime; local 508 struct snd_pcm_runtime *runtime = substream->runtime; local 551 struct snd_pcm_runtime *runtime = substream->runtime; local 586 struct snd_pcm_runtime *runtime = substream->runtime; local 603 struct snd_pcm_runtime *runtime = substream->runtime; local 624 struct snd_pcm_runtime *runtime = substream->runtime; local 639 struct snd_pcm_runtime *runtime = substream->runtime; local 668 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/firewire/digi00x/ |
H A D | amdtp-dot.c | 151 struct snd_pcm_runtime *runtime = pcm->runtime; local 158 pcm_buffer_pointer %= runtime->buffer_size; 160 src = (void *)runtime->dma_area + 161 frames_to_bytes(runtime, pcm_buffer_pointer); 162 remaining_frames = runtime->buffer_size - pcm_buffer_pointer; 173 src = (void *)runtime->dma_area; 183 struct snd_pcm_runtime *runtime = pcm->runtime; local 190 pcm_buffer_pointer %= runtime 322 amdtp_dot_add_pcm_hw_constraints(struct amdtp_stream *s, struct snd_pcm_runtime *runtime) argument [all...] |
/linux-master/sound/firewire/ |
H A D | amdtp-am824.c | 154 struct snd_pcm_runtime *runtime = pcm->runtime; local 161 pcm_buffer_pointer %= runtime->buffer_size; 163 src = (void *)runtime->dma_area + 164 frames_to_bytes(runtime, pcm_buffer_pointer); 165 remaining_frames = runtime->buffer_size - pcm_buffer_pointer; 175 src = (void *)runtime->dma_area; 185 struct snd_pcm_runtime *runtime = pcm->runtime; local 192 pcm_buffer_pointer %= runtime 228 amdtp_am824_add_pcm_hw_constraints(struct amdtp_stream *s, struct snd_pcm_runtime *runtime) argument [all...] |
/linux-master/sound/pci/cs5535audio/ |
H A D | cs5535audio_pcm.c | 83 struct snd_pcm_runtime *runtime = substream->runtime; local 85 runtime->hw = snd_cs5535audio_playback; 86 runtime->hw.rates = cs5535au->ac97->rates[AC97_RATES_FRONT_DAC]; 87 snd_pcm_limit_hw_rates(runtime); 89 runtime->private_data = &(cs5535au->dmas[CS5535AUDIO_DMA_PLAYBACK]); 90 err = snd_pcm_hw_constraint_integer(runtime, 133 addr = (u32) substream->runtime->dma_addr; 235 struct cs5535audio_dma *dma = substream->runtime->private_data; 238 dma->buf_addr = substream->runtime 337 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/soc/amd/renoir/ |
H A D | acp3x-pdm-dma.c | 207 struct snd_pcm_runtime *runtime; local 212 runtime = substream->runtime; 219 runtime->hw = acp_pdm_hardware_capture; 221 ret = snd_pcm_hw_constraint_integer(runtime, 235 runtime->private_data = pdm_data; 246 rtd = substream->runtime->private_data; 251 rtd->dma_addr = substream->runtime->dma_addr; 280 rtd = stream->runtime->private_data; 281 buffersize = frames_to_bytes(stream->runtime, 447 struct snd_pcm_runtime *runtime; local [all...] |
/linux-master/sound/soc/amd/yc/ |
H A D | acp6x-pdm-dma.c | 183 struct snd_pcm_runtime *runtime; local 188 runtime = substream->runtime; 195 runtime->hw = acp6x_pdm_hardware_capture; 197 ret = snd_pcm_hw_constraint_integer(runtime, 211 runtime->private_data = pdm_data; 222 rtd = substream->runtime->private_data; 227 rtd->dma_addr = substream->runtime->dma_addr; 254 rtd = stream->runtime->private_data; 255 buffersize = frames_to_bytes(stream->runtime, 400 struct snd_pcm_runtime *runtime; local [all...] |
/linux-master/sound/pci/au88x0/ |
H A D | au88x0_pcm.c | 129 struct snd_pcm_runtime *runtime = substream->runtime; local 133 err = snd_pcm_hw_constraint_integer(runtime, 138 err = snd_pcm_hw_constraint_pow2(runtime, 0, 143 snd_pcm_hw_constraint_step(runtime, 0, 149 runtime->hw = snd_vortex_playback_hw_a3d; 153 runtime->hw = snd_vortex_playback_hw_spdif; 156 runtime->hw.rates = SNDRV_PCM_RATE_32000; 159 runtime->hw.rates = SNDRV_PCM_RATE_44100; 162 runtime 306 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/drivers/base/power/ |
H A D | Makefile | 2 obj-$(CONFIG_PM) += sysfs.o generic_ops.o common.o qos.o runtime.o wakeirq.o
|
/linux-master/sound/pci/aw2/ |
H A D | aw2-alsa.c | 313 struct snd_pcm_runtime *runtime = substream->runtime; local 316 runtime->hw = snd_aw2_playback_hw; 329 struct snd_pcm_runtime *runtime = substream->runtime; local 332 runtime->hw = snd_aw2_capture_hw; 348 struct snd_pcm_runtime *runtime = substream->runtime; local 358 runtime->dma_addr, period_size, 377 struct snd_pcm_runtime *runtime local 462 struct snd_pcm_runtime *runtime = substream->runtime; local 481 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/firewire/fireworks/ |
H A D | fireworks_pcm.c | 135 struct snd_pcm_runtime *runtime = substream->runtime; local 141 runtime->hw.formats = AM824_IN_PCM_FORMAT_BITS; 145 runtime->hw.formats = AM824_OUT_PCM_FORMAT_BITS; 151 runtime->hw.rates = efw->supported_sampling_rate; 152 snd_pcm_limit_hw_rates(runtime); 154 limit_channels(&runtime->hw, pcm_channels); 156 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, 162 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, 168 err = amdtp_am824_add_pcm_hw_constraints(s, runtime); [all...] |
/linux-master/sound/firewire/motu/ |
H A D | motu-pcm.c | 70 struct snd_pcm_runtime *runtime, 73 struct snd_pcm_hardware *hw = &runtime->hw; 92 snd_pcm_limit_hw_rates(runtime); 98 struct snd_pcm_runtime *runtime = substream->runtime; local 99 struct snd_pcm_hardware *hw = &runtime->hw; 114 limit_channels_and_rates(motu, runtime, formats); 116 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, 121 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, 127 return amdtp_motu_add_pcm_hw_constraints(stream, runtime); 69 limit_channels_and_rates(struct snd_motu *motu, struct snd_pcm_runtime *runtime, struct snd_motu_packet_format *formats) argument [all...] |
/linux-master/drivers/media/usb/cx231xx/ |
H A D | cx231xx-audio.c | 89 struct snd_pcm_runtime *runtime; local 113 runtime = substream->runtime; 114 stride = runtime->frame_bits >> 3; 127 if (oldptr + length >= runtime->buffer_size) { 130 cnt = runtime->buffer_size - oldptr; 131 memcpy(runtime->dma_area + oldptr * stride, cp, 133 memcpy(runtime->dma_area, cp + cnt * stride, 136 memcpy(runtime->dma_area + oldptr * stride, cp, 144 runtime 180 struct snd_pcm_runtime *runtime; local 398 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/pci/ |
H A D | sis7019.c | 434 struct snd_pcm_runtime *runtime = substream->runtime; local 435 struct voice *voice = runtime->private_data; 469 struct snd_pcm_runtime *runtime = substream->runtime; local 477 runtime->private_data = voice; 478 runtime->hw = sis_playback_hw_info; 479 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 481 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 490 struct snd_pcm_runtime *runtime local 499 struct snd_pcm_runtime *runtime = substream->runtime; local 634 struct snd_pcm_runtime *runtime = substream->runtime; local 646 struct snd_pcm_runtime *runtime = substream->runtime; local 697 struct snd_pcm_runtime *runtime = substream->runtime; local 798 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/soc/qcom/qdsp6/ |
H A D | q6asm-dai.c | 221 struct snd_pcm_runtime *runtime = substream->runtime; local 223 struct q6asm_dai_rtd *prtd = runtime->private_data; 287 runtime->rate, runtime->channels, NULL, 292 runtime->rate, 293 runtime->channels, 297 for (i = 0; i < runtime->periods; i++) 322 struct snd_pcm_runtime *runtime = substream->runtime; local 353 struct snd_pcm_runtime *runtime = substream->runtime; local 446 struct snd_pcm_runtime *runtime = substream->runtime; local 470 struct snd_pcm_runtime *runtime = substream->runtime; local 483 struct snd_pcm_runtime *runtime = substream->runtime; local 606 struct snd_compr_runtime *runtime = stream->runtime; local 668 struct snd_compr_runtime *runtime = stream->runtime; local 700 struct snd_compr_runtime *runtime = stream->runtime; local 877 struct snd_compr_runtime *runtime = stream->runtime; local 946 struct snd_compr_runtime *runtime = stream->runtime; local 994 struct snd_compr_runtime *runtime = stream->runtime; local 1035 struct snd_compr_runtime *runtime = stream->runtime; local 1053 struct snd_compr_runtime *runtime = stream->runtime; local 1123 struct snd_compr_runtime *runtime = stream->runtime; local [all...] |
/linux-master/drivers/media/usb/go7007/ |
H A D | snd-go7007.c | 67 struct snd_pcm_runtime *runtime = gosnd->substream->runtime; local 68 int frames = bytes_to_frames(runtime, length); 73 if (gosnd->hw_ptr >= runtime->buffer_size) 74 gosnd->hw_ptr -= runtime->buffer_size; 77 if (gosnd->w_idx + length > runtime->dma_bytes) { 78 int cpy = runtime->dma_bytes - gosnd->w_idx; 80 memcpy(runtime->dma_area + gosnd->w_idx, buf, cpy); 85 memcpy(runtime->dma_area + gosnd->w_idx, buf, length); 88 if (gosnd->avail < runtime [all...] |