/openbmc/linux/sound/soc/ |
H 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() 473 kfree(pcm); in snd_dmaengine_pcm_register() [all …]
|
/openbmc/linux/sound/soc/samsung/ |
H 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 …]
|
/openbmc/linux/sound/core/ |
H 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() 508 struct snd_pcm *pcm = pstr->pcm; in snd_pcm_stream_proc_init() local 649 pstr->pcm = pcm; in snd_pcm_new_stream() 675 substream->pcm = pcm; in snd_pcm_new_stream() 728 pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); in _snd_pcm_new() 738 strscpy(pcm->id, id, sizeof(pcm->id)); in _snd_pcm_new() 873 pcm->private_free(pcm); in snd_pcm_free() 1023 struct snd_pcm *pcm = pstr->pcm; in pcm_class_show() local [all …]
|
H A D | pcm_memory.c | 107 struct snd_card *card = substream->pcm->card; in preallocate_pcm_pages() 122 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages() 124 substream->pcm->name, orig_size); in preallocate_pcm_pages() 189 struct snd_card *card = substream->pcm->card; in snd_pcm_lib_preallocate_proc_write() 194 mutex_lock(&substream->pcm->open_mutex); in snd_pcm_lib_preallocate_proc_write() 218 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_preallocate_proc_write() 220 substream->pcm->name, size); in snd_pcm_lib_preallocate_proc_write() 234 mutex_unlock(&substream->pcm->open_mutex); in snd_pcm_lib_preallocate_proc_write() 436 card = substream->pcm->card; in snd_pcm_lib_malloc_pages() 466 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_malloc_pages() [all …]
|
H 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-objs := pcm_dmaengine.o 45 obj-$(CONFIG_SND_PCM) += snd-pcm.o 46 obj-$(CONFIG_SND_DMAENGINE_PCM) += snd-pcm-dmaengine.o
|
/openbmc/linux/sound/pci/ac97/ |
H 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 …]
|
/openbmc/linux/sound/soc/intel/boards/ |
H A D | skl_hda_dsp_common.c | 25 struct skl_hda_hdmi_pcm *pcm; in skl_hda_hdmi_add_pcm() local 28 pcm = devm_kzalloc(card->dev, sizeof(*pcm), GFP_KERNEL); in skl_hda_hdmi_add_pcm() 29 if (!pcm) in skl_hda_hdmi_add_pcm() 35 if (!pcm->codec_dai) in skl_hda_hdmi_add_pcm() 38 pcm->device = device; in skl_hda_hdmi_add_pcm() 141 struct skl_hda_hdmi_pcm *pcm; in skl_hda_hdmi_jack_init() local 149 component = pcm->codec_dai->component; in skl_hda_hdmi_jack_init() 151 "HDMI/DP, pcm=%d Jack", pcm->device); in skl_hda_hdmi_jack_init() 153 SND_JACK_AVOUT, &pcm->hdmi_jack); in skl_hda_hdmi_jack_init() 158 err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, in skl_hda_hdmi_jack_init() [all …]
|
H A D | sof_sdw_hdmi.c | 28 struct hdmi_pcm *pcm; in sof_sdw_hdmi_init() local 30 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_sdw_hdmi_init() 31 if (!pcm) in sof_sdw_hdmi_init() 35 pcm->device = rtd->dai_link->id; in sof_sdw_hdmi_init() 36 pcm->codec_dai = dai; in sof_sdw_hdmi_init() 38 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in sof_sdw_hdmi_init() 47 struct hdmi_pcm *pcm; in sof_sdw_hdmi_card_late_probe() local 56 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct hdmi_pcm, in sof_sdw_hdmi_card_late_probe() 58 component = pcm->codec_dai->component; in sof_sdw_hdmi_card_late_probe()
|
H A D | skl_nau88l25_max98357a.c | 198 struct skl_hdmi_pcm *pcm; in skylake_hdmi1_init() local 200 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi1_init() 201 if (!pcm) in skylake_hdmi1_init() 205 pcm->codec_dai = dai; in skylake_hdmi1_init() 218 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi2_init() 219 if (!pcm) in skylake_hdmi2_init() 223 pcm->codec_dai = dai; in skylake_hdmi2_init() 236 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi3_init() 237 if (!pcm) in skylake_hdmi3_init() 241 pcm->codec_dai = dai; in skylake_hdmi3_init() [all …]
|
H A D | skl_nau88l25_ssm4567.c | 217 struct skl_hdmi_pcm *pcm; in skylake_hdmi1_init() local 219 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi1_init() 220 if (!pcm) in skylake_hdmi1_init() 224 pcm->codec_dai = dai; in skylake_hdmi1_init() 237 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi2_init() 238 if (!pcm) in skylake_hdmi2_init() 242 pcm->codec_dai = dai; in skylake_hdmi2_init() 256 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi3_init() 257 if (!pcm) in skylake_hdmi3_init() 261 pcm->codec_dai = dai; in skylake_hdmi3_init() [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H 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() 60 if (!pcm->stream[dir].substreams) { in hda_codec_create_dais() 72 stream->rates = pcm->stream[dir].rates; in hda_codec_create_dais() 85 struct hda_pcm *pcm; in hda_codec_register_dais() local 115 snd_soc_dai_init_dma_data(dai, &pcm->stream[0], &pcm->stream[1]); in hda_codec_register_dais() [all …]
|
H A D | hdac_hdmi.c | 373 pcm->channels, pcm->chmap_set, true, pcm->chmap); in hdac_hdmi_setup_audio_infoframe() 379 pcm->channels, pcm->chmap, pcm->chmap_set); in hdac_hdmi_setup_audio_infoframe() 459 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() 778 if (!pcm) in hdac_hdmi_pin_output_widget_event() 824 if (!pcm) in hdac_hdmi_cvt_output_widget_event() 1761 if (rtd->pcm && (rtd->pcm->device == device)) in hdac_hdmi_get_pcm_from_id() 1902 if (!pcm) in hdac_hdmi_jack_init() [all …]
|
H 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()
|
H A D | hdac_hda.c | 190 struct hdac_hda_pcm *pcm; in hdac_hda_dai_set_stream() local 197 pcm = &hda_pvt->pcm[dai->id]; in hdac_hda_dai_set_stream() 244 struct hda_pcm *pcm; in hdac_hda_dai_hw_free() local 248 if (!pcm) in hdac_hda_dai_hw_free() 265 struct hda_pcm *pcm; in hdac_hda_dai_prepare() local 272 if (!pcm) in hdac_hda_dai_prepare() 294 struct hda_pcm *pcm; in hdac_hda_dai_open() local 298 if (!pcm) in hdac_hda_dai_open() 301 snd_hda_codec_pcm_get(pcm); in hdac_hda_dai_open() 314 struct hda_pcm *pcm; in hdac_hda_dai_close() local [all …]
|
/openbmc/linux/sound/pci/lola/ |
H 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 …]
|
/openbmc/linux/sound/soc/sof/ |
H 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 …]
|
H 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 …]
|
/openbmc/linux/sound/pci/emu10k1/ |
H A D | emupcm.c | 1434 struct snd_pcm *pcm; in snd_emu10k1_pcm() local 1447 pcm->info_flags = 0; in snd_emu10k1_pcm() 1450 emu->pcm = pcm; in snd_emu10k1_pcm() 1516 emu->pcm_mic = pcm; in snd_emu10k1_pcm_mic() 1687 memset(&pcm->pcm_rec, 0, sizeof(pcm->pcm_rec)); in snd_emu10k1_fx8010_playback_prepare() 1688 pcm->pcm_rec.hw_buffer_size = pcm->buffer_size * 2; /* byte size */ in snd_emu10k1_fx8010_playback_prepare() 1690 pcm->tram_pos = INITIAL_TRAM_POS(pcm->buffer_size); in snd_emu10k1_fx8010_playback_prepare() 1740 pcm->tram_pos = INITIAL_TRAM_POS(pcm->buffer_size); in snd_emu10k1_fx8010_playback_trigger() 1798 pcm->opened = 1; in snd_emu10k1_fx8010_playback_open() 1809 pcm->opened = 0; in snd_emu10k1_fx8010_playback_close() [all …]
|
/openbmc/linux/sound/pci/au88x0/ |
H 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 …]
|
/openbmc/linux/tools/testing/selftests/alsa/ |
H 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 {
|
/openbmc/linux/sound/firewire/oxfw/ |
H A D | oxfw-pcm.c | 63 if (list[count] == formation.pcm) in hw_rule_channels() 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 [all …]
|
/openbmc/linux/arch/mips/include/asm/octeon/ |
H 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()
|
/openbmc/linux/sound/firewire/fireface/ |
H 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()
|
/openbmc/linux/sound/soc/intel/avs/boards/ |
H 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()
|
/openbmc/linux/sound/pcmcia/pdaudiocf/ |
H 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()
|