Home
last modified time | relevance | path

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

1234567891011

/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 …]
/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 …]
/sound/core/
Dpcm.c44 static int snd_pcm_free(struct snd_pcm *pcm);
51 struct snd_pcm *pcm; in snd_pcm_get() local
53 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_get()
54 if (pcm->card == card && pcm->device == device) in snd_pcm_get()
55 return pcm; in snd_pcm_get()
62 struct snd_pcm *pcm; in snd_pcm_next() local
64 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_next()
65 if (pcm->card == card && pcm->device > device) in snd_pcm_next()
66 return pcm->device; in snd_pcm_next()
67 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
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/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()
/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 …]
/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 …]
/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 …]
/sound/firewire/digi00x/
Damdtp-dot.c53 struct snd_pcm_substream *pcm,
150 static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in write_pcm_s32() argument
154 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s32()
176 static void write_pcm_s16(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in write_pcm_s16() argument
180 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s16()
202 static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in read_pcm_s32() argument
206 struct snd_pcm_runtime *runtime = pcm->runtime; in read_pcm_s32()
396 struct snd_pcm_substream *pcm; in process_tx_data_blocks() local
399 pcm = ACCESS_ONCE(s->pcm); in process_tx_data_blocks()
400 if (pcm) { in process_tx_data_blocks()
[all …]
/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 …]
/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 …]
/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 …]
/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
/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 …]
/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()
/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 …]
/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 …]

1234567891011