Home
last modified time | relevance | path

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

12345678910>>...18

/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
357 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
410 dmaengine_pcm_release_chan(struct dmaengine_pcm * pcm) dmaengine_pcm_release_chan() argument
437 struct dmaengine_pcm *pcm; snd_dmaengine_pcm_register() local
491 struct dmaengine_pcm *pcm; snd_dmaengine_pcm_unregister() local
[all...]
/linux/sound/soc/samsung/
H A Dpcm.c20 #include "pcm.h"
112 * @pclk: the PCLK_PCM (pcm) clock pointer
154 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 in s3c_pcm_trigger()
264 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(snd_soc_rtd_to_cpu(rtd, 0)); s3c_pcm_hw_params() local
321 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai); s3c_pcm_set_fmt() local
392 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai); s3c_pcm_set_clkdiv() local
409 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai); s3c_pcm_set_sysclk() local
437 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(dai); s3c_pcm_dai_probe() local
489 struct s3c_pcm_info *pcm; s3c_pcm_dev_probe() local
584 struct s3c_pcm_info *pcm = &s3c_pcm[pdev->id]; s3c_pcm_dev_remove() local
[all...]
/linux/sound/core/
H A Dpcm.c16 #include <sound/pcm.h>
33 static int snd_pcm_free(struct snd_pcm *pcm);
40 struct snd_pcm *pcm; in snd_pcm_get() local
42 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_get()
43 if (pcm->card == card && pcm->device == device) in snd_pcm_get()
44 return pcm; in snd_pcm_get()
51 struct snd_pcm *pcm; in snd_pcm_next() local
53 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_next()
54 if (pcm in snd_pcm_next()
64 struct snd_pcm *pcm; snd_pcm_add() local
105 struct snd_pcm *pcm; snd_pcm_control_ioctl() local
498 struct snd_pcm *pcm = pstr->pcm; snd_pcm_stream_proc_init() local
627 snd_pcm_new_stream(struct snd_pcm * pcm,int stream,int substream_count) snd_pcm_new_stream() argument
701 struct snd_pcm *pcm; _snd_pcm_new() local
844 pcm_call_notify(pcm,call) global() argument
851 pcm_call_notify(pcm,call) global() argument
854 snd_pcm_free(struct snd_pcm * pcm) snd_pcm_free() argument
871 struct snd_pcm *pcm = device->device_data; snd_pcm_dev_free() local
875 snd_pcm_attach_substream(struct snd_pcm * pcm,int stream,struct file * file,struct snd_pcm_substream ** rsubstream) snd_pcm_attach_substream() argument
1013 struct snd_pcm *pcm = pstr->pcm; pcm_class_show() local
1048 struct snd_pcm *pcm; snd_pcm_dev_register() local
1089 struct snd_pcm *pcm = device->device_data; snd_pcm_dev_disconnect() local
1138 struct snd_pcm *pcm; snd_pcm_notify() local
1168 struct snd_pcm *pcm; snd_pcm_proc_read() local
[all...]
H A Dpcm_memory.c14 #include <sound/pcm.h>
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()
125 * @substream: the pcm substream instance
131 do_free_pages(substream->pcm->card, &substream->dma_buffer); in snd_pcm_lib_preallocate_free()
135 * snd_pcm_lib_preallocate_free_for_all - release all pre-allocated buffers on the pcm
136 * @pcm: the pcm instanc
140 snd_pcm_lib_preallocate_free_for_all(struct snd_pcm * pcm) snd_pcm_lib_preallocate_free_for_all() argument
297 preallocate_pages_for_all(struct snd_pcm * pcm,int type,void * data,size_t size,size_t max,bool managed) preallocate_pages_for_all() argument
341 snd_pcm_lib_preallocate_pages_for_all(struct snd_pcm * pcm,int type,void * data,size_t size,size_t max) snd_pcm_lib_preallocate_pages_for_all() argument
401 snd_pcm_set_managed_buffer_all(struct snd_pcm * pcm,int type,struct device * data,size_t size,size_t max) snd_pcm_set_managed_buffer_all() argument
[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
/linux/sound/soc/codecs/
H A Dpcm3008.c21 #include <sound/pcm.h>
37 struct pcm3008 *pcm = component->dev->platform_data; in pcm3008_dac_ev() local
39 gpiod_set_value_cansleep(pcm->pdda_pin, in pcm3008_dac_ev()
50 struct pcm3008 *pcm = component->dev->platform_data; in pcm3008_adc_ev() local
52 gpiod_set_value_cansleep(pcm->pdad_pin, in pcm3008_adc_ev()
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()
120 platform_set_drvdata(pdev, pcm); in pcm3008_codec_probe()
[all...]
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()
23 dev_dbg(dai->dev, "open stream codec: %08x, info: %p, pcm: %p %s substream: %p\n", 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()
49 dev_dbg(dai->dev, "close stream codec: %08x, info: %p, pcm in hda_codec_dai_shutdown()
[all...]
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/pci/ac97/
H A Dac97_pcm.c18 #include <sound/pcm.h>
144 static unsigned char get_slot_reg(struct ac97_pcm *pcm, unsigned short cidx, in get_slot_reg() argument
151 if (pcm->spdif) in get_slot_reg()
153 if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK) in get_slot_reg()
154 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg()
393 static unsigned int get_rates(struct ac97_pcm *pcm, unsigned int cidx, unsigned short slots, int dbl) in get_rates() argument
402 reg = get_slot_reg(pcm, cidx, i, dbl); in get_rates()
411 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates()
426 * some slots are available, pcm->xxx.slots and pcm
436 const struct ac97_pcm *pcm; snd_ac97_pcm_assign() local
555 snd_ac97_pcm_open(struct ac97_pcm * pcm,unsigned int rate,enum ac97_pcm_cfg cfg,unsigned short slots) snd_ac97_pcm_open() argument
646 snd_ac97_pcm_close(struct ac97_pcm * pcm) snd_ac97_pcm_close() argument
[all...]
/linux/sound/pci/lola/
H A Dlola_pcm.c14 #include <sound/pcm.h>
24 return &chip->pcm[substream->stream]; in lola_get_pcm()
29 struct lola_pcm *pcm = lola_get_pcm(substream); in lola_get_stream() local
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()
213 struct lola_pcm *pcm = lola_get_pcm(substream); in lola_pcm_open() local
226 runtime->hw.channels_max = pcm in lola_pcm_open()
246 lola_cleanup_slave_streams(struct lola_pcm * pcm,struct lola_stream * str) lola_cleanup_slave_streams() argument
291 struct lola_pcm *pcm = lola_get_pcm(substream); lola_pcm_hw_free() local
340 lola_setup_periods(struct lola * chip,struct lola_pcm * pcm,struct snd_pcm_substream * substream,struct lola_stream * str) lola_setup_periods() argument
427 lola_setup_controller(struct lola * chip,struct lola_pcm * pcm,struct lola_stream * str) lola_setup_controller() argument
454 struct lola_pcm *pcm = lola_get_pcm(substream); lola_pcm_prepare() local
561 lola_pcm_update(struct lola * chip,struct lola_pcm * pcm,unsigned int bits) lola_pcm_update() argument
588 struct snd_pcm *pcm; lola_create_pcm() local
678 struct lola_pcm *pcm = &chip->pcm[dir]; lola_init_pcm() local
[all...]
/linux/sound/soc/sof/
H A Dcompress.c172 struct sof_ipc_pcm_params *pcm; in sof_compr_set_params() local
195 if (sizeof(*pcm) + ext_data_size > sdev->ipc->max_payload_size) in sof_compr_set_params()
198 pcm = kzalloc(sizeof(*pcm) + ext_data_size, GFP_KERNEL); in sof_compr_set_params()
199 if (!pcm) in sof_compr_set_params()
212 pcm->params.buffer.pages = PFN_UP(crtd->dma_bytes); in sof_compr_set_params()
213 pcm->hdr.size = sizeof(*pcm) + ext_data_size; in sof_compr_set_params()
214 pcm->hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS; in sof_compr_set_params()
216 pcm in sof_compr_set_params()
[all...]
H A Dipc3-pcm.c49 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()
60 pcm.params.buffer.pages = PFN_UP(runtime->dma_bytes); in sof_ipc3_pcm_hw_params()
63 pcm.hdr.size = sizeof(pcm); in sof_ipc3_pcm_hw_params()
64 pcm.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS; in sof_ipc3_pcm_hw_params()
65 pcm.comp_id = spcm->stream[substream->stream].comp_id; in sof_ipc3_pcm_hw_params()
66 pcm.params.hdr.size = sizeof(pcm in sof_ipc3_pcm_hw_params()
[all...]
/linux/sound/pci/emu10k1/
H A Demupcm.c1413 struct snd_pcm *pcm; in snd_emu10k1_pcm() local
1417 err = snd_pcm_new(emu->card, "emu10k1", device, 32, 1, &pcm); in snd_emu10k1_pcm()
1421 pcm->private_data = emu; in snd_emu10k1_pcm()
1423 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1_playback_ops); in snd_emu10k1_pcm()
1424 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1_capture_ops); in snd_emu10k1_pcm()
1426 pcm->info_flags = 0; in snd_emu10k1_pcm()
1427 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in snd_emu10k1_pcm()
1428 strscpy(pcm->name, "ADC Capture/Standard PCM Playback"); in snd_emu10k1_pcm()
1429 emu->pcm = pcm; in snd_emu10k1_pcm()
1446 struct snd_pcm *pcm; snd_emu10k1_pcm_multi() local
1482 struct snd_pcm *pcm; snd_emu10k1_pcm_mic() local
1608 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; fx8010_pb_trans_copy() local
1636 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; snd_emu10k1_fx8010_playback_transfer() local
1645 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; snd_emu10k1_fx8010_playback_hw_free() local
1657 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; snd_emu10k1_fx8010_playback_prepare() local
1687 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; snd_emu10k1_fx8010_playback_trigger() local
1734 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; snd_emu10k1_fx8010_playback_pointer() local
1767 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; snd_emu10k1_fx8010_playback_open() local
1785 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; snd_emu10k1_fx8010_playback_close() local
1805 struct snd_pcm *pcm; snd_emu10k1_pcm_efx() local
[all...]
/linux/sound/pci/au88x0/
H A Dau88x0_pcm.c14 #include <sound/pcm.h>
146 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) in snd_vortex_pcm_hw_params()
597 struct snd_pcm *pcm; snd_vortex_new_pcm() local
[all...]
/linux/sound/firewire/oxfw/
H A Doxfw-pcm.c31 if (!snd_interval_test(c, formation.pcm)) in hw_rule_rate()
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()
100 hw->channels_min = min(hw->channels_min, formation.pcm); in limit_channels_and_rates()
101 hw->channels_max = max(hw->channels_max, formation.pcm); in limit_channels_and_rates()
162 substream->runtime->hw.channels_min = formation.pcm; in limit_to_current_params()
163 substream->runtime->hw.channels_max = formation.pcm; in limit_to_current_params()
348 struct snd_pcm_substream *pcm; in pcm_capture_trigger() local
352 pcm in pcm_capture_trigger()
366 struct snd_pcm_substream *pcm; pcm_playback_trigger() local
431 struct snd_pcm *pcm; snd_oxfw_create_pcm() local
[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 {
/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/firewire/dice/
H A Ddice-pcm.c16 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()
323 struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; in playback_prepare()
338 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; in capture_trigger()
356 struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; in playback_trigger()
375 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; in capture_pointer()
382 struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; in playback_pointer()
390 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm in capture_ack()
425 struct snd_pcm *pcm; snd_dice_create_pcm() local
[all...]
/linux/sound/firewire/fireface/
H A Damdtp-ff.c8 #include <sound/pcm.h>
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()
[all...]
/linux/sound/core/oss/
H A Dpcm_oss.c25 #include <sound/pcm.h>
181 static int snd_pcm_hw_param_mask(struct snd_pcm_substream *pcm, in snd_pcm_hw_param_mask() argument
190 int err = snd_pcm_hw_refine(pcm, params); in snd_pcm_hw_param_mask()
230 * @pcm: PCM instance
240 static int snd_pcm_hw_param_min(struct snd_pcm_substream *pcm, in snd_pcm_hw_param_min() argument
249 int err = snd_pcm_hw_refine(pcm, params); in snd_pcm_hw_param_min()
291 * @pcm: PCM instance
301 static int snd_pcm_hw_param_max(struct snd_pcm_substream *pcm, in snd_pcm_hw_param_max() argument
310 int err = snd_pcm_hw_refine(pcm, params); in snd_pcm_hw_param_max()
363 * @pcm
375 snd_pcm_hw_param_near(struct snd_pcm_substream * pcm,struct snd_pcm_hw_params * params,snd_pcm_hw_param_t var,unsigned int best,int * dir) snd_pcm_hw_param_near() argument
498 snd_pcm_hw_param_set(struct snd_pcm_substream * pcm,struct snd_pcm_hw_params * params,snd_pcm_hw_param_t var,unsigned int val,int dir) snd_pcm_hw_param_set() argument
2329 snd_pcm_oss_look_for_setup(struct snd_pcm * pcm,int stream,const char * task_name,struct snd_pcm_oss_setup * rsetup) snd_pcm_oss_look_for_setup() argument
2404 snd_pcm_oss_open_file(struct file * file,struct snd_pcm * pcm,struct snd_pcm_oss_file ** rpcm_oss_file,int minor,struct snd_pcm_oss_setup * setup) snd_pcm_oss_open_file() argument
2476 struct snd_pcm *pcm; snd_pcm_oss_open() local
2562 struct snd_pcm *pcm; snd_pcm_oss_release() local
3054 snd_pcm_oss_proc_init(struct snd_pcm * pcm) snd_pcm_oss_proc_init() argument
3078 snd_pcm_oss_proc_done(struct snd_pcm * pcm) snd_pcm_oss_proc_done() argument
3089 snd_pcm_oss_proc_init(struct snd_pcm * pcm) snd_pcm_oss_proc_init() argument
3092 snd_pcm_oss_proc_done(struct snd_pcm * pcm) snd_pcm_oss_proc_done() argument
3114 register_oss_dsp(struct snd_pcm * pcm,int index) register_oss_dsp() argument
3124 snd_pcm_oss_register_minor(struct snd_pcm * pcm) snd_pcm_oss_register_minor() argument
3155 snd_pcm_oss_disconnect_minor(struct snd_pcm * pcm) snd_pcm_oss_disconnect_minor() argument
3178 snd_pcm_oss_unregister_minor(struct snd_pcm * pcm) snd_pcm_oss_unregister_minor() argument
[all...]
/linux/sound/pci/ctxfi/
H A Dctpcm.c8 * This file contains the definition of the pcm device functions.
17 #include <sound/pcm.h>
114 /* pcm playback operations */
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()
212 "Preparing pcm playback failed!!!\n"); in ct_pcm_playback_prepare()
260 /* pcm capture operations */
321 "Preparing pcm captur in ct_pcm_capture_prepare()
417 struct snd_pcm *pcm; ct_alsa_pcm_create() local
[all...]
/linux/sound/pcmcia/pdaudiocf/
H A Dpdaudiocf_pcm.c248 * snd_pdacf_pcm_new - create and initialize a pcm
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 in snd_pdacf_pcm_new()
[all...]

12345678910>>...18