| /linux/sound/soc/ |
| A D | soc-generic-dmaengine-pcm.c | 190 if ((pcm->flags & SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX) && pcm->chan[0]) in dmaengine_pcm_compat_request_channel() 248 if (!pcm->chan[i] && (pcm->flags & SND_DMAENGINE_PCM_FLAG_COMPAT)) { in dmaengine_pcm_new() 268 if (rtd->pcm->streams[i].pcm->name[0] == '\0') { in dmaengine_pcm_new() 269 strscpy_pad(rtd->pcm->streams[i].pcm->name, in dmaengine_pcm_new() 270 rtd->pcm->streams[i].pcm->id, in dmaengine_pcm_new() 271 sizeof(rtd->pcm->streams[i].pcm->name)); in dmaengine_pcm_new() 405 pcm->chan[1] = pcm->chan[0]; in dmaengine_pcm_request_chan_of() 440 pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); in snd_dmaengine_pcm_register() 441 if (!pcm) in snd_dmaengine_pcm_register() 476 kfree(pcm); in snd_dmaengine_pcm_register() [all …]
|
| /linux/sound/soc/samsung/ |
| A D | pcm.c | 176 if (!pcm->idleclk) in s3c_pcm_snd_txctrl() 207 if (!pcm->idleclk) in s3c_pcm_snd_rxctrl() 286 clk = pcm->pclk; in s3c_pcm_hw_params() 288 clk = pcm->cclk; in s3c_pcm_hw_params() 355 pcm->idleclk = 1; in s3c_pcm_set_fmt() 358 pcm->idleclk = 0; in s3c_pcm_set_fmt() 396 pcm->sclk_per_fs = div; in s3c_pcm_set_clkdiv() 439 snd_soc_dai_init_dma_data(dai, pcm->dma_playback, pcm->dma_capture); in s3c_pcm_dai_probe() 509 pcm->dev = &pdev->dev; in s3c_pcm_dev_probe() 514 pcm->sclk_per_fs = 128; in s3c_pcm_dev_probe() [all …]
|
| /linux/sound/core/ |
| A D | pcm.c | 43 if (pcm->card == card && pcm->device == device) in snd_pcm_get() 44 return pcm; in snd_pcm_get() 54 if (pcm->card == card && pcm->device > device) in snd_pcm_next() 498 struct snd_pcm *pcm = pstr->pcm; in snd_pcm_stream_proc_init() local 639 pstr->pcm = pcm; in snd_pcm_new_stream() 665 substream->pcm = pcm; in snd_pcm_new_stream() 718 pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); in _snd_pcm_new() 728 strscpy(pcm->id, id, sizeof(pcm->id)); in _snd_pcm_new() 863 pcm->private_free(pcm); in snd_pcm_free() 1015 struct snd_pcm *pcm = pstr->pcm; in pcm_class_show() local [all …]
|
| A D | pcm_memory.c | 102 struct snd_card *card = substream->pcm->card; in preallocate_pcm_pages() 117 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages() 119 substream->pcm->name, orig_size); in preallocate_pcm_pages() 145 for_each_pcm_substream(pcm, stream, substream) in snd_pcm_lib_preallocate_free_for_all() 184 struct snd_card *card = substream->pcm->card; in snd_pcm_lib_preallocate_proc_write() 189 guard(mutex)(&substream->pcm->open_mutex); in snd_pcm_lib_preallocate_proc_write() 216 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_preallocate_proc_write() 218 substream->pcm->name, size); in snd_pcm_lib_preallocate_proc_write() 432 card = substream->pcm->card; in snd_pcm_lib_malloc_pages() 462 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_malloc_pages() [all …]
|
| A D | Makefile | 17 snd-pcm-y := pcm.o pcm_native.o pcm_lib.o pcm_misc.o \ 19 snd-pcm-$(CONFIG_SND_PCM_TIMER) += pcm_timer.o 20 snd-pcm-$(CONFIG_SND_PCM_ELD) += pcm_drm_eld.o 21 snd-pcm-$(CONFIG_SND_PCM_IEC958) += pcm_iec958.o 27 snd-pcm-dmaengine-y := pcm_dmaengine.o 45 obj-$(CONFIG_SND_PCM) += snd-pcm.o 46 obj-$(CONFIG_SND_DMAENGINE_PCM) += snd-pcm-dmaengine.o
|
| /linux/sound/pci/ac97/ |
| A D | ac97_pcm.c | 151 if (pcm->spdif) in get_slot_reg() 466 pcm = &pcms[i]; in snd_ac97_pcm_assign() 470 *rpcm = *pcm; in snd_ac97_pcm_assign() 484 if (pcm->spdif && pcm->stream == 0) in snd_ac97_pcm_assign() 565 bus = pcm->bus; in snd_ac97_pcm_open() 599 pcm->cur_dbl = r; in snd_ac97_pcm_open() 627 pcm->aslots = slots; in snd_ac97_pcm_open() 631 pcm->aslots = slots; in snd_ac97_pcm_open() 667 bus = pcm->bus; in snd_ac97_pcm_close() 675 pcm->aslots = 0; in snd_ac97_pcm_close() [all …]
|
| /linux/sound/soc/codecs/ |
| A D | hda.c | 21 struct hda_pcm *pcm; in hda_codec_create_dais() local 30 for (i = 0; i < pcm_count; i++, pcm = list_next_entry(pcm, list)) { in hda_codec_create_dais() 36 drvs[i].name = pcm->name; in hda_codec_create_dais() 41 if (!pcm->stream[dir].substreams) { in hda_codec_create_dais() 53 stream->rates = pcm->stream[dir].rates; in hda_codec_create_dais() 54 stream->formats = pcm->stream[dir].formats; in hda_codec_create_dais() 61 if (!pcm->stream[dir].substreams) { in hda_codec_create_dais() 73 stream->rates = pcm->stream[dir].rates; in hda_codec_create_dais() 87 struct hda_pcm *pcm; in hda_codec_register_dais() local 117 snd_soc_dai_init_dma_data(dai, &pcm->stream[0], &pcm->stream[1]); in hda_codec_register_dais() [all …]
|
| A D | hdac_hdmi.c | 374 pcm->channels, pcm->chmap_set, true, pcm->chmap); in hdac_hdmi_setup_audio_infoframe() 380 pcm->channels, pcm->chmap, pcm->chmap_set); in hdac_hdmi_setup_audio_infoframe() 460 if (pcm) in hdac_hdmi_set_stream() 482 if (!pcm) in hdac_hdmi_set_hw_params() 644 if (pcm) { in hdac_hdmi_pcm_close() 647 memset(pcm->chmap, 0, sizeof(pcm->chmap)); in hdac_hdmi_pcm_close() 781 if (!pcm) in hdac_hdmi_pin_output_widget_event() 827 if (!pcm) in hdac_hdmi_cvt_output_widget_event() 1764 if (rtd->pcm && (rtd->pcm->device == device)) in hdac_hdmi_get_pcm_from_id() 1904 if (!pcm) in hdac_hdmi_jack_init() [all …]
|
| A D | hda-dai.c | 16 struct hda_pcm *pcm; in hda_codec_dai_startup() local 21 pcm = container_of(stream_info, struct hda_pcm, stream[substream->stream]); in hda_codec_dai_startup() 24 codec->core.vendor_id, stream_info, pcm, pcm->name, substream); in hda_codec_dai_startup() 26 snd_hda_codec_pcm_get(pcm); in hda_codec_dai_startup() 31 snd_hda_codec_pcm_put(pcm); in hda_codec_dai_startup() 42 struct hda_pcm *pcm; in hda_codec_dai_shutdown() local 47 pcm = container_of(stream_info, struct hda_pcm, stream[substream->stream]); in hda_codec_dai_shutdown() 50 codec->core.vendor_id, stream_info, pcm, pcm->name, substream); in hda_codec_dai_shutdown() 56 snd_hda_codec_pcm_put(pcm); in hda_codec_dai_shutdown()
|
| A D | hdac_hda.c | 198 struct hdac_hda_pcm *pcm; in hdac_hda_dai_set_stream() local 205 pcm = &hda_pvt->pcm[dai->id]; in hdac_hda_dai_set_stream() 251 struct hda_pcm *pcm; in hdac_hda_dai_hw_free() local 255 if (!pcm) in hdac_hda_dai_hw_free() 271 struct hda_pcm *pcm; in hdac_hda_dai_prepare() local 277 if (!pcm) in hdac_hda_dai_prepare() 299 struct hda_pcm *pcm; in hdac_hda_dai_open() local 304 if (!pcm) in hdac_hda_dai_open() 307 snd_hda_codec_pcm_get(pcm); in hdac_hda_dai_open() 324 struct hda_pcm *pcm; in hdac_hda_dai_close() local [all …]
|
| /linux/sound/pci/lola/ |
| A D | lola_pcm.c | 31 return &pcm->streams[idx]; in lola_get_stream() 128 if (s->pcm->card != substream->pcm->card) in lola_sync_wait_for_fifo() 159 if (s->pcm->card != substream->pcm->card) in lola_sync_pause() 535 if (s->pcm->card != substream->pcm->card) in lola_pcm_trigger() 564 u8 num_streams = min_t(u8, pcm->num_streams, ARRAY_SIZE(pcm->streams)); in lola_pcm_update() 588 struct snd_pcm *pcm; in lola_create_pcm() local 592 chip->pcm[i].bdl = in lola_create_pcm() 595 if (!chip->pcm[i].bdl) in lola_create_pcm() 602 &pcm); in lola_create_pcm() 605 strscpy(pcm->name, "Digigram Lola", sizeof(pcm->name)); in lola_create_pcm() [all …]
|
| /linux/sound/soc/sof/ |
| A D | compress.c | 172 struct sof_ipc_pcm_params *pcm; in sof_compr_set_params() local 198 pcm = kzalloc(sizeof(*pcm) + ext_data_size, GFP_KERNEL); in sof_compr_set_params() 199 if (!pcm) in sof_compr_set_params() 213 pcm->hdr.size = sizeof(*pcm) + ext_data_size; in sof_compr_set_params() 217 pcm->params.hdr.size = sizeof(pcm->params) + ext_data_size; in sof_compr_set_params() 219 pcm->params.buffer.size = crtd->dma_bytes; in sof_compr_set_params() 220 pcm->params.direction = cstream->direction; in sof_compr_set_params() 225 pcm->params.sample_container_bytes = in sof_compr_set_params() 232 ret = sof_ipc_tx_message(sdev->ipc, pcm, sizeof(*pcm) + ext_data_size, in sof_compr_set_params() 243 spcm->pcm.pcm_id); in sof_compr_set_params() [all …]
|
| A D | ipc3-pcm.c | 49 struct sof_ipc_pcm_params pcm; in sof_ipc3_pcm_hw_params() local 57 memset(&pcm, 0, sizeof(pcm)); in sof_ipc3_pcm_hw_params() 63 pcm.hdr.size = sizeof(pcm); in sof_ipc3_pcm_hw_params() 66 pcm.params.hdr.size = sizeof(pcm.params); in sof_ipc3_pcm_hw_params() 72 pcm.params.rate = params_rate(params); in sof_ipc3_pcm_hw_params() 112 pcm.params.host_period_bytes = 0; in sof_ipc3_pcm_hw_params() 114 pcm.params.no_stream_position = 1; in sof_ipc3_pcm_hw_params() 118 pcm.params.cont_update_posn = 1; in sof_ipc3_pcm_hw_params() 123 ret = sof_ipc_tx_message(sdev->ipc, &pcm, sizeof(pcm), in sof_ipc3_pcm_hw_params() 127 pcm.params.stream_tag); in sof_ipc3_pcm_hw_params() [all …]
|
| /linux/sound/pci/emu10k1/ |
| A D | emupcm.c | 1413 struct snd_pcm *pcm; in snd_emu10k1_pcm() local 1426 pcm->info_flags = 0; in snd_emu10k1_pcm() 1429 emu->pcm = pcm; in snd_emu10k1_pcm() 1495 emu->pcm_mic = pcm; in snd_emu10k1_pcm_mic() 1666 memset(&pcm->pcm_rec, 0, sizeof(pcm->pcm_rec)); in snd_emu10k1_fx8010_playback_prepare() 1667 pcm->pcm_rec.hw_buffer_size = pcm->buffer_size * 2; /* byte size */ in snd_emu10k1_fx8010_playback_prepare() 1669 pcm->tram_pos = INITIAL_TRAM_POS(pcm->buffer_size); in snd_emu10k1_fx8010_playback_prepare() 1719 pcm->tram_pos = INITIAL_TRAM_POS(pcm->buffer_size); in snd_emu10k1_fx8010_playback_trigger() 1777 pcm->opened = 1; in snd_emu10k1_fx8010_playback_open() 1788 pcm->opened = 0; in snd_emu10k1_fx8010_playback_close() [all …]
|
| /linux/sound/pci/au88x0/ |
| A D | au88x0_pcm.c | 220 int dma, type = VORTEX_PCM_TYPE(substream->pcm); in snd_vortex_pcm_hw_params() 597 struct snd_pcm *pcm; in snd_vortex_new_pcm() local 612 nr_capt, &pcm); in snd_vortex_new_pcm() 615 snprintf(pcm->name, sizeof(pcm->name), in snd_vortex_new_pcm() 617 chip->pcm[idx] = pcm; in snd_vortex_new_pcm() 619 VORTEX_PCM_TYPE(pcm) = idx; in snd_vortex_new_pcm() 620 pcm->private_data = chip; in snd_vortex_new_pcm() 622 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_vortex_new_pcm() 625 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in snd_vortex_new_pcm() 633 switch (VORTEX_PCM_TYPE(pcm)) { in snd_vortex_new_pcm() [all …]
|
| /linux/sound/firewire/oxfw/ |
| A D | oxfw-pcm.c | 67 if (list[j] == formation.pcm) in hw_rule_channels() 71 list[count] = formation.pcm; in hw_rule_channels() 348 struct snd_pcm_substream *pcm; in pcm_capture_trigger() local 352 pcm = substream; in pcm_capture_trigger() 355 pcm = NULL; in pcm_capture_trigger() 366 struct snd_pcm_substream *pcm; in pcm_playback_trigger() local 370 pcm = substream; in pcm_playback_trigger() 373 pcm = NULL; in pcm_playback_trigger() 431 struct snd_pcm *pcm; in snd_oxfw_create_pcm() local 442 pcm->private_data = oxfw; in snd_oxfw_create_pcm() [all …]
|
| /linux/tools/testing/selftests/alsa/ |
| A D | pcm-test.conf | 1 pcm.test.time1 { 10 pcm.test.time2 { 19 pcm.test.time3 { 28 pcm.test.time4 { 37 pcm.test.time5 { 46 pcm.test.time6 { 55 pcm.test.time7 {
|
| /linux/arch/mips/include/asm/octeon/ |
| A D | cvmx-coremask.h | 48 static inline bool cvmx_coremask_is_core_set(const struct cvmx_coremask *pcm, in cvmx_coremask_is_core_set() argument 56 return (pcm->coremask_bitmap[i] & ((u64)1 << n)) != 0; in cvmx_coremask_is_core_set() 71 static inline void cvmx_coremask_set64(struct cvmx_coremask *pcm, in cvmx_coremask_set64() argument 74 pcm->coremask_bitmap[0] = coremask_64; in cvmx_coremask_set64() 80 static inline void cvmx_coremask_clear_core(struct cvmx_coremask *pcm, int core) in cvmx_coremask_clear_core() argument 86 pcm->coremask_bitmap[i] &= ~(1ull << n); in cvmx_coremask_clear_core()
|
| /linux/sound/firewire/bebob/ |
| A D | bebob_pcm.c | 25 if (formations[i].pcm == 0) in hw_rule_rate() 28 if (!snd_interval_test(c, formations[i].pcm)) in hw_rule_rate() 54 if (formations[i].pcm == 0) in hw_rule_channels() 60 t.min = min(t.min, formations[i].pcm); in hw_rule_channels() 61 t.max = max(t.max, formations[i].pcm); in hw_rule_channels() 82 if (formations[i].pcm == 0) in limit_channels_and_rates() 85 hw->channels_min = min(hw->channels_min, formations[i].pcm); in limit_channels_and_rates() 362 struct snd_pcm *pcm; in snd_bebob_create_pcm_devices() local 369 pcm->private_data = bebob; in snd_bebob_create_pcm_devices() 370 pcm->nonatomic = true; in snd_bebob_create_pcm_devices() [all …]
|
| /linux/sound/firewire/dice/ |
| A D | dice-pcm.c | 16 unsigned int index = substream->pcm->device; in dice_rate_constraint() 54 unsigned int index = substream->pcm->device; in dice_channels_constraint() 130 unsigned int index = substream->pcm->device; in init_hw_info() 425 struct snd_pcm *pcm; in snd_dice_create_pcm() local 440 &pcm); in snd_dice_create_pcm() 443 pcm->private_data = dice; in snd_dice_create_pcm() 444 pcm->nonatomic = true; in snd_dice_create_pcm() 445 strcpy(pcm->name, dice->card->shortname); in snd_dice_create_pcm() 448 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in snd_dice_create_pcm() 452 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_dice_create_pcm() [all …]
|
| /linux/sound/firewire/fireface/ |
| A D | amdtp-ff.c | 30 static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in write_pcm_s32() argument 36 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s32() 60 static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in read_pcm_s32() argument 66 struct snd_pcm_runtime *runtime = pcm->runtime; in read_pcm_s32() 116 unsigned int count, struct snd_pcm_substream *pcm) in process_it_ctx_payloads() argument 125 if (pcm) { in process_it_ctx_payloads() 126 write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); in process_it_ctx_payloads() 137 unsigned int count, struct snd_pcm_substream *pcm) in process_ir_ctx_payloads() argument 146 if (pcm) { in process_ir_ctx_payloads() 147 read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); in process_ir_ctx_payloads()
|
| /linux/sound/core/oss/ |
| A D | pcm_oss.c | 2489 if (pcm == NULL) { in snd_pcm_oss_open() 2556 if (pcm) in snd_pcm_oss_open() 2573 pcm = substream->pcm; in snd_pcm_oss_release() 3121 pcm->card->number, pcm->device); in register_oss_dsp() 3127 pcm->oss.reg = 0; in snd_pcm_oss_register_minor() 3128 if (dsp_map[pcm->card->number] == (int)pcm->device) { in snd_pcm_oss_register_minor() 3141 pcm->oss.reg++; in snd_pcm_oss_register_minor() 3144 if (adsp_map[pcm->card->number] == (int)pcm->device) { in snd_pcm_oss_register_minor() 3146 pcm->oss.reg++; in snd_pcm_oss_register_minor() 3150 if (pcm->oss.reg) in snd_pcm_oss_register_minor() [all …]
|
| /linux/sound/soc/intel/avs/boards/ |
| A D | hdaudio.c | 22 struct hda_pcm *pcm; in avs_create_dai_links() local 32 pcm = list_first_entry(&codec->pcm_list_head, struct hda_pcm, list); in avs_create_dai_links() 34 for (i = 0; i < pcm_count; i++, pcm = list_next_entry(pcm, list)) { in avs_create_dai_links() 61 dl[i].codecs->dai_name = pcm->name; in avs_create_dai_links() 83 spcm = rtd->pcm ? rtd->pcm->streams[dir].pcm : NULL; in avs_card_hdmi_pcm_at() 91 return rtd->pcm; in avs_card_hdmi_pcm_at() 110 hpcm->pcm = spcm; in avs_card_late_probe() 115 hpcm->pcm = NULL; in avs_card_late_probe() 132 struct hda_pcm *pcm; in avs_probing_link_init() local 140 list_for_each_entry(pcm, &codec->pcm_list_head, list) in avs_probing_link_init()
|
| /linux/sound/pci/ctxfi/ |
| A D | ctpcm.c | 128 if (IEC958 == substream->pcm->device) { in ct_pcm_playback_open() 133 if (FRONT == substream->pcm->device) in ct_pcm_playback_open() 168 if (IEC958 == substream->pcm->device) in ct_pcm_playback_close() 205 if (IEC958 == substream->pcm->device) in ct_pcm_playback_prepare() 417 struct snd_pcm *pcm; in ct_alsa_pcm_create() local 426 playback_count, capture_count, &pcm); in ct_alsa_pcm_create() 433 pcm->private_data = atc; in ct_alsa_pcm_create() 434 pcm->info_flags = 0; in ct_alsa_pcm_create() 436 strscpy(pcm->name, device_name, sizeof(pcm->name)); in ct_alsa_pcm_create() 441 snd_pcm_set_ops(pcm, in ct_alsa_pcm_create() [all …]
|
| /linux/sound/pcmcia/pdaudiocf/ |
| A D | pdaudiocf_pcm.c | 252 struct snd_pcm *pcm; in snd_pdacf_pcm_new() local 255 err = snd_pcm_new(chip->card, "PDAudioCF", 0, 0, 1, &pcm); in snd_pdacf_pcm_new() 259 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pdacf_pcm_capture_ops); in snd_pdacf_pcm_new() 260 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, in snd_pdacf_pcm_new() 263 pcm->private_data = chip; in snd_pdacf_pcm_new() 264 pcm->info_flags = 0; in snd_pdacf_pcm_new() 265 pcm->nonatomic = true; in snd_pdacf_pcm_new() 266 strcpy(pcm->name, chip->card->shortname); in snd_pdacf_pcm_new() 267 chip->pcm = pcm; in snd_pdacf_pcm_new() 269 err = snd_ak4117_build(chip->ak4117, pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); in snd_pdacf_pcm_new()
|