/linux-master/sound/usb/misc/ |
H A D | ua101.c | 191 ua->playback.substream->runtime->delay -= 213 struct snd_pcm_runtime *runtime; local 217 runtime = stream->substream->runtime; 219 source = runtime->dma_area + stream->buffer_pos * frame_bytes; 220 if (stream->buffer_pos + frames <= runtime->buffer_size) { 224 frames1 = runtime->buffer_size - stream->buffer_pos; 227 runtime->dma_area, (frames - frames1) * frame_bytes); 231 if (stream->buffer_pos >= runtime->buffer_size) 232 stream->buffer_pos -= runtime 317 struct snd_pcm_runtime *runtime; local [all...] |
/linux-master/sound/pci/lola/ |
H A D | lola_pcm.c | 215 struct snd_pcm_runtime *runtime = substream->runtime; local 225 runtime->hw = lola_pcm_hw; 226 runtime->hw.channels_max = pcm->num_streams - str->index; 229 runtime->hw.rate_min = chip->sample_rate; 230 runtime->hw.rate_max = chip->sample_rate; 232 runtime->hw.rate_min = chip->sample_rate_min; 233 runtime->hw.rate_max = chip->sample_rate_max; 236 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); 238 snd_pcm_hw_constraint_step(runtime, 456 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/soc/sof/ |
H A D | pcm.c | 130 struct snd_pcm_runtime *runtime = substream->runtime; local 172 if (runtime->buffer_changed) { 173 ret = create_page_table(component, substream, runtime->dma_area, 174 runtime->dma_bytes); 410 host = bytes_to_frames(substream->runtime, 412 dai = bytes_to_frames(substream->runtime, 424 struct snd_pcm_runtime *runtime = substream->runtime; local 445 /* set runtime confi [all...] |
/linux-master/arch/x86/kernel/cpu/ |
H A D | hypervisor.c | 105 copy_array(&h->runtime, &x86_platform.hyper, sizeof(h->runtime));
|
/linux-master/sound/pci/trident/ |
H A D | trident_main.c | 751 struct snd_pcm_runtime *runtime = substream->runtime; local 757 if (snd_pcm_format_width(runtime->format) == 16) 759 if (snd_pcm_format_signed(runtime->format)) 761 if (runtime->channels > 1) 786 struct snd_pcm_runtime *runtime = substream->runtime; local 787 struct snd_trident_voice *voice = runtime->private_data; 790 if (runtime->buffer_changed) { 817 struct snd_pcm_runtime *runtime local 878 struct snd_pcm_runtime *runtime = substream->runtime; local 909 struct snd_pcm_runtime *runtime = substream->runtime; local 1012 struct snd_pcm_runtime *runtime = substream->runtime; local 1121 struct snd_pcm_runtime *runtime = substream->runtime; local 1146 struct snd_pcm_runtime *runtime = substream->runtime; local 1217 struct snd_pcm_runtime *runtime = substream->runtime; local 1360 struct snd_pcm_runtime *runtime = substream->runtime; local 1598 struct snd_pcm_runtime *runtime = substream->runtime; local 1637 struct snd_pcm_runtime *runtime = substream->runtime; local 1667 struct snd_pcm_runtime *runtime = substream->runtime; local 1798 snd_trident_pcm_free_substream(struct snd_pcm_runtime *runtime) argument 1812 struct snd_pcm_runtime *runtime = substream->runtime; local 1840 struct snd_pcm_runtime *runtime = substream->runtime; local 1862 struct snd_pcm_runtime *runtime = substream->runtime; local 1941 struct snd_pcm_runtime *runtime = substream->runtime; local 1985 struct snd_pcm_runtime *runtime = substream->runtime; local 2012 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/soc/sti/ |
H A D | uniperif_player.c | 219 struct snd_pcm_runtime *runtime) 229 if (runtime) { 230 switch (runtime->rate) { 314 struct snd_pcm_runtime *runtime) 318 clk_div = player->mclk / runtime->rate; 327 switch (runtime->format) { 368 uni_player_set_channel_status(player, runtime); 392 SET_UNIPERIF_I2S_FMT_NUM_CH(player, runtime->channels / 2); 417 struct snd_pcm_runtime *runtime) 426 slot_width = snd_pcm_format_width(runtime 218 uni_player_set_channel_status(struct uniperif *player, struct snd_pcm_runtime *runtime) argument 313 uni_player_prepare_iec958(struct uniperif *player, struct snd_pcm_runtime *runtime) argument 416 uni_player_prepare_pcm(struct uniperif *player, struct snd_pcm_runtime *runtime) argument 509 uni_player_prepare_tdm(struct uniperif *player, struct snd_pcm_runtime *runtime) argument 751 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/soc/au1x/ |
H A D | dbdma2.c | 55 /* runtime data */ 196 struct snd_pcm_runtime *runtime = substream->runtime; local 203 DBG("runtime->dma_area = 0x%08lx dma_addr_t = 0x%08lx dma_size = %zu " 204 "runtime->min_align %lu\n", 205 (unsigned long)runtime->dma_area, 206 (unsigned long)runtime->dma_addr, runtime->dma_bytes, 207 runtime->min_align); 221 pcd->dma_area_s = pcd->dma_area = runtime [all...] |
/linux-master/sound/pci/ctxfi/ |
H A D | cttimer.c | 67 struct snd_pcm_runtime *runtime = substream->runtime; local 69 unsigned int period_size = runtime->period_size; 70 unsigned int buffer_size = runtime->buffer_size; 84 * HZ + (runtime->rate - 1)) / runtime->rate + HZ * 5 / 1000; 98 struct snd_pcm_runtime *runtime = ti->substream->runtime; local 104 jiffies + (runtime->period_size * HZ + 105 (runtime [all...] |
/linux-master/sound/core/seq/ |
H A D | seq_midi.c | 64 struct snd_rawmidi_runtime *runtime; local 72 runtime = substream->runtime; 73 msynth = runtime->private_data; 77 while (runtime->avail > 0) { 99 struct snd_rawmidi_runtime *runtime; local 104 runtime = substream->runtime; 105 tmp = runtime->avail; 174 struct snd_rawmidi_runtime *runtime; local [all...] |
H A D | seq_virmidi.c | 125 struct snd_virmidi *vmidi = substream->runtime->private_data; 174 struct snd_virmidi *vmidi = substream->runtime->private_data; 187 struct snd_rawmidi_runtime *runtime = substream->runtime; local 201 runtime->private_data = vmidi; 216 struct snd_rawmidi_runtime *runtime = substream->runtime; local 233 runtime->private_data = vmidi; 243 struct snd_virmidi *vmidi = substream->runtime->private_data; 250 substream->runtime [all...] |
/linux-master/sound/soc/amd/ |
H A D | acp-pcm-dma.c | 775 struct snd_pcm_runtime *runtime = substream->runtime; local 785 runtime->hw = acp_st_pcm_hardware_playback; 788 runtime->hw = acp_pcm_hardware_playback; 793 runtime->hw = acp_st_pcm_hardware_capture; 796 runtime->hw = acp_pcm_hardware_capture; 800 ret = snd_pcm_hw_constraint_integer(runtime, 809 runtime->private_data = adata; 850 struct snd_pcm_runtime *runtime; local 857 runtime 1039 struct snd_pcm_runtime *runtime = substream->runtime; local 1088 struct snd_pcm_runtime *runtime = substream->runtime; local 1118 struct snd_pcm_runtime *runtime = substream->runtime; local 1189 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/soc/codecs/ |
H A D | rt5677-spi.c | 66 size_t dma_offset; /* zero-based offset into runtime->dma_area */ 179 struct snd_pcm_runtime *runtime = substream->runtime; local 183 return bytes_to_frames(runtime, rt5677_dsp->dma_offset); 204 * dma_area of the pcm runtime. The receiving buffer may wrap around. 214 struct snd_pcm_runtime *runtime = rt5677_dsp->substream->runtime; local 215 size_t bytes_per_frame = frames_to_bytes(runtime, 1); 219 if (begin > end || runtime->dma_bytes < 2 * bytes_per_frame) { 222 begin, end, runtime 307 struct snd_pcm_runtime *runtime; local [all...] |
/linux-master/sound/sh/ |
H A D | sh_dac_audio.c | 101 struct snd_pcm_runtime *runtime = substream->runtime; local 103 runtime->hw = snd_sh_dac_pcm_hw; 130 struct snd_pcm_runtime *runtime = chip->substream->runtime; local 132 chip->buffer_size = runtime->buffer_size; 267 struct snd_pcm_runtime *runtime = chip->substream->runtime; local 268 ssize_t b_ps = frames_to_bytes(runtime, runtime [all...] |
/linux-master/sound/pci/nm256/ |
H A D | nm256.c | 414 struct snd_pcm_runtime *runtime = substream->runtime; local 415 int rate_index = snd_nm256_fixed_rate(runtime->rate); 419 if (snd_pcm_format_width(runtime->format) == 16) { 423 if (runtime->channels > 1) { 428 runtime->rate = samplerates[rate_index]; 549 struct nm256_stream *s = substream->runtime->private_data; 587 struct nm256_stream *s = substream->runtime->private_data; 624 struct snd_pcm_runtime *runtime = substream->runtime; local 684 struct snd_pcm_runtime *runtime = substream->runtime; local 696 struct snd_pcm_runtime *runtime = substream->runtime; local 710 struct snd_pcm_runtime *runtime = substream->runtime; local 811 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/soc/intel/avs/boards/ |
H A D | es8336.c | 99 static int avs_es8336_codec_init(struct snd_soc_pcm_runtime *runtime) argument 101 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(runtime, 0); 103 struct snd_soc_card *card = runtime->card; 139 static void avs_es8336_codec_exit(struct snd_soc_pcm_runtime *runtime) argument 141 struct avs_card_drvdata *data = snd_soc_card_get_drvdata(runtime->card); 142 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(runtime, 0); 151 struct snd_soc_pcm_runtime *runtime = snd_soc_substream_to_rtd(substream); local 152 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(runtime, 0); 168 dev_err(runtime->dev, "Set codec sysclk failed: %d\n", ret); 177 static int avs_es8336_be_fixup(struct snd_soc_pcm_runtime *runtime, argument [all...] |
H A D | nau8825.c | 81 static int avs_nau8825_codec_init(struct snd_soc_pcm_runtime *runtime) argument 83 struct snd_soc_card *card = runtime->card; 110 return snd_soc_component_set_jack(snd_soc_rtd_to_codec(runtime, 0)->component, jack, NULL); 119 avs_nau8825_be_fixup(struct snd_soc_pcm_runtime *runtime, struct snd_pcm_hw_params *params) argument 141 struct snd_pcm_runtime *runtime = substream->runtime; local 154 ret = snd_soc_dai_set_pll(codec_dai, 0, 0, runtime->rate, runtime->rate * 256); 160 ret = snd_soc_dai_set_pll(codec_dai, 0, 0, runtime->rate, runtime [all...] |
/linux-master/sound/pci/ymfpci/ |
H A D | ymfpci_main.c | 342 struct snd_pcm_runtime *runtime = substream->runtime; local 343 struct snd_ymfpci_pcm *ypcm = runtime->private_data; 376 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; 421 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; 480 struct snd_pcm_runtime *runtime, 485 u32 delta = snd_ymfpci_calc_delta(runtime->rate); 486 u32 lpfQ = snd_ymfpci_calc_lpfQ(runtime->rate); 487 u32 lpfK = snd_ymfpci_calc_lpfK(runtime->rate); 496 if (runtime 479 snd_ymfpci_pcm_init_voice(struct snd_ymfpci_pcm *ypcm, unsigned int voiceidx, struct snd_pcm_runtime *runtime, int has_pcm_volume) argument 623 struct snd_pcm_runtime *runtime = substream->runtime; local 636 struct snd_pcm_runtime *runtime = substream->runtime; local 659 struct snd_pcm_runtime *runtime = substream->runtime; local 692 struct snd_pcm_runtime *runtime = substream->runtime; local 736 struct snd_pcm_runtime *runtime = substream->runtime; local 748 struct snd_pcm_runtime *runtime = substream->runtime; local 866 snd_ymfpci_pcm_free_substream(struct snd_pcm_runtime *runtime) argument 874 struct snd_pcm_runtime *runtime = substream->runtime; local 928 struct snd_pcm_runtime *runtime = substream->runtime; local 951 struct snd_pcm_runtime *runtime = substream->runtime; local 980 struct snd_pcm_runtime *runtime = substream->runtime; local 1002 struct snd_pcm_runtime *runtime = substream->runtime; local 1093 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/isa/es1688/ |
H A D | es1688_lib.c | 298 struct snd_pcm_runtime *runtime = substream->runtime; local 301 if (runtime->rate_num == clocks[0].num) 302 bits = 256 - runtime->rate_den; 304 bits = 128 - runtime->rate_den; 306 divider = 256 - 7160000*20/(8*82*runtime->rate); 342 struct snd_pcm_runtime *runtime = substream->runtime; local 351 snd_es1688_write(chip, 0xa8, (snd_es1688_read(chip, 0xa8) & ~0x03) | (3 - runtime->channels)); 353 if (runtime 403 struct snd_pcm_runtime *runtime = substream->runtime; local 538 struct snd_pcm_runtime *runtime = substream->runtime; local 552 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/pci/ |
H A D | rme32.c | 637 struct snd_pcm_runtime *runtime = substream->runtime; local 640 runtime->dma_area = (void __force *)(rme32->iobase + 642 runtime->dma_addr = rme32->port + RME32_IO_DATA_BUFFER; 643 runtime->dma_bytes = RME32_BUFFER_SIZE; 694 struct snd_pcm_runtime *runtime = substream->runtime; local 697 runtime->dma_area = (void __force *)rme32->iobase + 699 runtime->dma_addr = rme32->port + RME32_IO_DATA_BUFFER; 700 runtime 804 snd_rme32_set_buffer_constraint(struct rme32 *rme32, struct snd_pcm_runtime *runtime) argument 820 struct snd_pcm_runtime *runtime = substream->runtime; local 865 struct snd_pcm_runtime *runtime = substream->runtime; local 905 struct snd_pcm_runtime *runtime = substream->runtime; local 942 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
H A D | via82xx.c | 723 struct viadev *viadev = substream->runtime->private_data; 828 struct viadev *viadev = substream->runtime->private_data; 850 return bytes_to_frames(substream->runtime, res); 859 struct viadev *viadev = substream->runtime->private_data; 909 return bytes_to_frames(substream->runtime, res); 921 struct viadev *viadev = substream->runtime->private_data; 935 struct viadev *viadev = substream->runtime->private_data; 957 struct snd_pcm_runtime *runtime) 963 (runtime->format == SNDRV_PCM_FORMAT_S16_LE ? VIA_REG_TYPE_16BIT : 0) | 964 (runtime 956 via686_setup_format(struct via82xx *chip, struct viadev *viadev, struct snd_pcm_runtime *runtime) argument 974 struct snd_pcm_runtime *runtime = substream->runtime; local 986 struct snd_pcm_runtime *runtime = substream->runtime; local 1020 struct snd_pcm_runtime *runtime = substream->runtime; local 1063 struct snd_pcm_runtime *runtime = substream->runtime; local 1112 struct snd_pcm_runtime *runtime = substream->runtime; local 1161 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/soc/fsl/ |
H A D | fsl_dma.c | 363 struct snd_pcm_runtime *runtime = substream->runtime; local 380 ret = snd_pcm_hw_constraint_integer(runtime, 423 runtime->private_data = dma_private; 512 struct snd_pcm_runtime *runtime = substream->runtime; local 513 struct fsl_dma_private *dma_private = runtime->private_data; 675 struct snd_pcm_runtime *runtime = substream->runtime; local 676 struct fsl_dma_private *dma_private = runtime 739 struct snd_pcm_runtime *runtime = substream->runtime; local 773 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |
/linux-master/sound/soc/intel/atom/ |
H A D | sst-mfld-platform-pcm.c | 130 u32 buffer_addr = substream->runtime->dma_addr; 132 channels = substream->runtime->channels; 133 period_size = substream->runtime->period_size; 134 periodbytes = samples_to_bytes(substream->runtime, period_size); 145 param->uc.pcm_params.num_chan = (u8) substream->runtime->channels; 146 param->uc.pcm_params.pcm_wd_sz = substream->runtime->sample_bits; 147 param->uc.pcm_params.sfreq = substream->runtime->rate; 226 substream->runtime->private_data; 261 if (!substream || !substream->runtime) 263 stream = substream->runtime 306 struct snd_pcm_runtime *runtime = substream->runtime; local 580 struct snd_pcm_runtime *runtime; local [all...] |
/linux-master/sound/spi/ |
H A D | at73c213.c | 208 struct snd_pcm_runtime *runtime = substream->runtime; local 212 err = snd_pcm_hw_constraint_integer(runtime, 218 runtime->hw = snd_at73c213_playback_hw; 253 struct snd_pcm_runtime *runtime = substream->runtime; local 256 block_size = frames_to_bytes(runtime, runtime->period_size); 261 (long)runtime->dma_addr); 263 runtime 304 struct snd_pcm_runtime *runtime = substream->runtime; local 354 struct snd_pcm_runtime *runtime = chip->substream->runtime; local [all...] |
/linux-master/sound/hda/ |
H A D | hdac_stream.c | 58 struct snd_pcm_runtime *runtime = substream->runtime; local 59 unsigned int channels = runtime->channels, 60 rate = runtime->rate, 61 bits_per_sample = runtime->sample_bits, 260 struct snd_pcm_runtime *runtime; local 266 runtime = azx_dev->substream->runtime; 268 runtime = NULL; 320 if (runtime 506 struct snd_pcm_runtime *runtime = NULL; local 670 struct snd_pcm_runtime *runtime = azx_dev->substream->runtime; local [all...] |
/linux-master/sound/isa/msnd/ |
H A D | msnd.c | 468 struct snd_pcm_runtime *runtime = substream->runtime; local 475 runtime->dma_area = (__force void *)chip->mappedbase; 476 runtime->dma_addr = chip->base; 477 runtime->dma_bytes = 0x3000; 480 runtime->hw = snd_msnd_playback; 559 return bytes_to_frames(substream->runtime, chip->playDMAPos); 575 struct snd_pcm_runtime *runtime = substream->runtime; local 580 runtime 634 struct snd_pcm_runtime *runtime = substream->runtime; local [all...] |