Home
last modified time | relevance | path

Searched refs:pcm (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/linux/sound/soc/
H A Dsoc-generic-dmaengine-pcm.c10 #include <sound/pcm.h>
28 static struct device *dmaengine_dma_dev(struct dmaengine_pcm *pcm, in dmaengine_dma_dev() argument
31 if (!pcm->chan[substream->stream]) in dmaengine_dma_dev()
34 return pcm->chan[substream->stream]->device->dev; in dmaengine_dma_dev()
80 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); in dmaengine_pcm_hw_params() local
85 if (!pcm->config->prepare_slave_config) in dmaengine_pcm_hw_params()
90 ret = pcm->config->prepare_slave_config(substream, params, &slave_config); in dmaengine_pcm_hw_params()
102 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); in dmaengine_pcm_set_runtime_hwparams() local
103 struct device *dma_dev = dmaengine_dma_dev(pcm, substream); in dmaengine_pcm_set_runtime_hwparams()
104 struct dma_chan *chan = pcm in dmaengine_pcm_set_runtime_hwparams()
151 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_pcm_open() local
179 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_pcm_compat_request_channel() local
222 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_pcm_new() local
282 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_pcm_pointer() local
296 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_copy() local
349 dmaengine_pcm_request_chan_of(struct dmaengine_pcm * pcm,struct device * dev,const struct snd_dmaengine_pcm_config * config) dmaengine_pcm_request_chan_of() argument
402 dmaengine_pcm_release_chan(struct dmaengine_pcm * pcm) dmaengine_pcm_release_chan() argument
429 struct dmaengine_pcm *pcm; snd_dmaengine_pcm_register() local
483 struct dmaengine_pcm *pcm; snd_dmaengine_pcm_unregister() local
[all...]
/linux/sound/soc/samsung/
H A Dpcm.c154 static void s3c_pcm_snd_txctrl(struct s3c_pcm_info *pcm, int on) in s3c_pcm_snd_txctrl() argument
156 void __iomem *regs = pcm->regs; in s3c_pcm_snd_txctrl()
176 if (!pcm->idleclk) in s3c_pcm_snd_txctrl()
185 static void s3c_pcm_snd_rxctrl(struct s3c_pcm_info *pcm, int on) in s3c_pcm_snd_rxctrl() argument
187 void __iomem *regs = pcm->regs; in s3c_pcm_snd_rxctrl()
207 if (!pcm->idleclk) in s3c_pcm_snd_rxctrl()
220 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(snd_soc_rtd_to_cpu(rtd, 0)); in s3c_pcm_trigger() local
223 dev_dbg(pcm->dev, "Entered %s\n", __func__); in s3c_pcm_trigger()
229 spin_lock_irqsave(&pcm->lock, flags); in s3c_pcm_trigger()
232 s3c_pcm_snd_rxctrl(pcm, 1); in s3c_pcm_trigger()
[all …]
/linux/sound/soc/codecs/
H A Dhda.c21 struct hda_pcm *pcm; in hda_codec_create_dais() local
28 pcm = list_first_entry(&codec->pcm_list_head, struct hda_pcm, list); in hda_codec_create_dais()
30 for (i = 0; i < pcm_count; i++, pcm = list_next_entry(pcm, list)) { in hda_codec_create_dais()
34 dev_info(dev, "creating for %s %d\n", pcm->name, i); 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()
42 dev_info(dev, "skipping playback dai for %s\n", pcm->name); in hda_codec_create_dais()
47 devm_kasprintf(dev, GFP_KERNEL, "%s %s", pcm->name, in hda_codec_create_dais()
51 stream->channels_min = pcm in hda_codec_create_dais()
87 struct hda_pcm *pcm; hda_codec_register_dais() local
128 struct hda_pcm *pcm; hda_codec_unregister_dais() local
[all...]
H A Dhdac_hdmi.c146 struct hdac_hdmi_pcm *pcm; in hdac_hdmi_get_pcm_from_cvt() local
148 list_for_each_entry(pcm, &hdmi->pcm_list, head) { in hdac_hdmi_get_pcm_from_cvt()
149 if (pcm->cvt == cvt) in hdac_hdmi_get_pcm_from_cvt()
150 return pcm; in hdac_hdmi_get_pcm_from_cvt()
156 static void hdac_hdmi_jack_report(struct hdac_hdmi_pcm *pcm, in hdac_hdmi_jack_report() argument
168 if (pcm->jack_event == 0) { in hdac_hdmi_jack_report()
170 "jack report for pcm=%d\n", in hdac_hdmi_jack_report()
171 pcm->pcm_id); in hdac_hdmi_jack_report()
172 snd_soc_jack_report(pcm->jack, SND_JACK_AVOUT, in hdac_hdmi_jack_report()
175 pcm in hdac_hdmi_jack_report()
206 hdac_hdmi_jack_report_sync(struct hdac_hdmi_pcm * pcm,struct hdac_hdmi_port * port,bool is_connect) hdac_hdmi_jack_report_sync() argument
284 struct hdac_hdmi_pcm *pcm; get_hdmi_pcm_from_id() local
356 hdac_hdmi_setup_audio_infoframe(struct hdac_device * hdev,struct hdac_hdmi_pcm * pcm,struct hdac_hdmi_port * port) hdac_hdmi_setup_audio_infoframe() argument
444 struct hdac_hdmi_pcm *pcm; hdac_hdmi_set_stream() local
469 struct hdac_hdmi_pcm *pcm; hdac_hdmi_set_hw_params() local
530 struct hdac_hdmi_pcm *pcm; hdac_hdmi_get_port_from_cvt() local
636 struct hdac_hdmi_pcm *pcm; hdac_hdmi_pcm_close() local
722 struct hdac_hdmi_pcm *pcm; hdac_hdmi_get_pcm() local
773 struct hdac_hdmi_pcm *pcm; hdac_hdmi_pin_output_widget_event() local
819 struct hdac_hdmi_pcm *pcm; hdac_hdmi_cvt_output_widget_event() local
909 struct hdac_hdmi_pcm *pcm; hdac_hdmi_set_pin_port_mux() local
1257 struct hdac_hdmi_pcm *pcm; hdac_hdmi_present_sense() local
1773 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); hdac_hdmi_get_chmap() local
1782 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); hdac_hdmi_set_chmap() local
1803 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); is_hdac_hdmi_pcm_attached() local
1817 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); hdac_hdmi_get_spk_alloc() local
[all...]
H A Dhda-dai.c16 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 Dhdac_hda.c198 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()
208 pcm->stream_tag[direction] = hstream->stream_tag; in hdac_hda_dai_set_stream()
241 hda_pvt->pcm[dai->id].format_val[substream->stream] = format_val; in hdac_hda_dai_hw_params()
251 struct hda_pcm *pcm; in hdac_hda_dai_hw_free() local
254 pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai); in hdac_hda_dai_hw_free()
255 if (!pcm) in hdac_hda_dai_hw_free()
258 hda_stream = &pcm->stream[substream->stream]; in hdac_hda_dai_hw_free()
271 struct hda_pcm *pcm; in hdac_hda_dai_prepare() local
299 struct hda_pcm *pcm; hdac_hda_dai_open() local
324 struct hda_pcm *pcm; hdac_hda_dai_close() local
[all...]
/linux/sound/core/
H A Dpcm_memory.c102 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()
131 do_free_pages(substream->pcm->card, &substream->dma_buffer); in snd_pcm_lib_preallocate_free()
140 void snd_pcm_lib_preallocate_free_for_all(struct snd_pcm *pcm) in snd_pcm_lib_preallocate_free_for_all() argument
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()
[all …]
H A DMakefile17 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
H A Dpcm_trace.h28 __entry->card = (substream)->pcm->card->number;
29 __entry->device = (substream)->pcm->device;
64 __entry->card = (substream)->pcm->card->number;
65 __entry->device = (substream)->pcm->device;
94 __entry->card = (substream)->pcm->card->number;
95 __entry->device = (substream)->pcm->device;
121 __entry->card = (substream)->pcm->card->number;
122 __entry->device = (substream)->pcm->device;
/linux/sound/pci/au88x0/
H A Dau88x0_pcm.c146 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_open()
148 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_A3D) { in snd_vortex_pcm_open()
152 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_SPDIF) { in snd_vortex_pcm_open()
166 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB in snd_vortex_pcm_open()
167 || VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S) in snd_vortex_pcm_open()
172 VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_open()
219 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_hw_params()
220 int dma, type = VORTEX_PCM_TYPE(substream->pcm); in snd_vortex_pcm_hw_params()
243 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_hw_params()
276 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_hw_free()
[all …]
/linux/tools/testing/selftests/alsa/
H A Dpcm-test.conf1 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 {
H A Dpcm-test.c554 void run_time_tests(struct pcm_data *pcm, enum test_class class, in run_time_tests() argument
574 test_pcm_time(pcm, class, test_name, pcm_cfg); in run_time_tests()
583 struct pcm_data *pcm; in card_thread() local
585 for (pcm = pcm_list; pcm != NULL; pcm = pcm->next) { in card_thread()
586 if (pcm->card != card->card) in card_thread()
589 run_time_tests(pcm, TEST_CLASS_DEFAULT, default_pcm_config); in card_thread()
590 run_time_tests(pcm, TEST_CLASS_SYSTEM, pcm->pcm_config); in card_thread()
600 struct pcm_data *pcm; in main() local
623 for (pcm = pcm_list; pcm != NULL; pcm = pcm->next) { in main()
625 cfg = pcm->pcm_config; in main()
[all …]
/linux/sound/soc/tegra/
H A Dtegra_isomgr_bw.c24 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()
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-coremask.h48 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/ctxfi/
H A Dctpcm.c128 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()
435 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in ct_alsa_pcm_create()
436 strscpy(pcm->name, device_name, sizeof(pcm->name)); in ct_alsa_pcm_create()
[all …]
/linux/sound/firewire/fireface/
H A Damdtp-ff.c30 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/soc/intel/boards/
H A Dhda_dsp_common.c6 #include <sound/pcm.h>
32 spcm = rtd->pcm; in hda_dsp_hdmi_pcm_handle()
41 return rtd->pcm;
71 hpcm->pcm = spcm; in hda_dsp_hdmi_build_controls()
77 hpcm->pcm = NULL; in hda_dsp_hdmi_build_controls()
H A Dehl_rt5660.c78 struct sof_hdmi_pcm *pcm; in hdmi_init() local
80 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in hdmi_init()
81 if (!pcm) in hdmi_init()
85 pcm->device = rtd->dai_link->id; in hdmi_init()
86 pcm->codec_dai = dai; in hdmi_init()
88 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in hdmi_init()
96 struct sof_hdmi_pcm *pcm; in card_late_probe() local
104 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm, head); in card_late_probe()
106 return hda_dsp_hdmi_build_controls(card, pcm->codec_dai->component); in card_late_probe()
/linux/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835-pcm.c327 struct snd_pcm *pcm; in snd_bcm2835_new_pcm() local
330 err = snd_pcm_new(chip->card, name, idx, numchannels, 0, &pcm); in snd_bcm2835_new_pcm()
334 pcm->private_data = chip; in snd_bcm2835_new_pcm()
335 pcm->nonatomic = true; in snd_bcm2835_new_pcm()
336 strscpy(pcm->name, name, sizeof(pcm->name)); in snd_bcm2835_new_pcm()
343 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_bcm2835_new_pcm()
347 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_bcm2835_new_pcm()
351 chip->pcm_spdif = pcm; in snd_bcm2835_new_pcm()
353 chip->pcm = pcm; in snd_bcm2835_new_pcm()
/linux/Documentation/sound/hd-audio/
H A Ddp-mst.rst6 and dynamic pcm assignment.
13 several pins, if we use one pcm per per_pin, there will be many PCMs.
14 The new solution is to create a few PCMs and to dynamically bind pcm to
55 Driver uses struct hdmi_pcm pcm[] array in hdmi_spec and snd_jack is
56 a member of hdmi_pcm. Each pin has one struct hdmi_pcm * pcm pointer.
58 For !dyn_pcm_assign, per_pin->pcm will assigned to spec->pcm[n] statically.
60 For dyn_pcm_assign, per_pin->pcm will assigned to spec->pcm[n]
/linux/Documentation/devicetree/bindings/sound/
H A Dux500-msp.txt16 stericsson,platform-pcm-dma = <&pcm>;
21 pcm: ux500-pcm {
22 compatible = "stericsson,ux500-pcm";
/linux/sound/soc/sof/
H A Dpcm.c24 * sof pcm period elapse work
41 * sof pcm period elapse, this could be called at irq thread context.
109 const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm); in sof_pcm_hw_params()
170 /* save pcm hw_params */ in sof_pcm_hw_params()
181 const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm); in sof_pcm_stream_free()
331 const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm); in sof_pcm_trigger()
443 const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm); in sof_pcm_pointer()
498 caps = &spcm->pcm.caps[substream->stream]; in sof_pcm_open()
527 "platform pcm open failed %d\n", ret); in sof_pcm_open()
561 "platform pcm clos in sof_pcm_close()
583 struct snd_pcm *pcm = rtd->pcm; sof_pcm_new() local
[all...]
/linux/sound/soc/bcm/
H A Dbcm63xx-pcm-whistler.c355 struct snd_pcm *pcm = rtd->pcm; in bcm63xx_soc_pcm_new() local
361 ret = of_dma_configure(pcm->card->dev, pcm->card->dev->of_node, 1); in bcm63xx_soc_pcm_new()
365 ret = dma_coerce_mask_and_coherent(pcm->card->dev, DMA_BIT_MASK(32)); in bcm63xx_soc_pcm_new()
369 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) in bcm63xx_soc_pcm_new()
371 pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in bcm63xx_soc_pcm_new()
372 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) in bcm63xx_soc_pcm_new()
374 pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in bcm63xx_soc_pcm_new()
376 return snd_pcm_set_fixed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_WC, in bcm63xx_soc_pcm_new()
377 pcm->card->dev, in bcm63xx_soc_pcm_new()
/linux/include/sound/
H A Dpcm.h22 #define snd_pcm_chip(pcm) ((pcm)->private_data) argument
465 struct snd_pcm *pcm; member
515 struct snd_pcm *pcm; member
547 void (*private_free) (struct snd_pcm *pcm);
568 int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count);
572 int (*n_register) (struct snd_pcm * pcm);
573 int (*n_disconnect) (struct snd_pcm * pcm);
574 int (*n_unregister) (struct snd_pcm * pcm);
594 int snd_pcm_suspend_all(struct snd_pcm *pcm);
596 static inline int snd_pcm_suspend_all(struct snd_pcm *pcm) in snd_pcm_suspend_all() argument
[all …]
/linux/sound/soc/atmel/
H A DMakefile3 snd-soc-atmel-pcm-pdc-y := atmel-pcm-pdc.o
4 snd-soc-atmel-pcm-dma-y := atmel-pcm-dma.o
15 obj-$(CONFIG_SND_ATMEL_SOC_SSC) += snd-soc-atmel-pcm-pdc.o
18 obj-$(CONFIG_SND_ATMEL_SOC_SSC) += snd-soc-atmel-pcm-dma.o

12345678910>>...12