Home
last modified time | relevance | path

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

12345678910>>...18

/Linux-v5.4/sound/soc/
Dsoc-generic-dmaengine-pcm.c36 static struct device *dmaengine_dma_dev(struct dmaengine_pcm *pcm, in dmaengine_dma_dev() argument
39 if (!pcm->chan[substream->stream]) in dmaengine_dma_dev()
42 return pcm->chan[substream->stream]->device->dev; in dmaengine_dma_dev()
84 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); in dmaengine_pcm_hw_params() local
94 if (!pcm->config) in dmaengine_pcm_hw_params()
97 prepare_slave_config = pcm->config->prepare_slave_config; in dmaengine_pcm_hw_params()
117 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); in dmaengine_pcm_set_runtime_hwparams() local
118 struct device *dma_dev = dmaengine_dma_dev(pcm, substream); in dmaengine_pcm_set_runtime_hwparams()
119 struct dma_chan *chan = pcm->chan[substream->stream]; in dmaengine_pcm_set_runtime_hwparams()
129 if (pcm->config && pcm->config->pcm_hardware) in dmaengine_pcm_set_runtime_hwparams()
[all …]
/Linux-v5.4/sound/soc/samsung/
Dpcm.c149 static void s3c_pcm_snd_txctrl(struct s3c_pcm_info *pcm, int on) in s3c_pcm_snd_txctrl() argument
151 void __iomem *regs = pcm->regs; in s3c_pcm_snd_txctrl()
171 if (!pcm->idleclk) in s3c_pcm_snd_txctrl()
180 static void s3c_pcm_snd_rxctrl(struct s3c_pcm_info *pcm, int on) in s3c_pcm_snd_rxctrl() argument
182 void __iomem *regs = pcm->regs; in s3c_pcm_snd_rxctrl()
202 if (!pcm->idleclk) in s3c_pcm_snd_rxctrl()
215 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(rtd->cpu_dai); in s3c_pcm_trigger() local
218 dev_dbg(pcm->dev, "Entered %s\n", __func__); in s3c_pcm_trigger()
224 spin_lock_irqsave(&pcm->lock, flags); in s3c_pcm_trigger()
227 s3c_pcm_snd_rxctrl(pcm, 1); in s3c_pcm_trigger()
[all …]
/Linux-v5.4/sound/core/
Dpcm.c33 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->card == card && pcm->device > device) in snd_pcm_next()
55 return pcm->device; in snd_pcm_next()
56 else if (pcm->card->number > card->number) in snd_pcm_next()
[all …]
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_DMA_SGBUF) += sgbuf.o
21 snd-pcm-$(CONFIG_SND_PCM_ELD) += pcm_drm_eld.o
22 snd-pcm-$(CONFIG_SND_PCM_IEC958) += pcm_iec958.o
28 snd-pcm-dmaengine-objs := pcm_dmaengine.o
43 obj-$(CONFIG_SND_PCM) += snd-pcm.o
44 obj-$(CONFIG_SND_DMAENGINE_PCM) += snd-pcm-dmaengine.o
/Linux-v5.4/sound/pci/ac97/
Dac97_pcm.c144 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 db… 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()
436 const struct ac97_pcm *pcm; in snd_ac97_pcm_assign() local
466 pcm = &pcms[i]; in snd_ac97_pcm_assign()
469 if (pcm->copy_flag) { in snd_ac97_pcm_assign()
[all …]
/Linux-v5.4/sound/soc/intel/boards/
Dskl_hda_dsp_common.c22 struct skl_hda_hdmi_pcm *pcm; in skl_hda_hdmi_add_pcm() local
25 pcm = devm_kzalloc(card->dev, sizeof(*pcm), GFP_KERNEL); in skl_hda_hdmi_add_pcm()
26 if (!pcm) in skl_hda_hdmi_add_pcm()
31 pcm->codec_dai = snd_soc_card_get_codec_dai(card, dai_name); in skl_hda_hdmi_add_pcm()
32 if (!pcm->codec_dai) in skl_hda_hdmi_add_pcm()
35 pcm->device = device; in skl_hda_hdmi_add_pcm()
36 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skl_hda_hdmi_add_pcm()
135 struct skl_hda_hdmi_pcm *pcm; in skl_hda_hdmi_jack_init() local
139 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { in skl_hda_hdmi_jack_init()
140 component = pcm->codec_dai->component; in skl_hda_hdmi_jack_init()
[all …]
Dskl_nau88l25_max98357a.c186 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()
192 pcm->device = SKL_DPCM_AUDIO_HDMI1_PB; in skylake_hdmi1_init()
193 pcm->codec_dai = dai; in skylake_hdmi1_init()
195 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skylake_hdmi1_init()
204 struct skl_hdmi_pcm *pcm; in skylake_hdmi2_init() local
206 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi2_init()
207 if (!pcm) in skylake_hdmi2_init()
210 pcm->device = SKL_DPCM_AUDIO_HDMI2_PB; in skylake_hdmi2_init()
[all …]
Dskl_nau88l25_ssm4567.c205 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()
211 pcm->device = SKL_DPCM_AUDIO_HDMI1_PB; in skylake_hdmi1_init()
212 pcm->codec_dai = dai; in skylake_hdmi1_init()
214 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skylake_hdmi1_init()
223 struct skl_hdmi_pcm *pcm; in skylake_hdmi2_init() local
225 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi2_init()
226 if (!pcm) in skylake_hdmi2_init()
229 pcm->device = SKL_DPCM_AUDIO_HDMI2_PB; in skylake_hdmi2_init()
[all …]
/Linux-v5.4/sound/soc/sof/
Dpcm.c50 spcm->pcm.pcm_id); in sof_pcm_dsp_params()
107 struct sof_ipc_pcm_params pcm; in sof_pcm_hw_params() local
120 spcm->pcm.pcm_id, substream->stream); in sof_pcm_hw_params()
122 memset(&pcm, 0, sizeof(pcm)); in sof_pcm_hw_params()
128 params_buffer_bytes(params), spcm->pcm.pcm_id); in sof_pcm_hw_params()
145 pcm.params.buffer.pages = PFN_UP(runtime->dma_bytes); in sof_pcm_hw_params()
148 pcm.hdr.size = sizeof(pcm); in sof_pcm_hw_params()
149 pcm.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS; in sof_pcm_hw_params()
150 pcm.comp_id = spcm->stream[substream->stream].comp_id; in sof_pcm_hw_params()
151 pcm.params.hdr.size = sizeof(pcm.params); in sof_pcm_hw_params()
[all …]
/Linux-v5.4/sound/pci/lola/
Dlola_pcm.c24 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->num_streams - str->index; in lola_pcm_open()
246 static void lola_cleanup_slave_streams(struct lola_pcm *pcm, in lola_cleanup_slave_streams() argument
250 for (i = str->index + 1; i < pcm->num_streams; i++) { in lola_cleanup_slave_streams()
251 struct lola_stream *s = &pcm->streams[i]; in lola_cleanup_slave_streams()
[all …]
/Linux-v5.4/sound/soc/codecs/
Dhdac_hdmi.c153 struct hdac_hdmi_pcm *pcm = NULL; in hdac_hdmi_get_pcm_from_cvt() local
155 list_for_each_entry(pcm, &hdmi->pcm_list, head) { in hdac_hdmi_get_pcm_from_cvt()
156 if (pcm->cvt == cvt) in hdac_hdmi_get_pcm_from_cvt()
160 return pcm; in hdac_hdmi_get_pcm_from_cvt()
163 static void hdac_hdmi_jack_report(struct hdac_hdmi_pcm *pcm, in hdac_hdmi_jack_report() argument
175 if (pcm->jack_event == 0) { in hdac_hdmi_jack_report()
178 pcm->pcm_id); in hdac_hdmi_jack_report()
179 snd_soc_jack_report(pcm->jack, SND_JACK_AVOUT, in hdac_hdmi_jack_report()
182 pcm->jack_event++; in hdac_hdmi_jack_report()
189 if (pcm->jack_event == 1) in hdac_hdmi_jack_report()
[all …]
Dhdac_hda.c134 struct hdac_hda_pcm *pcm; in hdac_hda_dai_set_tdm_slot() local
137 pcm = &hda_pvt->pcm[dai->id]; in hdac_hda_dai_set_tdm_slot()
139 pcm[dai->id].stream_tag[SNDRV_PCM_STREAM_PLAYBACK] = tx_mask; in hdac_hda_dai_set_tdm_slot()
141 pcm[dai->id].stream_tag[SNDRV_PCM_STREAM_CAPTURE] = rx_mask; in hdac_hda_dai_set_tdm_slot()
175 hda_pvt->pcm[dai->id].format_val[substream->stream] = format_val; in hdac_hda_dai_hw_params()
185 struct hda_pcm *pcm; in hdac_hda_dai_hw_free() local
188 pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai); in hdac_hda_dai_hw_free()
189 if (!pcm) in hdac_hda_dai_hw_free()
192 hda_stream = &pcm->stream[substream->stream]; in hdac_hda_dai_hw_free()
206 struct hda_pcm *pcm; in hdac_hda_dai_prepare() local
[all …]
/Linux-v5.4/sound/pci/au88x0/
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()
227 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_hw_params()
228 int dma, type = VORTEX_PCM_TYPE(substream->pcm); in snd_vortex_pcm_hw_params()
251 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_hw_params()
284 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_hw_free()
[all …]
/Linux-v5.4/sound/soc/fsl/
Dimx-pcm-fiq.c215 ret = dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, in snd_imx_pcm_mmap()
236 static int imx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in imx_pcm_preallocate_dma_buffer() argument
238 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in imx_pcm_preallocate_dma_buffer()
243 buf->dev.dev = pcm->card->dev; in imx_pcm_preallocate_dma_buffer()
245 buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL); in imx_pcm_preallocate_dma_buffer()
256 struct snd_pcm *pcm = rtd->pcm; in imx_pcm_new() local
263 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in imx_pcm_new()
264 ret = imx_pcm_preallocate_dma_buffer(pcm, in imx_pcm_new()
270 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in imx_pcm_new()
271 ret = imx_pcm_preallocate_dma_buffer(pcm, in imx_pcm_new()
[all …]
/Linux-v5.4/sound/arm/
Dpxa2xx-pcm-lib.c138 return dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, in pxa2xx_pcm_mmap()
143 int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in pxa2xx_pcm_preallocate_dma_buffer() argument
145 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in pxa2xx_pcm_preallocate_dma_buffer()
149 buf->dev.dev = pcm->card->dev; in pxa2xx_pcm_preallocate_dma_buffer()
151 buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL); in pxa2xx_pcm_preallocate_dma_buffer()
159 void pxa2xx_pcm_free_dma_buffers(struct snd_pcm *pcm) in pxa2xx_pcm_free_dma_buffers() argument
166 substream = pcm->streams[stream].substream; in pxa2xx_pcm_free_dma_buffers()
172 dma_free_wc(pcm->card->dev, buf->bytes, buf->area, buf->addr); in pxa2xx_pcm_free_dma_buffers()
181 struct snd_pcm *pcm = rtd->pcm; in pxa2xx_soc_pcm_new() local
188 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in pxa2xx_soc_pcm_new()
[all …]
/Linux-v5.4/sound/pci/emu10k1/
Demupcm.c1398 struct snd_pcm *pcm; in snd_emu10k1_pcm() local
1402 if ((err = snd_pcm_new(emu->card, "emu10k1", device, 32, 1, &pcm)) < 0) in snd_emu10k1_pcm()
1405 pcm->private_data = emu; in snd_emu10k1_pcm()
1407 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1_playback_ops); in snd_emu10k1_pcm()
1408 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1_capture_ops); in snd_emu10k1_pcm()
1410 pcm->info_flags = 0; in snd_emu10k1_pcm()
1411 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in snd_emu10k1_pcm()
1412 strcpy(pcm->name, "ADC Capture/Standard PCM Playback"); in snd_emu10k1_pcm()
1413 emu->pcm = pcm; in snd_emu10k1_pcm()
1415 …for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substre… in snd_emu10k1_pcm()
[all …]
/Linux-v5.4/sound/firewire/oxfw/
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()
326 struct snd_pcm_substream *pcm; in pcm_capture_trigger() local
330 pcm = substream; in pcm_capture_trigger()
[all …]
/Linux-v5.4/arch/mips/include/asm/octeon/
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-v5.4/sound/firewire/fireface/
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()
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-v5.4/sound/core/oss/
Dpcm_oss.c181 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()
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()
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()
375 static int snd_pcm_hw_param_near(struct snd_pcm_substream *pcm, in snd_pcm_hw_param_near() argument
405 min = snd_pcm_hw_param_min(pcm, params, var, min, &mindir); in snd_pcm_hw_param_near()
418 max = snd_pcm_hw_param_max(pcm, params1, var, max, &maxdir); in snd_pcm_hw_param_near()
430 max = snd_pcm_hw_param_max(pcm, params, var, max, &maxdir); in snd_pcm_hw_param_near()
[all …]
/Linux-v5.4/sound/firewire/bebob/
Dbebob_pcm.c25 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()
342 struct snd_pcm *pcm; in snd_bebob_create_pcm_devices() local
345 err = snd_pcm_new(bebob->card, bebob->card->driver, 0, 1, 1, &pcm); in snd_bebob_create_pcm_devices()
[all …]
/Linux-v5.4/sound/firewire/dice/
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()
276 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; in capture_prepare()
290 struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; in playback_prepare()
305 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; in capture_trigger()
323 struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; in playback_trigger()
342 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; in capture_pointer()
349 struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; in playback_pointer()
357 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; in capture_ack()
[all …]
/Linux-v5.4/sound/pci/ctxfi/
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()
211 if (IEC958 == substream->pcm->device) in ct_pcm_playback_prepare()
427 struct snd_pcm *pcm; in ct_alsa_pcm_create() local
436 playback_count, capture_count, &pcm); in ct_alsa_pcm_create()
443 pcm->private_data = atc; in ct_alsa_pcm_create()
444 pcm->info_flags = 0; in ct_alsa_pcm_create()
445 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in ct_alsa_pcm_create()
446 strlcpy(pcm->name, device_name, sizeof(pcm->name)); in ct_alsa_pcm_create()
[all …]
/Linux-v5.4/sound/soc/kirkwood/
Dkirkwood-dma.c251 static int kirkwood_dma_preallocate_dma_buffer(struct snd_pcm *pcm, in kirkwood_dma_preallocate_dma_buffer() argument
254 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in kirkwood_dma_preallocate_dma_buffer()
259 buf->dev.dev = pcm->card->dev; in kirkwood_dma_preallocate_dma_buffer()
260 buf->area = dma_alloc_coherent(pcm->card->dev, size, in kirkwood_dma_preallocate_dma_buffer()
273 struct snd_pcm *pcm = rtd->pcm; in kirkwood_dma_new() local
280 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in kirkwood_dma_new()
281 ret = kirkwood_dma_preallocate_dma_buffer(pcm, in kirkwood_dma_new()
287 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in kirkwood_dma_new()
288 ret = kirkwood_dma_preallocate_dma_buffer(pcm, in kirkwood_dma_new()
297 static void kirkwood_dma_free_dma_buffers(struct snd_pcm *pcm) in kirkwood_dma_free_dma_buffers() argument
[all …]
/Linux-v5.4/sound/pci/oxygen/
Doxygen_pcm.c690 struct snd_pcm *pcm; in oxygen_pcm_init() local
699 0, outs, ins, &pcm); in oxygen_pcm_init()
703 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in oxygen_pcm_init()
706 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in oxygen_pcm_init()
709 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in oxygen_pcm_init()
711 pcm->private_data = chip; in oxygen_pcm_init()
712 strcpy(pcm->name, "Multichannel"); in oxygen_pcm_init()
714 snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream, in oxygen_pcm_init()
720 snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, in oxygen_pcm_init()
730 err = snd_pcm_new(chip->card, "Digital", 1, outs, ins, &pcm); in oxygen_pcm_init()
[all …]

12345678910>>...18