Home
last modified time | relevance | path

Searched refs:pcm (Results 1 – 200 of 360) sorted by relevance

12

/linux-4.4.14/sound/soc/
Dsoc-generic-dmaengine-pcm.c45 static struct device *dmaengine_dma_dev(struct dmaengine_pcm *pcm, in dmaengine_dma_dev() argument
48 if (!pcm->chan[substream->stream]) in dmaengine_dma_dev()
51 return pcm->chan[substream->stream]->device->dev; in dmaengine_dma_dev()
91 struct dmaengine_pcm *pcm = soc_platform_to_pcm(rtd->platform); in dmaengine_pcm_hw_params() local
101 if (!pcm->config) in dmaengine_pcm_hw_params()
104 prepare_slave_config = pcm->config->prepare_slave_config; in dmaengine_pcm_hw_params()
122 struct dmaengine_pcm *pcm = soc_platform_to_pcm(rtd->platform); in dmaengine_pcm_set_runtime_hwparams() local
123 struct device *dma_dev = dmaengine_dma_dev(pcm, substream); in dmaengine_pcm_set_runtime_hwparams()
124 struct dma_chan *chan = pcm->chan[substream->stream]; in dmaengine_pcm_set_runtime_hwparams()
133 if (pcm->config && pcm->config->pcm_hardware) in dmaengine_pcm_set_runtime_hwparams()
[all …]
DMakefile2 snd-soc-core-objs += soc-pcm.o soc-io.o soc-devres.o soc-ops.o
10 snd-soc-core-objs += soc-generic-dmaengine-pcm.o
/linux-4.4.14/sound/soc/samsung/
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(rtd->cpu_dai); 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 …]
Didma.c341 static void idma_free(struct snd_pcm *pcm) in idma_free() argument
346 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in idma_free()
360 static int preallocate_idma_buffer(struct snd_pcm *pcm, int stream) in preallocate_idma_buffer() argument
362 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in preallocate_idma_buffer()
365 buf->dev.dev = pcm->card->dev; in preallocate_idma_buffer()
380 struct snd_pcm *pcm = rtd->pcm; in idma_new() local
387 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in idma_new()
388 ret = preallocate_idma_buffer(pcm, in idma_new()
DMakefile9 snd-soc-pcm-objs := pcm.o
18 obj-$(CONFIG_SND_SAMSUNG_PCM) += snd-soc-pcm.o
/linux-4.4.14/sound/core/
Dpcm.c42 static int snd_pcm_free(struct snd_pcm *pcm);
49 struct snd_pcm *pcm; in snd_pcm_get() local
51 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_get()
52 if (pcm->card == card && pcm->device == device) in snd_pcm_get()
53 return pcm; in snd_pcm_get()
60 struct snd_pcm *pcm; in snd_pcm_next() local
62 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_next()
63 if (pcm->card == card && pcm->device > device) in snd_pcm_next()
64 return pcm->device; in snd_pcm_next()
65 else if (pcm->card->number > card->number) in snd_pcm_next()
[all …]
DMakefile16 snd-pcm-y := pcm.o pcm_native.o pcm_lib.o pcm_misc.o \
18 snd-pcm-$(CONFIG_SND_PCM_TIMER) += pcm_timer.o
19 snd-pcm-$(CONFIG_SND_DMA_SGBUF) += sgbuf.o
20 snd-pcm-$(CONFIG_SND_PCM_ELD) += pcm_drm_eld.o
21 snd-pcm-$(CONFIG_SND_PCM_IEC958) += pcm_iec958.o
26 snd-pcm-dmaengine-objs := pcm_dmaengine.o
41 obj-$(CONFIG_SND_PCM) += snd-pcm.o
42 obj-$(CONFIG_SND_DMAENGINE_PCM) += snd-pcm-dmaengine.o
Dpcm_trace.h27 __entry->card = (substream)->pcm->card->number;
28 __entry->device = (substream)->pcm->device;
63 __entry->card = (substream)->pcm->card->number;
64 __entry->device = (substream)->pcm->device;
93 __entry->card = (substream)->pcm->card->number;
94 __entry->device = (substream)->pcm->device;
Dpcm_timer.c56 pcm_err(substream->pcm, in snd_pcm_timer_resolution_change()
118 tid.card = substream->pcm->card->number; in snd_pcm_timer_init()
119 tid.device = substream->pcm->device; in snd_pcm_timer_init()
121 if (snd_timer_new(substream->pcm->card, "PCM", &tid, &timer) < 0) in snd_pcm_timer_init()
140 snd_device_free(substream->pcm->card, substream->timer); in snd_pcm_timer_done()
Dpcm_memory.c68 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages()
70 substream->pcm->name, orig_size); in preallocate_pcm_pages()
113 int snd_pcm_lib_preallocate_free_for_all(struct snd_pcm *pcm) in snd_pcm_lib_preallocate_free_for_all() argument
119 for (substream = pcm->streams[stream].substream; substream; substream = substream->next) in snd_pcm_lib_preallocate_free_for_all()
202 …if ((entry = snd_info_create_card_entry(substream->pcm->card, "prealloc", substream->proc_root)) !… in preallocate_info_init()
213 …if ((entry = snd_info_create_card_entry(substream->pcm->card, "prealloc_max", substream->proc_root… in preallocate_info_init()
282 int snd_pcm_lib_preallocate_pages_for_all(struct snd_pcm *pcm, in snd_pcm_lib_preallocate_pages_for_all() argument
290 for (substream = pcm->streams[stream].substream; substream; substream = substream->next) in snd_pcm_lib_preallocate_pages_for_all()
Dpcm_native.c68 static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream);
99 if (substream->pcm->nonatomic) { in snd_pcm_stream_lock()
117 if (substream->pcm->nonatomic) { in snd_pcm_stream_unlock()
137 if (!substream->pcm->nonatomic) in snd_pcm_stream_lock_irq()
152 if (!substream->pcm->nonatomic) in snd_pcm_stream_unlock_irq()
160 if (!substream->pcm->nonatomic) in _snd_pcm_stream_lock_irqsave()
178 if (!substream->pcm->nonatomic) in snd_pcm_stream_unlock_irqrestore()
200 struct snd_pcm *pcm = substream->pcm; in snd_pcm_info() local
204 info->card = pcm->card->number; in snd_pcm_info()
205 info->device = pcm->device; in snd_pcm_info()
[all …]
Dpcm_lib.c147 substream->pcm->card->number, in snd_pcm_debug_name()
148 substream->pcm->device, in snd_pcm_debug_name()
183 pcm_warn(substream->pcm, "XRUN: %s\n", name); in xrun()
324 pcm_err(substream->pcm, in snd_pcm_update_hw_ptr0()
501 void snd_pcm_set_ops(struct snd_pcm *pcm, int direction, in snd_pcm_set_ops() argument
504 struct snd_pcm_str *stream = &pcm->streams[direction]; in snd_pcm_set_ops()
523 runtime->sync.id32[0] = substream->pcm->card->number; in snd_pcm_set_sync()
1656 int snd_pcm_hw_param_first(struct snd_pcm_substream *pcm, in snd_pcm_hw_param_first() argument
1664 int err = snd_pcm_hw_refine(pcm, params); in snd_pcm_hw_param_first()
1703 int snd_pcm_hw_param_last(struct snd_pcm_substream *pcm, in snd_pcm_hw_param_last() argument
[all …]
/linux-4.4.14/Documentation/DocBook/
Dalsa-driver-api.xml.db28 API-snd-pcm-format-name
29 API-snd-pcm-new-stream
30 API-snd-pcm-new
31 API-snd-pcm-new-internal
32 API-snd-pcm-notify
33 API-snd-pcm-set-ops
34 API-snd-pcm-set-sync
39 API-snd-pcm-hw-rule-add
40 API-snd-pcm-hw-constraint-mask64
41 API-snd-pcm-hw-constraint-integer
[all …]
Ddevice-drivers.xml.db630 API-snd-pcm-stream-linked
631 API-snd-pcm-stream-lock-irqsave
632 API-snd-pcm-group-for-each-entry
633 API-snd-pcm-running
639 API-snd-pcm-lib-buffer-bytes
640 API-snd-pcm-lib-period-bytes
641 API-snd-pcm-playback-avail
642 API-snd-pcm-capture-avail
643 API-snd-pcm-playback-hw-avail
644 API-snd-pcm-capture-hw-avail
[all …]
D.alsa-driver-api.xml.cmd2pcm.c sound/core/pcm_lib.c sound/core/pcm_native.c include/sound/pcm.h sound/core/pcm_misc.c sound…
/linux-4.4.14/sound/pci/ac97/
Dac97_pcm.c159 static unsigned char get_slot_reg(struct ac97_pcm *pcm, unsigned short cidx, in get_slot_reg() argument
166 if (pcm->spdif) in get_slot_reg()
168 if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK) in get_slot_reg()
169 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg()
408 static unsigned int get_rates(struct ac97_pcm *pcm, unsigned int cidx, unsigned short slots, int db… in get_rates() argument
417 reg = get_slot_reg(pcm, cidx, i, dbl); in get_rates()
426 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates()
451 const struct ac97_pcm *pcm; in snd_ac97_pcm_assign() local
481 pcm = &pcms[i]; in snd_ac97_pcm_assign()
484 if (pcm->copy_flag) { in snd_ac97_pcm_assign()
[all …]
/linux-4.4.14/sound/pci/lola/
Dlola_pcm.c37 return &chip->pcm[substream->stream]; in lola_get_pcm()
42 struct lola_pcm *pcm = lola_get_pcm(substream); in lola_get_stream() local
44 return &pcm->streams[idx]; in lola_get_stream()
141 if (s->pcm->card != substream->pcm->card) in lola_sync_wait_for_fifo()
172 if (s->pcm->card != substream->pcm->card) in lola_sync_pause()
226 struct lola_pcm *pcm = lola_get_pcm(substream); in lola_pcm_open() local
239 runtime->hw.channels_max = pcm->num_streams - str->index; in lola_pcm_open()
259 static void lola_cleanup_slave_streams(struct lola_pcm *pcm, in lola_cleanup_slave_streams() argument
263 for (i = str->index + 1; i < pcm->num_streams; i++) { in lola_cleanup_slave_streams()
264 struct lola_stream *s = &pcm->streams[i]; in lola_cleanup_slave_streams()
[all …]
Dlola.c250 for (i = 0; in_sts && i < chip->pcm[CAPT].num_streams; i++) { in lola_interrupt()
264 for (i = 0; out_sts && i < chip->pcm[PLAY].num_streams; i++) { in lola_interrupt()
299 lola_pcm_update(chip, &chip->pcm[CAPT], notify_ins); in lola_interrupt()
300 lola_pcm_update(chip, &chip->pcm[PLAY], notify_outs); in lola_interrupt()
341 val = (1 << chip->pcm[PLAY].num_streams) - 1; in lola_irq_enable()
343 val = (1 << chip->pcm[CAPT].num_streams) - 1; in lola_irq_enable()
657 chip->pcm[CAPT].num_streams = (dever >> 0) & 0x3ff; in lola_create()
658 chip->pcm[PLAY].num_streams = (dever >> 10) & 0x3ff; in lola_create()
661 chip->pcm[CAPT].num_streams, chip->pcm[PLAY].num_streams, in lola_create()
665 if (chip->pcm[CAPT].num_streams > MAX_STREAM_IN_COUNT || in lola_create()
[all …]
/linux-4.4.14/sound/firewire/tascam/
Damdtp-tascam.c19 struct snd_pcm_substream *pcm,
41 struct snd_pcm_substream *pcm, in write_pcm_s32() argument
45 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s32()
66 struct snd_pcm_substream *pcm, in write_pcm_s16() argument
70 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s16()
91 struct snd_pcm_substream *pcm, in read_pcm_s32() argument
95 struct snd_pcm_runtime *runtime = pcm->runtime; in read_pcm_s32()
182 struct snd_pcm_substream *pcm; in process_tx_data_blocks() local
184 pcm = ACCESS_ONCE(s->pcm); in process_tx_data_blocks()
185 if (data_blocks > 0 && pcm) in process_tx_data_blocks()
[all …]
Dtascam-pcm.c298 struct snd_pcm *pcm; in snd_tscm_create_pcm_devices() local
301 err = snd_pcm_new(tscm->card, tscm->card->driver, 0, 1, 1, &pcm); in snd_tscm_create_pcm_devices()
305 pcm->private_data = tscm; in snd_tscm_create_pcm_devices()
306 snprintf(pcm->name, sizeof(pcm->name), in snd_tscm_create_pcm_devices()
308 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcm_playback_ops); in snd_tscm_create_pcm_devices()
309 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pcm_capture_ops); in snd_tscm_create_pcm_devices()
DMakefile2 tascam-pcm.o tascam-hwdep.o tascam-transaction.o \
/linux-4.4.14/sound/soc/omap/
Domap-pcm.c159 return dma_mmap_writecombine(substream->pcm->card->dev, vma, in omap_pcm_mmap()
176 static int omap_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, in omap_pcm_preallocate_dma_buffer() argument
179 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in omap_pcm_preallocate_dma_buffer()
184 buf->dev.dev = pcm->card->dev; in omap_pcm_preallocate_dma_buffer()
186 buf->area = dma_alloc_writecombine(pcm->card->dev, size, in omap_pcm_preallocate_dma_buffer()
195 static void omap_pcm_free_dma_buffers(struct snd_pcm *pcm) in omap_pcm_free_dma_buffers() argument
202 substream = pcm->streams[stream].substream; in omap_pcm_free_dma_buffers()
210 dma_free_writecombine(pcm->card->dev, buf->bytes, in omap_pcm_free_dma_buffers()
219 struct snd_pcm *pcm = rtd->pcm; in omap_pcm_new() local
226 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in omap_pcm_new()
[all …]
/linux-4.4.14/sound/pci/au88x0/
Dau88x0_pcm.c158 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_open()
160 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_A3D) { in snd_vortex_pcm_open()
164 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_SPDIF) { in snd_vortex_pcm_open()
178 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB in snd_vortex_pcm_open()
179 || VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S) in snd_vortex_pcm_open()
184 VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_open()
239 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_hw_params()
240 int dma, type = VORTEX_PCM_TYPE(substream->pcm); in snd_vortex_pcm_hw_params()
263 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_hw_params()
296 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_hw_free()
[all …]
/linux-4.4.14/sound/soc/fsl/
Dimx-pcm-fiq.c220 ret = dma_mmap_writecombine(substream->pcm->card->dev, vma, in snd_imx_pcm_mmap()
241 static int imx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in imx_pcm_preallocate_dma_buffer() argument
243 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in imx_pcm_preallocate_dma_buffer()
248 buf->dev.dev = pcm->card->dev; in imx_pcm_preallocate_dma_buffer()
250 buf->area = dma_alloc_writecombine(pcm->card->dev, size, in imx_pcm_preallocate_dma_buffer()
262 struct snd_pcm *pcm = rtd->pcm; in imx_pcm_new() local
269 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in imx_pcm_new()
270 ret = imx_pcm_preallocate_dma_buffer(pcm, in imx_pcm_new()
276 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in imx_pcm_new()
277 ret = imx_pcm_preallocate_dma_buffer(pcm, in imx_pcm_new()
[all …]
Dmpc5200_dma.c231 dev_err(substream->pcm->card->dev, "invalid buffer size\n"); in psc_dma_open()
304 struct snd_pcm *pcm = rtd->pcm; in psc_dma_new() local
310 card, dai, pcm); in psc_dma_new()
316 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in psc_dma_new()
317 rc = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->card->dev, in psc_dma_new()
318 size, &pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in psc_dma_new()
323 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in psc_dma_new()
324 rc = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->card->dev, in psc_dma_new()
325 size, &pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->dma_buffer); in psc_dma_new()
333 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) in psc_dma_new()
[all …]
Dfsl_asrc_dma.c339 struct snd_pcm *pcm = rtd->pcm; in fsl_asrc_dma_pcm_new() local
349 substream = pcm->streams[i].substream; in fsl_asrc_dma_pcm_new()
353 ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->card->dev, in fsl_asrc_dma_pcm_new()
364 if (--i == 0 && pcm->streams[i].substream) in fsl_asrc_dma_pcm_new()
365 snd_dma_free_pages(&pcm->streams[i].substream->dma_buffer); in fsl_asrc_dma_pcm_new()
370 static void fsl_asrc_dma_pcm_free(struct snd_pcm *pcm) in fsl_asrc_dma_pcm_free() argument
376 substream = pcm->streams[i].substream; in fsl_asrc_dma_pcm_free()
Dfsl_dma.c288 struct snd_pcm *pcm = rtd->pcm; in fsl_dma_new() local
299 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in fsl_dma_new()
302 &pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in fsl_dma_new()
309 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in fsl_dma_new()
312 &pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->dma_buffer); in fsl_dma_new()
315 snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in fsl_dma_new()
825 static void fsl_dma_free_dma_buffers(struct snd_pcm *pcm) in fsl_dma_free_dma_buffers() argument
830 for (i = 0; i < ARRAY_SIZE(pcm->streams); i++) { in fsl_dma_free_dma_buffers()
831 substream = pcm->streams[i].substream; in fsl_dma_free_dma_buffers()
/linux-4.4.14/sound/pci/emu10k1/
Demupcm.c1405 struct snd_pcm *pcm; in snd_emu10k1_pcm() local
1409 if ((err = snd_pcm_new(emu->card, "emu10k1", device, 32, 1, &pcm)) < 0) in snd_emu10k1_pcm()
1412 pcm->private_data = emu; in snd_emu10k1_pcm()
1414 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1_playback_ops); in snd_emu10k1_pcm()
1415 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1_capture_ops); in snd_emu10k1_pcm()
1417 pcm->info_flags = 0; in snd_emu10k1_pcm()
1418 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in snd_emu10k1_pcm()
1419 strcpy(pcm->name, "ADC Capture/Standard PCM Playback"); in snd_emu10k1_pcm()
1420 emu->pcm = pcm; in snd_emu10k1_pcm()
1422 …for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substre… in snd_emu10k1_pcm()
[all …]
Dp16v.c214 runtime->sync.id32[0] = substream->pcm->card->number; in snd_p16v_pcm_open_playback_channel()
272 emu->p16v_voices[substream->pcm->device - emu->p16v_device_offset].use = 0; in snd_p16v_pcm_close_playback()
342 int channel = substream->pcm->device - emu->p16v_device_offset; in snd_p16v_pcm_prepare_playback()
404 int channel = substream->pcm->device - emu->p16v_device_offset; in snd_p16v_pcm_prepare_capture()
493 channel = substream->pcm->device-emu->p16v_device_offset; in snd_p16v_pcm_trigger_playback()
556 int channel = substream->pcm->device - emu->p16v_device_offset; in snd_p16v_pcm_pointer_playback()
642 struct snd_pcm *pcm; in snd_p16v_pcm() local
650 if ((err = snd_pcm_new(emu->card, "p16v", device, 1, capture, &pcm)) < 0) in snd_p16v_pcm()
653 pcm->private_data = emu; in snd_p16v_pcm()
656 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_p16v_playback_front_ops); in snd_p16v_pcm()
[all …]
Dvoice.c98 voice->pcm = 1; in voice_alloc()
138 pvoice->use = pvoice->pcm = pvoice->synth = pvoice->midi = pvoice->efx = 0; in snd_emu10k1_voice_alloc()
161 pvoice->use = pvoice->pcm = pvoice->synth = pvoice->midi = pvoice->efx = 0; in snd_emu10k1_voice_free()
Demu10k1x.c245 struct snd_pcm *pcm; member
423 epcm->voice = &epcm->emu->voices[substream->pcm->device]; in snd_emu10k1x_pcm_hw_params()
852 struct snd_pcm *pcm; in snd_emu10k1x_pcm() local
860 if ((err = snd_pcm_new(emu->card, "emu10k1x", device, 1, capture, &pcm)) < 0) in snd_emu10k1x_pcm()
863 pcm->private_data = emu; in snd_emu10k1x_pcm()
867 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1x_playback_ops); in snd_emu10k1x_pcm()
868 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1x_capture_ops); in snd_emu10k1x_pcm()
872 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1x_playback_ops); in snd_emu10k1x_pcm()
876 pcm->info_flags = 0; in snd_emu10k1x_pcm()
879 strcpy(pcm->name, "EMU10K1X Front"); in snd_emu10k1x_pcm()
[all …]
Demufx.c999 struct snd_emu10k1_fx8010_pcm *pcm; in snd_emu10k1_ipcm_poke() local
1005 pcm = &emu->fx8010.pcm[ipcm->substream]; in snd_emu10k1_ipcm_poke()
1008 if (pcm->opened) { in snd_emu10k1_ipcm_poke()
1013 pcm->valid = 0; in snd_emu10k1_ipcm_poke()
1020 pcm->valid = 1; in snd_emu10k1_ipcm_poke()
1021 pcm->opened = 0; in snd_emu10k1_ipcm_poke()
1022 pcm->channels = ipcm->channels; in snd_emu10k1_ipcm_poke()
1023 pcm->tram_start = ipcm->tram_start; in snd_emu10k1_ipcm_poke()
1024 pcm->buffer_size = ipcm->buffer_size; in snd_emu10k1_ipcm_poke()
1025 pcm->gpr_size = ipcm->gpr_size; in snd_emu10k1_ipcm_poke()
[all …]
/linux-4.4.14/sound/arm/
Dpxa2xx-pcm.c86 struct snd_pcm *pcm; in pxa2xx_pcm_new() local
91 ret = snd_pcm_new(card, "PXA2xx-PCM", 0, play, capt, &pcm); in pxa2xx_pcm_new()
95 pcm->private_data = client; in pxa2xx_pcm_new()
96 pcm->private_free = pxa2xx_pcm_free_dma_buffers; in pxa2xx_pcm_new()
104 snd_pcm_set_ops(pcm, stream, &pxa2xx_pcm_ops); in pxa2xx_pcm_new()
105 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, stream); in pxa2xx_pcm_new()
111 snd_pcm_set_ops(pcm, stream, &pxa2xx_pcm_ops); in pxa2xx_pcm_new()
112 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, stream); in pxa2xx_pcm_new()
118 *rpcm = pcm; in pxa2xx_pcm_new()
Dpxa2xx-pcm-lib.c144 return dma_mmap_writecombine(substream->pcm->card->dev, vma, in pxa2xx_pcm_mmap()
151 int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in pxa2xx_pcm_preallocate_dma_buffer() argument
153 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in pxa2xx_pcm_preallocate_dma_buffer()
157 buf->dev.dev = pcm->card->dev; in pxa2xx_pcm_preallocate_dma_buffer()
159 buf->area = dma_alloc_writecombine(pcm->card->dev, size, in pxa2xx_pcm_preallocate_dma_buffer()
168 void pxa2xx_pcm_free_dma_buffers(struct snd_pcm *pcm) in pxa2xx_pcm_free_dma_buffers() argument
175 substream = pcm->streams[stream].substream; in pxa2xx_pcm_free_dma_buffers()
181 dma_free_writecombine(pcm->card->dev, buf->bytes, in pxa2xx_pcm_free_dma_buffers()
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
Daaci.c418 runtime->hw.rates = aacirun->pcm->rates; in aaci_pcm_open()
432 if (aacirun->pcm->r[1].slots) in aaci_pcm_open()
486 snd_ac97_pcm_close(aacirun->pcm); in aaci_pcm_hw_free()
515 snd_ac97_pcm_close(aacirun->pcm); in aaci_pcm_hw_params()
528 err = snd_ac97_pcm_open(aacirun->pcm, rate, channels, in aaci_pcm_hw_params()
529 aacirun->pcm->r[dbl].slots); in aaci_pcm_hw_params()
760 snd_pcm_suspend_all(aaci->pcm); in aaci_do_suspend()
882 aaci->playback.pcm = &ac97_bus->pcms[0]; in aaci_probe_ac97()
883 aaci->capture.pcm = &ac97_bus->pcms[1]; in aaci_probe_ac97()
931 struct snd_pcm *pcm; in aaci_init_pcm() local
[all …]
Daaci.h207 struct ac97_pcm *pcm; member
243 struct snd_pcm *pcm; member
/linux-4.4.14/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()
182 substream->runtime->hw.channels_min = formation.pcm; in limit_to_current_params()
183 substream->runtime->hw.channels_max = formation.pcm; in limit_to_current_params()
342 struct snd_pcm_substream *pcm; in pcm_capture_trigger() local
346 pcm = substream; in pcm_capture_trigger()
[all …]
Doxfw-stream.c81 if ((formation.rate == rate) && (formation.pcm == pcm_channels)) in set_stream_format()
142 if (pcm_channels == 0 || pcm_channels == formation.pcm) in start_stream()
150 pcm_channels = formation.pcm; in start_stream()
302 pcm_channels = formation.pcm; in snd_oxfw_stream_start_simplex()
304 if ((formation.rate != rate) || (formation.pcm != pcm_channels)) { in snd_oxfw_stream_start_simplex()
454 formation->pcm += channels; in snd_oxfw_stream_parse_format()
489 if (formation->pcm > AM824_MAX_CHANNELS_FOR_PCM || in snd_oxfw_stream_parse_format()
Doxfw-proc.c44 formation.rate, formation.pcm, formation.midi); in proc_read_formation()
74 formation.rate, formation.pcm, formation.midi); in proc_read_formation()
DMakefile1 snd-oxfw-objs := oxfw-command.o oxfw-stream.o oxfw-control.o oxfw-pcm.o \
/linux-4.4.14/sound/soc/blackfin/
Dbf5xx-ac97-pcm.c82 struct snd_pcm_substream *pcm = data; in bf5xx_dma_irq() local
84 struct snd_pcm_runtime *runtime = pcm->runtime; in bf5xx_dma_irq()
86 bf5xx_mmap_copy(pcm, runtime->period_size); in bf5xx_dma_irq()
87 if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_dma_irq()
89 snd_pcm_period_elapsed(pcm); in bf5xx_dma_irq()
90 bf5xx_mmap_copy(pcm, runtime->period_size); in bf5xx_dma_irq()
95 snd_pcm_period_elapsed(pcm); in bf5xx_dma_irq()
316 static int bf5xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in bf5xx_pcm_preallocate_dma_buffer() argument
318 struct snd_soc_pcm_runtime *rtd = pcm->private_data; in bf5xx_pcm_preallocate_dma_buffer()
321 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in bf5xx_pcm_preallocate_dma_buffer()
[all …]
DMakefile2 snd-bf5xx-ac97-objs := bf5xx-ac97-pcm.o
3 snd-bf5xx-i2s-objs := bf5xx-i2s-pcm.o
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()
334 return snd_pcm_lib_preallocate_pages_for_all(rtd->pcm, in bf5xx_pcm_i2s_new()
/linux-4.4.14/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 …]
DMakefile8 snd-pcm-oss-y := pcm_oss.o
9 snd-pcm-oss-$(CONFIG_SND_PCM_OSS_PLUGINS) += pcm_plugin.o \
13 obj-$(CONFIG_SND_PCM_OSS) += snd-pcm-oss.o
/linux-4.4.14/sound/soc/atmel/
DMakefile2 snd-soc-atmel-pcm-pdc-objs := atmel-pcm-pdc.o
3 snd-soc-atmel-pcm-dma-objs := atmel-pcm-dma.o
6 obj-$(CONFIG_SND_ATMEL_SOC_PDC) += snd-soc-atmel-pcm-pdc.o
7 obj-$(CONFIG_SND_ATMEL_SOC_DMA) += snd-soc-atmel-pcm-dma.o
Datmel-pcm-pdc.c50 static int atmel_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, in atmel_pcm_preallocate_dma_buffer() argument
53 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in atmel_pcm_preallocate_dma_buffer()
58 buf->dev.dev = pcm->card->dev; in atmel_pcm_preallocate_dma_buffer()
60 buf->area = dma_alloc_coherent(pcm->card->dev, size, in atmel_pcm_preallocate_dma_buffer()
83 struct snd_pcm *pcm = rtd->pcm; in atmel_pcm_new() local
90 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in atmel_pcm_new()
92 ret = atmel_pcm_preallocate_dma_buffer(pcm, in atmel_pcm_new()
98 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in atmel_pcm_new()
100 ret = atmel_pcm_preallocate_dma_buffer(pcm, in atmel_pcm_new()
109 static void atmel_pcm_free(struct snd_pcm *pcm) in atmel_pcm_free() argument
[all …]
/linux-4.4.14/sound/firewire/digi00x/
Damdtp-dot.c52 struct snd_pcm_substream *pcm,
154 static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in write_pcm_s32() argument
158 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s32()
180 static void write_pcm_s16(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in write_pcm_s16() argument
184 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s16()
206 static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in read_pcm_s32() argument
210 struct snd_pcm_runtime *runtime = pcm->runtime; in read_pcm_s32()
377 struct snd_pcm_substream *pcm; in process_tx_data_blocks() local
380 pcm = ACCESS_ONCE(s->pcm); in process_tx_data_blocks()
381 if (pcm) { in process_tx_data_blocks()
[all …]
Ddigi00x-pcm.c359 struct snd_pcm *pcm; in snd_dg00x_create_pcm_devices() local
362 err = snd_pcm_new(dg00x->card, dg00x->card->driver, 0, 1, 1, &pcm); in snd_dg00x_create_pcm_devices()
366 pcm->private_data = dg00x; in snd_dg00x_create_pcm_devices()
367 snprintf(pcm->name, sizeof(pcm->name), in snd_dg00x_create_pcm_devices()
369 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcm_playback_ops); in snd_dg00x_create_pcm_devices()
370 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pcm_capture_ops); in snd_dg00x_create_pcm_devices()
DMakefile2 digi00x-pcm.o digi00x-hwdep.o \
/linux-4.4.14/sound/firewire/
Damdtp-stream.c339 struct snd_pcm_substream *pcm, in update_pcm_pointers() argument
345 if (ptr >= pcm->runtime->buffer_size) in update_pcm_pointers()
346 ptr -= pcm->runtime->buffer_size; in update_pcm_pointers()
350 if (s->pcm_period_pointer >= pcm->runtime->period_size) { in update_pcm_pointers()
351 s->pcm_period_pointer -= pcm->runtime->period_size; in update_pcm_pointers()
360 struct snd_pcm_substream *pcm = ACCESS_ONCE(s->pcm); in pcm_period_tasklet() local
362 if (pcm) in pcm_period_tasklet()
363 snd_pcm_period_elapsed(pcm); in pcm_period_tasklet()
413 struct snd_pcm_substream *pcm; in handle_out_packet() local
432 pcm = ACCESS_ONCE(s->pcm); in handle_out_packet()
[all …]
Damdtp-am824.c42 struct snd_pcm_substream *pcm,
155 struct snd_pcm_substream *pcm, in write_pcm_s32() argument
159 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s32()
181 struct snd_pcm_substream *pcm, in write_pcm_s16() argument
185 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s16()
207 struct snd_pcm_substream *pcm, in read_pcm_s32() argument
211 struct snd_pcm_runtime *runtime = pcm->runtime; in read_pcm_s32()
406 struct snd_pcm_substream *pcm = ACCESS_ONCE(s->pcm); in process_rx_data_blocks() local
409 if (pcm) { in process_rx_data_blocks()
410 p->transfer_samples(s, pcm, buffer, data_blocks); in process_rx_data_blocks()
[all …]
Damdtp-stream.h131 struct snd_pcm_substream *pcm; member
203 return !!s->pcm; in amdtp_stream_pcm_running()
216 struct snd_pcm_substream *pcm) in amdtp_stream_pcm_trigger() argument
218 ACCESS_ONCE(s->pcm) = pcm; in amdtp_stream_pcm_trigger()
Disight.c54 struct snd_pcm_substream *pcm; member
90 struct snd_pcm_runtime *runtime = isight->pcm->runtime; in isight_update_pointers()
104 snd_pcm_period_elapsed(isight->pcm); in isight_update_pointers()
117 runtime = isight->pcm->runtime; in isight_samples()
135 snd_pcm_stop_xrun(isight->pcm); in isight_pcm_abort()
147 runtime = isight->pcm->runtime; in isight_dropped_samples()
459 struct snd_pcm *pcm; in isight_create_pcm() local
462 err = snd_pcm_new(isight->card, "iSight", 0, 0, 1, &pcm); in isight_create_pcm()
465 pcm->private_data = isight; in isight_create_pcm()
466 strcpy(pcm->name, "iSight"); in isight_create_pcm()
[all …]
/linux-4.4.14/arch/x86/mm/
Dioremap.c32 enum page_cache_mode pcm) in ioremap_change_attr() argument
37 switch (pcm) { in ioremap_change_attr()
84 unsigned long size, enum page_cache_mode pcm, void *caller) in __ioremap_caller() argument
134 pcm, &new_pcm); in __ioremap_caller()
140 if (pcm != new_pcm) { in __ioremap_caller()
141 if (!is_new_memtype_allowed(phys_addr, size, pcm, new_pcm)) { in __ioremap_caller()
146 pcm, new_pcm); in __ioremap_caller()
149 pcm = new_pcm; in __ioremap_caller()
153 switch (pcm) { in __ioremap_caller()
184 if (kernel_map_sync_memtype(phys_addr, size, pcm)) in __ioremap_caller()
[all …]
Dpat.c728 enum page_cache_mode pcm = _PAGE_CACHE_MODE_WB; in phys_mem_access_prot_allowed() local
734 pcm = _PAGE_CACHE_MODE_UC_MINUS; in phys_mem_access_prot_allowed()
751 pcm = _PAGE_CACHE_MODE_UC; in phys_mem_access_prot_allowed()
756 cachemode2protval(pcm)); in phys_mem_access_prot_allowed()
765 enum page_cache_mode pcm) in kernel_map_sync_memtype() argument
783 if (ioremap_change_attr((unsigned long)__va(base), id_sz, pcm) < 0) { in kernel_map_sync_memtype()
786 cattr_name(pcm), in kernel_map_sync_memtype()
804 enum page_cache_mode pcm = want_pcm; in reserve_pfn_range() local
817 pcm = lookup_memtype(paddr); in reserve_pfn_range()
818 if (want_pcm != pcm) { in reserve_pfn_range()
[all …]
Diomap_32.c36 enum page_cache_mode pcm = _PAGE_CACHE_MODE_WC; in iomap_create_wc() local
42 ret = io_reserve_memtype(base, base + size, &pcm); in iomap_create_wc()
46 *prot = __pgprot(__PAGE_KERNEL | cachemode2protval(pcm)); in iomap_create_wc()
Dpat_internal.h17 static inline char *cattr_name(enum page_cache_mode pcm) in cattr_name() argument
19 switch (pcm) { in cattr_name()
/linux-4.4.14/sound/soc/pxa/
Dpxa2xx-pcm.c63 struct snd_pcm *pcm = rtd->pcm; in pxa2xx_soc_pcm_new() local
70 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in pxa2xx_soc_pcm_new()
71 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, in pxa2xx_soc_pcm_new()
77 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in pxa2xx_soc_pcm_new()
78 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, in pxa2xx_soc_pcm_new()
Dmmp-pcm.c144 static void mmp_pcm_free_dma_buffers(struct snd_pcm *pcm) in mmp_pcm_free_dma_buffers() argument
158 substream = pcm->streams[stream].substream; in mmp_pcm_free_dma_buffers()
180 buf->dev.dev = substream->pcm->card->dev; in mmp_pcm_preallocate_dma_buffer()
197 struct snd_pcm *pcm = rtd->pcm; in mmp_pcm_new() local
201 substream = pcm->streams[stream].substream; in mmp_pcm_new()
211 mmp_pcm_free_dma_buffers(pcm); in mmp_pcm_new()
DMakefile2 snd-soc-pxa2xx-objs := pxa2xx-pcm.o
6 snd-soc-mmp-objs := mmp-pcm.o
/linux-4.4.14/sound/firewire/bebob/
Dbebob_pcm.c26 if (formations[i].pcm == 0) in hw_rule_rate()
29 if (!snd_interval_test(c, formations[i].pcm)) in hw_rule_rate()
55 if (formations[i].pcm == 0) in hw_rule_channels()
61 t.min = min(t.min, formations[i].pcm); in hw_rule_channels()
62 t.max = max(t.max, formations[i].pcm); in hw_rule_channels()
83 if (formations[i].pcm == 0) in limit_channels_and_rates()
86 hw->channels_min = min(hw->channels_min, formations[i].pcm); in limit_channels_and_rates()
87 hw->channels_max = max(hw->channels_max, formations[i].pcm); in limit_channels_and_rates()
376 struct snd_pcm *pcm; in snd_bebob_create_pcm_devices() local
379 err = snd_pcm_new(bebob->card, bebob->card->driver, 0, 1, 1, &pcm); in snd_bebob_create_pcm_devices()
[all …]
Dbebob_stream.c260 unsigned int pcm, midi, location; in map_data_channels() local
291 pcm = 0; in map_data_channels()
358 location = pcm + sec_loc; in map_data_channels()
370 pcm += channels; in map_data_channels()
433 pcm_channels = bebob->tx_stream_formations[index].pcm; in make_both_connections()
441 pcm_channels = bebob->rx_stream_formations[index].pcm; in make_both_connections()
850 formation[i].pcm += channels; in parse_stream_formation()
879 if (formation[i].pcm > AM824_MAX_CHANNELS_FOR_PCM || in parse_stream_formation()
/linux-4.4.14/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()
429 struct snd_pcm *pcm; in ct_alsa_pcm_create() local
438 playback_count, capture_count, &pcm); in ct_alsa_pcm_create()
445 pcm->private_data = atc; in ct_alsa_pcm_create()
446 pcm->info_flags = 0; in ct_alsa_pcm_create()
447 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in ct_alsa_pcm_create()
448 strlcpy(pcm->name, device_name, sizeof(pcm->name)); in ct_alsa_pcm_create()
[all …]
/linux-4.4.14/sound/soc/kirkwood/
Dkirkwood-dma.c255 static int kirkwood_dma_preallocate_dma_buffer(struct snd_pcm *pcm, in kirkwood_dma_preallocate_dma_buffer() argument
258 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in kirkwood_dma_preallocate_dma_buffer()
263 buf->dev.dev = pcm->card->dev; in kirkwood_dma_preallocate_dma_buffer()
264 buf->area = dma_alloc_coherent(pcm->card->dev, size, in kirkwood_dma_preallocate_dma_buffer()
277 struct snd_pcm *pcm = rtd->pcm; in kirkwood_dma_new() local
284 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in kirkwood_dma_new()
285 ret = kirkwood_dma_preallocate_dma_buffer(pcm, in kirkwood_dma_new()
291 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in kirkwood_dma_new()
292 ret = kirkwood_dma_preallocate_dma_buffer(pcm, in kirkwood_dma_new()
301 static void kirkwood_dma_free_dma_buffers(struct snd_pcm *pcm) in kirkwood_dma_free_dma_buffers() argument
[all …]
/linux-4.4.14/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 pcm->nonatomic = true; in snd_pdacf_pcm_new()
300 strcpy(pcm->name, chip->card->shortname); in snd_pdacf_pcm_new()
301 chip->pcm = pcm; in snd_pdacf_pcm_new()
303 err = snd_ak4117_build(chip->ak4117, pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); in snd_pdacf_pcm_new()
/linux-4.4.14/sound/pci/oxygen/
Doxygen_pcm.c702 struct snd_pcm *pcm; in oxygen_pcm_init() local
711 0, outs, ins, &pcm); in oxygen_pcm_init()
715 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in oxygen_pcm_init()
718 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in oxygen_pcm_init()
721 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in oxygen_pcm_init()
723 pcm->private_data = chip; in oxygen_pcm_init()
724 strcpy(pcm->name, "Multichannel"); in oxygen_pcm_init()
726 snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream, in oxygen_pcm_init()
732 snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, in oxygen_pcm_init()
742 err = snd_pcm_new(chip->card, "Digital", 1, outs, ins, &pcm); in oxygen_pcm_init()
[all …]
/linux-4.4.14/sound/pci/mixart/
Dmixart.c436 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_START\n"); in snd_mixart_trigger()
453 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_STOP\n"); in snd_mixart_trigger()
460 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_PUSH\n"); in snd_mixart_trigger()
465 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_RELEASE\n"); in snd_mixart_trigger()
726 struct snd_pcm *pcm = subs->pcm; in snd_mixart_playback_open() local
734 if ( pcm == chip->pcm ) { in snd_mixart_playback_open()
738 snd_BUG_ON(pcm != chip->pcm_dig); in snd_mixart_playback_open()
805 struct snd_pcm *pcm = subs->pcm; in snd_mixart_capture_open() local
813 if ( pcm == chip->pcm ) { in snd_mixart_capture_open()
817 snd_BUG_ON(pcm != chip->pcm_dig); in snd_mixart_capture_open()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/sound/
Dux500-msp.txt17 stericsson,platform-pcm-dma = <&pcm>;
22 pcm: ux500-pcm {
23 compatible = "stericsson,ux500-pcm";
Dmtk-afe-pcm.txt4 - compatible = "mediatek,mt8173-afe-pcm";
21 afe: mt8173-afe-pcm@11220000 {
22 compatible = "mediatek,mt8173-afe-pcm";
Dmrvl,pxa2xx-pcm.txt8 - compatible 'mrvl,pxa-pcm-audio'
13 compatible = "mrvl,pxa-pcm-audio";
Dsirf-usp.txt4 - compatible: "sirf,prima2-usp-pcm"
19 compatible = "sirf,prima2-usp-pcm";
/linux-4.4.14/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()
348 struct device *dev = ss->pcm->card->dev; in siu_pcm_open()
384 struct device *dev = ss->pcm->card->dev; in siu_pcm_close()
407 struct device *dev = ss->pcm->card->dev; in siu_pcm_prepare()
452 struct device *dev = ss->pcm->card->dev; in siu_pcm_trigger()
[all …]
Dsiu_dai.c65 u32 pcm; member
81 .pcm = 0x40000000,
87 .pcm = 0x04000000,
95 .pcm = 0x00400000,
101 .pcm = 0x00040000,
113 dev_dbg(port_info->pcm->card->dev, "%s\n", __func__); in siu_dai_start()
356 dev_dbg(port_info->pcm->card->dev, "%s\n", __func__); in siu_dai_info_volume()
370 struct device *dev = port_info->pcm->card->dev; in siu_dai_get_volume()
401 struct device *dev = port_info->pcm->card->dev; in siu_dai_put_volume()
515 dev_dbg(substream->pcm->card->dev, "%s: port=%d@%p\n", __func__, in siu_dai_startup()
[all …]
Ddma-sh7760.c310 struct snd_pcm *pcm = rtd->pcm; in camelot_pcm_new() local
315 snd_pcm_lib_preallocate_pages_for_all(pcm, in camelot_pcm_new()
Dsiu.h131 struct snd_pcm *pcm; member
143 to_platform_device(substream->pcm->card->dev); in siu_port_info()
/linux-4.4.14/sound/usb/line6/
Dpcm.c233 if (s->pcm->card != substream->pcm->card) in snd_line6_trigger()
448 static void line6_cleanup_pcm(struct snd_pcm *pcm) in line6_cleanup_pcm() argument
450 struct snd_line6_pcm *line6pcm = snd_pcm_chip(pcm); in line6_cleanup_pcm()
460 struct snd_pcm *pcm; in snd_line6_new_pcm() local
467 pcm = *pcm_ret; in snd_line6_new_pcm()
468 strcpy(pcm->name, line6->properties->name); in snd_line6_new_pcm()
471 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_line6_new_pcm()
473 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_line6_capture_ops); in snd_line6_new_pcm()
476 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, in snd_line6_new_pcm()
504 struct snd_pcm *pcm; in line6_init_pcm() local
[all …]
Dpcm.h43 (line6pcm->pcm->streams[stream].substream)
148 struct snd_pcm *pcm; member
/linux-4.4.14/sound/usb/hiface/
Dpcm.c311 struct pcm_runtime *rt = out_urb->chip->pcm; in hiface_pcm_out_urb_handler()
549 struct pcm_runtime *rt = chip->pcm; in hiface_pcm_abort()
562 struct pcm_runtime *rt = chip->pcm; in hiface_pcm_destroy()
568 kfree(chip->pcm); in hiface_pcm_destroy()
569 chip->pcm = NULL; in hiface_pcm_destroy()
572 static void hiface_pcm_free(struct snd_pcm *pcm) in hiface_pcm_free() argument
574 struct pcm_runtime *rt = pcm->private_data; in hiface_pcm_free()
584 struct snd_pcm *pcm; in hiface_pcm_init() local
604 ret = snd_pcm_new(chip->card, "USB-SPDIF Audio", 0, 1, 0, &pcm); in hiface_pcm_init()
611 pcm->private_data = rt; in hiface_pcm_init()
[all …]
Dchip.h28 struct pcm_runtime *pcm; member
DMakefile1 snd-usb-hiface-objs := chip.o pcm.o
/linux-4.4.14/sound/soc/intel/baytrail/
Dsst-baytrail-pcm.c61 struct sst_byt_pcm_data pcm[BYT_PCM_COUNT]; member
74 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_hw_params()
146 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_restore_stream_context()
179 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_trigger()
243 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_pointer()
255 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_open()
283 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_close()
325 struct snd_pcm *pcm = rtd->pcm; in sst_byt_pcm_new() local
331 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream || in sst_byt_pcm_new()
332 pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in sst_byt_pcm_new()
[all …]
DMakefile1 snd-soc-sst-baytrail-pcm-objs := \
2 sst-baytrail-ipc.o sst-baytrail-pcm.o sst-baytrail-dsp.o
4 obj-$(CONFIG_SND_SOC_INTEL_BAYTRAIL) += snd-soc-sst-baytrail-pcm.o
/linux-4.4.14/sound/usb/
Dstream.c69 static void snd_usb_audio_pcm_free(struct snd_pcm *pcm) in snd_usb_audio_pcm_free() argument
71 struct snd_usb_stream *stream = pcm->private_data; in snd_usb_audio_pcm_free()
73 stream->pcm = NULL; in snd_usb_audio_pcm_free()
99 snd_usb_set_pcm_ops(as->pcm, stream); in snd_usb_init_substream()
203 static int add_chmap(struct snd_pcm *pcm, int stream, in add_chmap() argument
218 err = snd_pcm_add_chmap_ctls(pcm, stream, NULL, 0, 0, &chmap); in add_chmap()
329 struct snd_pcm *pcm; in snd_usb_add_audio_stream() local
350 err = snd_pcm_new_stream(as->pcm, stream, 1); in snd_usb_add_audio_stream()
354 return add_chmap(as->pcm, stream, subs); in snd_usb_add_audio_stream()
367 &pcm); in snd_usb_add_audio_stream()
[all …]
Dpcm.h7 void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream);
/linux-4.4.14/sound/soc/intel/haswell/
DMakefile1 snd-soc-sst-haswell-pcm-objs := \
2 sst-haswell-ipc.o sst-haswell-pcm.o sst-haswell-dsp.o
4 obj-$(CONFIG_SND_SOC_INTEL_HASWELL) += snd-soc-sst-haswell-pcm.o
Dsst-haswell-pcm.c146 struct hsw_pcm_data pcm[HSW_PCM_COUNT][2]; member
196 pcm_data = &pdata->pcm[dai][stream]; in hsw_stream_volume_put()
245 pcm_data = &pdata->pcm[dai][stream]; in hsw_stream_volume_get()
441 unsigned char *dma_area, size_t size, int pcm) in create_adsp_page_table() argument
458 pg_table = (u32 *)(pdata->dmab[pcm][stream].area + idx); in create_adsp_page_table()
489 pcm_data = &pdata->pcm[dai][substream->stream]; in hsw_pcm_hw_params()
687 pcm_data = &pdata->pcm[dai][substream->stream]; in hsw_pcm_trigger()
796 pcm_data = &pdata->pcm[dai][substream->stream]; in hsw_pcm_pointer()
817 pcm_data = &pdata->pcm[dai][substream->stream]; in hsw_pcm_open()
851 pcm_data = &pdata->pcm[dai][substream->stream]; in hsw_pcm_close()
[all …]
/linux-4.4.14/sound/soc/mxs/
DMakefile3 snd-soc-mxs-pcm-objs := mxs-pcm.o
5 obj-$(CONFIG_SND_MXS_SOC) += snd-soc-mxs.o snd-soc-mxs-pcm.o
/linux-4.4.14/sound/soc/nuc900/
DMakefile2 snd-soc-nuc900-pcm-objs := nuc900-pcm.o
5 obj-$(CONFIG_SND_SOC_NUC900) += snd-soc-nuc900-pcm.o
Dnuc900-pcm.c270 return dma_mmap_writecombine(substream->pcm->card->dev, vma, in nuc900_dma_mmap()
291 struct snd_pcm *pcm = rtd->pcm; in nuc900_dma_new() local
298 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in nuc900_dma_new()
/linux-4.4.14/sound/mips/
Dau1x00.c100 struct snd_pcm *pcm; member
291 struct snd_au1000 *au1000 = substream->pcm->private_data; in snd_au1000_playback_open()
304 struct snd_au1000 *au1000 = substream->pcm->private_data; in snd_au1000_capture_open()
317 struct snd_au1000 *au1000 = substream->pcm->private_data; in snd_au1000_playback_close()
326 struct snd_au1000 *au1000 = substream->pcm->private_data; in snd_au1000_capture_close()
359 struct snd_au1000 *au1000 = substream->pcm->private_data; in snd_au1000_playback_prepare()
373 struct snd_au1000 *au1000 = substream->pcm->private_data; in snd_au1000_capture_prepare()
447 struct snd_pcm *pcm; in snd_au1000_pcm_new() local
451 if ((err = snd_pcm_new(au1000->card, "AU1000 AC97 PCM", 0, 1, 1, &pcm)) < 0) in snd_au1000_pcm_new()
454 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, in snd_au1000_pcm_new()
[all …]
Dsgio2audio.c724 struct snd_pcm *pcm; in snd_sgio2audio_new_pcm() local
728 err = snd_pcm_new(chip->card, "SGI O2 Audio", 0, 1, 1, &pcm); in snd_sgio2audio_new_pcm()
732 pcm->private_data = chip; in snd_sgio2audio_new_pcm()
733 strcpy(pcm->name, "SGI O2 DAC1"); in snd_sgio2audio_new_pcm()
736 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_sgio2audio_new_pcm()
738 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in snd_sgio2audio_new_pcm()
742 err = snd_pcm_new(chip->card, "SGI O2 Audio", 1, 1, 0, &pcm); in snd_sgio2audio_new_pcm()
746 pcm->private_data = chip; in snd_sgio2audio_new_pcm()
747 strcpy(pcm->name, "SGI O2 DAC2"); in snd_sgio2audio_new_pcm()
750 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_sgio2audio_new_pcm()
Dhal2.c738 struct snd_pcm *pcm; in hal2_pcm_create() local
742 err = snd_pcm_new(hal2->card, "SGI HAL2 Audio", 0, 1, 1, &pcm); in hal2_pcm_create()
746 pcm->private_data = hal2; in hal2_pcm_create()
747 strcpy(pcm->name, "SGI HAL2"); in hal2_pcm_create()
750 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in hal2_pcm_create()
752 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in hal2_pcm_create()
754 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, in hal2_pcm_create()
/linux-4.4.14/include/sound/
Dpcm.h35 #define snd_pcm_chip(pcm) ((pcm)->private_data) argument
437 struct snd_pcm *pcm; member
492 struct snd_pcm *pcm; member
526 void (*private_free) (struct snd_pcm *pcm);
535 int (*n_register) (struct snd_pcm * pcm);
536 int (*n_disconnect) (struct snd_pcm * pcm);
537 int (*n_unregister) (struct snd_pcm * pcm);
553 int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count);
572 int snd_pcm_suspend_all(struct snd_pcm *pcm);
575 int snd_pcm_open_substream(struct snd_pcm *pcm, int stream, struct file *file,
[all …]
Dpxa2xx-lib.h19 extern int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream);
20 extern void pxa2xx_pcm_free_dma_buffers(struct snd_pcm *pcm);
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134-alsa.c249 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_trigger() local
250 struct saa7134_dev *dev=pcm->dev; in snd_card_saa7134_capture_trigger()
517 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_prepare() local
519 pcm->dev->dmasound.substream = substream; in snd_card_saa7134_capture_prepare()
607 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_pointer() local
608 struct saa7134_dev *dev=pcm->dev; in snd_card_saa7134_capture_pointer()
659 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_runtime_free() local
661 kfree(pcm); in snd_card_saa7134_runtime_free()
810 snd_card_saa7134_pcm_t *pcm; in snd_card_saa7134_capture_open() local
833 pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); in snd_card_saa7134_capture_open()
[all …]
/linux-4.4.14/sound/pci/cs5535audio/
Dcs5535audio_pcm.c427 struct snd_pcm *pcm; in snd_cs5535audio_pcm() local
430 err = snd_pcm_new(cs5535au->card, "CS5535 Audio", 0, 1, 1, &pcm); in snd_cs5535audio_pcm()
438 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_cs5535audio_pcm()
440 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in snd_cs5535audio_pcm()
443 pcm->private_data = cs5535au; in snd_cs5535audio_pcm()
444 pcm->info_flags = 0; in snd_cs5535audio_pcm()
445 strcpy(pcm->name, "CS5535 Audio"); in snd_cs5535audio_pcm()
447 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_cs5535audio_pcm()
450 cs5535au->pcm = pcm; in snd_cs5535audio_pcm()
/linux-4.4.14/drivers/media/usb/usbtv/
Dusbtv-audio.c333 struct snd_pcm *pcm; in usbtv_audio_init() local
353 rv = snd_pcm_new(card, "USBTV Audio", 0, 0, 1, &pcm); in usbtv_audio_init()
357 strlcpy(pcm->name, "USBTV Audio Input", sizeof(pcm->name)); in usbtv_audio_init()
358 pcm->info_flags = 0; in usbtv_audio_init()
359 pcm->private_data = usbtv; in usbtv_audio_init()
361 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_usbtv_pcm_ops); in usbtv_audio_init()
362 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, in usbtv_audio_init()
/linux-4.4.14/drivers/media/pci/solo6x10/
Dsolo6x10-g723.c317 struct snd_pcm *pcm; in solo_snd_pcm_init() local
323 &pcm); in solo_snd_pcm_init()
327 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in solo_snd_pcm_init()
330 snd_pcm_chip(pcm) = solo_dev; in solo_snd_pcm_init()
331 pcm->info_flags = 0; in solo_snd_pcm_init()
332 strcpy(pcm->name, card->shortname); in solo_snd_pcm_init()
334 for (i = 0, ss = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in solo_snd_pcm_init()
338 ret = snd_pcm_lib_preallocate_pages_for_all(pcm, in solo_snd_pcm_init()
346 solo_dev->snd_pcm = pcm; in solo_snd_pcm_init()
/linux-4.4.14/sound/pci/
Dals300.c121 struct snd_pcm *pcm; member
210 if (chip->pcm && chip->playback_substream) { in snd_als300_interrupt()
218 if (chip->pcm && chip->capture_substream) { in snd_als300_interrupt()
243 if (chip->pcm && chip->playback_substream) { in snd_als300plus_interrupt()
252 if (chip->pcm && chip->capture_substream) { in snd_als300plus_interrupt()
590 struct snd_pcm *pcm; in snd_als300_new_pcm() local
593 err = snd_pcm_new(chip->card, "ALS300", 0, 1, 1, &pcm); in snd_als300_new_pcm()
596 pcm->private_data = chip; in snd_als300_new_pcm()
597 strcpy(pcm->name, "ALS300"); in snd_als300_new_pcm()
598 chip->pcm = pcm; in snd_als300_new_pcm()
[all …]
Dvia82xx.c1314 struct viadev *viadev = &chip->devs[chip->capture_devno + substream->pcm->device]; in snd_via82xx_capture_open()
1448 struct snd_pcm *pcm; in snd_via8233_pcm_new() local
1459 err = snd_pcm_new(chip->card, chip->card->shortname, 0, 4, 1, &pcm); in snd_via8233_pcm_new()
1462 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via8233_playback_ops); in snd_via8233_pcm_new()
1463 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_via8233_capture_ops); in snd_via8233_pcm_new()
1464 pcm->private_data = chip; in snd_via8233_pcm_new()
1465 strcpy(pcm->name, chip->card->shortname); in snd_via8233_pcm_new()
1466 chip->pcms[0] = pcm; in snd_via8233_pcm_new()
1473 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, in snd_via8233_pcm_new()
1477 err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_via8233_pcm_new()
[all …]
Datiixp.c975 struct ac97_pcm *pcm = chip->pcms[dma->ac97_pcm_type]; in snd_atiixp_pcm_hw_params() local
980 snd_ac97_pcm_close(pcm); in snd_atiixp_pcm_hw_params()
983 err = snd_ac97_pcm_open(pcm, params_rate(hw_params), in snd_atiixp_pcm_hw_params()
985 pcm->r[0].slots); in snd_atiixp_pcm_hw_params()
999 struct ac97_pcm *pcm = chip->pcms[dma->ac97_pcm_type]; in snd_atiixp_pcm_hw_free() local
1000 snd_ac97_pcm_close(pcm); in snd_atiixp_pcm_hw_free()
1252 struct snd_pcm *pcm; in snd_atiixp_pcm_new() local
1284 ATI_PCMDEV_ANALOG, 1, 1, &pcm); in snd_atiixp_pcm_new()
1287 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_atiixp_playback_ops); in snd_atiixp_pcm_new()
1288 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_atiixp_capture_ops); in snd_atiixp_pcm_new()
[all …]
Dazt3328.c287 struct snd_pcm *pcm[3]; member
1652 dev_dbg(substream->pcm->card->dev, "%08li %s @ 0x%8lx, frames %8ld\n", in snd_azf3328_pcm_pointer()
2132 struct snd_pcm *pcm; in snd_azf3328_pcm() local
2136 1, 1, &pcm); in snd_azf3328_pcm()
2139 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_azf3328_pcm()
2141 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in snd_azf3328_pcm()
2144 pcm->private_data = chip; in snd_azf3328_pcm()
2145 pcm->info_flags = 0; in snd_azf3328_pcm()
2146 strcpy(pcm->name, chip->card->shortname); in snd_azf3328_pcm()
2148 chip->pcm[AZF_CODEC_PLAYBACK] = pcm; in snd_azf3328_pcm()
[all …]
Dad1889.c96 struct snd_pcm *pcm; member
628 struct snd_pcm *pcm; in snd_ad1889_pcm_init() local
630 err = snd_pcm_new(chip->card, chip->card->driver, device, 1, 1, &pcm); in snd_ad1889_pcm_init()
634 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_ad1889_pcm_init()
636 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in snd_ad1889_pcm_init()
639 pcm->private_data = chip; in snd_ad1889_pcm_init()
640 pcm->info_flags = 0; in snd_ad1889_pcm_init()
641 strcpy(pcm->name, chip->card->shortname); in snd_ad1889_pcm_init()
643 chip->pcm = pcm; in snd_ad1889_pcm_init()
647 err = snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_ad1889_pcm_init()
Dals4000.c699 struct snd_pcm *pcm; in snd_als4000_pcm() local
702 err = snd_pcm_new(chip->card, "ALS4000 DSP", device, 1, 1, &pcm); in snd_als4000_pcm()
705 pcm->private_data = chip; in snd_als4000_pcm()
706 pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; in snd_als4000_pcm()
707 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_als4000_playback_ops); in snd_als4000_pcm()
708 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_als4000_capture_ops); in snd_als4000_pcm()
710 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(chip->pci), in snd_als4000_pcm()
713 chip->pcm = pcm; in snd_als4000_pcm()
997 snd_pcm_suspend_all(chip->pcm); in snd_als4000_suspend()
Dintel8x0.c379 struct ac97_pcm *pcm; member
397 struct snd_pcm *pcm[6]; member
963 snd_ac97_pcm_close(ichdev->pcm); in snd_intel8x0_hw_params()
966 err = snd_ac97_pcm_open(ichdev->pcm, params_rate(hw_params), in snd_intel8x0_hw_params()
968 ichdev->pcm->r[dbl].slots); in snd_intel8x0_hw_params()
973 snd_ac97_set_rate(ichdev->pcm->r[0].codec[0], AC97_SPDIF, in snd_intel8x0_hw_params()
985 snd_ac97_pcm_close(ichdev->pcm); in snd_intel8x0_hw_free()
1181 runtime->hw.rates = ichdev->pcm->rates; in snd_intel8x0_pcm_open()
1520 struct snd_pcm *pcm; in snd_intel8x0_pcm1() local
1530 rec->capture_ops ? 1 : 0, &pcm); in snd_intel8x0_pcm1()
[all …]
Dintel8x0m.c205 struct snd_pcm *pcm[2]; member
723 struct snd_pcm *pcm; in snd_intel8x0m_pcm1() local
733 rec->capture_ops ? 1 : 0, &pcm); in snd_intel8x0m_pcm1()
738 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, rec->playback_ops); in snd_intel8x0m_pcm1()
740 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, rec->capture_ops); in snd_intel8x0m_pcm1()
742 pcm->private_data = chip; in snd_intel8x0m_pcm1()
743 pcm->info_flags = 0; in snd_intel8x0m_pcm1()
744 pcm->dev_class = SNDRV_PCM_CLASS_MODEM; in snd_intel8x0m_pcm1()
746 sprintf(pcm->name, "%s - %s", chip->card->shortname, rec->suffix); in snd_intel8x0m_pcm1()
748 strcpy(pcm->name, chip->card->shortname); in snd_intel8x0m_pcm1()
[all …]
Dfm801.c195 struct snd_pcm *pcm; member
551 if (chip->pcm && (status & FM801_IRQ_PLAYBACK) && chip->playback_substream) { in snd_fm801_interrupt()
565 if (chip->pcm && (status & FM801_IRQ_CAPTURE) && chip->capture_substream) { in snd_fm801_interrupt()
703 struct snd_pcm *pcm; in snd_fm801_pcm() local
706 if ((err = snd_pcm_new(chip->card, "FM801", device, 1, 1, &pcm)) < 0) in snd_fm801_pcm()
709 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_fm801_playback_ops); in snd_fm801_pcm()
710 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_fm801_capture_ops); in snd_fm801_pcm()
712 pcm->private_data = chip; in snd_fm801_pcm()
713 pcm->info_flags = 0; in snd_fm801_pcm()
714 strcpy(pcm->name, "FM801"); in snd_fm801_pcm()
[all …]
Dens1370.c1273 struct snd_pcm *pcm; in snd_ensoniq_pcm() local
1276 err = snd_pcm_new(ensoniq->card, CHIP_NAME "/1", device, 1, 1, &pcm); in snd_ensoniq_pcm()
1281 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ensoniq_playback2_ops); in snd_ensoniq_pcm()
1283 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ensoniq_playback1_ops); in snd_ensoniq_pcm()
1285 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ensoniq_capture_ops); in snd_ensoniq_pcm()
1287 pcm->private_data = ensoniq; in snd_ensoniq_pcm()
1288 pcm->info_flags = 0; in snd_ensoniq_pcm()
1289 strcpy(pcm->name, CHIP_NAME " DAC2/ADC"); in snd_ensoniq_pcm()
1290 ensoniq->pcm1 = pcm; in snd_ensoniq_pcm()
1292 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_ensoniq_pcm()
[all …]
Dvia82xx_modem.c789 struct viadev *viadev = &chip->devs[chip->capture_devno + substream->pcm->device]; in snd_via82xx_capture_open()
846 struct snd_pcm *pcm; in snd_via686_pcm_new() local
854 err = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm); in snd_via686_pcm_new()
857 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via686_playback_ops); in snd_via686_pcm_new()
858 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_via686_capture_ops); in snd_via686_pcm_new()
859 pcm->dev_class = SNDRV_PCM_CLASS_MODEM; in snd_via686_pcm_new()
860 pcm->private_data = chip; in snd_via686_pcm_new()
861 strcpy(pcm->name, chip->card->shortname); in snd_via686_pcm_new()
862 chip->pcms[0] = pcm; in snd_via686_pcm_new()
866 if ((err = snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, in snd_via686_pcm_new()
Dcmipci.c468 struct snd_pcm *pcm; /* DAC/ADC PCM */ member
1466 if (cm->pcm) { in snd_cmipci_interrupt()
1902 struct snd_pcm *pcm; in snd_cmipci_pcm_new() local
1905 err = snd_pcm_new(cm->card, cm->card->driver, device, 1, 1, &pcm); in snd_cmipci_pcm_new()
1909 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cmipci_playback_ops); in snd_cmipci_pcm_new()
1910 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cmipci_capture_ops); in snd_cmipci_pcm_new()
1912 pcm->private_data = cm; in snd_cmipci_pcm_new()
1913 pcm->info_flags = 0; in snd_cmipci_pcm_new()
1914 strcpy(pcm->name, "C-Media PCI DAC/ADC"); in snd_cmipci_pcm_new()
1915 cm->pcm = pcm; in snd_cmipci_pcm_new()
[all …]
Dsis7019.c119 struct snd_pcm *pcm; member
899 struct snd_pcm *pcm; in sis_pcm_create() local
905 rc = snd_pcm_new(sis->card, "SiS7019", 0, 64, 1, &pcm); in sis_pcm_create()
909 pcm->private_data = sis; in sis_pcm_create()
910 strcpy(pcm->name, "SiS7019"); in sis_pcm_create()
911 sis->pcm = pcm; in sis_pcm_create()
913 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &sis_playback_ops); in sis_pcm_create()
914 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &sis_capture_ops); in sis_pcm_create()
919 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in sis_pcm_create()
1217 snd_pcm_suspend_all(sis->pcm); in sis_suspend()
Datiixp_modem.c993 struct snd_pcm *pcm; in snd_atiixp_pcm_new() local
1001 err = snd_pcm_new(chip->card, "ATI IXP MC97", ATI_PCMDEV_ANALOG, 1, 1, &pcm); in snd_atiixp_pcm_new()
1004 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_atiixp_playback_ops); in snd_atiixp_pcm_new()
1005 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_atiixp_capture_ops); in snd_atiixp_pcm_new()
1006 pcm->dev_class = SNDRV_PCM_CLASS_MODEM; in snd_atiixp_pcm_new()
1007 pcm->private_data = chip; in snd_atiixp_pcm_new()
1008 strcpy(pcm->name, "ATI IXP MC97"); in snd_atiixp_pcm_new()
1009 chip->pcmdevs[ATI_PCMDEV_ANALOG] = pcm; in snd_atiixp_pcm_new()
1011 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_atiixp_pcm_new()
Dsonicvibes.c225 struct snd_pcm *pcm; member
632 if (sonic->pcm) { in snd_sonicvibes_interrupt()
884 struct snd_pcm *pcm; in snd_sonicvibes_pcm() local
887 if ((err = snd_pcm_new(sonic->card, "s3_86c617", device, 1, 1, &pcm)) < 0) in snd_sonicvibes_pcm()
889 if (snd_BUG_ON(!pcm)) in snd_sonicvibes_pcm()
892 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sonicvibes_playback_ops); in snd_sonicvibes_pcm()
893 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_sonicvibes_capture_ops); in snd_sonicvibes_pcm()
895 pcm->private_data = sonic; in snd_sonicvibes_pcm()
896 pcm->info_flags = 0; in snd_sonicvibes_pcm()
897 strcpy(pcm->name, "S3 SonicVibes"); in snd_sonicvibes_pcm()
[all …]
Dbt87x.c430 if (substream->pcm->device == DEVICE_DIGITAL) in snd_bt87x_pcm_open()
709 struct snd_pcm *pcm; in snd_bt87x_pcm() local
711 err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); in snd_bt87x_pcm()
714 pcm->private_data = chip; in snd_bt87x_pcm()
715 strcpy(pcm->name, name); in snd_bt87x_pcm()
716 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_bt87x_pcm_ops); in snd_bt87x_pcm()
717 return snd_pcm_lib_preallocate_pages_for_all(pcm, in snd_bt87x_pcm()
Dcs4281.c468 struct snd_pcm *pcm; member
978 struct snd_pcm *pcm; in snd_cs4281_pcm() local
981 err = snd_pcm_new(chip->card, "CS4281", device, 1, 1, &pcm); in snd_cs4281_pcm()
985 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs4281_playback_ops); in snd_cs4281_pcm()
986 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cs4281_capture_ops); in snd_cs4281_pcm()
988 pcm->private_data = chip; in snd_cs4281_pcm()
989 pcm->info_flags = 0; in snd_cs4281_pcm()
990 strcpy(pcm->name, "CS4281"); in snd_cs4281_pcm()
991 chip->pcm = pcm; in snd_cs4281_pcm()
993 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_cs4281_pcm()
[all …]
Des1938.c216 struct snd_pcm *pcm; member
1020 struct snd_pcm *pcm; in snd_es1938_new_pcm() local
1023 if ((err = snd_pcm_new(chip->card, "es-1938-1946", device, 2, 1, &pcm)) < 0) in snd_es1938_new_pcm()
1025 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_es1938_playback_ops); in snd_es1938_new_pcm()
1026 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_es1938_capture_ops); in snd_es1938_new_pcm()
1028 pcm->private_data = chip; in snd_es1938_new_pcm()
1029 pcm->info_flags = 0; in snd_es1938_new_pcm()
1030 strcpy(pcm->name, "ESS Solo-1"); in snd_es1938_new_pcm()
1032 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_es1938_new_pcm()
1035 chip->pcm = pcm; in snd_es1938_new_pcm()
[all …]
/linux-4.4.14/sound/sh/
Daica.c242 dreamcastcard = substream->pcm->private_data; in aica_dma_transfer()
314 dreamcastcard = substream->pcm->private_data; in aica_period_elapsed()
338 dreamcastcard = substream->pcm->private_data; in spu_begin_dma()
359 dreamcastcard = substream->pcm->private_data; in snd_aicapcm_pcm_open()
383 struct snd_card_aica *dreamcastcard = substream->pcm->private_data; in snd_aicapcm_pcm_close()
412 struct snd_card_aica *dreamcastcard = substream->pcm->private_data; in snd_aicapcm_pcm_prepare()
457 struct snd_pcm *pcm; in snd_aicapcmchip() local
462 &pcm); in snd_aicapcmchip()
465 pcm->private_data = dreamcastcard; in snd_aicapcmchip()
466 strcpy(pcm->name, "AICA PCM"); in snd_aicapcmchip()
[all …]
Dsh_dac_audio.c267 struct snd_pcm *pcm; in snd_sh_dac_pcm() local
270 err = snd_pcm_new(chip->card, "SH_DAC PCM", device, 1, 0, &pcm); in snd_sh_dac_pcm()
274 pcm->private_data = chip; in snd_sh_dac_pcm()
275 strcpy(pcm->name, "SH_DAC PCM"); in snd_sh_dac_pcm()
276 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sh_dac_pcm_ops); in snd_sh_dac_pcm()
279 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, in snd_sh_dac_pcm()
/linux-4.4.14/sound/aoa/soundbus/i2sbus/
Dpcm.c862 static void i2sbus_private_free(struct snd_pcm *pcm) in i2sbus_private_free() argument
864 struct i2sbus_dev *i2sdev = snd_pcm_chip(pcm); in i2sbus_private_free()
867 i2sdev->sound.pcm = NULL; in i2sbus_private_free()
964 if (!dev->pcm) { in i2sbus_attach_codec()
966 &dev->pcm); in i2sbus_attach_codec()
978 if (dev->pcm->card != card) { in i2sbus_attach_codec()
985 err = snd_pcm_new_stream(dev->pcm, SNDRV_PCM_STREAM_PLAYBACK, 1); in i2sbus_attach_codec()
988 snd_pcm_set_ops(dev->pcm, SNDRV_PCM_STREAM_PLAYBACK, in i2sbus_attach_codec()
990 dev->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].dev.parent = in i2sbus_attach_codec()
996 if (dev->pcm->card != card) { in i2sbus_attach_codec()
[all …]
DMakefile2 snd-aoa-i2sbus-objs := core.o pcm.o control.o
/linux-4.4.14/drivers/isdn/hardware/eicon/
Dio.c470 struct pc_maint *pcm; in DIDpcRoutine() local
475 pcm = (struct pc_maint *)IoAdapter->pcm_data; in DIDpcRoutine()
478 a->ram_out(a, &IoAdapter->pcm->rc, 0); in DIDpcRoutine()
479 a->ram_out(a, &IoAdapter->pcm->req, pcm->req); in DIDpcRoutine()
483 if ((int)(a->ram_in(a, &IoAdapter->pcm->rc))) { in DIDpcRoutine()
484 a->ram_in_buffer(a, IoAdapter->pcm, pcm, sizeof(*pcm)); in DIDpcRoutine()
507 struct pc_maint *pcm = (struct pc_maint *)&e->Ind; in pcm_req() local
517 IoAdapter->pcm_data = (void *)pcm; in pcm_req()
559 a->ram_out(a, &IoAdapter->pcm->rc, 0); in pcm_req()
560 a->ram_out(a, &IoAdapter->pcm->req, pcm->req); in pcm_req()
[all …]
/linux-4.4.14/sound/pci/ymfpci/
Dymfpci_main.c237 voice->pcm = 1; in voice_alloc()
239 voice2->pcm = 1; in voice_alloc()
293 pvoice->use = pvoice->pcm = pvoice->synth = pvoice->midi = 0; in snd_ymfpci_voice_free()
413 if (substream->pcm == chip->pcm && !ypcm->use_441_slot) { in snd_ymfpci_playback_trigger()
690 substream->pcm == chip->pcm); in snd_ymfpci_playback_prepare()
692 if (substream->pcm == chip->pcm && !ypcm->use_441_slot) { in snd_ymfpci_playback_prepare()
1150 struct snd_pcm *pcm; in snd_ymfpci_pcm() local
1153 if ((err = snd_pcm_new(chip->card, "YMFPCI", device, 32, 1, &pcm)) < 0) in snd_ymfpci_pcm()
1155 pcm->private_data = chip; in snd_ymfpci_pcm()
1157 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ymfpci_playback_ops); in snd_ymfpci_pcm()
[all …]
/linux-4.4.14/drivers/gpu/drm/bridge/
Ddw_hdmi-ahb-audio.c125 struct snd_pcm *pcm; member
538 struct snd_pcm *pcm; in snd_dw_hdmi_probe() local
569 ret = snd_pcm_new(card, "DW HDMI", 0, 1, 0, &pcm); in snd_dw_hdmi_probe()
573 dw->pcm = pcm; in snd_dw_hdmi_probe()
574 pcm->private_data = dw; in snd_dw_hdmi_probe()
575 strlcpy(pcm->name, DRIVER_NAME, sizeof(pcm->name)); in snd_dw_hdmi_probe()
576 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_dw_hdmi_ops); in snd_dw_hdmi_probe()
582 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_dw_hdmi_probe()
617 snd_pcm_suspend_all(dw->pcm); in snd_dw_hdmi_suspend()
/linux-4.4.14/sound/pci/hda/
Dhda_controller.c250 if (s->pcm->card != substream->pcm->card) in azx_pcm_trigger()
263 if (s->pcm->card != substream->pcm->card) in azx_pcm_trigger()
512 static void azx_pcm_free(struct snd_pcm *pcm) in azx_pcm_free() argument
514 struct azx_pcm *apcm = pcm->private_data; in azx_pcm_free()
517 apcm->info->pcm = NULL; in azx_pcm_free()
529 struct snd_pcm *pcm; in snd_hda_attach_pcm_stream() local
536 if (apcm->pcm->device == pcm_dev) { in snd_hda_attach_pcm_stream()
545 &pcm); in snd_hda_attach_pcm_stream()
548 strlcpy(pcm->name, cpcm->name, sizeof(pcm->name)); in snd_hda_attach_pcm_stream()
553 apcm->pcm = pcm; in snd_hda_attach_pcm_stream()
[all …]
Dhda_codec.c650 struct hda_pcm *pcm = container_of(kref, struct hda_pcm, kref); in release_pcm() local
652 if (pcm->pcm) in release_pcm()
653 snd_device_free(pcm->codec->card, pcm->pcm); in release_pcm()
654 clear_bit(pcm->device, pcm->codec->bus->pcm_dev_bits); in release_pcm()
655 kfree(pcm->name); in release_pcm()
656 kfree(pcm); in release_pcm()
659 void snd_hda_codec_pcm_put(struct hda_pcm *pcm) in snd_hda_codec_pcm_put() argument
661 kref_put(&pcm->kref, release_pcm); in snd_hda_codec_pcm_put()
668 struct hda_pcm *pcm; in snd_hda_codec_pcm_new() local
671 pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); in snd_hda_codec_pcm_new()
[all …]
Dhda_proc.c96 if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL) in print_nid_pcms()
102 cpcm->pcm->device); in print_nid_pcms()
175 static void print_pcm_rates(struct snd_info_buffer *buffer, unsigned int pcm) in print_pcm_rates() argument
183 pcm &= AC_SUPPCM_RATES; in print_pcm_rates()
184 snd_iprintf(buffer, " rates [0x%x]:", pcm); in print_pcm_rates()
186 if (pcm & (1 << i)) in print_pcm_rates()
191 static void print_pcm_bits(struct snd_info_buffer *buffer, unsigned int pcm) in print_pcm_bits() argument
195 snd_iprintf(buffer, " bits [0x%x]:", (pcm >> 16) & 0xff); in print_pcm_bits()
196 snd_print_pcm_bits(pcm, buf, sizeof(buf)); in print_pcm_bits()
216 unsigned int pcm = param_read(codec, nid, AC_PAR_PCM); in print_pcm_caps() local
[all …]
Dhda_codec.h173 struct snd_pcm *pcm; /* assigned PCM instance */ member
421 static inline void snd_hda_codec_pcm_get(struct hda_pcm *pcm) in snd_hda_codec_pcm_get() argument
423 kref_get(&pcm->kref); in snd_hda_codec_pcm_get()
425 void snd_hda_codec_pcm_put(struct hda_pcm *pcm);
/linux-4.4.14/sound/isa/gus/
Dgus_pcm.c697 (long) pcm->playback.buffer, (long) gus->gf1.pcm_buffer); in snd_gf1_pcm_playback_open()
792 if (!pvoice->pcm) in snd_gf1_pcm_volume_put()
856 struct snd_pcm *pcm; in snd_gf1_pcm_new() local
867 &pcm); in snd_gf1_pcm_new()
870 pcm->private_data = gus; in snd_gf1_pcm_new()
872 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_gf1_pcm_playback_ops); in snd_gf1_pcm_new()
874 …for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substre… in snd_gf1_pcm_new()
879 pcm->info_flags = 0; in snd_gf1_pcm_new()
880 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in snd_gf1_pcm_new()
882 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_gf1_pcm_capture_ops); in snd_gf1_pcm_new()
[all …]
/linux-4.4.14/sound/isa/sb/
Demu8000_pcm.c680 static void snd_emu8000_pcm_free(struct snd_pcm *pcm) in snd_emu8000_pcm_free() argument
682 struct snd_emu8000 *emu = pcm->private_data; in snd_emu8000_pcm_free()
683 emu->pcm = NULL; in snd_emu8000_pcm_free()
688 struct snd_pcm *pcm; in snd_emu8000_pcm_new() local
691 if ((err = snd_pcm_new(card, "Emu8000 PCM", index, 1, 0, &pcm)) < 0) in snd_emu8000_pcm_new()
693 pcm->private_data = emu; in snd_emu8000_pcm_new()
694 pcm->private_free = snd_emu8000_pcm_free; in snd_emu8000_pcm_new()
695 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &emu8k_pcm_ops); in snd_emu8000_pcm_new()
696 emu->pcm = pcm; in snd_emu8000_pcm_new()
698 snd_device_register(card, pcm); in snd_emu8000_pcm_new()
Dsb8_main.c600 struct snd_pcm *pcm; in snd_sb8dsp_pcm() local
604 if ((err = snd_pcm_new(card, "SB8 DSP", device, 1, 1, &pcm)) < 0) in snd_sb8dsp_pcm()
606 sprintf(pcm->name, "DSP v%i.%i", chip->version >> 8, chip->version & 0xff); in snd_sb8dsp_pcm()
607 pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX; in snd_sb8dsp_pcm()
608 pcm->private_data = chip; in snd_sb8dsp_pcm()
610 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sb8_playback_ops); in snd_sb8dsp_pcm()
611 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_sb8_capture_ops); in snd_sb8dsp_pcm()
615 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_sb8dsp_pcm()
Dsb16_main.c866 struct snd_pcm *pcm; in snd_sb16dsp_pcm() local
869 if ((err = snd_pcm_new(card, "SB16 DSP", device, 1, 1, &pcm)) < 0) in snd_sb16dsp_pcm()
871 sprintf(pcm->name, "DSP v%i.%i", chip->version >> 8, chip->version & 0xff); in snd_sb16dsp_pcm()
872 pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; in snd_sb16dsp_pcm()
873 pcm->private_data = chip; in snd_sb16dsp_pcm()
874 chip->pcm = pcm; in snd_sb16dsp_pcm()
876 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sb16_playback_ops); in snd_sb16dsp_pcm()
877 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_sb16_capture_ops); in snd_sb16dsp_pcm()
882 pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX; in snd_sb16dsp_pcm()
884 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_sb16dsp_pcm()
Demu8000_synth.c106 if (hw->pcm) in snd_emu8000_remove()
107 snd_device_free(dev->card, hw->pcm); in snd_emu8000_remove()
/linux-4.4.14/sound/drivers/vx/
Dvx_pcm.c537 audio = subs->pcm->device * 2; in vx_pcm_playback_open()
929 audio = subs->pcm->device * 2; in vx_pcm_capture_open()
1215 static void snd_vx_pcm_free(struct snd_pcm *pcm) in snd_vx_pcm_free() argument
1217 struct vx_core *chip = pcm->private_data; in snd_vx_pcm_free()
1218 chip->pcm[pcm->device] = NULL; in snd_vx_pcm_free()
1230 struct snd_pcm *pcm; in snd_vx_pcm_new() local
1244 outs, ins, &pcm); in snd_vx_pcm_new()
1248 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &vx_pcm_playback_ops); in snd_vx_pcm_new()
1250 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &vx_pcm_capture_ops); in snd_vx_pcm_new()
1252 pcm->private_data = chip; in snd_vx_pcm_new()
[all …]
/linux-4.4.14/sound/atmel/
Dabdac.c99 struct snd_pcm *pcm; member
317 struct snd_pcm *pcm; in atmel_abdac_pcm_new() local
321 dac->pdev->id, 1, 0, &pcm); in atmel_abdac_pcm_new()
325 strcpy(pcm->name, dac->card->shortname); in atmel_abdac_pcm_new()
326 pcm->private_data = dac; in atmel_abdac_pcm_new()
327 pcm->info_flags = 0; in atmel_abdac_pcm_new()
328 dac->pcm = pcm; in atmel_abdac_pcm_new()
330 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &atmel_abdac_ops); in atmel_abdac_pcm_new()
332 retval = snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in atmel_abdac_pcm_new()
Dac97c.c71 struct snd_pcm *pcm; member
764 struct snd_pcm *pcm; in atmel_ac97c_pcm_new() local
779 0, playback, capture, &pcm); in atmel_ac97c_pcm_new()
784 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in atmel_ac97c_pcm_new()
787 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in atmel_ac97c_pcm_new()
790 retval = snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in atmel_ac97c_pcm_new()
796 pcm->private_data = chip; in atmel_ac97c_pcm_new()
797 pcm->info_flags = 0; in atmel_ac97c_pcm_new()
798 strcpy(pcm->name, chip->card->shortname); in atmel_ac97c_pcm_new()
799 chip->pcm = pcm; in atmel_ac97c_pcm_new()
/linux-4.4.14/sound/isa/
Dcmi8330.c173 struct snd_pcm *pcm; member
442 struct snd_pcm *pcm; in snd_cmi8330_pcm() local
450 if ((err = snd_pcm_new(card, (chip->type == CMI8329) ? "CMI8329" : "CMI8330", 0, 1, 1, &pcm)) < 0) in snd_cmi8330_pcm()
452 strcpy(pcm->name, (chip->type == CMI8329) ? "CMI8329" : "CMI8330"); in snd_cmi8330_pcm()
453 pcm->private_data = chip; in snd_cmi8330_pcm()
469 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &chip->streams[SNDRV_PCM_STREAM_PLAYBACK].ops); in snd_cmi8330_pcm()
470 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &chip->streams[SNDRV_PCM_STREAM_CAPTURE].ops); in snd_cmi8330_pcm()
472 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_cmi8330_pcm()
475 chip->pcm = pcm; in snd_cmi8330_pcm()
487 snd_pcm_suspend_all(acard->pcm); in snd_cmi8330_suspend()
Des18xx.c119 struct snd_pcm *pcm; member
1693 struct snd_pcm *pcm; in snd_es18xx_pcm() local
1699 err = snd_pcm_new(card, str, device, 2, 1, &pcm); in snd_es18xx_pcm()
1701 err = snd_pcm_new(card, str, device, 1, 1, &pcm); in snd_es18xx_pcm()
1705 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_es18xx_playback_ops); in snd_es18xx_pcm()
1706 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_es18xx_capture_ops); in snd_es18xx_pcm()
1709 pcm->private_data = chip; in snd_es18xx_pcm()
1710 pcm->info_flags = 0; in snd_es18xx_pcm()
1712 pcm->info_flags |= SNDRV_PCM_INFO_JOINT_DUPLEX; in snd_es18xx_pcm()
1714 pcm->info_flags |= SNDRV_PCM_INFO_HALF_DUPLEX; in snd_es18xx_pcm()
[all …]
/linux-4.4.14/sound/firewire/fireworks/
Dfireworks_pcm.c401 struct snd_pcm *pcm; in snd_efw_create_pcm_devices() local
404 err = snd_pcm_new(efw->card, efw->card->driver, 0, 1, 1, &pcm); in snd_efw_create_pcm_devices()
408 pcm->private_data = efw; in snd_efw_create_pcm_devices()
409 snprintf(pcm->name, sizeof(pcm->name), "%s PCM", efw->card->shortname); in snd_efw_create_pcm_devices()
410 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcm_playback_ops); in snd_efw_create_pcm_devices()
411 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pcm_capture_ops); in snd_efw_create_pcm_devices()
/linux-4.4.14/sound/usb/6fire/
Dpcm.c294 struct pcm_runtime *rt = in_urb->chip->pcm; in usb6fire_pcm_in_urb_handler()
382 struct pcm_runtime *rt = urb->chip->pcm; in usb6fire_pcm_out_urb_handler()
620 struct snd_pcm *pcm; in usb6fire_pcm_init() local
653 ret = snd_pcm_new(chip->card, "DMX6FireUSB", 0, 1, 1, &pcm); in usb6fire_pcm_init()
661 pcm->private_data = rt; in usb6fire_pcm_init()
662 strcpy(pcm->name, "DMX 6Fire USB"); in usb6fire_pcm_init()
663 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcm_ops); in usb6fire_pcm_init()
664 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pcm_ops); in usb6fire_pcm_init()
673 rt->instance = pcm; in usb6fire_pcm_init()
675 chip->pcm = rt; in usb6fire_pcm_init()
[all …]
Dchip.h26 struct pcm_runtime *pcm; member
DMakefile1 snd-usb-6fire-objs += chip.o comm.o midi.o control.o firmware.o pcm.o
Dchip.c53 if (chip->pcm) in usb6fire_chip_abort()
72 if (chip->pcm) in usb6fire_chip_destroy()
/linux-4.4.14/sound/drivers/pcsp/
Dpcsp_lib.c341 err = snd_pcm_new(chip->card, "pcspeaker", 0, 1, 0, &chip->pcm); in snd_pcsp_new_pcm()
345 snd_pcm_set_ops(chip->pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_pcsp_new_pcm()
348 chip->pcm->private_data = chip; in snd_pcsp_new_pcm()
349 chip->pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX; in snd_pcsp_new_pcm()
350 strcpy(chip->pcm->name, "pcsp"); in snd_pcsp_new_pcm()
352 snd_pcm_lib_preallocate_pages_for_all(chip->pcm, in snd_pcsp_new_pcm()
/linux-4.4.14/arch/x86/include/asm/
Dpat.h16 enum page_cache_mode pcm);
19 enum page_cache_mode *pcm);
Dpgtable_types.h345 static inline unsigned long cachemode2protval(enum page_cache_mode pcm) in cachemode2protval() argument
347 if (likely(pcm == 0)) in cachemode2protval()
349 return __cachemode2pte_tbl[pcm]; in cachemode2protval()
351 static inline pgprot_t cachemode2pgprot(enum page_cache_mode pcm) in cachemode2pgprot() argument
353 return __pgprot(cachemode2protval(pcm)); in cachemode2pgprot()
Dpgtable.h406 enum page_cache_mode pcm, in is_new_memtype_allowed() argument
423 if ((pcm == _PAGE_CACHE_MODE_UC_MINUS && in is_new_memtype_allowed()
425 (pcm == _PAGE_CACHE_MODE_WC && in is_new_memtype_allowed()
427 (pcm == _PAGE_CACHE_MODE_WT && in is_new_memtype_allowed()
429 (pcm == _PAGE_CACHE_MODE_WT && in is_new_memtype_allowed()
/linux-4.4.14/Documentation/sound/alsa/
DProcfile.txt40 pcm
66 stream. The number after 'pcm' is the PCM device number from 0, and
86 card*/pcm*/info
90 card*/pcm*/xrun_debug
120 card*/pcm*/sub*/info
123 card*/pcm*/sub*/status
127 card*/pcm*/sub*/hw_params
130 card*/pcm*/sub*/sw_params
133 card*/pcm*/sub*/prealloc
136 card*/pcm*/sub*/xrun_injection
DOSS-Emulation.txt12 as add-on kernel modules, snd-pcm-oss, snd-mixer-oss and snd-seq-oss.
77 snd-pcm-oss and snd-rawmidi. In the case of PCM, the following
78 options are available for snd-pcm-oss:
88 options snd-pcm-oss adsp_map=2
94 options snd-pcm-oss adsp_map=0,2
124 exists only after snd-pcm-oss module is loaded.
138 disable the application tries to open a pcm device for
172 module option of snd-pcm-oss. For using the blocking mode as default
175 options snd-pcm-oss nonblock_open=0
/linux-4.4.14/sound/soc/spear/
DMakefile2 snd-soc-spear-pcm-objs := spear_pcm.o
6 obj-$(CONFIG_SND_SPEAR_SOC) += snd-soc-spear-pcm.o
/linux-4.4.14/Documentation/ABI/testing/
Dconfigfs-usb-gadget-uac18 fn_cap - capture pcm device file name
10 fn_play - playback pcm device file name
/linux-4.4.14/sound/drivers/
Daloop.c99 struct snd_pcm *pcm[2]; member
151 int device = dpcm->substream->pstr->pcm->device; in get_setup()
614 if (!substream->pcm->device) in get_cable_index()
782 struct snd_pcm *pcm; in loopback_pcm_new() local
786 substreams, substreams, &pcm); in loopback_pcm_new()
789 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &loopback_playback_ops); in loopback_pcm_new()
790 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &loopback_capture_ops); in loopback_pcm_new()
792 pcm->private_data = loopback; in loopback_pcm_new()
793 pcm->info_flags = 0; in loopback_pcm_new()
794 strcpy(pcm->name, "Loopback PCM"); in loopback_pcm_new()
[all …]
Ddummy.c135 struct snd_pcm *pcm; member
580 if (substream->pcm->device & 1) { in dummy_pcm_open()
584 if (substream->pcm->device & 2) in dummy_pcm_open()
693 struct snd_pcm *pcm; in snd_card_dummy_pcm() local
698 substreams, substreams, &pcm); in snd_card_dummy_pcm()
701 dummy->pcm = pcm; in snd_card_dummy_pcm()
706 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, ops); in snd_card_dummy_pcm()
707 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, ops); in snd_card_dummy_pcm()
708 pcm->private_data = dummy; in snd_card_dummy_pcm()
709 pcm->info_flags = 0; in snd_card_dummy_pcm()
[all …]
Dml403-ac97cr.c368 struct snd_pcm *pcm; member
1242 struct snd_pcm *pcm; local
1246 &pcm);
1249 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
1251 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
1253 pcm->private_data = ml403_ac97cr;
1254 pcm->info_flags = 0;
1255 strcpy(pcm->name, "ML403AC97CR DAC/ADC");
1256 ml403_ac97cr->pcm = pcm;
1258 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
/linux-4.4.14/sound/pci/echoaudio/
Dechoaudio.c883 static int snd_echo_preallocate_pages(struct snd_pcm *pcm, struct device *dev) in snd_echo_preallocate_pages() argument
889 for (ss = pcm->streams[stream].substream; ss; ss = ss->next) { in snd_echo_preallocate_pages()
905 struct snd_pcm *pcm; in snd_echo_new_pcm() local
917 num_analog_busses_in(chip), &pcm)) < 0) in snd_echo_new_pcm()
919 pcm->private_data = chip; in snd_echo_new_pcm()
920 chip->analog_pcm = pcm; in snd_echo_new_pcm()
921 strcpy(pcm->name, chip->card->shortname); in snd_echo_new_pcm()
922 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &analog_playback_ops); in snd_echo_new_pcm()
923 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &analog_capture_ops); in snd_echo_new_pcm()
924 if ((err = snd_echo_preallocate_pages(pcm, snd_dma_pci_data(chip->pci))) < 0) in snd_echo_new_pcm()
[all …]
/linux-4.4.14/drivers/media/usb/tm6000/
Dtm6000-alsa.c423 struct snd_pcm *pcm; in tm6000_audio_init() local
461 rc = snd_pcm_new(card, "TM6000 Audio", 0, 0, 1, &pcm); in tm6000_audio_init()
465 pcm->info_flags = 0; in tm6000_audio_init()
466 pcm->private_data = chip; in tm6000_audio_init()
467 strcpy(pcm->name, "Trident TM5600/60x0"); in tm6000_audio_init()
469 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_tm6000_pcm_ops); in tm6000_audio_init()
/linux-4.4.14/sound/usb/usx2y/
Dusbusx2yaudio.c749 struct snd_card *card = substream->pstr->pcm->card; in snd_usX2Y_pcm_hw_params()
935 static void snd_usX2Y_pcm_private_free(struct snd_pcm *pcm) in snd_usX2Y_pcm_private_free() argument
937 struct snd_usX2Y_substream **usX2Y_stream = pcm->private_data; in snd_usX2Y_pcm_private_free()
944 struct snd_pcm *pcm; in usX2Y_audio_stream_new() local
965 &pcm); in usX2Y_audio_stream_new()
972 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_usX2Y_pcm_ops); in usX2Y_audio_stream_new()
973 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_usX2Y_pcm_ops); in usX2Y_audio_stream_new()
975 pcm->private_data = usX2Y_substream; in usX2Y_audio_stream_new()
976 pcm->private_free = snd_usX2Y_pcm_private_free; in usX2Y_audio_stream_new()
977 pcm->info_flags = 0; in usX2Y_audio_stream_new()
[all …]
Dusx2yhwdeppcm.c712 struct snd_pcm *pcm; in usX2Y_hwdep_pcm_new() local
729 err = snd_pcm_new(card, NAME_ALLCAPS" hwdep Audio", 2, 1, 1, &pcm); in usX2Y_hwdep_pcm_new()
733 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_usX2Y_usbpcm_ops); in usX2Y_hwdep_pcm_new()
734 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_usX2Y_usbpcm_ops); in usX2Y_hwdep_pcm_new()
736 pcm->private_data = usX2Y(card)->subs; in usX2Y_hwdep_pcm_new()
737 pcm->info_flags = 0; in usX2Y_hwdep_pcm_new()
739 sprintf(pcm->name, NAME_ALLCAPS" hwdep Audio"); in usX2Y_hwdep_pcm_new()
740 if (0 > (err = snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream, in usX2Y_hwdep_pcm_new()
744 0 > (err = snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, in usX2Y_hwdep_pcm_new()
/linux-4.4.14/sound/pci/ice1712/
Dice1724.c1140 struct snd_pcm *pcm; in snd_vt1724_pcm_profi() local
1148 err = snd_pcm_new(ice->card, "ICE1724", device, 1, capt, &pcm); in snd_vt1724_pcm_profi()
1152 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_vt1724_playback_pro_ops); in snd_vt1724_pcm_profi()
1154 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in snd_vt1724_pcm_profi()
1157 pcm->private_data = ice; in snd_vt1724_pcm_profi()
1158 pcm->info_flags = 0; in snd_vt1724_pcm_profi()
1159 strcpy(pcm->name, "ICE1724"); in snd_vt1724_pcm_profi()
1161 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_vt1724_pcm_profi()
1165 ice->pcm_pro = pcm; in snd_vt1724_pcm_profi()
1321 struct snd_pcm *pcm; in snd_vt1724_pcm_spdif() local
[all …]
Dice1712.c885 struct snd_pcm *pcm; in snd_ice1712_pcm() local
888 err = snd_pcm_new(ice->card, "ICE1712 consumer", device, 1, 1, &pcm); in snd_ice1712_pcm()
892 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ice1712_playback_ops); in snd_ice1712_pcm()
893 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ice1712_capture_ops); in snd_ice1712_pcm()
895 pcm->private_data = ice; in snd_ice1712_pcm()
896 pcm->info_flags = 0; in snd_ice1712_pcm()
897 strcpy(pcm->name, "ICE1712 consumer"); in snd_ice1712_pcm()
898 ice->pcm = pcm; in snd_ice1712_pcm()
900 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_ice1712_pcm()
911 struct snd_pcm *pcm; in snd_ice1712_pcm_ds() local
[all …]
/linux-4.4.14/sound/firewire/dice/
Ddice-pcm.c405 struct snd_pcm *pcm; in snd_dice_create_pcm() local
417 err = snd_pcm_new(dice->card, "DICE", 0, playback, capture, &pcm); in snd_dice_create_pcm()
420 pcm->private_data = dice; in snd_dice_create_pcm()
421 strcpy(pcm->name, dice->card->shortname); in snd_dice_create_pcm()
424 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_ops); in snd_dice_create_pcm()
427 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_ops); in snd_dice_create_pcm()
DMakefile2 dice-pcm.o dice-hwdep.o dice.o
/linux-4.4.14/sound/pci/ca0106/
Dca0106_main.c1367 struct snd_pcm *pcm; in snd_ca0106_pcm() local
1372 err = snd_pcm_new(emu->card, "ca0106", device, 1, 1, &pcm); in snd_ca0106_pcm()
1376 pcm->private_data = emu; in snd_ca0106_pcm()
1380 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ca0106_playback_front_ops); in snd_ca0106_pcm()
1381 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ca0106_capture_0_ops); in snd_ca0106_pcm()
1385 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ca0106_playback_rear_ops); in snd_ca0106_pcm()
1386 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ca0106_capture_1_ops); in snd_ca0106_pcm()
1390 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ca0106_playback_center_lfe_ops); in snd_ca0106_pcm()
1391 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ca0106_capture_2_ops); in snd_ca0106_pcm()
1395 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ca0106_playback_unknown_ops); in snd_ca0106_pcm()
[all …]
/linux-4.4.14/sound/pci/ali5451/
Dali5451.c188 pcm :1, member
241 struct snd_pcm *pcm[MAX_CODECS]; member
867 if (pvoice->pcm && pvoice->substream) { in snd_ali_update_ptr()
943 pvoice->pcm = 1; in snd_ali_alloc_voice()
968 if (pvoice->pcm) in snd_ali_free_voice()
970 pvoice->use = pvoice->pcm = pvoice->synth = 0; in snd_ali_free_voice()
1660 static void snd_ali_pcm_free(struct snd_pcm *pcm) in snd_ali_pcm_free() argument
1662 struct snd_ali *codec = pcm->private_data; in snd_ali_pcm_free()
1663 codec->pcm[pcm->device] = NULL; in snd_ali_pcm_free()
1670 struct snd_pcm *pcm; in snd_ali_pcm() local
[all …]
/linux-4.4.14/sound/sparc/
Damd7930.c325 struct snd_pcm *pcm; member
760 struct snd_pcm *pcm; in snd_amd7930_pcm() local
767 /* capture count */ 1, &pcm)) < 0) in snd_amd7930_pcm()
770 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_amd7930_playback_ops); in snd_amd7930_pcm()
771 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_amd7930_capture_ops); in snd_amd7930_pcm()
773 pcm->private_data = amd; in snd_amd7930_pcm()
774 pcm->info_flags = 0; in snd_amd7930_pcm()
775 strcpy(pcm->name, amd->card->shortname); in snd_amd7930_pcm()
776 amd->pcm = pcm; in snd_amd7930_pcm()
778 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, in snd_amd7930_pcm()
/linux-4.4.14/sound/pci/cs46xx/
Dcs46xx_lib.c1405 if ((status1 & HISR_VC1) && chip->pcm) { in snd_cs46xx_interrupt()
1544 dev_dbg(substream->pcm->card->dev, "open front channel\n"); in snd_cs46xx_playback_open()
1551 dev_dbg(substream->pcm->card->dev, "open rear channel\n"); in snd_cs46xx_playback_open_rear()
1557 dev_dbg(substream->pcm->card->dev, "open center - LFE channel\n"); in snd_cs46xx_playback_open_clfe()
1782 struct snd_pcm *pcm; in snd_cs46xx_pcm() local
1785 if ((err = snd_pcm_new(chip->card, "CS46xx", device, MAX_PLAYBACK_CHANNELS, 1, &pcm)) < 0) in snd_cs46xx_pcm()
1788 pcm->private_data = chip; in snd_cs46xx_pcm()
1790 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs46xx_playback_ops); in snd_cs46xx_pcm()
1791 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cs46xx_capture_ops); in snd_cs46xx_pcm()
1794 pcm->info_flags = 0; in snd_cs46xx_pcm()
[all …]
/linux-4.4.14/sound/pci/lx6464es/
Dlx6464es.c273 dev_dbg(substream->pcm->card->dev, "->lx_pcm_close\n"); in lx_pcm_close()
832 struct snd_pcm *pcm; in lx_pcm_create() local
844 1, 1, &pcm); in lx_pcm_create()
848 pcm->private_data = chip; in lx_pcm_create()
850 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &lx_ops_playback); in lx_pcm_create()
851 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &lx_ops_capture); in lx_pcm_create()
853 pcm->info_flags = 0; in lx_pcm_create()
854 pcm->nonatomic = true; in lx_pcm_create()
855 strcpy(pcm->name, card_name); in lx_pcm_create()
857 err = snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in lx_pcm_create()
[all …]
/linux-4.4.14/sound/spi/
Dat73c213.c66 struct snd_pcm *pcm; member
335 struct snd_pcm *pcm; in snd_at73c213_pcm_new() local
339 device, 1, 0, &pcm); in snd_at73c213_pcm_new()
343 pcm->private_data = chip; in snd_at73c213_pcm_new()
344 pcm->info_flags = SNDRV_PCM_INFO_BLOCK_TRANSFER; in snd_at73c213_pcm_new()
345 strcpy(pcm->name, "at73c213"); in snd_at73c213_pcm_new()
346 chip->pcm = pcm; in snd_at73c213_pcm_new()
348 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &at73c213_playback_ops); in snd_at73c213_pcm_new()
350 retval = snd_pcm_lib_preallocate_pages_for_all(chip->pcm, in snd_at73c213_pcm_new()
717 if (chip == NULL || chip->pcm == NULL) in snd_at73c213_mixer()
[all …]
/linux-4.4.14/drivers/media/usb/go7007/
Dsnd-go7007.c46 struct snd_pcm *pcm; member
256 ret = snd_pcm_new(gosnd->card, "go7007", 0, 0, 1, &gosnd->pcm); in go7007_snd_init()
267 gosnd->pcm->private_data = go; in go7007_snd_init()
268 snd_pcm_set_ops(gosnd->pcm, SNDRV_PCM_STREAM_CAPTURE, in go7007_snd_init()
/linux-4.4.14/sound/isa/ad1816a/
Dad1816a_lib.c520 snd_pcm_suspend_all(chip->pcm); in snd_ad1816a_suspend()
681 struct snd_pcm *pcm; in snd_ad1816a_pcm() local
683 if ((error = snd_pcm_new(chip->card, "AD1816A", device, 1, 1, &pcm))) in snd_ad1816a_pcm()
686 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ad1816a_playback_ops); in snd_ad1816a_pcm()
687 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ad1816a_capture_ops); in snd_ad1816a_pcm()
689 pcm->private_data = chip; in snd_ad1816a_pcm()
690 pcm->info_flags = (chip->dma1 == chip->dma2 ) ? SNDRV_PCM_INFO_JOINT_DUPLEX : 0; in snd_ad1816a_pcm()
692 strcpy(pcm->name, snd_ad1816a_chip_id(chip)); in snd_ad1816a_pcm()
695 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_ad1816a_pcm()
699 chip->pcm = pcm; in snd_ad1816a_pcm()
/linux-4.4.14/sound/parisc/
Dharmony.c624 struct snd_pcm *pcm; in snd_harmony_pcm_init() local
632 err = snd_pcm_new(h->card, "harmony", 0, 1, 1, &pcm); in snd_harmony_pcm_init()
636 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_harmony_pcm_init()
638 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in snd_harmony_pcm_init()
641 pcm->private_data = h; in snd_harmony_pcm_init()
642 pcm->info_flags = 0; in snd_harmony_pcm_init()
643 strcpy(pcm->name, "harmony"); in snd_harmony_pcm_init()
644 h->pcm = pcm; in snd_harmony_pcm_init()
672 err = snd_pcm_lib_preallocate_pages_for_all(pcm, h->dma.type, in snd_harmony_pcm_init()
/linux-4.4.14/sound/soc/intel/skylake/
Dskl-pcm.c655 if (s->pcm->card != substream->pcm->card) in skl_coupled_trigger()
668 if (s->pcm->card != substream->pcm->card) in skl_coupled_trigger()
882 static void skl_pcm_free(struct snd_pcm *pcm) in skl_pcm_free() argument
884 snd_pcm_lib_preallocate_free_for_all(pcm); in skl_pcm_free()
893 struct snd_pcm *pcm = rtd->pcm; in skl_pcm_new() local
904 retval = snd_pcm_lib_preallocate_pages_for_all(pcm, in skl_pcm_new()
DMakefile1 snd-soc-skl-objs := skl.o skl-pcm.o skl-nhlt.o skl-messages.o \
/linux-4.4.14/Documentation/devicetree/bindings/soc/mediatek/
Dscpsys.txt40 afe: mt8173-afe-pcm@11220000 {
41 compatible = "mediatek,mt8173-afe-pcm";
/linux-4.4.14/sound/soc/qcom/
Dlpass-platform.c343 return dma_mmap_coherent(substream->pcm->card->dev, vma, in lpass_platform_pcmops_mmap()
477 struct snd_pcm *pcm = soc_runtime->pcm; in lpass_platform_pcm_new() local
479 pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in lpass_platform_pcm_new()
524 static void lpass_platform_pcm_free(struct snd_pcm *pcm) in lpass_platform_pcm_free() argument
527 pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in lpass_platform_pcm_free()
/linux-4.4.14/sound/soc/intel/atom/
Dsst-mfld-platform-pcm.c201 index = sst_get_stream_mapping(pstream->pcm->device, in sst_fill_stream_params()
387 snprintf(substream->pcm->id, sizeof(substream->pcm->id), in sst_media_prepare()
586 if (substream->pcm->internal) in sst_platform_open()
603 if (substream->pcm->internal) in sst_platform_pcm_trigger()
674 struct snd_pcm *pcm = rtd->pcm; in sst_pcm_new() local
679 retval = snd_pcm_lib_preallocate_pages_for_all(pcm, in sst_pcm_new()
DMakefile1 snd-soc-sst-mfld-platform-objs := sst-mfld-platform-pcm.o \
/linux-4.4.14/sound/pci/aw2/
Daw2-alsa.c90 struct snd_pcm *pcm; member
399 dev_dbg(substream->pcm->card->dev, "Playback_open\n"); in snd_aw2_pcm_playback_open()
415 dev_dbg(substream->pcm->card->dev, "Capture_open\n"); in snd_aw2_pcm_capture_open()
618 pcm_device->pcm = pcm_playback_ana; in snd_aw2_new_pcm()
655 pcm_device->pcm = pcm_playback_num; in snd_aw2_new_pcm()
693 pcm_device->pcm = pcm_capture; in snd_aw2_new_pcm()
/linux-4.4.14/drivers/media/pci/cx23885/
Dcx23885-alsa.c528 struct snd_pcm *pcm; in snd_cx23885_pcm() local
530 err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); in snd_cx23885_pcm()
533 pcm->private_data = chip; in snd_cx23885_pcm()
534 strcpy(pcm->name, name); in snd_cx23885_pcm()
535 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cx23885_pcm_ops); in snd_cx23885_pcm()
/linux-4.4.14/sound/isa/es1688/
Des1688_lib.c733 struct snd_pcm *pcm; in snd_es1688_pcm() local
736 err = snd_pcm_new(card, "ESx688", device, 1, 1, &pcm); in snd_es1688_pcm()
740 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_es1688_playback_ops); in snd_es1688_pcm()
741 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_es1688_capture_ops); in snd_es1688_pcm()
743 pcm->private_data = chip; in snd_es1688_pcm()
744 pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX; in snd_es1688_pcm()
745 sprintf(pcm->name, snd_es1688_chip_id(chip)); in snd_es1688_pcm()
746 chip->pcm = pcm; in snd_es1688_pcm()
748 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_es1688_pcm()
Des1688.c152 strlcpy(card->shortname, chip->pcm->name, sizeof(card->shortname)); in snd_es1688_probe()
154 "%s at 0x%lx, irq %i, dma %i", chip->pcm->name, chip->port, in snd_es1688_probe()
309 snd_pcm_suspend_all(chip->pcm); in snd_es968_pnp_suspend()
/linux-4.4.14/sound/ppc/
Dpmac.c709 struct snd_pcm *pcm; in snd_pmac_pcm_new() local
715 err = snd_pcm_new(chip->card, chip->card->driver, 0, 1, num_captures, &pcm); in snd_pmac_pcm_new()
719 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_pmac_playback_ops); in snd_pmac_pcm_new()
721 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_pmac_capture_ops); in snd_pmac_pcm_new()
723 pcm->private_data = chip; in snd_pmac_pcm_new()
724 pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; in snd_pmac_pcm_new()
725 strcpy(pcm->name, chip->card->shortname); in snd_pmac_pcm_new()
726 chip->pcm = pcm; in snd_pmac_pcm_new()
738 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_pmac_pcm_new()
1369 snd_pcm_suspend_all(chip->pcm); in snd_pmac_suspend()
Dsnd_ps3.c531 pcm_index = substream->pcm->device; in snd_ps3_pcm_open()
1011 &(the_card.pcm)); in snd_ps3_driver_probe()
1015 the_card.pcm->private_data = &the_card; in snd_ps3_driver_probe()
1016 strcpy(the_card.pcm->name, "SPDIF"); in snd_ps3_driver_probe()
1019 snd_pcm_set_ops(the_card.pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_ps3_driver_probe()
1022 the_card.pcm->info_flags = SNDRV_PCM_INFO_NONINTERLEAVED; in snd_ps3_driver_probe()
1024 ret = snd_pcm_lib_preallocate_pages_for_all(the_card.pcm, in snd_ps3_driver_probe()
/linux-4.4.14/sound/soc/tegra/
DMakefile2 snd-soc-tegra-pcm-objs := tegra_pcm.o
11 obj-$(CONFIG_SND_SOC_TEGRA) += snd-soc-tegra-pcm.o
/linux-4.4.14/sound/isa/msnd/
Dmsnd.c685 struct snd_pcm *pcm; in snd_msnd_pcm() local
688 err = snd_pcm_new(card, "MSNDPINNACLE", device, 1, 1, &pcm); in snd_msnd_pcm()
692 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_msnd_playback_ops); in snd_msnd_pcm()
693 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_msnd_capture_ops); in snd_msnd_pcm()
695 pcm->private_data = chip; in snd_msnd_pcm()
696 strcpy(pcm->name, "Hurricane"); in snd_msnd_pcm()
/linux-4.4.14/drivers/media/pci/cx25821/
Dcx25821-alsa.c671 struct snd_pcm *pcm; in snd_cx25821_pcm() local
674 err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); in snd_cx25821_pcm()
679 pcm->private_data = chip; in snd_cx25821_pcm()
680 pcm->info_flags = 0; in snd_cx25821_pcm()
681 strcpy(pcm->name, name); in snd_cx25821_pcm()
682 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cx25821_pcm_ops); in snd_cx25821_pcm()
/linux-4.4.14/sound/soc/au1x/
Ddbdma2.c321 struct snd_pcm *pcm = rtd->pcm; in au1xpsc_pcm_new() local
323 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in au1xpsc_pcm_new()
Ddma.c292 struct snd_pcm *pcm = rtd->pcm; in alchemy_pcm_new() local
294 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, in alchemy_pcm_new()
/linux-4.4.14/sound/soc/mediatek/
DMakefile2 obj-$(CONFIG_SND_SOC_MEDIATEK) += mtk-afe-pcm.o
/linux-4.4.14/sound/isa/ad1848/
Dad1848.c114 strcpy(card->shortname, chip->pcm->name); in snd_ad1848_probe()
117 chip->pcm->name, chip->port, irq[n], dma1[n]); in snd_ad1848_probe()
/linux-4.4.14/drivers/media/usb/cx231xx/
Dcx231xx-audio.c650 struct snd_pcm *pcm; in cx231xx_audio_init() local
673 err = snd_pcm_new(card, "Cx231xx Audio", 0, 0, 1, &pcm); in cx231xx_audio_init()
679 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in cx231xx_audio_init()
681 pcm->info_flags = 0; in cx231xx_audio_init()
682 pcm->private_data = dev; in cx231xx_audio_init()
683 strcpy(pcm->name, "Conexant cx231xx Capture"); in cx231xx_audio_init()
/linux-4.4.14/Documentation/sound/alsa/soc/
Dplatform.txt34 /* pcm creation and destruction */
52 An example DMA driver is soc/pxa/pxa2xx-pcm.c
/linux-4.4.14/include/drm/i2c/
Dch7006.h63 int xcm, pcm; member
/linux-4.4.14/drivers/media/pci/cobalt/
DMakefile3 cobalt-alsa-main.o cobalt-alsa-pcm.o
/linux-4.4.14/sound/isa/cs423x/
Dcs4231.c113 strcpy(card->shortname, chip->pcm->name); in snd_cs4231_probe()
116 chip->pcm->name, chip->port, irq[n], dma1[n]); in snd_cs4231_probe()
/linux-4.4.14/sound/pci/nm256/
Dnm256.c247 struct snd_pcm *pcm; member
937 struct snd_pcm *pcm; in snd_nm256_pcm() local
947 1, 1, &pcm); in snd_nm256_pcm()
951 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_nm256_playback_ops); in snd_nm256_pcm()
952 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_nm256_capture_ops); in snd_nm256_pcm()
954 pcm->private_data = chip; in snd_nm256_pcm()
955 pcm->info_flags = 0; in snd_nm256_pcm()
956 chip->pcm = pcm; in snd_nm256_pcm()
1399 snd_pcm_suspend_all(chip->pcm); in nm256_suspend()
/linux-4.4.14/sound/pci/pcxhr/
Dpcxhr.c1165 struct snd_pcm *pcm; in pcxhr_create_pcm() local
1171 chip->nb_streams_capt, &pcm)) < 0) { in pcxhr_create_pcm()
1175 pcm->private_data = chip; in pcxhr_create_pcm()
1178 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcxhr_ops); in pcxhr_create_pcm()
1180 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pcxhr_ops); in pcxhr_create_pcm()
1182 pcm->info_flags = 0; in pcxhr_create_pcm()
1183 pcm->nonatomic = true; in pcxhr_create_pcm()
1184 strcpy(pcm->name, name); in pcxhr_create_pcm()
1186 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in pcxhr_create_pcm()
1189 chip->pcm = pcm; in pcxhr_create_pcm()
/linux-4.4.14/drivers/usb/gadget/function/
Df_uac2.c94 struct snd_pcm *pcm; member
448 struct snd_pcm *pcm; in snd_uac2_probe() local
471 p_chmask ? 1 : 0, c_chmask ? 1 : 0, &pcm); in snd_uac2_probe()
475 strcpy(pcm->name, "UAC2 PCM"); in snd_uac2_probe()
476 pcm->private_data = uac2; in snd_uac2_probe()
478 uac2->pcm = pcm; in snd_uac2_probe()
480 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &uac2_pcm_ops); in snd_uac2_probe()
481 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &uac2_pcm_ops); in snd_uac2_probe()
487 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, in snd_uac2_probe()
499 uac2->pcm = NULL; in snd_uac2_probe()
/linux-4.4.14/sound/isa/wss/
Dwss_lib.c1630 snd_pcm_suspend_all(chip->pcm); in snd_wss_suspend()
1928 struct snd_pcm *pcm; in snd_wss_pcm() local
1931 err = snd_pcm_new(chip->card, "WSS", device, 1, 1, &pcm); in snd_wss_pcm()
1935 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_wss_playback_ops); in snd_wss_pcm()
1936 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_wss_capture_ops); in snd_wss_pcm()
1939 pcm->private_data = chip; in snd_wss_pcm()
1940 pcm->info_flags = 0; in snd_wss_pcm()
1942 pcm->info_flags |= SNDRV_PCM_INFO_HALF_DUPLEX; in snd_wss_pcm()
1944 pcm->info_flags |= SNDRV_PCM_INFO_JOINT_DUPLEX; in snd_wss_pcm()
1945 strcpy(pcm->name, snd_wss_chip_id(chip)); in snd_wss_pcm()
[all …]

12