| /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 …]
|
| /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 …]
|
| /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 637 pstr->pcm = pcm; in snd_pcm_new_stream() 663 substream->pcm = pcm; in snd_pcm_new_stream() 716 pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); in _snd_pcm_new() 726 strscpy(pcm->id, id, sizeof(pcm->id)); in _snd_pcm_new() 861 pcm->private_free(pcm); in snd_pcm_free() 1013 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
|
| /sound/soc/codecs/ |
| A D | pcm3008.c | 115 struct pcm3008 *pcm; in pcm3008_codec_probe() local 117 pcm = devm_kzalloc(dev, sizeof(*pcm), GFP_KERNEL); in pcm3008_codec_probe() 118 if (!pcm) in pcm3008_codec_probe() 131 if (IS_ERR(pcm->dem0_pin)) in pcm3008_codec_probe() 132 return PTR_ERR(pcm->dem0_pin); in pcm3008_codec_probe() 136 if (IS_ERR(pcm->dem1_pin)) in pcm3008_codec_probe() 137 return PTR_ERR(pcm->dem1_pin); in pcm3008_codec_probe() 141 if (IS_ERR(pcm->pdad_pin)) in pcm3008_codec_probe() 142 return PTR_ERR(pcm->pdad_pin); in pcm3008_codec_probe() 146 if (IS_ERR(pcm->pdda_pin)) in pcm3008_codec_probe() [all …]
|
| 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 | 372 pcm->channels, pcm->chmap_set, true, pcm->chmap); in hdac_hdmi_setup_audio_infoframe() 378 pcm->channels, pcm->chmap, pcm->chmap_set); in hdac_hdmi_setup_audio_infoframe() 458 if (pcm) in hdac_hdmi_set_stream() 480 if (!pcm) in hdac_hdmi_set_hw_params() 642 if (pcm) { in hdac_hdmi_pcm_close() 645 memset(pcm->chmap, 0, sizeof(pcm->chmap)); in hdac_hdmi_pcm_close() 779 if (!pcm) in hdac_hdmi_pin_output_widget_event() 825 if (!pcm) in hdac_hdmi_cvt_output_widget_event() 1775 memcpy(chmap, pcm->chmap, ARRAY_SIZE(pcm->chmap)); in hdac_hdmi_get_chmap() 1785 if (!pcm) in hdac_hdmi_set_chmap() [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 …]
|
| /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 …]
|
| /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 …]
|
| /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 …]
|
| /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() 121 pcm.params.stream_tag); in sof_ipc3_pcm_hw_params() 124 ret = sof_ipc_tx_message(sdev->ipc, &pcm, sizeof(pcm), in sof_ipc3_pcm_hw_params() [all …]
|
| /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 …]
|
| /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 …]
|
| /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 …]
|
| /sound/soc/tegra/ |
| A D | tegra_isomgr_bw.c | 24 struct snd_pcm *pcm = substream->pcm; in tegra_isomgr_adma_setbw() local 31 if (!runtime || !pcm) in tegra_isomgr_adma_setbw() 34 if (pcm->device >= adma_isomgr->max_pcm_device) { in tegra_isomgr_adma_setbw() 36 pcm->device, adma_isomgr->max_pcm_device); in tegra_isomgr_adma_setbw() 44 if ((adma_isomgr->bw_per_dev[type][pcm->device] && is_running) || in tegra_isomgr_adma_setbw() 45 (!adma_isomgr->bw_per_dev[type][pcm->device] && !is_running)) in tegra_isomgr_adma_setbw() 66 adma_isomgr->current_bandwidth -= adma_isomgr->bw_per_dev[type][pcm->device]; in tegra_isomgr_adma_setbw() 71 adma_isomgr->bw_per_dev[type][pcm->device] = bandwidth; in tegra_isomgr_adma_setbw()
|
| /sound/core/oss/ |
| A D | pcm_oss.c | 2488 if (pcm == NULL) { in snd_pcm_oss_open() 2555 if (pcm) in snd_pcm_oss_open() 2572 pcm = substream->pcm; in snd_pcm_oss_release() 3120 pcm->card->number, pcm->device); in register_oss_dsp() 3126 pcm->oss.reg = 0; in snd_pcm_oss_register_minor() 3127 if (dsp_map[pcm->card->number] == (int)pcm->device) { in snd_pcm_oss_register_minor() 3140 pcm->oss.reg++; in snd_pcm_oss_register_minor() 3143 if (adsp_map[pcm->card->number] == (int)pcm->device) { in snd_pcm_oss_register_minor() 3145 pcm->oss.reg++; in snd_pcm_oss_register_minor() 3149 if (pcm->oss.reg) in snd_pcm_oss_register_minor() [all …]
|
| /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 strscpy(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 …]
|
| /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()
|
| /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 …]
|
| /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 strscpy(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()
|
| /sound/pci/oxygen/ |
| A D | oxygen_pcm.c | 678 struct snd_pcm *pcm; in oxygen_pcm_init() local 687 0, outs, ins, &pcm); in oxygen_pcm_init() 699 pcm->private_data = chip; in oxygen_pcm_init() 700 strscpy(pcm->name, "Multichannel"); in oxygen_pcm_init() 727 pcm->private_data = chip; in oxygen_pcm_init() 728 strscpy(pcm->name, "Digital"); in oxygen_pcm_init() 744 2, outs, ins, &pcm); in oxygen_pcm_init() 757 pcm->private_data = chip; in oxygen_pcm_init() 770 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in oxygen_pcm_init() 775 pcm->private_data = chip; in oxygen_pcm_init() [all …]
|