/linux-6.3-rc2/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() 397 pcm->chan[1] = pcm->chan[0]; in dmaengine_pcm_request_chan_of() 432 pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); in snd_dmaengine_pcm_register() 433 if (!pcm) in snd_dmaengine_pcm_register() 465 kfree(pcm); in snd_dmaengine_pcm_register() [all …]
|
/linux-6.3-rc2/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() 447 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-6.3-rc2/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() 507 struct snd_pcm *pcm = pstr->pcm; in snd_pcm_stream_proc_init() local 648 pstr->pcm = pcm; in snd_pcm_new_stream() 671 substream->pcm = pcm; in snd_pcm_new_stream() 724 pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); in _snd_pcm_new() 734 strscpy(pcm->id, id, sizeof(pcm->id)); in _snd_pcm_new() 871 pcm->private_free(pcm); in snd_pcm_free() 1021 struct snd_pcm *pcm = pstr->pcm; in pcm_class_show() local [all …]
|
A D | pcm_memory.c | 79 struct snd_card *card = substream->pcm->card; in preallocate_pcm_pages() 94 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages() 96 substream->pcm->name, orig_size); in preallocate_pcm_pages() 161 struct snd_card *card = substream->pcm->card; in snd_pcm_lib_preallocate_proc_write() 166 mutex_lock(&substream->pcm->open_mutex); in snd_pcm_lib_preallocate_proc_write() 190 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_preallocate_proc_write() 192 substream->pcm->name, size); in snd_pcm_lib_preallocate_proc_write() 206 mutex_unlock(&substream->pcm->open_mutex); in snd_pcm_lib_preallocate_proc_write() 408 card = substream->pcm->card; in snd_pcm_lib_malloc_pages() 438 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-objs := pcm_dmaengine.o 44 obj-$(CONFIG_SND_PCM) += snd-pcm.o 45 obj-$(CONFIG_SND_DMAENGINE_PCM) += snd-pcm-dmaengine.o
|
/linux-6.3-rc2/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-6.3-rc2/sound/soc/intel/boards/ |
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 …]
|
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()
|
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 …]
|
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 …]
|
/linux-6.3-rc2/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() 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 …]
|
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() 454 if (pcm) in hdac_hdmi_set_tdm_slot() 475 if (!pcm) in hdac_hdmi_set_hw_params() 637 if (pcm) { in hdac_hdmi_pcm_close() 640 memset(pcm->chmap, 0, sizeof(pcm->chmap)); in hdac_hdmi_pcm_close() 773 if (!pcm) in hdac_hdmi_pin_output_widget_event() 819 if (!pcm) in hdac_hdmi_cvt_output_widget_event() 1756 if (rtd->pcm && (rtd->pcm->device == device)) in hdac_hdmi_get_pcm_from_id() 1897 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 | 187 struct hdac_hda_pcm *pcm; in hdac_hda_dai_set_stream() local 194 pcm = &hda_pvt->pcm[dai->id]; in hdac_hda_dai_set_stream() 241 struct hda_pcm *pcm; in hdac_hda_dai_hw_free() local 245 if (!pcm) in hdac_hda_dai_hw_free() 262 struct hda_pcm *pcm; in hdac_hda_dai_prepare() local 269 if (!pcm) in hdac_hda_dai_prepare() 291 struct hda_pcm *pcm; in hdac_hda_dai_open() local 295 if (!pcm) in hdac_hda_dai_open() 298 snd_hda_codec_pcm_get(pcm); in hdac_hda_dai_open() 311 struct hda_pcm *pcm; in hdac_hda_dai_close() local [all …]
|
/linux-6.3-rc2/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-6.3-rc2/sound/soc/sof/ |
A D | ipc3-pcm.c | 50 struct sof_ipc_pcm_params pcm; in sof_ipc3_pcm_hw_params() local 58 memset(&pcm, 0, sizeof(pcm)); in sof_ipc3_pcm_hw_params() 64 pcm.hdr.size = sizeof(pcm); in sof_ipc3_pcm_hw_params() 67 pcm.params.hdr.size = sizeof(pcm.params); in sof_ipc3_pcm_hw_params() 73 pcm.params.rate = params_rate(params); in sof_ipc3_pcm_hw_params() 113 pcm.params.host_period_bytes = 0; in sof_ipc3_pcm_hw_params() 115 pcm.params.no_stream_position = 1; in sof_ipc3_pcm_hw_params() 119 pcm.params.cont_update_posn = 1; in sof_ipc3_pcm_hw_params() 124 ret = sof_ipc_tx_message(sdev->ipc, &pcm, sizeof(pcm), in sof_ipc3_pcm_hw_params() 128 pcm.params.stream_tag); in sof_ipc3_pcm_hw_params() [all …]
|
A D | compress.c | 174 struct sof_ipc_pcm_params *pcm; in sof_compr_set_params() local 200 pcm = kzalloc(sizeof(*pcm) + ext_data_size, GFP_KERNEL); in sof_compr_set_params() 201 if (!pcm) in sof_compr_set_params() 215 pcm->hdr.size = sizeof(*pcm) + ext_data_size; in sof_compr_set_params() 219 pcm->params.hdr.size = sizeof(pcm->params) + ext_data_size; in sof_compr_set_params() 221 pcm->params.buffer.size = crtd->dma_bytes; in sof_compr_set_params() 222 pcm->params.direction = cstream->direction; in sof_compr_set_params() 227 pcm->params.sample_container_bytes = in sof_compr_set_params() 234 ret = sof_ipc_tx_message(sdev->ipc, pcm, sizeof(*pcm) + ext_data_size, in sof_compr_set_params() 245 spcm->pcm.pcm_id); in sof_compr_set_params() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/sound/pci/emu10k1/ |
A D | emupcm.c | 1383 struct snd_pcm *pcm; in snd_emu10k1_pcm() local 1396 pcm->info_flags = 0; in snd_emu10k1_pcm() 1399 emu->pcm = pcm; in snd_emu10k1_pcm() 1465 emu->pcm_mic = pcm; in snd_emu10k1_pcm_mic() 1643 memset(&pcm->pcm_rec, 0, sizeof(pcm->pcm_rec)); in snd_emu10k1_fx8010_playback_prepare() 1644 pcm->pcm_rec.hw_buffer_size = pcm->buffer_size * 2; /* byte size */ in snd_emu10k1_fx8010_playback_prepare() 1646 pcm->tram_pos = INITIAL_TRAM_POS(pcm->buffer_size); in snd_emu10k1_fx8010_playback_prepare() 1694 pcm->tram_pos = INITIAL_TRAM_POS(pcm->buffer_size); in snd_emu10k1_fx8010_playback_trigger() 1752 pcm->opened = 1; in snd_emu10k1_fx8010_playback_open() 1763 pcm->opened = 0; in snd_emu10k1_fx8010_playback_close() [all …]
|
/linux-6.3-rc2/sound/soc/intel/avs/boards/ |
A D | hdaudio.c | 22 struct hda_pcm *pcm; in avs_create_dai_links() local 34 for (i = 0; i < pcm_count; i++, pcm = list_next_entry(pcm, list)) { in avs_create_dai_links() 71 struct hda_pcm *pcm; in avs_create_dapm_routes() local 82 for (i = 0; i < pcm_count; i++, pcm = list_next_entry(pcm, list)) { in avs_create_dapm_routes() 87 stream = &pcm->stream[dir]; in avs_create_dapm_routes() 100 stream = &pcm->stream[dir]; in avs_create_dapm_routes() 130 spcm = rtd->pcm ? rtd->pcm->streams[dir].pcm : NULL; in avs_card_hdmi_pcm_at() 138 return rtd->pcm; in avs_card_hdmi_pcm_at() 157 hpcm->pcm = spcm; in avs_card_late_probe() 162 hpcm->pcm = NULL; in avs_card_late_probe() [all …]
|
/linux-6.3-rc2/sound/firewire/oxfw/ |
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 …]
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/sound/core/oss/ |
A D | pcm_oss.c | 2504 if (pcm == NULL) { in snd_pcm_oss_open() 2571 if (pcm) in snd_pcm_oss_open() 2588 pcm = substream->pcm; in snd_pcm_oss_release() 3142 pcm->card->number, pcm->device); in register_oss_dsp() 3148 pcm->oss.reg = 0; in snd_pcm_oss_register_minor() 3149 if (dsp_map[pcm->card->number] == (int)pcm->device) { in snd_pcm_oss_register_minor() 3162 pcm->oss.reg++; in snd_pcm_oss_register_minor() 3165 if (adsp_map[pcm->card->number] == (int)pcm->device) { in snd_pcm_oss_register_minor() 3167 pcm->oss.reg++; in snd_pcm_oss_register_minor() 3171 if (pcm->oss.reg) in snd_pcm_oss_register_minor() [all …]
|
/linux-6.3-rc2/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()
|