Home
last modified time | relevance | path

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

12345678910>>...12

/linux-2.6.39/sound/soc/samsung/
Dpcm.c165 static void s3c_pcm_snd_txctrl(struct s3c_pcm_info *pcm, int on) in s3c_pcm_snd_txctrl() argument
167 void __iomem *regs = pcm->regs; in s3c_pcm_snd_txctrl()
187 if (!pcm->idleclk) in s3c_pcm_snd_txctrl()
196 static void s3c_pcm_snd_rxctrl(struct s3c_pcm_info *pcm, int on) in s3c_pcm_snd_rxctrl() argument
198 void __iomem *regs = pcm->regs; in s3c_pcm_snd_rxctrl()
218 if (!pcm->idleclk) in s3c_pcm_snd_rxctrl()
231 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(rtd->cpu_dai); in s3c_pcm_trigger() local
234 dev_dbg(pcm->dev, "Entered %s\n", __func__); in s3c_pcm_trigger()
240 spin_lock_irqsave(&pcm->lock, flags); in s3c_pcm_trigger()
243 s3c_pcm_snd_rxctrl(pcm, 1); in s3c_pcm_trigger()
[all …]
/linux-2.6.39/sound/core/
Dpcm.c40 static int snd_pcm_free(struct snd_pcm *pcm);
47 struct snd_pcm *pcm; in snd_pcm_get() local
49 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_get()
50 if (pcm->card == card && pcm->device == device) in snd_pcm_get()
51 return pcm; in snd_pcm_get()
58 struct snd_pcm *pcm; in snd_pcm_next() local
60 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_next()
61 if (pcm->card == card && pcm->device > device) in snd_pcm_next()
62 return pcm->device; in snd_pcm_next()
63 else if (pcm->card->number > card->number) in snd_pcm_next()
[all …]
/linux-2.6.39/sound/pci/ac97/
Dac97_pcm.c158 static unsigned char get_slot_reg(struct ac97_pcm *pcm, unsigned short cidx, in get_slot_reg() argument
165 if (pcm->spdif) in get_slot_reg()
167 if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK) in get_slot_reg()
168 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg()
407 static unsigned int get_rates(struct ac97_pcm *pcm, unsigned int cidx, unsigned short slots, int db… in get_rates() argument
416 reg = get_slot_reg(pcm, cidx, i, dbl); in get_rates()
425 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates()
448 const struct ac97_pcm *pcm; in snd_ac97_pcm_assign() local
478 pcm = &pcms[i]; in snd_ac97_pcm_assign()
481 if (pcm->copy_flag) { in snd_ac97_pcm_assign()
[all …]
/linux-2.6.39/sound/pci/emu10k1/
Demupcm.c1391 struct snd_pcm *pcm; in snd_emu10k1_pcm() local
1398 if ((err = snd_pcm_new(emu->card, "emu10k1", device, 32, 1, &pcm)) < 0) in snd_emu10k1_pcm()
1401 pcm->private_data = emu; in snd_emu10k1_pcm()
1403 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1_playback_ops); in snd_emu10k1_pcm()
1404 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1_capture_ops); in snd_emu10k1_pcm()
1406 pcm->info_flags = 0; in snd_emu10k1_pcm()
1407 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in snd_emu10k1_pcm()
1408 strcpy(pcm->name, "ADC Capture/Standard PCM Playback"); in snd_emu10k1_pcm()
1409 emu->pcm = pcm; in snd_emu10k1_pcm()
1411 …for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substre… in snd_emu10k1_pcm()
[all …]
/linux-2.6.39/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()
171 VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_open()
226 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_hw_params()
227 int dma, type = VORTEX_PCM_TYPE(substream->pcm); in snd_vortex_pcm_hw_params()
276 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_hw_free()
309 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_prepare()
[all …]
/linux-2.6.39/sound/firewire/
Damdtp.c133 struct snd_pcm_substream *pcm,
136 struct snd_pcm_substream *pcm,
244 struct snd_pcm_substream *pcm, in amdtp_write_s32() argument
247 struct snd_pcm_runtime *runtime = pcm->runtime; in amdtp_write_s32()
270 struct snd_pcm_substream *pcm, in amdtp_write_s16() argument
273 struct snd_pcm_runtime *runtime = pcm->runtime; in amdtp_write_s16()
321 struct snd_pcm_substream *pcm; in queue_out_packet() local
340 pcm = ACCESS_ONCE(s->pcm); in queue_out_packet()
341 if (pcm) in queue_out_packet()
342 s->transfer_samples(s, pcm, buffer, data_blocks); in queue_out_packet()
[all …]
Damdtp.h50 struct snd_pcm_substream *pcm,
57 struct snd_pcm_substream *pcm; member
147 struct snd_pcm_substream *pcm) in amdtp_out_stream_pcm_trigger() argument
149 ACCESS_ONCE(s->pcm) = pcm; in amdtp_out_stream_pcm_trigger()
/linux-2.6.39/sound/arm/
Dpxa2xx-pcm.c87 struct snd_pcm *pcm; in pxa2xx_pcm_new() local
92 ret = snd_pcm_new(card, "PXA2xx-PCM", 0, play, capt, &pcm); in pxa2xx_pcm_new()
96 pcm->private_data = client; in pxa2xx_pcm_new()
97 pcm->private_free = pxa2xx_pcm_free_dma_buffers; in pxa2xx_pcm_new()
106 snd_pcm_set_ops(pcm, stream, &pxa2xx_pcm_ops); in pxa2xx_pcm_new()
107 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, stream); in pxa2xx_pcm_new()
113 snd_pcm_set_ops(pcm, stream, &pxa2xx_pcm_ops); in pxa2xx_pcm_new()
114 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, stream); in pxa2xx_pcm_new()
120 *rpcm = pcm; in pxa2xx_pcm_new()
DMakefile8 obj-$(CONFIG_SND_PXA2XX_PCM) += snd-pxa2xx-pcm.o
9 snd-pxa2xx-pcm-objs := pxa2xx-pcm.o
12 snd-pxa2xx-lib-y := pxa2xx-pcm-lib.o
Dpxa2xx-pcm-lib.c207 dma_alloc_writecombine(substream->pcm->card->dev, PAGE_SIZE, in __pxa2xx_pcm_open()
228 dma_free_writecombine(substream->pcm->card->dev, PAGE_SIZE, in __pxa2xx_pcm_close()
239 return dma_mmap_writecombine(substream->pcm->card->dev, vma, in pxa2xx_pcm_mmap()
246 int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in pxa2xx_pcm_preallocate_dma_buffer() argument
248 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in pxa2xx_pcm_preallocate_dma_buffer()
252 buf->dev.dev = pcm->card->dev; in pxa2xx_pcm_preallocate_dma_buffer()
254 buf->area = dma_alloc_writecombine(pcm->card->dev, size, in pxa2xx_pcm_preallocate_dma_buffer()
263 void pxa2xx_pcm_free_dma_buffers(struct snd_pcm *pcm) in pxa2xx_pcm_free_dma_buffers() argument
270 substream = pcm->streams[stream].substream; in pxa2xx_pcm_free_dma_buffers()
276 dma_free_writecombine(pcm->card->dev, buf->bytes, in pxa2xx_pcm_free_dma_buffers()
/linux-2.6.39/sound/pci/hda/
Dhda_eld.c598 void hdmi_eld_update_pcm_info(struct hdmi_eld *eld, struct hda_pcm_stream *pcm, in hdmi_eld_update_pcm_info() argument
606 pcm->rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000; in hdmi_eld_update_pcm_info()
607 pcm->formats = SNDRV_PCM_FMTBIT_S16_LE; in hdmi_eld_update_pcm_info()
608 pcm->maxbps = 16; in hdmi_eld_update_pcm_info()
609 pcm->channels_max = 2; in hdmi_eld_update_pcm_info()
612 pcm->rates |= a->rates; in hdmi_eld_update_pcm_info()
613 if (a->channels > pcm->channels_max) in hdmi_eld_update_pcm_info()
614 pcm->channels_max = a->channels; in hdmi_eld_update_pcm_info()
617 pcm->formats |= SNDRV_PCM_FMTBIT_S32_LE; in hdmi_eld_update_pcm_info()
618 if (pcm->maxbps < 20) in hdmi_eld_update_pcm_info()
[all …]
/linux-2.6.39/sound/pci/oxygen/
Doxygen_pcm.c675 static void oxygen_pcm_free(struct snd_pcm *pcm) in oxygen_pcm_free() argument
677 snd_pcm_lib_preallocate_free_for_all(pcm); in oxygen_pcm_free()
682 struct snd_pcm *pcm; in oxygen_pcm_init() local
691 0, outs, ins, &pcm); in oxygen_pcm_init()
695 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in oxygen_pcm_init()
698 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in oxygen_pcm_init()
701 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in oxygen_pcm_init()
703 pcm->private_data = chip; in oxygen_pcm_init()
704 pcm->private_free = oxygen_pcm_free; in oxygen_pcm_init()
705 strcpy(pcm->name, "Multichannel"); in oxygen_pcm_init()
[all …]
/linux-2.6.39/sound/pci/ctxfi/
Dctpcm.c132 if (IEC958 == substream->pcm->device) { in ct_pcm_playback_open()
137 if (FRONT == substream->pcm->device) in ct_pcm_playback_open()
171 if (IEC958 == substream->pcm->device) in ct_pcm_playback_close()
214 if (IEC958 == substream->pcm->device) in ct_pcm_playback_prepare()
403 struct snd_pcm *pcm; in ct_alsa_pcm_create() local
410 playback_count, capture_count, &pcm); in ct_alsa_pcm_create()
416 pcm->private_data = atc; in ct_alsa_pcm_create()
417 pcm->info_flags = 0; in ct_alsa_pcm_create()
418 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in ct_alsa_pcm_create()
419 strlcpy(pcm->name, device_name, sizeof(pcm->name)); in ct_alsa_pcm_create()
[all …]
/linux-2.6.39/sound/soc/tegra/
Dtegra_pcm.c274 return dma_mmap_writecombine(substream->pcm->card->dev, vma, in tegra_pcm_mmap()
291 static int tegra_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in tegra_pcm_preallocate_dma_buffer() argument
293 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in tegra_pcm_preallocate_dma_buffer()
297 buf->area = dma_alloc_writecombine(pcm->card->dev, size, in tegra_pcm_preallocate_dma_buffer()
303 buf->dev.dev = pcm->card->dev; in tegra_pcm_preallocate_dma_buffer()
310 static void tegra_pcm_deallocate_dma_buffer(struct snd_pcm *pcm, int stream) in tegra_pcm_deallocate_dma_buffer() argument
312 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in tegra_pcm_deallocate_dma_buffer()
318 dma_free_writecombine(pcm->card->dev, buf->bytes, in tegra_pcm_deallocate_dma_buffer()
326 struct snd_soc_dai *dai, struct snd_pcm *pcm) in tegra_pcm_new() argument
336 ret = tegra_pcm_preallocate_dma_buffer(pcm, in tegra_pcm_new()
[all …]
/linux-2.6.39/sound/soc/blackfin/
Dbf5xx-i2s-pcm.c47 struct snd_pcm_substream *pcm = data; in bf5xx_dma_irq() local
48 snd_pcm_period_elapsed(pcm); in bf5xx_dma_irq()
197 static int bf5xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in bf5xx_pcm_preallocate_dma_buffer() argument
199 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in bf5xx_pcm_preallocate_dma_buffer()
204 buf->dev.dev = pcm->card->dev; in bf5xx_pcm_preallocate_dma_buffer()
206 buf->area = dma_alloc_coherent(pcm->card->dev, size, in bf5xx_pcm_preallocate_dma_buffer()
225 static void bf5xx_pcm_free_dma_buffers(struct snd_pcm *pcm) in bf5xx_pcm_free_dma_buffers() argument
232 substream = pcm->streams[stream].substream; in bf5xx_pcm_free_dma_buffers()
249 struct snd_pcm *pcm) in bf5xx_pcm_i2s_new() argument
260 ret = bf5xx_pcm_preallocate_dma_buffer(pcm, in bf5xx_pcm_i2s_new()
[all …]
Dbf5xx-ac97-pcm.c83 struct snd_pcm_substream *pcm = data; in bf5xx_dma_irq() local
85 struct snd_pcm_runtime *runtime = pcm->runtime; in bf5xx_dma_irq()
87 bf5xx_mmap_copy(pcm, runtime->period_size); in bf5xx_dma_irq()
88 if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_dma_irq()
90 snd_pcm_period_elapsed(pcm); in bf5xx_dma_irq()
91 bf5xx_mmap_copy(pcm, runtime->period_size); in bf5xx_dma_irq()
96 snd_pcm_period_elapsed(pcm); in bf5xx_dma_irq()
315 static int bf5xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in bf5xx_pcm_preallocate_dma_buffer() argument
317 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in bf5xx_pcm_preallocate_dma_buffer()
323 buf->dev.dev = pcm->card->dev; in bf5xx_pcm_preallocate_dma_buffer()
[all …]
Dbf5xx-tdm-pcm.c53 struct snd_pcm_substream *pcm = data; in bf5xx_dma_irq() local
54 snd_pcm_period_elapsed(pcm); in bf5xx_dma_irq()
235 static int bf5xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in bf5xx_pcm_preallocate_dma_buffer() argument
237 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in bf5xx_pcm_preallocate_dma_buffer()
242 buf->dev.dev = pcm->card->dev; in bf5xx_pcm_preallocate_dma_buffer()
244 buf->area = dma_alloc_coherent(pcm->card->dev, size * 4, in bf5xx_pcm_preallocate_dma_buffer()
260 static void bf5xx_pcm_free_dma_buffers(struct snd_pcm *pcm) in bf5xx_pcm_free_dma_buffers() argument
267 substream = pcm->streams[stream].substream; in bf5xx_pcm_free_dma_buffers()
284 struct snd_pcm *pcm) in bf5xx_pcm_tdm_new() argument
294 ret = bf5xx_pcm_preallocate_dma_buffer(pcm, in bf5xx_pcm_tdm_new()
[all …]
/linux-2.6.39/sound/core/oss/
Dpcm_oss.c206 static int snd_pcm_hw_param_mask(struct snd_pcm_substream *pcm, in snd_pcm_hw_param_mask() argument
215 int err = snd_pcm_hw_refine(pcm, params); in snd_pcm_hw_param_mask()
265 static int snd_pcm_hw_param_min(struct snd_pcm_substream *pcm, in snd_pcm_hw_param_min() argument
274 int err = snd_pcm_hw_refine(pcm, params); in snd_pcm_hw_param_min()
326 static int snd_pcm_hw_param_max(struct snd_pcm_substream *pcm, in snd_pcm_hw_param_max() argument
335 int err = snd_pcm_hw_refine(pcm, params); in snd_pcm_hw_param_max()
400 static int snd_pcm_hw_param_near(struct snd_pcm_substream *pcm, in snd_pcm_hw_param_near() argument
430 min = snd_pcm_hw_param_min(pcm, params, var, min, &mindir); in snd_pcm_hw_param_near()
443 max = snd_pcm_hw_param_max(pcm, params1, var, max, &maxdir); in snd_pcm_hw_param_near()
455 max = snd_pcm_hw_param_max(pcm, params, var, max, &maxdir); in snd_pcm_hw_param_near()
[all …]
/linux-2.6.39/sound/pcmcia/pdaudiocf/
Dpdaudiocf_pcm.c288 struct snd_pcm *pcm; in snd_pdacf_pcm_new() local
291 err = snd_pcm_new(chip->card, "PDAudioCF", 0, 0, 1, &pcm); in snd_pdacf_pcm_new()
295 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pdacf_pcm_capture_ops); in snd_pdacf_pcm_new()
297 pcm->private_data = chip; in snd_pdacf_pcm_new()
298 pcm->info_flags = 0; in snd_pdacf_pcm_new()
299 strcpy(pcm->name, chip->card->shortname); in snd_pdacf_pcm_new()
300 chip->pcm = pcm; in snd_pdacf_pcm_new()
302 err = snd_ak4117_build(chip->ak4117, pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); in snd_pdacf_pcm_new()
/linux-2.6.39/sound/soc/ep93xx/
Dep93xx-pcm.c213 return dma_mmap_writecombine(substream->pcm->card->dev, vma, in ep93xx_pcm_mmap()
230 static int ep93xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in ep93xx_pcm_preallocate_dma_buffer() argument
232 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in ep93xx_pcm_preallocate_dma_buffer()
237 buf->dev.dev = pcm->card->dev; in ep93xx_pcm_preallocate_dma_buffer()
239 buf->area = dma_alloc_writecombine(pcm->card->dev, size, in ep93xx_pcm_preallocate_dma_buffer()
246 static void ep93xx_pcm_free_dma_buffers(struct snd_pcm *pcm) in ep93xx_pcm_free_dma_buffers() argument
253 substream = pcm->streams[stream].substream; in ep93xx_pcm_free_dma_buffers()
261 dma_free_writecombine(pcm->card->dev, buf->bytes, buf->area, in ep93xx_pcm_free_dma_buffers()
270 struct snd_pcm *pcm) in ep93xx_pcm_new() argument
280 ret = ep93xx_pcm_preallocate_dma_buffer(pcm, in ep93xx_pcm_new()
[all …]
/linux-2.6.39/sound/soc/sh/
Dsiu_pcm.c121 struct device *dev = substream->pcm->card->dev; in siu_pcm_wr_set()
169 struct device *dev = substream->pcm->card->dev; in siu_pcm_rd_set()
217 struct device *dev = substream->pcm->card->dev; in siu_io_tasklet()
278 struct device *dev = siu_stream->substream->pcm->card->dev; in siu_pcm_stmread_stop()
300 struct device *dev = ss->pcm->card->dev; in siu_pcm_hw_params()
316 struct device *dev = ss->pcm->card->dev; in siu_pcm_hw_free()
351 struct device *dev = ss->pcm->card->dev; in siu_pcm_open()
388 struct device *dev = ss->pcm->card->dev; in siu_pcm_close()
411 struct device *dev = ss->pcm->card->dev; in siu_pcm_prepare()
456 struct device *dev = ss->pcm->card->dev; in siu_pcm_trigger()
[all …]
/linux-2.6.39/sound/soc/s6000/
Ds6000-pcm.c104 struct snd_pcm *pcm = data; in s6000_pcm_irq() local
105 struct snd_soc_pcm_runtime *runtime = pcm->private_data; in s6000_pcm_irq()
111 struct snd_pcm_substream *substream = pcm->streams[i].substream; in s6000_pcm_irq()
130 dev_dbg(pcm->dev, "xrun\n"); in s6000_pcm_irq()
143 dev_dbg(pcm->dev, "period elapsed %x %x\n", in s6000_pcm_irq()
434 static void s6000_pcm_free(struct snd_pcm *pcm) in s6000_pcm_free() argument
436 struct snd_soc_pcm_runtime *runtime = pcm->private_data; in s6000_pcm_free()
438 snd_soc_dai_get_dma_data(runtime->cpu_dai, pcm->streams[0].substream); in s6000_pcm_free()
440 free_irq(params->irq, pcm); in s6000_pcm_free()
441 snd_pcm_lib_preallocate_free_for_all(pcm); in s6000_pcm_free()
[all …]
/linux-2.6.39/sound/usb/
Dendpoint.c67 static void snd_usb_audio_pcm_free(struct snd_pcm *pcm) in snd_usb_audio_pcm_free() argument
69 struct snd_usb_stream *stream = pcm->private_data; in snd_usb_audio_pcm_free()
71 stream->pcm = NULL; in snd_usb_audio_pcm_free()
87 struct snd_pcm *pcm; in snd_usb_add_audio_endpoint() local
112 err = snd_pcm_new_stream(as->pcm, stream, 1); in snd_usb_add_audio_endpoint()
129 &pcm); in snd_usb_add_audio_endpoint()
134 as->pcm = pcm; in snd_usb_add_audio_endpoint()
135 pcm->private_data = as; in snd_usb_add_audio_endpoint()
136 pcm->private_free = snd_usb_audio_pcm_free; in snd_usb_add_audio_endpoint()
137 pcm->info_flags = 0; in snd_usb_add_audio_endpoint()
[all …]
/linux-2.6.39/sound/pci/mixart/
Dmixart.c701 struct snd_pcm *pcm = subs->pcm; in snd_mixart_playback_open() local
709 if ( pcm == chip->pcm ) { in snd_mixart_playback_open()
713 snd_BUG_ON(pcm != chip->pcm_dig); in snd_mixart_playback_open()
776 struct snd_pcm *pcm = subs->pcm; in snd_mixart_capture_open() local
784 if ( pcm == chip->pcm ) { in snd_mixart_capture_open()
788 snd_BUG_ON(pcm != chip->pcm_dig); in snd_mixart_capture_open()
912 static void preallocate_buffers(struct snd_mixart *chip, struct snd_pcm *pcm) in preallocate_buffers() argument
920 for (subs = pcm->streams[stream].substream; subs; subs = subs->next, idx++) in preallocate_buffers()
922 subs->dma_device.id = subs->pcm->device << 16 | in preallocate_buffers()
927 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in preallocate_buffers()
[all …]
/linux-2.6.39/sound/soc/fsl/
Dmpc5200_dma.c232 dev_err(substream->pcm->card->dev, "invalid buffer size\n"); in psc_dma_open()
303 struct snd_pcm *pcm) in psc_dma_new() argument
305 struct snd_soc_pcm_runtime *rtd = pcm->private_data; in psc_dma_new()
311 card, dai, pcm); in psc_dma_new()
318 if (pcm->streams[0].substream) { in psc_dma_new()
319 rc = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->card->dev, in psc_dma_new()
320 size, &pcm->streams[0].substream->dma_buffer); in psc_dma_new()
325 if (pcm->streams[1].substream) { in psc_dma_new()
326 rc = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->card->dev, in psc_dma_new()
327 size, &pcm->streams[1].substream->dma_buffer); in psc_dma_new()
[all …]

12345678910>>...12