/linux/sound/soc/ |
A D | soc-generic-dmaengine-pcm.c | 124 if (pcm->config && pcm->config->pcm_hardware) in dmaengine_pcm_set_runtime_hwparams() 202 if (pcm->config && pcm->config->compat_request_channel) in dmaengine_pcm_compat_request_channel() 277 if (rtd->pcm->streams[i].pcm->name[0] == '\0') { in dmaengine_pcm_new() 278 strscpy_pad(rtd->pcm->streams[i].pcm->name, in dmaengine_pcm_new() 279 rtd->pcm->streams[i].pcm->id, in dmaengine_pcm_new() 280 sizeof(rtd->pcm->streams[i].pcm->name)); in dmaengine_pcm_new() 406 pcm->chan[1] = pcm->chan[0]; in dmaengine_pcm_request_chan_of() 437 pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); in snd_dmaengine_pcm_register() 438 if (!pcm) in snd_dmaengine_pcm_register() 468 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() 447 snd_soc_dai_init_dma_data(dai, pcm->dma_playback, pcm->dma_capture); in s3c_pcm_dai_probe() 508 pcm->dev = &pdev->dev; in s3c_pcm_dev_probe() 513 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() 505 struct snd_pcm *pcm = pstr->pcm; in snd_pcm_stream_proc_init() local 646 pstr->pcm = pcm; in snd_pcm_new_stream() 669 substream->pcm = pcm; in snd_pcm_new_stream() 722 pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); in _snd_pcm_new() 732 strscpy(pcm->id, id, sizeof(pcm->id)); in _snd_pcm_new() 865 pcm->private_free(pcm); in snd_pcm_free() 1011 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() 122 for_each_pcm_substream(pcm, stream, substream) in snd_pcm_lib_preallocate_free_for_all() 161 struct snd_card *card = substream->pcm->card; in snd_pcm_lib_preallocate_proc_write() 189 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_preallocate_proc_write() 191 substream->pcm->name, size); in snd_pcm_lib_preallocate_proc_write() 401 card = substream->pcm->card; in snd_pcm_lib_malloc_pages() 431 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_malloc_pages() 433 substream->pcm->name, size); in snd_pcm_lib_malloc_pages() [all …]
|
A D | Makefile | 19 snd-pcm-y := pcm.o pcm_native.o pcm_lib.o pcm_misc.o \ 21 snd-pcm-$(CONFIG_SND_PCM_TIMER) += pcm_timer.o 22 snd-pcm-$(CONFIG_SND_DMA_SGBUF) += sgbuf.o 23 snd-pcm-$(CONFIG_SND_PCM_ELD) += pcm_drm_eld.o 24 snd-pcm-$(CONFIG_SND_PCM_IEC958) += pcm_iec958.o 30 snd-pcm-dmaengine-objs := pcm_dmaengine.o 47 obj-$(CONFIG_SND_PCM) += snd-pcm.o 48 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 | 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 | hdac_hda.c | 189 struct hdac_hda_pcm *pcm; in hdac_hda_dai_set_tdm_slot() local 192 pcm = &hda_pvt->pcm[dai->id]; in hdac_hda_dai_set_tdm_slot() 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/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() 164 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 | 186 struct skl_hdmi_pcm *pcm; in skylake_hdmi1_init() local 188 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi1_init() 189 if (!pcm) in skylake_hdmi1_init() 193 pcm->codec_dai = dai; in skylake_hdmi1_init() 206 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi2_init() 207 if (!pcm) in skylake_hdmi2_init() 211 pcm->codec_dai = dai; in skylake_hdmi2_init() 224 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi3_init() 225 if (!pcm) in skylake_hdmi3_init() 229 pcm->codec_dai = dai; in skylake_hdmi3_init() [all …]
|
A D | skl_nau88l25_ssm4567.c | 205 struct skl_hdmi_pcm *pcm; in skylake_hdmi1_init() local 207 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi1_init() 208 if (!pcm) in skylake_hdmi1_init() 212 pcm->codec_dai = dai; in skylake_hdmi1_init() 225 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi2_init() 226 if (!pcm) in skylake_hdmi2_init() 230 pcm->codec_dai = dai; in skylake_hdmi2_init() 244 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi3_init() 245 if (!pcm) in skylake_hdmi3_init() 249 pcm->codec_dai = dai; in skylake_hdmi3_init() [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() 587 struct snd_pcm *pcm; in lola_create_pcm() local 591 chip->pcm[i].bdl = in lola_create_pcm() 594 if (!chip->pcm[i].bdl) in lola_create_pcm() 601 &pcm); in lola_create_pcm() 604 strscpy(pcm->name, "Digigram Lola", sizeof(pcm->name)); in lola_create_pcm() 605 pcm->private_data = chip; in lola_create_pcm() [all …]
|
/linux/sound/soc/sof/ |
A D | pcm.c | 52 spcm->pcm.pcm_id); in sof_pcm_dsp_params() 148 spcm->pcm.pcm_id, dir); in sof_pcm_setup_connected_widgets() 191 memset(&pcm, 0, sizeof(pcm)); in sof_pcm_hw_params() 205 pcm.hdr.size = sizeof(pcm); in sof_pcm_hw_params() 208 pcm.params.hdr.size = sizeof(pcm.params); in sof_pcm_hw_params() 247 &pcm.params); in sof_pcm_hw_params() 263 ret = sof_ipc_tx_message(sdev->ipc, pcm.hdr.cmd, &pcm, sizeof(pcm), in sof_pcm_hw_params() 267 pcm.params.stream_tag); in sof_pcm_hw_params() 622 struct snd_pcm *pcm = rtd->pcm; in sof_pcm_new() local 637 if (!spcm->pcm.playback) in sof_pcm_new() [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/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/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/sound/core/oss/ |
A D | pcm_oss.c | 2498 if (pcm == NULL) { in snd_pcm_oss_open() 2565 if (pcm) in snd_pcm_oss_open() 2582 pcm = substream->pcm; in snd_pcm_oss_release() 3136 pcm->card->number, pcm->device); in register_oss_dsp() 3142 pcm->oss.reg = 0; in snd_pcm_oss_register_minor() 3143 if (dsp_map[pcm->card->number] == (int)pcm->device) { in snd_pcm_oss_register_minor() 3156 pcm->oss.reg++; in snd_pcm_oss_register_minor() 3159 if (adsp_map[pcm->card->number] == (int)pcm->device) { in snd_pcm_oss_register_minor() 3161 pcm->oss.reg++; in snd_pcm_oss_register_minor() 3165 if (pcm->oss.reg) in snd_pcm_oss_register_minor() [all …]
|
/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() 86 hw->channels_max = max(hw->channels_max, 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() [all …]
|
/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/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 strcpy(pcm->name, "Multichannel"); in oxygen_pcm_init() 727 pcm->private_data = chip; in oxygen_pcm_init() 728 strcpy(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 …]
|
/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() 309 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; in capture_prepare() 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 strcpy(pcm->name, dice->card->shortname); in snd_dice_create_pcm() 447 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in snd_dice_create_pcm() 451 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() 118 struct snd_pcm_substream *pcm) in process_it_ctx_payloads() argument 128 if (pcm) { in process_it_ctx_payloads() 129 write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); in process_it_ctx_payloads() 142 struct snd_pcm_substream *pcm) in process_ir_ctx_payloads() argument 152 if (pcm) { in process_ir_ctx_payloads() 153 read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); in process_ir_ctx_payloads()
|
/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/pci/mixart/ |
A D | mixart.c | 709 struct snd_pcm *pcm = subs->pcm; in snd_mixart_playback_open() local 717 if ( pcm == chip->pcm ) { in snd_mixart_playback_open() 788 struct snd_pcm *pcm = subs->pcm; in snd_mixart_capture_open() local 796 if ( pcm == chip->pcm ) { in snd_mixart_capture_open() 953 struct snd_pcm *pcm; in snd_mixart_pcm_analog() local 971 pcm->info_flags = 0; in snd_mixart_pcm_analog() 972 pcm->nonatomic = true; in snd_mixart_pcm_analog() 977 chip->pcm = pcm; in snd_mixart_pcm_analog() 987 struct snd_pcm *pcm; in snd_mixart_pcm_digital() local 1005 pcm->info_flags = 0; in snd_mixart_pcm_digital() [all …]
|