Symbol: pcm
arch/mips/include/asm/octeon/cvmx-coremask.h
48
static inline bool cvmx_coremask_is_core_set(const struct cvmx_coremask *pcm,
arch/mips/include/asm/octeon/cvmx-coremask.h
56
return (pcm->coremask_bitmap[i] & ((u64)1 << n)) != 0;
arch/mips/include/asm/octeon/cvmx-coremask.h
71
static inline void cvmx_coremask_set64(struct cvmx_coremask *pcm,
arch/mips/include/asm/octeon/cvmx-coremask.h
74
pcm->coremask_bitmap[0] = coremask_64;
arch/mips/include/asm/octeon/cvmx-coremask.h
80
static inline void cvmx_coremask_clear_core(struct cvmx_coremask *pcm, int core)
arch/mips/include/asm/octeon/cvmx-coremask.h
86
pcm->coremask_bitmap[i] &= ~(1ull << n);
arch/x86/include/asm/io.h
330
enum page_cache_mode pcm);
arch/x86/include/asm/memtype.h
17
enum page_cache_mode pcm);
arch/x86/include/asm/memtype.h
20
enum page_cache_mode *pcm);
arch/x86/include/asm/pgtable.h
870
enum page_cache_mode pcm,
arch/x86/include/asm/pgtable.h
887
if ((pcm == _PAGE_CACHE_MODE_UC_MINUS &&
arch/x86/include/asm/pgtable.h
889
(pcm == _PAGE_CACHE_MODE_WC &&
arch/x86/include/asm/pgtable.h
891
(pcm == _PAGE_CACHE_MODE_WT &&
arch/x86/include/asm/pgtable.h
893
(pcm == _PAGE_CACHE_MODE_WT &&
arch/x86/include/asm/pgtable_types.h
493
unsigned long cachemode2protval(enum page_cache_mode pcm);
arch/x86/mm/init.c
64
unsigned long cachemode2protval(enum page_cache_mode pcm)
arch/x86/mm/init.c
66
if (likely(pcm == 0))
arch/x86/mm/init.c
68
return __cachemode2pte_tbl[pcm];
arch/x86/mm/iomap_32.c
23
enum page_cache_mode pcm = _PAGE_CACHE_MODE_WC;
arch/x86/mm/iomap_32.c
29
ret = memtype_reserve_io(base, base + size, &pcm);
arch/x86/mm/iomap_32.c
33
*prot = __pgprot(__PAGE_KERNEL | cachemode2protval(pcm));
arch/x86/mm/ioremap.c
185
enum page_cache_mode pcm, void *caller, bool encrypted)
arch/x86/mm/ioremap.c
235
pcm, &new_pcm);
arch/x86/mm/ioremap.c
241
if (pcm != new_pcm) {
arch/x86/mm/ioremap.c
242
if (!is_new_memtype_allowed(phys_addr, size, pcm, new_pcm)) {
arch/x86/mm/ioremap.c
247
pcm, new_pcm);
arch/x86/mm/ioremap.c
250
pcm = new_pcm;
arch/x86/mm/ioremap.c
267
switch (pcm) {
arch/x86/mm/ioremap.c
298
if (memtype_kernel_map_sync(phys_addr, size, pcm))
arch/x86/mm/ioremap.c
353
enum page_cache_mode pcm = _PAGE_CACHE_MODE_UC_MINUS;
arch/x86/mm/ioremap.c
355
return __ioremap_caller(phys_addr, size, pcm,
arch/x86/mm/ioremap.c
386
enum page_cache_mode pcm = _PAGE_CACHE_MODE_UC;
arch/x86/mm/ioremap.c
388
return __ioremap_caller(phys_addr, size, pcm,
arch/x86/mm/ioremap.c
46
enum page_cache_mode pcm)
arch/x86/mm/ioremap.c
51
switch (pcm) {
arch/x86/mm/pat/memtype.c
778
static inline void pgprot_set_cachemode(pgprot_t *prot, enum page_cache_mode pcm)
arch/x86/mm/pat/memtype.c
781
cachemode2protval(pcm));
arch/x86/mm/pat/memtype.c
787
enum page_cache_mode pcm = _PAGE_CACHE_MODE_WB;
arch/x86/mm/pat/memtype.c
796
pcm = _PAGE_CACHE_MODE_UC_MINUS;
arch/x86/mm/pat/memtype.c
798
pgprot_set_cachemode(vma_prot, pcm);
arch/x86/mm/pat/memtype.c
807
enum page_cache_mode pcm)
arch/x86/mm/pat/memtype.c
824
if (ioremap_change_attr((unsigned long)__va(base), id_sz, pcm) < 0) {
arch/x86/mm/pat/memtype.c
827
cattr_name(pcm),
arch/x86/mm/pat/memtype.c
844
enum page_cache_mode pcm = want_pcm;
arch/x86/mm/pat/memtype.c
857
pcm = lookup_memtype(paddr);
arch/x86/mm/pat/memtype.c
858
if (want_pcm != pcm) {
arch/x86/mm/pat/memtype.c
864
cattr_name(pcm));
arch/x86/mm/pat/memtype.c
865
pgprot_set_cachemode(vma_prot, pcm);
arch/x86/mm/pat/memtype.c
870
ret = memtype_reserve(paddr, paddr + size, want_pcm, &pcm);
arch/x86/mm/pat/memtype.c
874
if (pcm != want_pcm) {
arch/x86/mm/pat/memtype.c
875
if (!is_new_memtype_allowed(paddr, size, want_pcm, pcm)) {
arch/x86/mm/pat/memtype.c
882
cattr_name(pcm));
arch/x86/mm/pat/memtype.c
885
pgprot_set_cachemode(vma_prot, pcm);
arch/x86/mm/pat/memtype.c
888
if (memtype_kernel_map_sync(paddr, size, pcm) < 0) {
arch/x86/mm/pat/memtype.c
911
enum page_cache_mode pcm;
arch/x86/mm/pat/memtype.c
916
pcm = lookup_memtype(paddr);
arch/x86/mm/pat/memtype.c
922
if (pcm != lookup_memtype(paddr))
arch/x86/mm/pat/memtype.c
926
pgprot_set_cachemode(prot, pcm);
arch/x86/mm/pat/memtype.h
18
static inline char *cattr_name(enum page_cache_mode pcm)
arch/x86/mm/pat/memtype.h
20
switch (pcm) {
arch/x86/mm/pat/set_memory.c
78
static inline pgprot_t cachemode2pgprot(enum page_cache_mode pcm)
arch/x86/mm/pat/set_memory.c
80
return __pgprot(cachemode2protval(pcm));
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
119
struct snd_pcm *pcm;
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
549
struct snd_pcm *pcm;
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
580
ret = snd_pcm_new(card, "DW HDMI", 0, 1, 0, &pcm);
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
584
dw->pcm = pcm;
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
585
pcm->private_data = dw;
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
586
strscpy(pcm->name, DRIVER_NAME, sizeof(pcm->name));
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
587
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_dw_hdmi_ops);
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
593
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
drivers/gpu/drm/nouveau/dispnv04/i2c/ch7006_drv.c
137
| bitf(CH7006_CLKMODE_PCM, params->pcm);
drivers/gpu/drm/nouveau/include/dispnv04/i2c/ch7006.h
64
int xcm, pcm;
drivers/gpu/drm/tegra/hda.c
17
fmt->pcm = false;
drivers/gpu/drm/tegra/hda.c
19
fmt->pcm = true;
drivers/gpu/drm/tegra/hda.h
15
bool pcm;
drivers/media/pci/cx23885/cx23885-alsa.c
516
struct snd_pcm *pcm;
drivers/media/pci/cx23885/cx23885-alsa.c
518
err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm);
drivers/media/pci/cx23885/cx23885-alsa.c
521
pcm->private_data = chip;
drivers/media/pci/cx23885/cx23885-alsa.c
522
strscpy(pcm->name, name, sizeof(pcm->name));
drivers/media/pci/cx23885/cx23885-alsa.c
523
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cx23885_pcm_ops);
drivers/media/pci/cx25821/cx25821-alsa.c
658
struct snd_pcm *pcm;
drivers/media/pci/cx25821/cx25821-alsa.c
661
err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm);
drivers/media/pci/cx25821/cx25821-alsa.c
666
pcm->private_data = chip;
drivers/media/pci/cx25821/cx25821-alsa.c
667
pcm->info_flags = 0;
drivers/media/pci/cx25821/cx25821-alsa.c
668
strscpy(pcm->name, name, sizeof(pcm->name));
drivers/media/pci/cx25821/cx25821-alsa.c
669
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cx25821_pcm_ops);
drivers/media/pci/cx88/cx88-alsa.c
605
struct snd_pcm *pcm;
drivers/media/pci/cx88/cx88-alsa.c
607
err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm);
drivers/media/pci/cx88/cx88-alsa.c
610
pcm->private_data = chip;
drivers/media/pci/cx88/cx88-alsa.c
611
strscpy(pcm->name, name, sizeof(pcm->name));
drivers/media/pci/cx88/cx88-alsa.c
612
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cx88_pcm_ops);
drivers/media/pci/ngene/ngene.h
591
struct snd_pcm *pcm;
drivers/media/pci/saa7134/saa7134-alsa.c
236
snd_card_saa7134_pcm_t *pcm = runtime->private_data;
drivers/media/pci/saa7134/saa7134-alsa.c
237
struct saa7134_dev *dev=pcm->dev;
drivers/media/pci/saa7134/saa7134-alsa.c
504
snd_card_saa7134_pcm_t *pcm = runtime->private_data;
drivers/media/pci/saa7134/saa7134-alsa.c
506
pcm->dev->dmasound.substream = substream;
drivers/media/pci/saa7134/saa7134-alsa.c
594
snd_card_saa7134_pcm_t *pcm = runtime->private_data;
drivers/media/pci/saa7134/saa7134-alsa.c
595
struct saa7134_dev *dev=pcm->dev;
drivers/media/pci/saa7134/saa7134-alsa.c
646
snd_card_saa7134_pcm_t *pcm = runtime->private_data;
drivers/media/pci/saa7134/saa7134-alsa.c
648
kfree(pcm);
drivers/media/pci/saa7134/saa7134-alsa.c
797
snd_card_saa7134_pcm_t *pcm;
drivers/media/pci/saa7134/saa7134-alsa.c
819
pcm = kzalloc_obj(*pcm);
drivers/media/pci/saa7134/saa7134-alsa.c
820
if (pcm == NULL)
drivers/media/pci/saa7134/saa7134-alsa.c
823
pcm->dev=saa7134->dev;
drivers/media/pci/saa7134/saa7134-alsa.c
825
spin_lock_init(&pcm->lock);
drivers/media/pci/saa7134/saa7134-alsa.c
827
pcm->substream = substream;
drivers/media/pci/saa7134/saa7134-alsa.c
828
runtime->private_data = pcm;
drivers/media/pci/saa7134/saa7134-alsa.c
887
struct snd_pcm *pcm;
drivers/media/pci/saa7134/saa7134-alsa.c
890
if ((err = snd_pcm_new(saa7134->card, "SAA7134 PCM", device, 0, 1, &pcm)) < 0)
drivers/media/pci/saa7134/saa7134-alsa.c
892
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_card_saa7134_capture_ops);
drivers/media/pci/saa7134/saa7134-alsa.c
893
pcm->private_data = saa7134;
drivers/media/pci/saa7134/saa7134-alsa.c
894
pcm->info_flags = 0;
drivers/media/pci/saa7134/saa7134-alsa.c
895
strscpy(pcm->name, "SAA7134 PCM", sizeof(pcm->name));
drivers/media/pci/solo6x10/solo6x10-g723.c
293
struct snd_pcm *pcm;
drivers/media/pci/solo6x10/solo6x10-g723.c
299
&pcm);
drivers/media/pci/solo6x10/solo6x10-g723.c
303
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
drivers/media/pci/solo6x10/solo6x10-g723.c
306
snd_pcm_chip(pcm) = solo_dev;
drivers/media/pci/solo6x10/solo6x10-g723.c
307
pcm->info_flags = 0;
drivers/media/pci/solo6x10/solo6x10-g723.c
308
strscpy(pcm->name, card->shortname, sizeof(pcm->name));
drivers/media/pci/solo6x10/solo6x10-g723.c
310
for (i = 0, ss = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
drivers/media/pci/solo6x10/solo6x10-g723.c
314
snd_pcm_set_managed_buffer_all(pcm,
drivers/media/pci/solo6x10/solo6x10-g723.c
320
solo_dev->snd_pcm = pcm;
drivers/media/pci/tw686x/tw686x-audio.c
269
struct snd_pcm *pcm;
drivers/media/pci/tw686x/tw686x-audio.c
274
err = snd_pcm_new(card, card->driver, 0, 0, max_channels(dev), &pcm);
drivers/media/pci/tw686x/tw686x-audio.c
278
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &tw686x_pcm_ops);
drivers/media/pci/tw686x/tw686x-audio.c
279
snd_pcm_chip(pcm) = dev;
drivers/media/pci/tw686x/tw686x-audio.c
280
pcm->info_flags = 0;
drivers/media/pci/tw686x/tw686x-audio.c
281
strscpy(pcm->name, "tw686x PCM", sizeof(pcm->name));
drivers/media/pci/tw686x/tw686x-audio.c
283
for (i = 0, ss = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
drivers/media/pci/tw686x/tw686x-audio.c
287
snd_pcm_set_managed_buffer_all(pcm,
drivers/media/usb/cx231xx/cx231xx-audio.c
562
struct snd_pcm *pcm;
drivers/media/usb/cx231xx/cx231xx-audio.c
585
err = snd_pcm_new(card, "Cx231xx Audio", 0, 0, 1, &pcm);
drivers/media/usb/cx231xx/cx231xx-audio.c
589
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
drivers/media/usb/cx231xx/cx231xx-audio.c
591
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
drivers/media/usb/cx231xx/cx231xx-audio.c
592
pcm->info_flags = 0;
drivers/media/usb/cx231xx/cx231xx-audio.c
593
pcm->private_data = dev;
drivers/media/usb/cx231xx/cx231xx-audio.c
594
strscpy(pcm->name, "Conexant cx231xx Capture", sizeof(pcm->name));
drivers/media/usb/em28xx/em28xx-audio.c
806
struct snd_pcm *pcm;
drivers/media/usb/em28xx/em28xx-audio.c
838
err = snd_pcm_new(card, "Em28xx Audio", 0, 0, 1, &pcm);
drivers/media/usb/em28xx/em28xx-audio.c
842
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_em28xx_pcm_capture);
drivers/media/usb/em28xx/em28xx-audio.c
843
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
drivers/media/usb/em28xx/em28xx-audio.c
844
pcm->info_flags = 0;
drivers/media/usb/em28xx/em28xx-audio.c
845
pcm->private_data = dev;
drivers/media/usb/em28xx/em28xx-audio.c
846
strscpy(pcm->name, "Empia 28xx Capture", sizeof(pcm->name));
drivers/media/usb/go7007/snd-go7007.c
226
ret = snd_pcm_new(gosnd->card, "go7007", 0, 0, 1, &gosnd->pcm);
drivers/media/usb/go7007/snd-go7007.c
235
gosnd->pcm->private_data = go;
drivers/media/usb/go7007/snd-go7007.c
236
snd_pcm_set_ops(gosnd->pcm, SNDRV_PCM_STREAM_CAPTURE,
drivers/media/usb/go7007/snd-go7007.c
238
snd_pcm_set_managed_buffer_all(gosnd->pcm, SNDRV_DMA_TYPE_VMALLOC,
drivers/media/usb/go7007/snd-go7007.c
37
struct snd_pcm *pcm;
drivers/media/usb/usbtv/usbtv-audio.c
324
struct snd_pcm *pcm;
drivers/media/usb/usbtv/usbtv-audio.c
344
rv = snd_pcm_new(card, "USBTV Audio", 0, 0, 1, &pcm);
drivers/media/usb/usbtv/usbtv-audio.c
348
strscpy(pcm->name, "USBTV Audio Input", sizeof(pcm->name));
drivers/media/usb/usbtv/usbtv-audio.c
349
pcm->info_flags = 0;
drivers/media/usb/usbtv/usbtv-audio.c
350
pcm->private_data = usbtv;
drivers/media/usb/usbtv/usbtv-audio.c
352
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_usbtv_pcm_ops);
drivers/media/usb/usbtv/usbtv-audio.c
353
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
drivers/most/most_snd.c
519
struct snd_pcm *pcm;
drivers/most/most_snd.c
595
playback_count, capture_count, &pcm);
drivers/most/most_snd.c
600
pcm->private_data = channel;
drivers/most/most_snd.c
601
strscpy(pcm->name, device_name, sizeof(pcm->name));
drivers/most/most_snd.c
602
snd_pcm_set_ops(pcm, direction, &pcm_ops);
drivers/most/most_snd.c
603
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
drivers/net/fddi/skfp/h/cmtdef.h
500
void pcm(struct s_smc *smc, const int np, int event);
drivers/net/fddi/skfp/queue.c
97
pcm(smc,class - EVENT_PCMA,(int)ev->event) ;
drivers/net/fddi/skfp/smtinit.c
105
pcm(smc,p,0) ; /* PCM A state machine */
drivers/net/wireless/broadcom/b43/b43.h
784
struct b43_firmware_file pcm;
drivers/net/wireless/broadcom/b43/main.c
2161
b43_do_release_fw(&dev->fw.pcm);
drivers/net/wireless/broadcom/b43/main.c
2388
err = b43_do_request_fw(ctx, filename, &fw->pcm, false);
drivers/net/wireless/broadcom/b43/main.c
2646
if (dev->fw.pcm.data) {
drivers/net/wireless/broadcom/b43/main.c
2648
data = (__be32 *) (dev->fw.pcm.data->data + hdr_len);
drivers/net/wireless/broadcom/b43/main.c
2649
len = (dev->fw.pcm.data->size - hdr_len) / sizeof(__be32);
drivers/net/wireless/broadcom/b43legacy/b43legacy.h
646
const struct firmware *pcm;
drivers/net/wireless/broadcom/b43legacy/main.c
1471
release_firmware(dev->fw.pcm);
drivers/net/wireless/broadcom/b43legacy/main.c
1472
dev->fw.pcm = NULL;
drivers/net/wireless/broadcom/b43legacy/main.c
1582
if (!fw->pcm) {
drivers/net/wireless/broadcom/b43legacy/main.c
1587
err = do_request_fw(dev, filename, &fw->pcm, false);
drivers/net/wireless/broadcom/b43legacy/main.c
1691
if (dev->fw.pcm) {
drivers/net/wireless/broadcom/b43legacy/main.c
1693
data = (__be32 *) (dev->fw.pcm->data + hdr_len);
drivers/net/wireless/broadcom/b43legacy/main.c
1694
len = (dev->fw.pcm->size - hdr_len) / sizeof(__be32);
drivers/pinctrl/airoha/pinctrl-airoha.c
1800
PINCTRL_FUNC_DESC("pcm", pcm),
drivers/pinctrl/airoha/pinctrl-airoha.c
1826
PINCTRL_FUNC_DESC("pcm", pcm),
drivers/pinctrl/qcom/pinctrl-msm8660.c
755
MSM_PIN_FUNCTION(pcm),
drivers/pinctrl/qcom/pinctrl-msm8660.c
884
PINGROUP(111, pcm, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-msm8660.c
885
PINGROUP(112, pcm, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-msm8660.c
886
PINGROUP(113, pcm, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-msm8660.c
887
PINGROUP(114, pcm, _, _, _, _, _, _),
drivers/pinctrl/realtek/pinctrl-rtd1625.c
1492
RTD1625_FUNC(iso, pcm),
drivers/soundwire/cadence_master.c
1310
cdns->pcm.num_bd = config.pcm_bd;
drivers/soundwire/cadence_master.c
1311
cdns->pcm.num_in = config.pcm_in;
drivers/soundwire/cadence_master.c
1312
cdns->pcm.num_out = config.pcm_out;
drivers/soundwire/cadence_master.c
1315
stream = &cdns->pcm;
drivers/soundwire/cadence_master.c
500
unsigned int pdi_out_num = cdns->pcm.num_bd + cdns->pcm.num_out;
drivers/soundwire/cadence_master.c
517
unsigned int pdi_in_num = cdns->pcm.num_bd + cdns->pcm.num_in;
drivers/soundwire/cadence_master.h
142
struct sdw_cdns_streams pcm;
drivers/soundwire/intel.c
1029
intel_pdi_stream_ch_update(sdw, &sdw->cdns.pcm);
drivers/soundwire/intel.c
1032
num_dai = cdns->pcm.num_pdi;
drivers/soundwire/intel.c
1046
stream = &cdns->pcm;
drivers/soundwire/intel.c
1048
ret = intel_create_dai(cdns, dais, INTEL_PDI_IN, cdns->pcm.num_in,
drivers/soundwire/intel.c
1053
off += cdns->pcm.num_in;
drivers/soundwire/intel.c
1054
ret = intel_create_dai(cdns, dais, INTEL_PDI_OUT, cdns->pcm.num_out,
drivers/soundwire/intel.c
1059
off += cdns->pcm.num_out;
drivers/soundwire/intel.c
1060
ret = intel_create_dai(cdns, dais, INTEL_PDI_BD, cdns->pcm.num_bd,
drivers/soundwire/intel.c
742
pdi = sdw_cdns_alloc_pdi(cdns, &cdns->pcm, ch, dir, dai->id);
drivers/soundwire/intel_ace2x.c
103
pdi0 = sdw_cdns_alloc_pdi(cdns, &cdns->pcm, 1, dir, 0);
drivers/soundwire/intel_ace2x.c
1060
intel_pdi_stream_ch_update(sdw, &sdw->cdns.pcm);
drivers/soundwire/intel_ace2x.c
1063
num_dai = cdns->pcm.num_pdi;
drivers/soundwire/intel_ace2x.c
1077
stream = &cdns->pcm;
drivers/soundwire/intel_ace2x.c
1079
ret = intel_create_dai(cdns, dais, INTEL_PDI_IN, cdns->pcm.num_in,
drivers/soundwire/intel_ace2x.c
1084
off += cdns->pcm.num_in;
drivers/soundwire/intel_ace2x.c
1085
ret = intel_create_dai(cdns, dais, INTEL_PDI_OUT, cdns->pcm.num_out,
drivers/soundwire/intel_ace2x.c
1090
off += cdns->pcm.num_out;
drivers/soundwire/intel_ace2x.c
1091
ret = intel_create_dai(cdns, dais, INTEL_PDI_BD, cdns->pcm.num_bd,
drivers/soundwire/intel_ace2x.c
115
pdi1 = sdw_cdns_alloc_pdi(cdns, &cdns->pcm, 1, dir, 1);
drivers/soundwire/intel_ace2x.c
723
pdi = sdw_cdns_alloc_pdi(cdns, &cdns->pcm, ch, dir, dai->id);
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
327
struct snd_pcm *pcm;
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
330
err = snd_pcm_new(chip->card, name, idx, numchannels, 0, &pcm);
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
334
pcm->private_data = chip;
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
335
pcm->nonatomic = true;
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
336
strscpy(pcm->name, name, sizeof(pcm->name));
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
343
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
347
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
351
chip->pcm_spdif = pcm;
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
353
chip->pcm = pcm;
drivers/staging/vc04_services/bcm2835-audio/bcm2835.h
53
struct snd_pcm *pcm;
drivers/usb/dwc3/trace.h
283
int pcm = ((__entry->size >> 24) & 3) + 1;
drivers/usb/dwc3/trace.h
288
switch (pcm) {
drivers/usb/gadget/function/u_audio.c
1185
struct snd_pcm *pcm;
drivers/usb/gadget/function/u_audio.c
1265
p_chmask ? 1 : 0, c_chmask ? 1 : 0, &pcm);
drivers/usb/gadget/function/u_audio.c
1269
strscpy(pcm->name, pcm_name);
drivers/usb/gadget/function/u_audio.c
1270
pcm->private_data = uac;
drivers/usb/gadget/function/u_audio.c
1271
uac->pcm = pcm;
drivers/usb/gadget/function/u_audio.c
1273
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &uac_pcm_ops);
drivers/usb/gadget/function/u_audio.c
1274
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &uac_pcm_ops);
drivers/usb/gadget/function/u_audio.c
1293
kctl->id.device = pcm->device;
drivers/usb/gadget/function/u_audio.c
1309
kctl->id.device = pcm->device;
drivers/usb/gadget/function/u_audio.c
1323
if (!pcm->streams[i].substream_count)
drivers/usb/gadget/function/u_audio.c
1351
kctl->id.device = pcm->device;
drivers/usb/gadget/function/u_audio.c
1374
kctl->id.device = pcm->device;
drivers/usb/gadget/function/u_audio.c
1403
kctl->id.device = pcm->device;
drivers/usb/gadget/function/u_audio.c
1417
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
drivers/usb/gadget/function/u_audio.c
81
struct snd_pcm *pcm;
include/sound/ac97_codec.h
407
int snd_ac97_pcm_open(struct ac97_pcm *pcm, unsigned int rate,
include/sound/ac97_codec.h
409
int snd_ac97_pcm_close(struct ac97_pcm *pcm);
include/sound/ad1816a.h
130
struct snd_pcm *pcm;
include/sound/emu10k1.h
1613
struct snd_emu10k1_fx8010_pcm pcm[8];
include/sound/emu10k1.h
1742
struct snd_pcm *pcm;
include/sound/emu8000.h
76
struct snd_pcm *pcm; /* pcm on emu8000 wavetable */
include/sound/es1688.h
34
struct snd_pcm *pcm;
include/sound/gus.h
237
pcm: 1,
include/sound/gus.h
413
struct snd_pcm *pcm;
include/sound/hda_chmap.h
77
int snd_hdac_add_chmap_ctls(struct snd_pcm *pcm, int pcm_idx,
include/sound/hda_codec.h
169
struct snd_pcm *pcm; /* assigned PCM instance */
include/sound/hda_codec.h
439
static inline void snd_hda_codec_pcm_get(struct hda_pcm *pcm)
include/sound/hda_codec.h
441
snd_refcount_get(&pcm->codec->pcm_ref);
include/sound/hda_codec.h
443
static inline void snd_hda_codec_pcm_put(struct hda_pcm *pcm)
include/sound/hda_codec.h
445
snd_refcount_put(&pcm->codec->pcm_ref);
include/sound/pcm.h
1168
void snd_pcm_set_ops(struct snd_pcm * pcm, int direction,
include/sound/pcm.h
1310
void snd_pcm_lib_preallocate_free_for_all(struct snd_pcm *pcm);
include/sound/pcm.h
1314
void snd_pcm_lib_preallocate_pages_for_all(struct snd_pcm *pcm,
include/sound/pcm.h
1322
int snd_pcm_set_managed_buffer_all(struct snd_pcm *pcm, int type,
include/sound/pcm.h
1361
snd_pcm_set_fixed_buffer_all(struct snd_pcm *pcm, int type,
include/sound/pcm.h
1364
return snd_pcm_set_managed_buffer_all(pcm, type, data, size, 0);
include/sound/pcm.h
1468
struct snd_pcm *pcm; /* assigned PCM instance */
include/sound/pcm.h
1488
for (s = info->pcm->streams[info->stream].substream; s; s = s->next)
include/sound/pcm.h
1504
int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream,
include/sound/pcm.h
1531
#define pcm_err(pcm, fmt, args...) \
include/sound/pcm.h
1532
dev_err((pcm)->card->dev, fmt, ##args)
include/sound/pcm.h
1533
#define pcm_warn(pcm, fmt, args...) \
include/sound/pcm.h
1534
dev_warn((pcm)->card->dev, fmt, ##args)
include/sound/pcm.h
1535
#define pcm_dbg(pcm, fmt, args...) \
include/sound/pcm.h
1536
dev_dbg((pcm)->card->dev, fmt, ##args)
include/sound/pcm.h
22
#define snd_pcm_chip(pcm) ((pcm)->private_data)
include/sound/pcm.h
465
struct snd_pcm *pcm;
include/sound/pcm.h
515
struct snd_pcm *pcm;
include/sound/pcm.h
547
void (*private_free) (struct snd_pcm *pcm);
include/sound/pcm.h
568
int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count);
include/sound/pcm.h
572
int (*n_register) (struct snd_pcm * pcm);
include/sound/pcm.h
573
int (*n_disconnect) (struct snd_pcm * pcm);
include/sound/pcm.h
574
int (*n_unregister) (struct snd_pcm * pcm);
include/sound/pcm.h
594
int snd_pcm_suspend_all(struct snd_pcm *pcm);
include/sound/pcm.h
596
static inline int snd_pcm_suspend_all(struct snd_pcm *pcm)
include/sound/pcm.h
602
int snd_pcm_open_substream(struct snd_pcm *pcm, int stream, struct file *file,
include/sound/pcm.h
605
int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, struct file *file,
include/sound/pcm_params.h
12
int snd_pcm_hw_param_first(struct snd_pcm_substream *pcm,
include/sound/pcm_params.h
15
int snd_pcm_hw_param_last(struct snd_pcm_substream *pcm,
include/sound/sb.h
83
struct snd_pcm *pcm;
include/sound/soc-component.h
95
struct snd_pcm *pcm);
include/sound/soc-topology.h
135
struct snd_soc_tplg_pcm *pcm, struct snd_soc_dai *dai);
include/sound/soc-usb.h
116
static int snd_soc_usb_update_offload_route(struct device *dev, int card, int pcm,
include/sound/soc-usb.h
59
int card, int pcm, int direction,
include/sound/soc-usb.h
76
int snd_soc_usb_update_offload_route(struct device *dev, int card, int pcm,
include/sound/soc.h
1152
struct snd_pcm *pcm;
include/sound/vx_core.h
143
struct snd_pcm *pcm[VX_MAX_CODECS];
include/sound/wss.h
82
struct snd_pcm *pcm;
include/trace/events/sof.h
79
__entry->pcm_id = le32_to_cpu(spcm->pcm.pcm_id);
sound/aoa/codecs/onyx.c
919
onyx->codec.soundbus_dev->pcm->device; \
sound/aoa/codecs/onyx.c
926
if (onyx->codec.soundbus_dev->pcm) {
sound/aoa/soundbus/i2sbus/pcm.c
1000
dev->pcm->private_data = i2sdev;
sound/aoa/soundbus/i2sbus/pcm.c
1001
dev->pcm->private_free = i2sbus_private_free;
sound/aoa/soundbus/i2sbus/pcm.c
1005
dev->pcm, SNDRV_DMA_TYPE_DEV,
sound/aoa/soundbus/i2sbus/pcm.c
1037
if (list_empty(&dev->codec_list) && dev->pcm) {
sound/aoa/soundbus/i2sbus/pcm.c
1039
snd_device_free(dev->pcm->card, dev->pcm);
sound/aoa/soundbus/i2sbus/pcm.c
838
static void i2sbus_private_free(struct snd_pcm *pcm)
sound/aoa/soundbus/i2sbus/pcm.c
840
struct i2sbus_dev *i2sdev = snd_pcm_chip(pcm);
sound/aoa/soundbus/i2sbus/pcm.c
843
i2sdev->sound.pcm = NULL;
sound/aoa/soundbus/i2sbus/pcm.c
938
if (!dev->pcm) {
sound/aoa/soundbus/i2sbus/pcm.c
940
&dev->pcm);
sound/aoa/soundbus/i2sbus/pcm.c
952
if (dev->pcm->card != card) {
sound/aoa/soundbus/i2sbus/pcm.c
959
err = snd_pcm_new_stream(dev->pcm, SNDRV_PCM_STREAM_PLAYBACK, 1);
sound/aoa/soundbus/i2sbus/pcm.c
962
snd_pcm_set_ops(dev->pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/aoa/soundbus/i2sbus/pcm.c
964
dev->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].dev->parent =
sound/aoa/soundbus/i2sbus/pcm.c
970
if (dev->pcm->card != card) {
sound/aoa/soundbus/i2sbus/pcm.c
976
err = snd_pcm_new_stream(dev->pcm, SNDRV_PCM_STREAM_CAPTURE, 1);
sound/aoa/soundbus/i2sbus/pcm.c
979
snd_pcm_set_ops(dev->pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/aoa/soundbus/i2sbus/pcm.c
981
dev->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].dev->parent =
sound/aoa/soundbus/i2sbus/pcm.c
992
err = snd_device_register(card, dev->pcm);
sound/aoa/soundbus/soundbus.h
156
struct snd_pcm *pcm;
sound/arm/aaci.c
405
runtime->hw.rates = aacirun->pcm->rates;
sound/arm/aaci.c
419
if (aacirun->pcm->r[1].slots)
sound/arm/aaci.c
471
snd_ac97_pcm_close(aacirun->pcm);
sound/arm/aaci.c
496
snd_ac97_pcm_close(aacirun->pcm);
sound/arm/aaci.c
504
err = snd_ac97_pcm_open(aacirun->pcm, rate, channels,
sound/arm/aaci.c
505
aacirun->pcm->r[dbl].slots);
sound/arm/aaci.c
839
aaci->playback.pcm = &ac97_bus->pcms[0];
sound/arm/aaci.c
840
aaci->capture.pcm = &ac97_bus->pcms[1];
sound/arm/aaci.c
888
struct snd_pcm *pcm;
sound/arm/aaci.c
891
ret = snd_pcm_new(aaci->card, "AACI AC'97", 0, 1, 1, &pcm);
sound/arm/aaci.c
893
aaci->pcm = pcm;
sound/arm/aaci.c
894
pcm->private_data = aaci;
sound/arm/aaci.c
895
pcm->info_flags = 0;
sound/arm/aaci.c
897
strscpy(pcm->name, DRIVER_NAME, sizeof(pcm->name));
sound/arm/aaci.c
899
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &aaci_playback_ops);
sound/arm/aaci.c
900
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &aaci_capture_ops);
sound/arm/aaci.c
901
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/arm/aaci.h
204
struct ac97_pcm *pcm;
sound/arm/aaci.h
240
struct snd_pcm *pcm;
sound/atmel/ac97c.c
41
struct snd_pcm *pcm;
sound/atmel/ac97c.c
563
struct snd_pcm *pcm;
sound/atmel/ac97c.c
573
retval = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm);
sound/atmel/ac97c.c
577
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &atmel_ac97_capture_ops);
sound/atmel/ac97c.c
578
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &atmel_ac97_playback_ops);
sound/atmel/ac97c.c
580
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/atmel/ac97c.c
584
pcm->private_data = chip;
sound/atmel/ac97c.c
585
pcm->info_flags = 0;
sound/atmel/ac97c.c
586
strscpy(pcm->name, chip->card->shortname);
sound/atmel/ac97c.c
587
chip->pcm = pcm;
sound/core/oss/pcm_oss.c
1031
pcm_dbg(substream->pcm, "SW_PARAMS failed: %i\n", err);
sound/core/oss/pcm_oss.c
1148
pcm_dbg(substream->pcm,
sound/core/oss/pcm_oss.c
1237
pcm_dbg(substream->pcm,
sound/core/oss/pcm_oss.c
1271
pcm_dbg(substream->pcm,
sound/core/oss/pcm_oss.c
1315
pcm_dbg(substream->pcm,
sound/core/oss/pcm_oss.c
1345
pcm_dbg(substream->pcm,
sound/core/oss/pcm_oss.c
1622
pcm_dbg(substream->pcm, "sync1: size = %li\n", size);
sound/core/oss/pcm_oss.c
1647
pcm_err(substream->pcm,
sound/core/oss/pcm_oss.c
1684
pcm_dbg(substream->pcm, "sync: buffer_used\n");
sound/core/oss/pcm_oss.c
1695
pcm_dbg(substream->pcm, "sync: period_ptr\n");
sound/core/oss/pcm_oss.c
181
static int snd_pcm_hw_param_mask(struct snd_pcm_substream *pcm,
sound/core/oss/pcm_oss.c
190
int err = snd_pcm_hw_refine(pcm, params);
sound/core/oss/pcm_oss.c
2319
pcm_dbg(substream->pcm,
sound/core/oss/pcm_oss.c
2345
static void snd_pcm_oss_look_for_setup(struct snd_pcm *pcm, int stream,
sound/core/oss/pcm_oss.c
2351
guard(mutex)(&pcm->streams[stream].oss.setup_mutex);
sound/core/oss/pcm_oss.c
2353
for (setup = pcm->streams[stream].oss.setup_list; setup;
sound/core/oss/pcm_oss.c
240
static int snd_pcm_hw_param_min(struct snd_pcm_substream *pcm,
sound/core/oss/pcm_oss.c
2420
struct snd_pcm *pcm,
sound/core/oss/pcm_oss.c
2438
(pcm->info_flags & SNDRV_PCM_INFO_HALF_DUPLEX))
sound/core/oss/pcm_oss.c
2445
if (! pcm->streams[idx].substream_count)
sound/core/oss/pcm_oss.c
2454
err = snd_pcm_open_substream(pcm, idx, file, &substream);
sound/core/oss/pcm_oss.c
249
int err = snd_pcm_hw_refine(pcm, params);
sound/core/oss/pcm_oss.c
2492
struct snd_pcm *pcm;
sound/core/oss/pcm_oss.c
2502
pcm = snd_lookup_oss_minor_data(iminor(inode),
sound/core/oss/pcm_oss.c
2504
if (pcm == NULL) {
sound/core/oss/pcm_oss.c
2508
err = snd_card_file_add(pcm->card, file);
sound/core/oss/pcm_oss.c
2511
if (!try_module_get(pcm->card->module)) {
sound/core/oss/pcm_oss.c
2521
snd_pcm_oss_look_for_setup(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/core/oss/pcm_oss.c
2524
snd_pcm_oss_look_for_setup(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/core/oss/pcm_oss.c
2532
add_wait_queue(&pcm->open_wait, &wait);
sound/core/oss/pcm_oss.c
2533
mutex_lock(&pcm->open_mutex);
sound/core/oss/pcm_oss.c
2535
err = snd_pcm_oss_open_file(file, pcm, &pcm_oss_file,
sound/core/oss/pcm_oss.c
2547
mutex_unlock(&pcm->open_mutex);
sound/core/oss/pcm_oss.c
2549
mutex_lock(&pcm->open_mutex);
sound/core/oss/pcm_oss.c
2550
if (pcm->card->shutdown) {
sound/core/oss/pcm_oss.c
2559
remove_wait_queue(&pcm->open_wait, &wait);
sound/core/oss/pcm_oss.c
2560
mutex_unlock(&pcm->open_mutex);
sound/core/oss/pcm_oss.c
2563
snd_card_unref(pcm->card);
sound/core/oss/pcm_oss.c
2567
module_put(pcm->card->module);
sound/core/oss/pcm_oss.c
2569
snd_card_file_remove(pcm->card, file);
sound/core/oss/pcm_oss.c
2571
if (pcm)
sound/core/oss/pcm_oss.c
2572
snd_card_unref(pcm->card);
sound/core/oss/pcm_oss.c
2578
struct snd_pcm *pcm;
sound/core/oss/pcm_oss.c
2588
pcm = substream->pcm;
sound/core/oss/pcm_oss.c
2589
if (!pcm->card->shutdown)
sound/core/oss/pcm_oss.c
2591
mutex_lock(&pcm->open_mutex);
sound/core/oss/pcm_oss.c
2593
mutex_unlock(&pcm->open_mutex);
sound/core/oss/pcm_oss.c
2594
wake_up(&pcm->open_wait);
sound/core/oss/pcm_oss.c
2595
module_put(pcm->card->module);
sound/core/oss/pcm_oss.c
2596
snd_card_file_remove(pcm->card, file);
sound/core/oss/pcm_oss.c
2622
return snd_mixer_oss_ioctl_card(substream->pcm->card, cmd, arg);
sound/core/oss/pcm_oss.c
2792
pcm_dbg(substream->pcm,
sound/core/oss/pcm_oss.c
2813
pcm_dbg(substream->pcm, "pcm_oss: write %li bytes (wrote %li bytes)\n",
sound/core/oss/pcm_oss.c
301
static int snd_pcm_hw_param_max(struct snd_pcm_substream *pcm,
sound/core/oss/pcm_oss.c
3085
static void snd_pcm_oss_proc_init(struct snd_pcm *pcm)
sound/core/oss/pcm_oss.c
3090
struct snd_pcm_str *pstr = &pcm->streams[stream];
sound/core/oss/pcm_oss.c
3093
entry = snd_info_create_card_entry(pcm->card, "oss", pstr->proc_root);
sound/core/oss/pcm_oss.c
310
int err = snd_pcm_hw_refine(pcm, params);
sound/core/oss/pcm_oss.c
3109
static void snd_pcm_oss_proc_done(struct snd_pcm *pcm)
sound/core/oss/pcm_oss.c
3113
struct snd_pcm_str *pstr = &pcm->streams[stream];
sound/core/oss/pcm_oss.c
3120
static inline void snd_pcm_oss_proc_init(struct snd_pcm *pcm)
sound/core/oss/pcm_oss.c
3123
static inline void snd_pcm_oss_proc_done(struct snd_pcm *pcm)
sound/core/oss/pcm_oss.c
3145
static void register_oss_dsp(struct snd_pcm *pcm, int index)
sound/core/oss/pcm_oss.c
3148
pcm->card, index, &snd_pcm_oss_f_reg,
sound/core/oss/pcm_oss.c
3149
pcm) < 0) {
sound/core/oss/pcm_oss.c
3150
pcm_err(pcm, "unable to register OSS PCM device %i:%i\n",
sound/core/oss/pcm_oss.c
3151
pcm->card->number, pcm->device);
sound/core/oss/pcm_oss.c
3155
static int snd_pcm_oss_register_minor(struct snd_pcm *pcm)
sound/core/oss/pcm_oss.c
3157
pcm->oss.reg = 0;
sound/core/oss/pcm_oss.c
3158
if (dsp_map[pcm->card->number] == (int)pcm->device) {
sound/core/oss/pcm_oss.c
3161
register_oss_dsp(pcm, 0);
sound/core/oss/pcm_oss.c
3162
duplex = (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream_count > 0 &&
sound/core/oss/pcm_oss.c
3163
pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream_count &&
sound/core/oss/pcm_oss.c
3164
!(pcm->info_flags & SNDRV_PCM_INFO_HALF_DUPLEX));
sound/core/oss/pcm_oss.c
3165
sprintf(name, "%s%s", pcm->name, duplex ? " (DUPLEX)" : "");
sound/core/oss/pcm_oss.c
3168
pcm->card->number,
sound/core/oss/pcm_oss.c
3171
pcm->oss.reg++;
sound/core/oss/pcm_oss.c
3172
pcm->oss.reg_mask |= 1;
sound/core/oss/pcm_oss.c
3174
if (adsp_map[pcm->card->number] == (int)pcm->device) {
sound/core/oss/pcm_oss.c
3175
register_oss_dsp(pcm, 1);
sound/core/oss/pcm_oss.c
3176
pcm->oss.reg++;
sound/core/oss/pcm_oss.c
3177
pcm->oss.reg_mask |= 2;
sound/core/oss/pcm_oss.c
3180
if (pcm->oss.reg)
sound/core/oss/pcm_oss.c
3181
snd_pcm_oss_proc_init(pcm);
sound/core/oss/pcm_oss.c
3186
static int snd_pcm_oss_disconnect_minor(struct snd_pcm *pcm)
sound/core/oss/pcm_oss.c
3188
if (pcm->oss.reg) {
sound/core/oss/pcm_oss.c
3189
if (pcm->oss.reg_mask & 1) {
sound/core/oss/pcm_oss.c
3190
pcm->oss.reg_mask &= ~1;
sound/core/oss/pcm_oss.c
3192
pcm->card, 0);
sound/core/oss/pcm_oss.c
3194
if (pcm->oss.reg_mask & 2) {
sound/core/oss/pcm_oss.c
3195
pcm->oss.reg_mask &= ~2;
sound/core/oss/pcm_oss.c
3197
pcm->card, 1);
sound/core/oss/pcm_oss.c
3199
if (dsp_map[pcm->card->number] == (int)pcm->device) {
sound/core/oss/pcm_oss.c
3201
snd_oss_info_unregister(SNDRV_OSS_INFO_DEV_AUDIO, pcm->card->number);
sound/core/oss/pcm_oss.c
3204
pcm->oss.reg = 0;
sound/core/oss/pcm_oss.c
3209
static int snd_pcm_oss_unregister_minor(struct snd_pcm *pcm)
sound/core/oss/pcm_oss.c
3211
snd_pcm_oss_disconnect_minor(pcm);
sound/core/oss/pcm_oss.c
3212
snd_pcm_oss_proc_done(pcm);
sound/core/oss/pcm_oss.c
375
static int snd_pcm_hw_param_near(struct snd_pcm_substream *pcm,
sound/core/oss/pcm_oss.c
406
min = snd_pcm_hw_param_min(pcm, params, var, min, &mindir);
sound/core/oss/pcm_oss.c
418
max = snd_pcm_hw_param_max(pcm, params1, var, max, &maxdir);
sound/core/oss/pcm_oss.c
427
max = snd_pcm_hw_param_max(pcm, params, var, max, &maxdir);
sound/core/oss/pcm_oss.c
434
v = snd_pcm_hw_param_last(pcm, params, var, dir);
sound/core/oss/pcm_oss.c
436
v = snd_pcm_hw_param_first(pcm, params, var, dir);
sound/core/oss/pcm_oss.c
500
static int snd_pcm_hw_param_set(struct snd_pcm_substream *pcm,
sound/core/oss/pcm_oss.c
509
int err = snd_pcm_hw_refine(pcm, params);
sound/core/oss/pcm_oss.c
890
pcm_dbg(substream->pcm, "No usable accesses\n");
sound/core/oss/pcm_oss.c
919
pcm_dbg(substream->pcm, "Cannot find a format!!!\n");
sound/core/oss/pcm_oss.c
969
pcm_dbg(substream->pcm, "HW_PARAMS failed: %i\n", err);
sound/core/oss/pcm_oss.c
979
pcm_dbg(substream->pcm,
sound/core/oss/pcm_oss.c
987
pcm_dbg(substream->pcm,
sound/core/pcm.c
1013
struct snd_pcm *pcm = pstr->pcm;
sound/core/pcm.c
1022
if (pcm->dev_class > SNDRV_PCM_CLASS_LAST)
sound/core/pcm.c
1025
str = strs[pcm->dev_class];
sound/core/pcm.c
1048
struct snd_pcm *pcm;
sound/core/pcm.c
105
struct snd_pcm *pcm;
sound/core/pcm.c
1052
pcm = device->device_data;
sound/core/pcm.c
1055
err = snd_pcm_add(pcm);
sound/core/pcm.c
1060
if (pcm->streams[cidx].substream == NULL)
sound/core/pcm.c
1071
err = snd_register_device(devtype, pcm->card, pcm->device,
sound/core/pcm.c
1072
&snd_pcm_f_ops[cidx], pcm,
sound/core/pcm.c
1073
pcm->streams[cidx].dev);
sound/core/pcm.c
1075
list_del_init(&pcm->list);
sound/core/pcm.c
1079
for (substream = pcm->streams[cidx].substream; substream; substream = substream->next)
sound/core/pcm.c
1083
pcm_call_notify(pcm, n_register);
sound/core/pcm.c
1089
struct snd_pcm *pcm = device->device_data;
sound/core/pcm.c
1094
guard(mutex)(&pcm->open_mutex);
sound/core/pcm.c
1095
wake_up(&pcm->open_wait);
sound/core/pcm.c
1096
list_del_init(&pcm->list);
sound/core/pcm.c
1098
for_each_pcm_substream(pcm, cidx, substream) {
sound/core/pcm.c
1112
for_each_pcm_substream(pcm, cidx, substream)
sound/core/pcm.c
1115
pcm_call_notify(pcm, n_disconnect);
sound/core/pcm.c
1117
if (pcm->streams[cidx].dev)
sound/core/pcm.c
1118
snd_unregister_device(pcm->streams[cidx].dev);
sound/core/pcm.c
1119
free_chmap(&pcm->streams[cidx]);
sound/core/pcm.c
1138
struct snd_pcm *pcm;
sound/core/pcm.c
1148
list_for_each_entry(pcm, &snd_pcm_devices, list)
sound/core/pcm.c
1149
notify->n_unregister(pcm);
sound/core/pcm.c
1152
list_for_each_entry(pcm, &snd_pcm_devices, list)
sound/core/pcm.c
1153
notify->n_register(pcm);
sound/core/pcm.c
1168
struct snd_pcm *pcm;
sound/core/pcm.c
1171
list_for_each_entry(pcm, &snd_pcm_devices, list) {
sound/core/pcm.c
1173
pcm->card->number, pcm->device, pcm->id, pcm->name);
sound/core/pcm.c
1174
if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream)
sound/core/pcm.c
1176
pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream_count);
sound/core/pcm.c
1177
if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream)
sound/core/pcm.c
1179
pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream_count);
sound/core/pcm.c
120
pcm = snd_pcm_get(card, device);
sound/core/pcm.c
121
if (pcm == NULL)
sound/core/pcm.c
123
pstr = &pcm->streams[stream];
sound/core/pcm.c
134
guard(mutex)(&pcm->open_mutex);
sound/core/pcm.c
33
static int snd_pcm_free(struct snd_pcm *pcm);
sound/core/pcm.c
378
guard(mutex)(&substream->pcm->open_mutex);
sound/core/pcm.c
40
struct snd_pcm *pcm;
sound/core/pcm.c
413
guard(mutex)(&substream->pcm->open_mutex);
sound/core/pcm.c
42
list_for_each_entry(pcm, &snd_pcm_devices, list) {
sound/core/pcm.c
43
if (pcm->card == card && pcm->device == device)
sound/core/pcm.c
44
return pcm;
sound/core/pcm.c
441
guard(mutex)(&substream->pcm->open_mutex);
sound/core/pcm.c
498
struct snd_pcm *pcm = pstr->pcm;
sound/core/pcm.c
502
sprintf(name, "pcm%i%c", pcm->device,
sound/core/pcm.c
504
entry = snd_info_create_card_entry(pcm->card, name,
sound/core/pcm.c
505
pcm->card->proc_root);
sound/core/pcm.c
51
struct snd_pcm *pcm;
sound/core/pcm.c
510
entry = snd_info_create_card_entry(pcm->card, "info", pstr->proc_root);
sound/core/pcm.c
514
entry = snd_info_create_card_entry(pcm->card, "xrun_debug",
sound/core/pcm.c
53
list_for_each_entry(pcm, &snd_pcm_devices, list) {
sound/core/pcm.c
54
if (pcm->card == card && pcm->device > device)
sound/core/pcm.c
540
entry = snd_info_create_card_entry(substream->pcm->card, name,
sound/core/pcm.c
55
return pcm->device;
sound/core/pcm.c
553
card = substream->pcm->card;
sound/core/pcm.c
56
else if (pcm->card->number > card->number)
sound/core/pcm.c
599
if (!pstr->pcm->no_device_suspend)
sound/core/pcm.c
600
snd_pcm_suspend_all(pstr->pcm);
sound/core/pcm.c
627
int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count)
sound/core/pcm.c
630
struct snd_pcm_str *pstr = &pcm->streams[stream];
sound/core/pcm.c
637
pstr->pcm = pcm;
sound/core/pcm.c
64
struct snd_pcm *pcm;
sound/core/pcm.c
642
err = snd_device_alloc(&pstr->dev, pcm->card);
sound/core/pcm.c
645
dev_set_name(pstr->dev, "pcmC%iD%i%c", pcm->card->number, pcm->device,
sound/core/pcm.c
651
if (!pcm->internal) {
sound/core/pcm.c
654
pcm_err(pcm, "Error in snd_pcm_stream_proc_init\n");
sound/core/pcm.c
663
substream->pcm = pcm;
sound/core/pcm.c
674
if (!pcm->internal) {
sound/core/pcm.c
677
pcm_err(pcm,
sound/core/pcm.c
69
list_for_each_entry(pcm, &snd_pcm_devices, list) {
sound/core/pcm.c
70
if (pcm->card == newpcm->card && pcm->device == newpcm->device)
sound/core/pcm.c
701
struct snd_pcm *pcm;
sound/core/pcm.c
716
pcm = kzalloc_obj(*pcm);
sound/core/pcm.c
717
if (!pcm)
sound/core/pcm.c
719
pcm->card = card;
sound/core/pcm.c
72
if (pcm->card->number > newpcm->card->number ||
sound/core/pcm.c
720
pcm->device = device;
sound/core/pcm.c
721
pcm->internal = internal;
sound/core/pcm.c
722
mutex_init(&pcm->open_mutex);
sound/core/pcm.c
723
init_waitqueue_head(&pcm->open_wait);
sound/core/pcm.c
724
INIT_LIST_HEAD(&pcm->list);
sound/core/pcm.c
726
strscpy(pcm->id, id, sizeof(pcm->id));
sound/core/pcm.c
728
err = snd_pcm_new_stream(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/core/pcm.c
73
(pcm->card == newpcm->card &&
sound/core/pcm.c
733
err = snd_pcm_new_stream(pcm, SNDRV_PCM_STREAM_CAPTURE, capture_count);
sound/core/pcm.c
737
err = snd_device_new(card, SNDRV_DEV_PCM, pcm,
sound/core/pcm.c
74
pcm->device > newpcm->device)) {
sound/core/pcm.c
743
*rpcm = pcm;
sound/core/pcm.c
747
snd_pcm_free(pcm);
sound/core/pcm.c
75
list_add(&newpcm->list, pcm->list.prev);
sound/core/pcm.c
807
struct snd_card *card = pstr->pcm->card;
sound/core/pcm.c
844
#define pcm_call_notify(pcm, call) \
sound/core/pcm.c
848
_notify->call(pcm); \
sound/core/pcm.c
851
#define pcm_call_notify(pcm, call) do {} while (0)
sound/core/pcm.c
854
static int snd_pcm_free(struct snd_pcm *pcm)
sound/core/pcm.c
856
if (!pcm)
sound/core/pcm.c
858
if (!pcm->internal)
sound/core/pcm.c
859
pcm_call_notify(pcm, n_unregister);
sound/core/pcm.c
860
if (pcm->private_free)
sound/core/pcm.c
861
pcm->private_free(pcm);
sound/core/pcm.c
862
snd_pcm_lib_preallocate_free_for_all(pcm);
sound/core/pcm.c
863
snd_pcm_free_stream(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK]);
sound/core/pcm.c
864
snd_pcm_free_stream(&pcm->streams[SNDRV_PCM_STREAM_CAPTURE]);
sound/core/pcm.c
865
kfree(pcm);
sound/core/pcm.c
871
struct snd_pcm *pcm = device->device_data;
sound/core/pcm.c
872
return snd_pcm_free(pcm);
sound/core/pcm.c
875
int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream,
sound/core/pcm.c
886
if (snd_BUG_ON(!pcm || !rsubstream))
sound/core/pcm.c
892
pstr = &pcm->streams[stream];
sound/core/pcm.c
896
card = pcm->card;
sound/core/pcm.c
899
if (pcm->info_flags & SNDRV_PCM_INFO_HALF_DUPLEX) {
sound/core/pcm.c
902
for (substream = pcm->streams[opposite].substream; substream;
sound/core/pcm.c
968
substream->private_data = pcm->private_data;
sound/core/pcm_drm_eld.c
396
static void hdmi_print_pcm_rates(int pcm, char *buf, int buflen)
sound/core/pcm_drm_eld.c
405
if (pcm & (1 << i))
sound/core/pcm_drm_eld.c
412
static void eld_print_pcm_bits(int pcm, char *buf, int buflen)
sound/core/pcm_drm_eld.c
418
if (pcm & (ELD_PCM_BITS_8 << i))
sound/core/pcm_lib.c
142
substream->pcm->card->number,
sound/core/pcm_lib.c
143
substream->pcm->device,
sound/core/pcm_lib.c
1667
int snd_pcm_hw_param_first(struct snd_pcm_substream *pcm,
sound/core/pcm_lib.c
1675
int err = snd_pcm_hw_refine(pcm, params);
sound/core/pcm_lib.c
1713
int snd_pcm_hw_param_last(struct snd_pcm_substream *pcm,
sound/core/pcm_lib.c
1721
int err = snd_pcm_hw_refine(pcm, params);
sound/core/pcm_lib.c
184
pcm_warn(substream->pcm, "XRUN: %s\n", name);
sound/core/pcm_lib.c
2024
pcm_dbg(substream->pcm,
sound/core/pcm_lib.c
2570
info->pcm->streams[info->stream].chmap_kctl = NULL;
sound/core/pcm_lib.c
2586
int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream,
sound/core/pcm_lib.c
2605
if (WARN_ON(pcm->streams[stream].chmap_kctl))
sound/core/pcm_lib.c
2610
info->pcm = pcm;
sound/core/pcm_lib.c
2618
knew.device = pcm->device;
sound/core/pcm_lib.c
2619
knew.count = pcm->streams[stream].substream_count;
sound/core/pcm_lib.c
2627
err = snd_ctl_add(pcm->card, info->kctl);
sound/core/pcm_lib.c
2630
pcm->streams[stream].chmap_kctl = info->kctl;
sound/core/pcm_lib.c
332
pcm_err(substream->pcm,
sound/core/pcm_lib.c
510
void snd_pcm_set_ops(struct snd_pcm *pcm, int direction,
sound/core/pcm_lib.c
513
struct snd_pcm_str *stream = &pcm->streams[direction];
sound/core/pcm_lib.c
548
*(__le32 *)params->sync = cpu_to_le32(substream->pcm->card->number);
sound/core/pcm_local.h
71
#define for_each_pcm_substream(pcm, str, subs) \
sound/core/pcm_local.h
73
for ((subs) = (pcm)->streams[str].substream; (subs); \
sound/core/pcm_memory.c
102
struct snd_card *card = substream->pcm->card;
sound/core/pcm_memory.c
117
substream->pcm->card->number, substream->pcm->device,
sound/core/pcm_memory.c
119
substream->pcm->name, orig_size);
sound/core/pcm_memory.c
131
do_free_pages(substream->pcm->card, &substream->dma_buffer);
sound/core/pcm_memory.c
140
void snd_pcm_lib_preallocate_free_for_all(struct snd_pcm *pcm)
sound/core/pcm_memory.c
145
for_each_pcm_substream(pcm, stream, substream)
sound/core/pcm_memory.c
184
struct snd_card *card = substream->pcm->card;
sound/core/pcm_memory.c
189
guard(mutex)(&substream->pcm->open_mutex);
sound/core/pcm_memory.c
216
substream->pcm->card->number, substream->pcm->device,
sound/core/pcm_memory.c
218
substream->pcm->name, size);
sound/core/pcm_memory.c
237
entry = snd_info_create_card_entry(substream->pcm->card, "prealloc",
sound/core/pcm_memory.c
245
entry = snd_info_create_card_entry(substream->pcm->card, "prealloc_max",
sound/core/pcm_memory.c
297
static int preallocate_pages_for_all(struct snd_pcm *pcm, int type,
sound/core/pcm_memory.c
304
for_each_pcm_substream(pcm, stream, substream) {
sound/core/pcm_memory.c
341
void snd_pcm_lib_preallocate_pages_for_all(struct snd_pcm *pcm,
sound/core/pcm_memory.c
345
preallocate_pages_for_all(pcm, type, data, size, max, false);
sound/core/pcm_memory.c
401
int snd_pcm_set_managed_buffer_all(struct snd_pcm *pcm, int type,
sound/core/pcm_memory.c
405
return preallocate_pages_for_all(pcm, type, data, size, max, true);
sound/core/pcm_memory.c
432
card = substream->pcm->card;
sound/core/pcm_memory.c
462
substream->pcm->card->number, substream->pcm->device,
sound/core/pcm_memory.c
464
substream->pcm->name, size);
sound/core/pcm_memory.c
492
struct snd_card *card = substream->pcm->card;
sound/core/pcm_native.c
116
snd_pcm_group_lock(&substream->self_group, substream->pcm->nonatomic);
sound/core/pcm_native.c
128
snd_pcm_group_unlock(&substream->self_group, substream->pcm->nonatomic);
sound/core/pcm_native.c
1286
else if (s->pcm->nonatomic)
sound/core/pcm_native.c
1319
else if (s1->pcm->nonatomic)
sound/core/pcm_native.c
1369
snd_pcm_group_unlock(group, substream->pcm->nonatomic);
sound/core/pcm_native.c
1381
bool nonatomic = substream->pcm->nonatomic;
sound/core/pcm_native.c
143
substream->pcm->nonatomic);
sound/core/pcm_native.c
151
if (substream->pcm->nonatomic)
sound/core/pcm_native.c
166
substream->pcm->nonatomic);
sound/core/pcm_native.c
173
if (substream->pcm->nonatomic)
sound/core/pcm_native.c
1798
int snd_pcm_suspend_all(struct snd_pcm *pcm)
sound/core/pcm_native.c
1803
if (! pcm)
sound/core/pcm_native.c
1806
guard(mutex)(&pcm->open_mutex);
sound/core/pcm_native.c
1808
for_each_pcm_substream(pcm, stream, substream) {
sound/core/pcm_native.c
1824
for_each_pcm_substream(pcm, stream, substream)
sound/core/pcm_native.c
184
if (substream->pcm->nonatomic)
sound/core/pcm_native.c
204
if (substream->pcm->nonatomic)
sound/core/pcm_native.c
2149
card = substream->pcm->card;
sound/core/pcm_native.c
223
struct snd_pcm *pcm = substream->pcm;
sound/core/pcm_native.c
2245
dev_dbg(substream->pcm->card->dev,
sound/core/pcm_native.c
227
info->card = pcm->card->number;
sound/core/pcm_native.c
228
info->device = pcm->device;
sound/core/pcm_native.c
2293
struct snd_pcm *pcm;
sound/core/pcm_native.c
2299
pcm = snd_lookup_minor_data(minor, SNDRV_DEVICE_TYPE_PCM_PLAYBACK);
sound/core/pcm_native.c
2300
if (!pcm)
sound/core/pcm_native.c
2301
pcm = snd_lookup_minor_data(minor, SNDRV_DEVICE_TYPE_PCM_CAPTURE);
sound/core/pcm_native.c
2302
if (!pcm)
sound/core/pcm_native.c
2304
snd_card_unref(pcm->card);
sound/core/pcm_native.c
231
strscpy(info->id, pcm->id, sizeof(info->id));
sound/core/pcm_native.c
2316
bool nonatomic = substream->pcm->nonatomic;
sound/core/pcm_native.c
232
strscpy(info->name, pcm->name, sizeof(info->name));
sound/core/pcm_native.c
233
info->dev_class = pcm->dev_class;
sound/core/pcm_native.c
2339
substream->pcm->nonatomic != substream1->pcm->nonatomic)
sound/core/pcm_native.c
234
info->dev_subclass = pcm->dev_subclass;
sound/core/pcm_native.c
2372
bool nonatomic = substream->pcm->nonatomic;
sound/core/pcm_native.c
2806
int snd_pcm_open_substream(struct snd_pcm *pcm, int stream,
sound/core/pcm_native.c
2813
err = snd_pcm_attach_substream(pcm, stream, file, &substream);
sound/core/pcm_native.c
2823
pcm_dbg(pcm, "snd_pcm_hw_constraints_init failed\n");
sound/core/pcm_native.c
2835
pcm_dbg(pcm, "snd_pcm_hw_constraints_complete failed\n");
sound/core/pcm_native.c
2856
struct snd_pcm *pcm,
sound/core/pcm_native.c
2863
err = snd_pcm_open_substream(pcm, stream, file, &substream);
sound/core/pcm_native.c
2882
struct snd_pcm *pcm;
sound/core/pcm_native.c
2886
pcm = snd_lookup_minor_data(iminor(inode),
sound/core/pcm_native.c
2888
err = snd_pcm_open(file, pcm, SNDRV_PCM_STREAM_PLAYBACK);
sound/core/pcm_native.c
2889
if (pcm)
sound/core/pcm_native.c
2890
snd_card_unref(pcm->card);
sound/core/pcm_native.c
2896
struct snd_pcm *pcm;
sound/core/pcm_native.c
2900
pcm = snd_lookup_minor_data(iminor(inode),
sound/core/pcm_native.c
2902
err = snd_pcm_open(file, pcm, SNDRV_PCM_STREAM_CAPTURE);
sound/core/pcm_native.c
2903
if (pcm)
sound/core/pcm_native.c
2904
snd_card_unref(pcm->card);
sound/core/pcm_native.c
2908
static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream)
sound/core/pcm_native.c
2913
if (pcm == NULL) {
sound/core/pcm_native.c
2917
err = snd_card_file_add(pcm->card, file);
sound/core/pcm_native.c
2920
if (!try_module_get(pcm->card->module)) {
sound/core/pcm_native.c
2925
add_wait_queue(&pcm->open_wait, &wait);
sound/core/pcm_native.c
2926
mutex_lock(&pcm->open_mutex);
sound/core/pcm_native.c
2928
err = snd_pcm_open_file(file, pcm, stream);
sound/core/pcm_native.c
2939
mutex_unlock(&pcm->open_mutex);
sound/core/pcm_native.c
2941
mutex_lock(&pcm->open_mutex);
sound/core/pcm_native.c
2942
if (pcm->card->shutdown) {
sound/core/pcm_native.c
2951
remove_wait_queue(&pcm->open_wait, &wait);
sound/core/pcm_native.c
2952
mutex_unlock(&pcm->open_mutex);
sound/core/pcm_native.c
2958
module_put(pcm->card->module);
sound/core/pcm_native.c
2960
snd_card_file_remove(pcm->card, file);
sound/core/pcm_native.c
2967
struct snd_pcm *pcm;
sound/core/pcm_native.c
2975
pcm = substream->pcm;
sound/core/pcm_native.c
2978
snd_power_wait(pcm->card);
sound/core/pcm_native.c
2980
scoped_guard(mutex, &pcm->open_mutex) {
sound/core/pcm_native.c
2984
wake_up(&pcm->open_wait);
sound/core/pcm_native.c
2985
module_put(pcm->card->module);
sound/core/pcm_native.c
2986
snd_card_file_remove(pcm->card, file);
sound/core/pcm_native.c
3414
res = snd_power_wait(substream->pcm->card);
sound/core/pcm_native.c
3506
pcm_dbg(substream->pcm, "unknown ioctl = 0x%x\n", cmd);
sound/core/pcm_native.c
672
else if (sync_irq && substream->pcm->card->sync_irq > 0)
sound/core/pcm_native.c
673
synchronize_irq(substream->pcm->card->sync_irq);
sound/core/pcm_native.c
689
static int snd_pcm_hw_params_choose(struct snd_pcm_substream *pcm,
sound/core/pcm_native.c
70
static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream);
sound/core/pcm_native.c
719
changed = snd_pcm_hw_param_first(pcm, params, *v, NULL);
sound/core/pcm_native.c
721
changed = snd_pcm_hw_param_last(pcm, params, *v, NULL);
sound/core/pcm_native.c
729
trace_hw_mask_param(pcm, *v, 0, &old_mask,
sound/core/pcm_native.c
733
trace_hw_interval_param(pcm, *v, 0, &old_interval,
sound/core/pcm_param_trace.h
43
__entry->card = substream->pcm->card->number;
sound/core/pcm_param_trace.h
44
__entry->device = substream->pcm->device;
sound/core/pcm_param_trace.h
93
__entry->card = substream->pcm->card->number;
sound/core/pcm_param_trace.h
94
__entry->device = substream->pcm->device;
sound/core/pcm_timer.c
105
tid.card = substream->pcm->card->number;
sound/core/pcm_timer.c
106
tid.device = substream->pcm->device;
sound/core/pcm_timer.c
108
if (snd_timer_new(substream->pcm->card, "PCM", &tid, &timer) < 0)
sound/core/pcm_timer.c
126
snd_device_free(substream->pcm->card, substream->timer);
sound/core/pcm_timer.c
43
pcm_err(substream->pcm,
sound/core/pcm_trace.h
121
__entry->card = (substream)->pcm->card->number;
sound/core/pcm_trace.h
122
__entry->device = (substream)->pcm->device;
sound/core/pcm_trace.h
28
__entry->card = (substream)->pcm->card->number;
sound/core/pcm_trace.h
29
__entry->device = (substream)->pcm->device;
sound/core/pcm_trace.h
64
__entry->card = (substream)->pcm->card->number;
sound/core/pcm_trace.h
65
__entry->device = (substream)->pcm->device;
sound/core/pcm_trace.h
94
__entry->card = (substream)->pcm->card->number;
sound/core/pcm_trace.h
95
__entry->device = (substream)->pcm->device;
sound/drivers/aloop.c
1181
pcm_err(dpcm->substream->pcm,
sound/drivers/aloop.c
1224
pcm_err(dpcm->substream->pcm,
sound/drivers/aloop.c
1375
struct snd_pcm *pcm;
sound/drivers/aloop.c
1379
substreams, substreams, &pcm);
sound/drivers/aloop.c
138
struct snd_pcm *pcm[2];
sound/drivers/aloop.c
1382
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &loopback_pcm_ops);
sound/drivers/aloop.c
1383
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &loopback_pcm_ops);
sound/drivers/aloop.c
1384
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
sound/drivers/aloop.c
1386
pcm->private_data = loopback;
sound/drivers/aloop.c
1387
pcm->info_flags = 0;
sound/drivers/aloop.c
1388
strscpy(pcm->name, "Loopback PCM");
sound/drivers/aloop.c
1390
loopback->pcm[device] = pcm;
sound/drivers/aloop.c
1638
struct snd_pcm *pcm;
sound/drivers/aloop.c
1645
pcm = loopback->pcm[dev];
sound/drivers/aloop.c
1647
pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream_count;
sound/drivers/aloop.c
197
int device = dpcm->substream->pstr->pcm->device;
sound/drivers/aloop.c
253
pcm_err(dpcm->substream->pcm,
sound/drivers/aloop.c
285
pcm_err(dpcm->substream->pcm,
sound/drivers/aloop.c
759
pcm_err(dpcm->substream->pcm,
sound/drivers/aloop.c
983
if (!substream->pcm->device)
sound/drivers/dummy.c
129
struct snd_pcm *pcm;
sound/drivers/dummy.c
558
if (substream->pcm->device & 1) {
sound/drivers/dummy.c
562
if (substream->pcm->device & 2)
sound/drivers/dummy.c
667
struct snd_pcm *pcm;
sound/drivers/dummy.c
672
substreams, substreams, &pcm);
sound/drivers/dummy.c
675
dummy->pcm = pcm;
sound/drivers/dummy.c
680
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, ops);
sound/drivers/dummy.c
681
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, ops);
sound/drivers/dummy.c
682
pcm->private_data = dummy;
sound/drivers/dummy.c
683
pcm->info_flags = 0;
sound/drivers/dummy.c
684
strscpy(pcm->name, "Dummy PCM");
sound/drivers/dummy.c
686
snd_pcm_set_managed_buffer_all(pcm,
sound/drivers/pcmtest.c
551
struct snd_pcm *pcm;
sound/drivers/pcmtest.c
555
CAPTURE_SUBSTREAM_CNT, &pcm);
sound/drivers/pcmtest.c
558
pcm->private_data = pcmtst;
sound/drivers/pcmtest.c
559
strscpy(pcm->name, "PCMTest");
sound/drivers/pcmtest.c
560
pcmtst->pcm = pcm;
sound/drivers/pcmtest.c
561
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_pcmtst_playback_ops);
sound/drivers/pcmtest.c
562
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_pcmtst_capture_ops);
sound/drivers/pcmtest.c
564
err = snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, &pcmtst->pdev->dev,
sound/drivers/pcmtest.c
95
struct snd_pcm *pcm;
sound/drivers/pcsp/pcsp.h
55
struct snd_pcm *pcm;
sound/drivers/pcsp/pcsp_lib.c
334
err = snd_pcm_new(chip->card, "pcspeaker", 0, 1, 0, &chip->pcm);
sound/drivers/pcsp/pcsp_lib.c
338
snd_pcm_set_ops(chip->pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/drivers/pcsp/pcsp_lib.c
341
chip->pcm->private_data = chip;
sound/drivers/pcsp/pcsp_lib.c
342
chip->pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX;
sound/drivers/pcsp/pcsp_lib.c
343
strscpy(chip->pcm->name, "pcsp");
sound/drivers/pcsp/pcsp_lib.c
345
snd_pcm_set_managed_buffer_all(chip->pcm,
sound/drivers/vx/vx_pcm.c
1184
static void snd_vx_pcm_free(struct snd_pcm *pcm)
sound/drivers/vx/vx_pcm.c
1186
struct vx_core *chip = pcm->private_data;
sound/drivers/vx/vx_pcm.c
1187
chip->pcm[pcm->device] = NULL;
sound/drivers/vx/vx_pcm.c
1199
struct snd_pcm *pcm;
sound/drivers/vx/vx_pcm.c
1214
outs, ins, &pcm);
sound/drivers/vx/vx_pcm.c
1218
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &vx_pcm_playback_ops);
sound/drivers/vx/vx_pcm.c
1220
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &vx_pcm_capture_ops);
sound/drivers/vx/vx_pcm.c
1221
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC,
sound/drivers/vx/vx_pcm.c
1224
pcm->private_data = chip;
sound/drivers/vx/vx_pcm.c
1225
pcm->private_free = snd_vx_pcm_free;
sound/drivers/vx/vx_pcm.c
1226
pcm->info_flags = 0;
sound/drivers/vx/vx_pcm.c
1227
pcm->nonatomic = true;
sound/drivers/vx/vx_pcm.c
1228
strscpy(pcm->name, chip->card->shortname);
sound/drivers/vx/vx_pcm.c
1229
chip->pcm[i] = pcm;
sound/drivers/vx/vx_pcm.c
525
audio = subs->pcm->device * 2;
sound/drivers/vx/vx_pcm.c
901
audio = subs->pcm->device * 2;
sound/firewire/amdtp-am824.c
148
static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm,
sound/firewire/amdtp-am824.c
154
struct snd_pcm_runtime *runtime = pcm->runtime;
sound/firewire/amdtp-am824.c
179
static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm,
sound/firewire/amdtp-am824.c
185
struct snd_pcm_runtime *runtime = pcm->runtime;
sound/firewire/amdtp-am824.c
348
unsigned int count, struct snd_pcm_substream *pcm)
sound/firewire/amdtp-am824.c
358
if (pcm) {
sound/firewire/amdtp-am824.c
359
write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames);
sound/firewire/amdtp-am824.c
375
unsigned int count, struct snd_pcm_substream *pcm)
sound/firewire/amdtp-am824.c
385
if (pcm) {
sound/firewire/amdtp-am824.c
386
read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames);
sound/firewire/amdtp-stream.c
1136
struct snd_pcm_substream *pcm;
sound/firewire/amdtp-stream.c
1139
pcm = READ_ONCE(s->pcm);
sound/firewire/amdtp-stream.c
1140
s->process_ctx_payloads(s, desc, count, pcm);
sound/firewire/amdtp-stream.c
1142
if (pcm) {
sound/firewire/amdtp-stream.c
1145
pcm->runtime->delay = compute_pcm_extra_delay(s, desc, count);
sound/firewire/amdtp-stream.c
1152
update_pcm_pointers(s, pcm, data_block_count * s->pcm_frame_multiplier);
sound/firewire/amdtp-stream.c
1190
struct snd_pcm_substream *pcm = READ_ONCE(s->pcm);
sound/firewire/amdtp-stream.c
1191
need_hw_irq = !pcm || !pcm->runtime->no_period_wakeup;
sound/firewire/amdtp-stream.c
1947
struct snd_pcm_substream *pcm;
sound/firewire/amdtp-stream.c
1949
pcm = READ_ONCE(s->pcm);
sound/firewire/amdtp-stream.c
1950
if (pcm)
sound/firewire/amdtp-stream.c
1951
snd_pcm_stop_xrun(pcm);
sound/firewire/amdtp-stream.c
589
struct snd_pcm_substream *pcm,
sound/firewire/amdtp-stream.c
595
if (ptr >= pcm->runtime->buffer_size)
sound/firewire/amdtp-stream.c
596
ptr -= pcm->runtime->buffer_size;
sound/firewire/amdtp-stream.c
600
if (s->pcm_period_pointer >= pcm->runtime->period_size) {
sound/firewire/amdtp-stream.c
601
s->pcm_period_pointer -= pcm->runtime->period_size;
sound/firewire/amdtp-stream.c
622
if (!pcm->runtime->no_period_wakeup)
sound/firewire/amdtp-stream.c
631
struct snd_pcm_substream *pcm = READ_ONCE(s->pcm);
sound/firewire/amdtp-stream.c
633
if (pcm)
sound/firewire/amdtp-stream.c
634
snd_pcm_period_elapsed(pcm);
sound/firewire/amdtp-stream.h
117
struct snd_pcm_substream *pcm);
sound/firewire/amdtp-stream.h
193
struct snd_pcm_substream *pcm;
sound/firewire/amdtp-stream.h
269
return !!s->pcm;
sound/firewire/amdtp-stream.h
282
struct snd_pcm_substream *pcm)
sound/firewire/amdtp-stream.h
284
WRITE_ONCE(s->pcm, pcm);
sound/firewire/bebob/bebob.h
44
unsigned int pcm;
sound/firewire/bebob/bebob_maudio.c
246
bebob->tx_stream_formations[i + 1].pcm =
sound/firewire/bebob/bebob_maudio.c
250
bebob->rx_stream_formations[i + 1].pcm =
sound/firewire/bebob/bebob_pcm.c
25
if (formations[i].pcm == 0)
sound/firewire/bebob/bebob_pcm.c
28
if (!snd_interval_test(c, formations[i].pcm))
sound/firewire/bebob/bebob_pcm.c
352
struct snd_pcm *pcm;
sound/firewire/bebob/bebob_pcm.c
355
err = snd_pcm_new(bebob->card, bebob->card->driver, 0, 1, 1, &pcm);
sound/firewire/bebob/bebob_pcm.c
359
pcm->private_data = bebob;
sound/firewire/bebob/bebob_pcm.c
360
pcm->nonatomic = true;
sound/firewire/bebob/bebob_pcm.c
361
snprintf(pcm->name, sizeof(pcm->name),
sound/firewire/bebob/bebob_pcm.c
363
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_ops);
sound/firewire/bebob/bebob_pcm.c
364
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_ops);
sound/firewire/bebob/bebob_pcm.c
365
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
sound/firewire/bebob/bebob_pcm.c
54
if (formations[i].pcm == 0)
sound/firewire/bebob/bebob_pcm.c
60
t.min = min(t.min, formations[i].pcm);
sound/firewire/bebob/bebob_pcm.c
61
t.max = max(t.max, formations[i].pcm);
sound/firewire/bebob/bebob_pcm.c
82
if (formations[i].pcm == 0)
sound/firewire/bebob/bebob_pcm.c
85
hw->channels_min = min(hw->channels_min, formations[i].pcm);
sound/firewire/bebob/bebob_pcm.c
86
hw->channels_max = max(hw->channels_max, formations[i].pcm);
sound/firewire/bebob/bebob_proc.c
117
formation[i].pcm, formation[i].midi);
sound/firewire/bebob/bebob_proc.c
126
formation[i].pcm, formation[i].midi);
sound/firewire/bebob/bebob_stream.c
257
unsigned int pcm, midi, location;
sound/firewire/bebob/bebob_stream.c
288
pcm = 0;
sound/firewire/bebob/bebob_stream.c
355
location = pcm + sec_loc;
sound/firewire/bebob/bebob_stream.c
367
pcm += channels;
sound/firewire/bebob/bebob_stream.c
509
pcm_channels = bebob->tx_stream_formations[index].pcm;
sound/firewire/bebob/bebob_stream.c
513
pcm_channels = bebob->rx_stream_formations[index].pcm;
sound/firewire/bebob/bebob_stream.c
738
formation[i].pcm += channels;
sound/firewire/bebob/bebob_stream.c
767
if (formation[i].pcm > AM824_MAX_CHANNELS_FOR_PCM ||
sound/firewire/dice/dice-pcm.c
130
unsigned int index = substream->pcm->device;
sound/firewire/dice/dice-pcm.c
16
unsigned int index = substream->pcm->device;
sound/firewire/dice/dice-pcm.c
298
struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
312
struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
327
struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
345
struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
364
struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
371
struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
379
struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
387
struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
414
struct snd_pcm *pcm;
sound/firewire/dice/dice-pcm.c
429
&pcm);
sound/firewire/dice/dice-pcm.c
432
pcm->private_data = dice;
sound/firewire/dice/dice-pcm.c
433
pcm->nonatomic = true;
sound/firewire/dice/dice-pcm.c
434
strscpy(pcm->name, dice->card->shortname);
sound/firewire/dice/dice-pcm.c
437
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/firewire/dice/dice-pcm.c
441
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/firewire/dice/dice-pcm.c
444
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC,
sound/firewire/dice/dice-pcm.c
54
unsigned int index = substream->pcm->device;
sound/firewire/digi00x/amdtp-dot.c
145
static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm,
sound/firewire/digi00x/amdtp-dot.c
151
struct snd_pcm_runtime *runtime = pcm->runtime;
sound/firewire/digi00x/amdtp-dot.c
177
static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm,
sound/firewire/digi00x/amdtp-dot.c
183
struct snd_pcm_runtime *runtime = pcm->runtime;
sound/firewire/digi00x/amdtp-dot.c
345
unsigned int count, struct snd_pcm_substream *pcm)
sound/firewire/digi00x/amdtp-dot.c
354
if (pcm) {
sound/firewire/digi00x/amdtp-dot.c
355
read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames);
sound/firewire/digi00x/amdtp-dot.c
366
unsigned int count, struct snd_pcm_substream *pcm)
sound/firewire/digi00x/amdtp-dot.c
375
if (pcm) {
sound/firewire/digi00x/amdtp-dot.c
376
write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames);
sound/firewire/digi00x/digi00x-pcm.c
330
struct snd_pcm *pcm;
sound/firewire/digi00x/digi00x-pcm.c
333
err = snd_pcm_new(dg00x->card, dg00x->card->driver, 0, 1, 1, &pcm);
sound/firewire/digi00x/digi00x-pcm.c
337
pcm->private_data = dg00x;
sound/firewire/digi00x/digi00x-pcm.c
338
pcm->nonatomic = true;
sound/firewire/digi00x/digi00x-pcm.c
339
snprintf(pcm->name, sizeof(pcm->name),
sound/firewire/digi00x/digi00x-pcm.c
341
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_ops);
sound/firewire/digi00x/digi00x-pcm.c
342
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_ops);
sound/firewire/digi00x/digi00x-pcm.c
343
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
sound/firewire/fireface/amdtp-ff.c
116
unsigned int count, struct snd_pcm_substream *pcm)
sound/firewire/fireface/amdtp-ff.c
125
if (pcm) {
sound/firewire/fireface/amdtp-ff.c
126
write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames);
sound/firewire/fireface/amdtp-ff.c
137
unsigned int count, struct snd_pcm_substream *pcm)
sound/firewire/fireface/amdtp-ff.c
146
if (pcm) {
sound/firewire/fireface/amdtp-ff.c
147
read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames);
sound/firewire/fireface/amdtp-ff.c
30
static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm,
sound/firewire/fireface/amdtp-ff.c
36
struct snd_pcm_runtime *runtime = pcm->runtime;
sound/firewire/fireface/amdtp-ff.c
60
static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm,
sound/firewire/fireface/amdtp-ff.c
66
struct snd_pcm_runtime *runtime = pcm->runtime;
sound/firewire/fireface/ff-pcm.c
371
struct snd_pcm *pcm;
sound/firewire/fireface/ff-pcm.c
374
err = snd_pcm_new(ff->card, ff->card->driver, 0, 1, 1, &pcm);
sound/firewire/fireface/ff-pcm.c
378
pcm->private_data = ff;
sound/firewire/fireface/ff-pcm.c
379
pcm->nonatomic = true;
sound/firewire/fireface/ff-pcm.c
380
snprintf(pcm->name, sizeof(pcm->name),
sound/firewire/fireface/ff-pcm.c
382
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcm_playback_ops);
sound/firewire/fireface/ff-pcm.c
383
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pcm_capture_ops);
sound/firewire/fireface/ff-pcm.c
384
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
sound/firewire/fireworks/fireworks_pcm.c
381
struct snd_pcm *pcm;
sound/firewire/fireworks/fireworks_pcm.c
384
err = snd_pcm_new(efw->card, efw->card->driver, 0, 1, 1, &pcm);
sound/firewire/fireworks/fireworks_pcm.c
388
pcm->private_data = efw;
sound/firewire/fireworks/fireworks_pcm.c
389
pcm->nonatomic = true;
sound/firewire/fireworks/fireworks_pcm.c
390
snprintf(pcm->name, sizeof(pcm->name), "%s PCM", efw->card->shortname);
sound/firewire/fireworks/fireworks_pcm.c
391
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_ops);
sound/firewire/fireworks/fireworks_pcm.c
392
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_ops);
sound/firewire/fireworks/fireworks_pcm.c
393
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
sound/firewire/isight.c
103
snd_pcm_period_elapsed(isight->pcm);
sound/firewire/isight.c
116
runtime = isight->pcm->runtime;
sound/firewire/isight.c
134
snd_pcm_stop_xrun(isight->pcm);
sound/firewire/isight.c
146
runtime = isight->pcm->runtime;
sound/firewire/isight.c
445
struct snd_pcm *pcm;
sound/firewire/isight.c
448
err = snd_pcm_new(isight->card, "iSight", 0, 0, 1, &pcm);
sound/firewire/isight.c
451
pcm->private_data = isight;
sound/firewire/isight.c
452
pcm->nonatomic = true;
sound/firewire/isight.c
453
strscpy(pcm->name, "iSight");
sound/firewire/isight.c
454
isight->pcm = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
sound/firewire/isight.c
455
isight->pcm->ops = &ops;
sound/firewire/isight.c
456
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
sound/firewire/isight.c
53
struct snd_pcm_substream *pcm;
sound/firewire/isight.c
89
struct snd_pcm_runtime *runtime = isight->pcm->runtime;
sound/firewire/motu/amdtp-motu.c
129
static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm,
sound/firewire/motu/amdtp-motu.c
135
struct snd_pcm_runtime *runtime = pcm->runtime;
sound/firewire/motu/amdtp-motu.c
332
unsigned int count, struct snd_pcm_substream *pcm)
sound/firewire/motu/amdtp-motu.c
350
if (pcm) {
sound/firewire/motu/amdtp-motu.c
351
read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames);
sound/firewire/motu/amdtp-motu.c
396
unsigned int count, struct snd_pcm_substream *pcm)
sound/firewire/motu/amdtp-motu.c
411
if (pcm) {
sound/firewire/motu/amdtp-motu.c
412
write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames);
sound/firewire/motu/amdtp-motu.c
93
static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm,
sound/firewire/motu/amdtp-motu.c
99
struct snd_pcm_runtime *runtime = pcm->runtime;
sound/firewire/motu/motu-pcm.c
350
struct snd_pcm *pcm;
sound/firewire/motu/motu-pcm.c
353
err = snd_pcm_new(motu->card, motu->card->driver, 0, 1, 1, &pcm);
sound/firewire/motu/motu-pcm.c
356
pcm->private_data = motu;
sound/firewire/motu/motu-pcm.c
357
pcm->nonatomic = true;
sound/firewire/motu/motu-pcm.c
358
strscpy(pcm->name, motu->card->shortname);
sound/firewire/motu/motu-pcm.c
360
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_ops);
sound/firewire/motu/motu-pcm.c
361
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_ops);
sound/firewire/motu/motu-pcm.c
362
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
sound/firewire/oxfw/oxfw-pcm.c
100
hw->channels_min = min(hw->channels_min, formation.pcm);
sound/firewire/oxfw/oxfw-pcm.c
101
hw->channels_max = max(hw->channels_max, formation.pcm);
sound/firewire/oxfw/oxfw-pcm.c
162
substream->runtime->hw.channels_min = formation.pcm;
sound/firewire/oxfw/oxfw-pcm.c
163
substream->runtime->hw.channels_max = formation.pcm;
sound/firewire/oxfw/oxfw-pcm.c
31
if (!snd_interval_test(c, formation.pcm))
sound/firewire/oxfw/oxfw-pcm.c
332
struct snd_pcm_substream *pcm;
sound/firewire/oxfw/oxfw-pcm.c
336
pcm = substream;
sound/firewire/oxfw/oxfw-pcm.c
339
pcm = NULL;
sound/firewire/oxfw/oxfw-pcm.c
344
amdtp_stream_pcm_trigger(&oxfw->tx_stream, pcm);
sound/firewire/oxfw/oxfw-pcm.c
350
struct snd_pcm_substream *pcm;
sound/firewire/oxfw/oxfw-pcm.c
354
pcm = substream;
sound/firewire/oxfw/oxfw-pcm.c
357
pcm = NULL;
sound/firewire/oxfw/oxfw-pcm.c
362
amdtp_stream_pcm_trigger(&oxfw->rx_stream, pcm);
sound/firewire/oxfw/oxfw-pcm.c
415
struct snd_pcm *pcm;
sound/firewire/oxfw/oxfw-pcm.c
422
err = snd_pcm_new(oxfw->card, oxfw->card->driver, 0, 1, cap, &pcm);
sound/firewire/oxfw/oxfw-pcm.c
426
pcm->private_data = oxfw;
sound/firewire/oxfw/oxfw-pcm.c
427
pcm->nonatomic = true;
sound/firewire/oxfw/oxfw-pcm.c
428
strscpy(pcm->name, oxfw->card->shortname);
sound/firewire/oxfw/oxfw-pcm.c
429
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_ops);
sound/firewire/oxfw/oxfw-pcm.c
431
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_ops);
sound/firewire/oxfw/oxfw-pcm.c
432
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
sound/firewire/oxfw/oxfw-pcm.c
63
if (list[count] == formation.pcm)
sound/firewire/oxfw/oxfw-pcm.c
67
if (list[j] == formation.pcm)
sound/firewire/oxfw/oxfw-pcm.c
71
list[count] = formation.pcm;
sound/firewire/oxfw/oxfw-proc.c
43
formation.rate, formation.pcm, formation.midi);
sound/firewire/oxfw/oxfw-proc.c
73
formation.rate, formation.pcm, formation.midi);
sound/firewire/oxfw/oxfw-stream.c
234
if (fmt.rate == formation.rate && fmt.pcm == formation.pcm &&
sound/firewire/oxfw/oxfw-stream.c
242
if (formation.pcm == 0)
sound/firewire/oxfw/oxfw-stream.c
245
err = amdtp_am824_set_parameters(stream, formation.rate, formation.pcm,
sound/firewire/oxfw/oxfw-stream.c
284
pcm_channels = formation.pcm;
sound/firewire/oxfw/oxfw-stream.c
286
if (formation.rate != rate || formation.pcm != pcm_channels) {
sound/firewire/oxfw/oxfw-stream.c
299
formation.rate != rate || formation.pcm != pcm_channels) {
sound/firewire/oxfw/oxfw-stream.c
585
formation->pcm += channels;
sound/firewire/oxfw/oxfw-stream.c
620
if (formation->pcm > AM824_MAX_CHANNELS_FOR_PCM ||
sound/firewire/oxfw/oxfw-stream.c
80
if ((formation.rate == rate) && (formation.pcm == pcm_channels))
sound/firewire/oxfw/oxfw.h
140
unsigned int pcm;
sound/firewire/tascam/amdtp-tascam.c
179
unsigned int count, struct snd_pcm_substream *pcm)
sound/firewire/tascam/amdtp-tascam.c
188
if (pcm) {
sound/firewire/tascam/amdtp-tascam.c
189
read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames);
sound/firewire/tascam/amdtp-tascam.c
200
unsigned int count, struct snd_pcm_substream *pcm)
sound/firewire/tascam/amdtp-tascam.c
209
if (pcm) {
sound/firewire/tascam/amdtp-tascam.c
210
write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames);
sound/firewire/tascam/amdtp-tascam.c
35
static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm,
sound/firewire/tascam/amdtp-tascam.c
41
struct snd_pcm_runtime *runtime = pcm->runtime;
sound/firewire/tascam/amdtp-tascam.c
65
static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm,
sound/firewire/tascam/amdtp-tascam.c
71
struct snd_pcm_runtime *runtime = pcm->runtime;
sound/firewire/tascam/tascam-pcm.c
259
struct snd_pcm *pcm;
sound/firewire/tascam/tascam-pcm.c
262
err = snd_pcm_new(tscm->card, tscm->card->driver, 0, 1, 1, &pcm);
sound/firewire/tascam/tascam-pcm.c
266
pcm->private_data = tscm;
sound/firewire/tascam/tascam-pcm.c
267
pcm->nonatomic = true;
sound/firewire/tascam/tascam-pcm.c
268
snprintf(pcm->name, sizeof(pcm->name),
sound/firewire/tascam/tascam-pcm.c
270
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_ops);
sound/firewire/tascam/tascam-pcm.c
271
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_ops);
sound/firewire/tascam/tascam-pcm.c
272
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
sound/hda/codecs/ca0132.c
6922
struct hda_pcm *pcm;
sound/hda/codecs/ca0132.c
6924
list_for_each_entry(pcm, &codec->pcm_list_head, list) {
sound/hda/codecs/ca0132.c
6926
&pcm->stream[SNDRV_PCM_STREAM_PLAYBACK];
sound/hda/codecs/ca0132.c
6932
err = snd_pcm_add_chmap_ctls(pcm->pcm,
sound/hda/codecs/hdmi/hdmi.c
100
per_pin->pcm->pcm->stream == hinfo)
sound/hda/codecs/hdmi/hdmi.c
1019
if (per_pin->pcm)
sound/hda/codecs/hdmi/hdmi.c
1033
per_pin->pcm = get_hdmi_pcm(spec, idx);
sound/hda/codecs/hdmi/hdmi.c
1043
if (!per_pin->pcm)
sound/hda/codecs/hdmi/hdmi.c
1048
per_pin->pcm = NULL;
sound/hda/codecs/hdmi/hdmi.c
1070
struct hda_pcm *pcm;
sound/hda/codecs/hdmi/hdmi.c
1078
pcm = get_pcm_rec(spec, per_pin->pcm_idx);
sound/hda/codecs/hdmi/hdmi.c
1079
if (!pcm->pcm)
sound/hda/codecs/hdmi/hdmi.c
1085
hinfo = pcm->stream;
sound/hda/codecs/hdmi/hdmi.c
1086
substream = pcm->pcm->streams[0].substream;
sound/hda/codecs/hdmi/hdmi.c
1491
per_pin->pcm = NULL;
sound/hda/codecs/hdmi/hdmi.c
1862
spec->pcm_rec[idx].pcm = info;
sound/hda/codecs/hdmi/hdmi.c
1887
struct hdmi_pcm *pcm = jack->private_data;
sound/hda/codecs/hdmi/hdmi.c
1889
pcm->jack = NULL;
sound/hda/codecs/hdmi/hdmi.c
1921
if (!get_pcm_rec(spec, pcm_idx)->pcm) {
sound/hda/codecs/hdmi/hdmi.c
1965
struct hda_pcm *pcm;
sound/hda/codecs/hdmi/hdmi.c
1967
pcm = get_pcm_rec(spec, pcm_idx);
sound/hda/codecs/hdmi/hdmi.c
1968
if (!pcm || !pcm->pcm)
sound/hda/codecs/hdmi/hdmi.c
1970
err = snd_hdac_add_chmap_ctls(pcm->pcm, pcm_idx, &spec->chmap);
sound/hda/codecs/hdmi/hdmi.c
99
if (per_pin->pcm &&
sound/hda/codecs/hdmi/hdmi_local.h
244
#define get_pcm_rec(spec, idx) (get_hdmi_pcm(spec, idx)->pcm)
sound/hda/codecs/hdmi/hdmi_local.h
45
struct hdmi_pcm *pcm; /* pointer to spec->pcm_rec[n] dynamically*/
sound/hda/codecs/hdmi/hdmi_local.h
96
struct hda_pcm *pcm;
sound/hda/codecs/hdmi/intelhdmi.c
350
if (!per_pin->pcm)
sound/hda/codecs/hdmi/nvhdmi-mcp.c
266
err = snd_pcm_add_chmap_ctls(info->pcm,
sound/hda/codecs/hdmi/simplehdmi.c
26
spec->pcm_rec[0].pcm = info;
sound/hda/codecs/hdmi/simplehdmi.c
49
struct hdmi_pcm *pcm = jack->private_data;
sound/hda/codecs/hdmi/simplehdmi.c
51
pcm->jack = NULL;
sound/hda/codecs/hdmi/simplehdmi.c
60
int pcmdev = pcmp->pcm->device;
sound/hda/codecs/hdmi/tegrahdmi.c
168
struct hda_pcm *pcm = get_pcm_rec(spec, i);
sound/hda/codecs/hdmi/tegrahdmi.c
170
if (pcm->pcm_type == type)
sound/hda/codecs/hdmi/tegrahdmi.c
171
return pcm;
sound/hda/codecs/hdmi/tegrahdmi.c
180
struct hda_pcm *pcm;
sound/hda/codecs/hdmi/tegrahdmi.c
187
pcm = hda_find_pcm_by_type(codec, HDA_PCM_TYPE_HDMI);
sound/hda/codecs/hdmi/tegrahdmi.c
188
if (!pcm)
sound/hda/codecs/hdmi/tegrahdmi.c
195
stream = &pcm->stream[SNDRV_PCM_STREAM_PLAYBACK];
sound/hda/common/codec.c
1755
if (!cpcm->pcm)
sound/hda/common/codec.c
1757
if (cpcm->pcm->streams[0].substream_opened ||
sound/hda/common/codec.c
1758
cpcm->pcm->streams[1].substream_opened)
sound/hda/common/codec.c
3033
snd_pcm_suspend_all(cpcm->pcm);
sound/hda/common/codec.c
3044
struct hda_pcm *pcm;
sound/hda/common/codec.c
3047
list_for_each_entry(pcm, &codec->pcm_list_head, list) {
sound/hda/common/codec.c
3049
struct hda_pcm_stream *hinfo = &pcm->stream[str];
sound/hda/common/codec.c
3053
if (!pcm->pcm || pcm->own_chmap || !hinfo->substreams)
sound/hda/common/codec.c
3056
err = snd_pcm_add_chmap_ctls(pcm->pcm, str, elem,
sound/hda/common/codec.c
3332
if (cpcm->pcm)
sound/hda/common/codec.c
4087
void snd_print_pcm_bits(int pcm, char *buf, int buflen)
sound/hda/common/codec.c
4093
if (pcm & (AC_SUPPCM_BITS_8 << i))
sound/hda/common/codec.c
695
struct hda_pcm *pcm;
sound/hda/common/codec.c
698
pcm = kzalloc_obj(*pcm);
sound/hda/common/codec.c
699
if (!pcm)
sound/hda/common/codec.c
702
pcm->codec = codec;
sound/hda/common/codec.c
704
pcm->name = kvasprintf(GFP_KERNEL, fmt, args);
sound/hda/common/codec.c
706
if (!pcm->name) {
sound/hda/common/codec.c
707
kfree(pcm);
sound/hda/common/codec.c
711
list_add_tail(&pcm->list, &codec->pcm_list_head);
sound/hda/common/codec.c
712
snd_hda_codec_pcm_get(pcm);
sound/hda/common/codec.c
713
return pcm;
sound/hda/common/codec.c
722
struct hda_pcm *pcm;
sound/hda/common/codec.c
724
list_for_each_entry(pcm, &codec->pcm_list_head, list) {
sound/hda/common/codec.c
725
if (pcm->disconnected)
sound/hda/common/codec.c
727
if (pcm->pcm)
sound/hda/common/codec.c
728
snd_device_disconnect(codec->card, pcm->pcm);
sound/hda/common/codec.c
729
snd_hda_codec_pcm_put(pcm);
sound/hda/common/codec.c
730
pcm->disconnected = 1;
sound/hda/common/codec.c
736
struct hda_pcm *pcm, *n;
sound/hda/common/codec.c
738
list_for_each_entry_safe(pcm, n, &codec->pcm_list_head, list) {
sound/hda/common/codec.c
739
list_del(&pcm->list);
sound/hda/common/codec.c
740
if (pcm->pcm)
sound/hda/common/codec.c
741
snd_device_free(pcm->codec->card, pcm->pcm);
sound/hda/common/codec.c
742
clear_bit(pcm->device, pcm->codec->bus->pcm_dev_bits);
sound/hda/common/codec.c
743
kfree(pcm->name);
sound/hda/common/codec.c
744
kfree(pcm);
sound/hda/common/controller.c
243
if (s->pcm->card != substream->pcm->card)
sound/hda/common/controller.c
255
if (s->pcm->card != substream->pcm->card)
sound/hda/common/controller.c
682
static void azx_pcm_free(struct snd_pcm *pcm)
sound/hda/common/controller.c
684
struct azx_pcm *apcm = pcm->private_data;
sound/hda/common/controller.c
687
apcm->info->pcm = NULL;
sound/hda/common/controller.c
699
struct snd_pcm *pcm;
sound/hda/common/controller.c
707
if (apcm->pcm->device == pcm_dev) {
sound/hda/common/controller.c
716
&pcm);
sound/hda/common/controller.c
719
strscpy(pcm->name, cpcm->name, sizeof(pcm->name));
sound/hda/common/controller.c
722
snd_device_free(chip->card, pcm);
sound/hda/common/controller.c
726
apcm->pcm = pcm;
sound/hda/common/controller.c
729
pcm->private_data = apcm;
sound/hda/common/controller.c
730
pcm->private_free = azx_pcm_free;
sound/hda/common/controller.c
732
pcm->dev_class = SNDRV_PCM_CLASS_MODEM;
sound/hda/common/controller.c
734
cpcm->pcm = pcm;
sound/hda/common/controller.c
737
snd_pcm_set_ops(pcm, s, &azx_pcm_ops);
sound/hda/common/controller.c
745
snd_pcm_set_managed_buffer_all(pcm, type, chip->card->dev,
sound/hda/common/hda_controller.h
87
struct snd_pcm *pcm;
sound/hda/common/hda_local.h
262
void snd_print_pcm_bits(int pcm, char *buf, int buflen);
sound/hda/common/proc.c
161
static void print_pcm_rates(struct snd_info_buffer *buffer, unsigned int pcm)
sound/hda/common/proc.c
169
pcm &= AC_SUPPCM_RATES;
sound/hda/common/proc.c
170
snd_iprintf(buffer, " rates [0x%x]:", pcm);
sound/hda/common/proc.c
172
if (pcm & (1 << i))
sound/hda/common/proc.c
177
static void print_pcm_bits(struct snd_info_buffer *buffer, unsigned int pcm)
sound/hda/common/proc.c
181
snd_iprintf(buffer, " bits [0x%x]:", (pcm >> 16) & 0xff);
sound/hda/common/proc.c
182
snd_print_pcm_bits(pcm, buf, sizeof(buf));
sound/hda/common/proc.c
202
unsigned int pcm = param_read(codec, nid, AC_PAR_PCM);
sound/hda/common/proc.c
204
if (pcm == -1 || stream == -1) {
sound/hda/common/proc.c
208
print_pcm_rates(buffer, pcm);
sound/hda/common/proc.c
209
print_pcm_bits(buffer, pcm);
sound/hda/common/proc.c
82
if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL)
sound/hda/common/proc.c
88
cpcm->pcm->device);
sound/hda/core/hdmi_chmap.c
847
int snd_hdac_add_chmap_ctls(struct snd_pcm *pcm, int pcm_idx,
sound/hda/core/hdmi_chmap.c
854
err = snd_pcm_add_chmap_ctls(pcm,
sound/hda/core/stream.c
370
if (substream->pcm)
sound/hda/core/stream.c
371
key |= (substream->pcm->device << 16);
sound/i2c/cs8427.c
541
kctl->id.device = play_substream->pcm->device;
sound/i2c/other/ak4113.c
496
kctl->id.device = cap_substream->pcm->device;
sound/i2c/other/ak4114.c
468
kctl->id.device = ply_substream->pcm->device;
sound/i2c/other/ak4114.c
471
kctl->id.device = cap_substream->pcm->device;
sound/i2c/other/ak4117.c
411
kctl->id.device = cap_substream->pcm->device;
sound/isa/ad1816a/ad1816a_lib.c
591
struct snd_pcm *pcm;
sound/isa/ad1816a/ad1816a_lib.c
593
error = snd_pcm_new(chip->card, "AD1816A", device, 1, 1, &pcm);
sound/isa/ad1816a/ad1816a_lib.c
597
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ad1816a_playback_ops);
sound/isa/ad1816a/ad1816a_lib.c
598
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ad1816a_capture_ops);
sound/isa/ad1816a/ad1816a_lib.c
600
pcm->private_data = chip;
sound/isa/ad1816a/ad1816a_lib.c
601
pcm->info_flags = (chip->dma1 == chip->dma2 ) ? SNDRV_PCM_INFO_JOINT_DUPLEX : 0;
sound/isa/ad1816a/ad1816a_lib.c
603
strscpy(pcm->name, snd_ad1816a_chip_id(chip));
sound/isa/ad1816a/ad1816a_lib.c
606
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, chip->card->dev,
sound/isa/ad1816a/ad1816a_lib.c
609
chip->pcm = pcm;
sound/isa/ad1848/ad1848.c
101
chip->pcm->name, chip->port, irq[n], dma1[n]);
sound/isa/ad1848/ad1848.c
105
chip->pcm->name, chip->port, irq[n], dma1[n]);
sound/isa/ad1848/ad1848.c
96
strscpy(card->shortname, chip->pcm->name, sizeof(card->shortname));
sound/isa/cmi8330.c
158
struct snd_pcm *pcm;
sound/isa/cmi8330.c
428
struct snd_pcm *pcm;
sound/isa/cmi8330.c
436
err = snd_pcm_new(card, (chip->type == CMI8329) ? "CMI8329" : "CMI8330", 0, 1, 1, &pcm);
sound/isa/cmi8330.c
439
strscpy(pcm->name, (chip->type == CMI8329) ? "CMI8329" : "CMI8330");
sound/isa/cmi8330.c
440
pcm->private_data = chip;
sound/isa/cmi8330.c
456
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &chip->streams[SNDRV_PCM_STREAM_PLAYBACK].ops);
sound/isa/cmi8330.c
457
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &chip->streams[SNDRV_PCM_STREAM_CAPTURE].ops);
sound/isa/cmi8330.c
459
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/isa/cmi8330.c
461
chip->pcm = pcm;
sound/isa/cs423x/cs4231.c
103
chip->pcm->name, chip->port, irq[n], dma1[n]);
sound/isa/cs423x/cs4231.c
107
chip->pcm->name, chip->port, irq[n], dma1[n], dma2[n]);
sound/isa/cs423x/cs4231.c
98
strscpy(card->shortname, chip->pcm->name, sizeof(card->shortname));
sound/isa/cs423x/cs4236.c
370
strscpy(card->driver, chip->pcm->name, sizeof(card->driver));
sound/isa/cs423x/cs4236.c
371
strscpy(card->shortname, chip->pcm->name, sizeof(card->shortname));
sound/isa/cs423x/cs4236.c
375
chip->pcm->name, chip->port, irq[dev], dma1[dev]);
sound/isa/cs423x/cs4236.c
379
chip->pcm->name, chip->port, irq[dev], dma1[dev],
sound/isa/cs423x/cs4236_lib.c
363
chip->pcm->info_flags &= ~SNDRV_PCM_INFO_JOINT_DUPLEX;
sound/isa/es1688/es1688.c
132
strscpy(card->shortname, chip->pcm->name, sizeof(card->shortname));
sound/isa/es1688/es1688.c
134
"%s at 0x%lx, irq %i, dma %i", chip->pcm->name, chip->port,
sound/isa/es1688/es1688_lib.c
687
struct snd_pcm *pcm;
sound/isa/es1688/es1688_lib.c
690
err = snd_pcm_new(card, "ESx688", device, 1, 1, &pcm);
sound/isa/es1688/es1688_lib.c
694
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_es1688_playback_ops);
sound/isa/es1688/es1688_lib.c
695
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_es1688_capture_ops);
sound/isa/es1688/es1688_lib.c
697
pcm->private_data = chip;
sound/isa/es1688/es1688_lib.c
698
pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX;
sound/isa/es1688/es1688_lib.c
699
strscpy(pcm->name, snd_es1688_chip_id(chip));
sound/isa/es1688/es1688_lib.c
700
chip->pcm = pcm;
sound/isa/es1688/es1688_lib.c
702
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, card->dev,
sound/isa/es18xx.c
100
struct snd_pcm *pcm;
sound/isa/es18xx.c
1645
struct snd_pcm *pcm;
sound/isa/es18xx.c
1651
err = snd_pcm_new(card, str, device, 2, 1, &pcm);
sound/isa/es18xx.c
1653
err = snd_pcm_new(card, str, device, 1, 1, &pcm);
sound/isa/es18xx.c
1657
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_es18xx_playback_ops);
sound/isa/es18xx.c
1658
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_es18xx_capture_ops);
sound/isa/es18xx.c
1661
pcm->private_data = chip;
sound/isa/es18xx.c
1662
pcm->info_flags = 0;
sound/isa/es18xx.c
1664
pcm->info_flags |= SNDRV_PCM_INFO_JOINT_DUPLEX;
sound/isa/es18xx.c
1666
pcm->info_flags |= SNDRV_PCM_INFO_HALF_DUPLEX;
sound/isa/es18xx.c
1667
sprintf(pcm->name, "ESS AudioDrive ES%x", chip->version);
sound/isa/es18xx.c
1668
chip->pcm = pcm;
sound/isa/es18xx.c
1670
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, card->dev,
sound/isa/es18xx.c
1760
strscpy(card->mixername, chip->pcm->name);
sound/isa/gus/gus_main.c
411
if (gus->pcm) {
sound/isa/gus/gus_main.c
412
err = snd_pcm_suspend_all(gus->pcm);
sound/isa/gus/gus_pcm.c
657
(long) pcm->playback.buffer, (long) gus->gf1.pcm_buffer);
sound/isa/gus/gus_pcm.c
750
if (!pvoice->pcm)
sound/isa/gus/gus_pcm.c
810
struct snd_pcm *pcm;
sound/isa/gus/gus_pcm.c
821
&pcm);
sound/isa/gus/gus_pcm.c
824
pcm->private_data = gus;
sound/isa/gus/gus_pcm.c
826
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_gf1_pcm_playback_ops);
sound/isa/gus/gus_pcm.c
828
for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substream->next)
sound/isa/gus/gus_pcm.c
833
pcm->info_flags = 0;
sound/isa/gus/gus_pcm.c
834
pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX;
sound/isa/gus/gus_pcm.c
836
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_gf1_pcm_capture_ops);
sound/isa/gus/gus_pcm.c
838
pcm->info_flags |= SNDRV_PCM_INFO_HALF_DUPLEX;
sound/isa/gus/gus_pcm.c
839
snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream,
sound/isa/gus/gus_pcm.c
843
strscpy(pcm->name, pcm->id);
sound/isa/gus/gus_pcm.c
845
sprintf(pcm->name + strlen(pcm->name), " rev %c", gus->revision + 'A');
sound/isa/gus/gus_pcm.c
847
strcat(pcm->name, " (synth)");
sound/isa/gus/gus_pcm.c
848
gus->pcm = pcm;
sound/isa/gus/gus_reset.c
203
pvoice->pcm = 1;
sound/isa/gus/gus_reset.c
258
if (voice->pcm)
sound/isa/gus/gus_reset.c
260
voice->use = voice->pcm = 0;
sound/isa/gus/interwave.c
706
sprintf(wss->pcm->name + strlen(wss->pcm->name), " rev %c",
sound/isa/gus/interwave.c
708
strcat(wss->pcm->name, " (codec)");
sound/isa/msnd/msnd.c
679
struct snd_pcm *pcm;
sound/isa/msnd/msnd.c
682
err = snd_pcm_new(card, "MSNDPINNACLE", device, 1, 1, &pcm);
sound/isa/msnd/msnd.c
686
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_msnd_playback_ops);
sound/isa/msnd/msnd.c
687
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_msnd_capture_ops);
sound/isa/msnd/msnd.c
689
pcm->private_data = chip;
sound/isa/msnd/msnd.c
690
strscpy(pcm->name, "Hurricane");
sound/isa/opti9xx/miro.c
1115
snd_iprintf(buffer, " codec : %s\n", miro->pcm->name);
sound/isa/opti9xx/miro.c
123
struct snd_pcm *pcm;
sound/isa/opti9xx/miro.c
1484
miro->pcm = codec->pcm;
sound/isa/opti9xx/miro.c
1519
card->shortname, miro->name, codec->pcm->name,
sound/isa/opti9xx/opti92x-ad1848.c
586
if (snd_BUG_ON(!chip || !chip->pcm))
sound/isa/opti9xx/opti92x-ad1848.c
591
strscpy(card->mixername, chip->pcm->name);
sound/isa/opti9xx/opti92x-ad1848.c
856
card->shortname, codec->pcm->name,
sound/isa/opti9xx/opti92x-ad1848.c
861
card->shortname, codec->pcm->name, chip->wss_base + 4, irq,
sound/isa/sb/emu8000_pcm.c
631
static void snd_emu8000_pcm_free(struct snd_pcm *pcm)
sound/isa/sb/emu8000_pcm.c
633
struct snd_emu8000 *emu = pcm->private_data;
sound/isa/sb/emu8000_pcm.c
634
emu->pcm = NULL;
sound/isa/sb/emu8000_pcm.c
639
struct snd_pcm *pcm;
sound/isa/sb/emu8000_pcm.c
642
err = snd_pcm_new(card, "Emu8000 PCM", index, 1, 0, &pcm);
sound/isa/sb/emu8000_pcm.c
645
pcm->private_data = emu;
sound/isa/sb/emu8000_pcm.c
646
pcm->private_free = snd_emu8000_pcm_free;
sound/isa/sb/emu8000_pcm.c
647
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &emu8k_pcm_ops);
sound/isa/sb/emu8000_pcm.c
648
emu->pcm = pcm;
sound/isa/sb/emu8000_pcm.c
650
snd_device_register(card, pcm);
sound/isa/sb/emu8000_synth.c
91
if (hw->pcm)
sound/isa/sb/emu8000_synth.c
92
snd_device_free(dev->card, hw->pcm);
sound/isa/sb/sb16_main.c
818
struct snd_pcm *pcm;
sound/isa/sb/sb16_main.c
821
err = snd_pcm_new(card, "SB16 DSP", device, 1, 1, &pcm);
sound/isa/sb/sb16_main.c
824
sprintf(pcm->name, "DSP v%i.%i", chip->version >> 8, chip->version & 0xff);
sound/isa/sb/sb16_main.c
825
pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX;
sound/isa/sb/sb16_main.c
826
pcm->private_data = chip;
sound/isa/sb/sb16_main.c
827
chip->pcm = pcm;
sound/isa/sb/sb16_main.c
829
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sb16_playback_ops);
sound/isa/sb/sb16_main.c
830
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_sb16_capture_ops);
sound/isa/sb/sb16_main.c
835
pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX;
sound/isa/sb/sb16_main.c
837
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/isa/sb/sb8_main.c
554
struct snd_pcm *pcm;
sound/isa/sb/sb8_main.c
558
err = snd_pcm_new(card, "SB8 DSP", device, 1, 1, &pcm);
sound/isa/sb/sb8_main.c
561
sprintf(pcm->name, "DSP v%i.%i", chip->version >> 8, chip->version & 0xff);
sound/isa/sb/sb8_main.c
562
pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX;
sound/isa/sb/sb8_main.c
563
pcm->private_data = chip;
sound/isa/sb/sb8_main.c
565
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sb8_playback_ops);
sound/isa/sb/sb8_main.c
566
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_sb8_capture_ops);
sound/isa/sb/sb8_main.c
570
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/isa/wss/wss_lib.c
1804
struct snd_pcm *pcm;
sound/isa/wss/wss_lib.c
1807
err = snd_pcm_new(chip->card, "WSS", device, 1, 1, &pcm);
sound/isa/wss/wss_lib.c
1811
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_wss_playback_ops);
sound/isa/wss/wss_lib.c
1812
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_wss_capture_ops);
sound/isa/wss/wss_lib.c
1815
pcm->private_data = chip;
sound/isa/wss/wss_lib.c
1816
pcm->info_flags = 0;
sound/isa/wss/wss_lib.c
1818
pcm->info_flags |= SNDRV_PCM_INFO_HALF_DUPLEX;
sound/isa/wss/wss_lib.c
1820
pcm->info_flags |= SNDRV_PCM_INFO_JOINT_DUPLEX;
sound/isa/wss/wss_lib.c
1821
strscpy(pcm->name, snd_wss_chip_id(chip));
sound/isa/wss/wss_lib.c
1823
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, chip->card->dev,
sound/isa/wss/wss_lib.c
1826
chip->pcm = pcm;
sound/isa/wss/wss_lib.c
2115
if (snd_BUG_ON(!chip || !chip->pcm))
sound/isa/wss/wss_lib.c
2120
strscpy(card->mixername, chip->pcm->name);
sound/mips/hal2.c
700
struct snd_pcm *pcm;
sound/mips/hal2.c
704
err = snd_pcm_new(hal2->card, "SGI HAL2 Audio", 0, 1, 1, &pcm);
sound/mips/hal2.c
708
pcm->private_data = hal2;
sound/mips/hal2.c
709
strscpy(pcm->name, "SGI HAL2");
sound/mips/hal2.c
712
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/mips/hal2.c
714
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/mips/hal2.c
716
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
sound/mips/sgio2audio.c
670
struct snd_pcm *pcm;
sound/mips/sgio2audio.c
674
err = snd_pcm_new(chip->card, "SGI O2 Audio", 0, 1, 1, &pcm);
sound/mips/sgio2audio.c
678
pcm->private_data = chip;
sound/mips/sgio2audio.c
679
strscpy(pcm->name, "SGI O2 DAC1");
sound/mips/sgio2audio.c
682
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/mips/sgio2audio.c
684
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/mips/sgio2audio.c
686
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
sound/mips/sgio2audio.c
689
err = snd_pcm_new(chip->card, "SGI O2 Audio", 1, 1, 0, &pcm);
sound/mips/sgio2audio.c
693
pcm->private_data = chip;
sound/mips/sgio2audio.c
694
strscpy(pcm->name, "SGI O2 DAC2");
sound/mips/sgio2audio.c
697
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/mips/sgio2audio.c
699
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
sound/mips/snd-n64.c
206
struct n64audio *priv = substream->pcm->private_data;
sound/mips/snd-n64.c
233
struct n64audio *priv = substream->pcm->private_data;
sound/mips/snd-n64.c
237
n64audio_push(substream->pcm->private_data);
sound/mips/snd-n64.c
253
struct n64audio *priv = substream->pcm->private_data;
sound/mips/snd-n64.c
261
struct n64audio *priv = substream->pcm->private_data;
sound/mips/snd-n64.c
284
struct snd_pcm *pcm;
sound/mips/snd-n64.c
319
err = snd_pcm_new(card, "N64 Audio", 0, 1, 0, &pcm);
sound/mips/snd-n64.c
323
pcm->private_data = priv;
sound/mips/snd-n64.c
324
strscpy(pcm->name, "N64 Audio");
sound/mips/snd-n64.c
326
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &n64audio_pcm_ops);
sound/mips/snd-n64.c
327
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, card->dev, 0, 0);
sound/parisc/harmony.c
572
struct snd_pcm *pcm;
sound/parisc/harmony.c
580
err = snd_pcm_new(h->card, "harmony", 0, 1, 1, &pcm);
sound/parisc/harmony.c
584
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/parisc/harmony.c
586
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/parisc/harmony.c
589
pcm->private_data = h;
sound/parisc/harmony.c
590
pcm->info_flags = 0;
sound/parisc/harmony.c
591
strscpy(pcm->name, "harmony");
sound/parisc/harmony.c
592
h->pcm = pcm;
sound/parisc/harmony.c
620
snd_pcm_set_managed_buffer_all(pcm, h->dma.type, h->dma.dev,
sound/parisc/harmony.h
48
struct snd_pcm *pcm;
sound/pci/ac97/ac97_pcm.c
144
static unsigned char get_slot_reg(struct ac97_pcm *pcm, unsigned short cidx,
sound/pci/ac97/ac97_pcm.c
151
if (pcm->spdif)
sound/pci/ac97/ac97_pcm.c
153
if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/ac97/ac97_pcm.c
154
return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3];
sound/pci/ac97/ac97_pcm.c
392
static unsigned int get_rates(struct ac97_pcm *pcm, unsigned int cidx, unsigned short slots, int dbl)
sound/pci/ac97/ac97_pcm.c
401
reg = get_slot_reg(pcm, cidx, i, dbl);
sound/pci/ac97/ac97_pcm.c
410
rates &= pcm->r[dbl].codec[cidx]->rates[idx];
sound/pci/ac97/ac97_pcm.c
435
const struct ac97_pcm *pcm;
sound/pci/ac97/ac97_pcm.c
465
pcm = &pcms[i];
sound/pci/ac97/ac97_pcm.c
468
if (pcm->copy_flag) {
sound/pci/ac97/ac97_pcm.c
469
*rpcm = *pcm;
sound/pci/ac97/ac97_pcm.c
472
rpcm->stream = pcm->stream;
sound/pci/ac97/ac97_pcm.c
473
rpcm->exclusive = pcm->exclusive;
sound/pci/ac97/ac97_pcm.c
474
rpcm->spdif = pcm->spdif;
sound/pci/ac97/ac97_pcm.c
475
rpcm->private_value = pcm->private_value;
sound/pci/ac97/ac97_pcm.c
478
slots = pcm->r[0].slots;
sound/pci/ac97/ac97_pcm.c
483
if (pcm->spdif && pcm->stream == 0)
sound/pci/ac97/ac97_pcm.c
486
tmp = avail_slots[pcm->stream][j];
sound/pci/ac97/ac97_pcm.c
487
if (pcm->exclusive) {
sound/pci/ac97/ac97_pcm.c
496
tmp &= pcm->r[0].slots;
sound/pci/ac97/ac97_pcm.c
501
rpcm->r[0].rate_table[j] = rate_table[pcm->stream][j];
sound/pci/ac97/ac97_pcm.c
506
if (pcm->exclusive)
sound/pci/ac97/ac97_pcm.c
507
avail_slots[pcm->stream][j] &= ~tmp;
sound/pci/ac97/ac97_pcm.c
514
if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/pci/ac97/ac97_pcm.c
516
rate_table[pcm->stream][0] == 0) {
sound/pci/ac97/ac97_pcm.c
519
if ((tmp & pcm->r[1].slots) == tmp) {
sound/pci/ac97/ac97_pcm.c
524
if (pcm->exclusive)
sound/pci/ac97/ac97_pcm.c
525
avail_slots[pcm->stream][0] &= ~tmp;
sound/pci/ac97/ac97_pcm.c
554
int snd_ac97_pcm_open(struct ac97_pcm *pcm, unsigned int rate,
sound/pci/ac97/ac97_pcm.c
564
bus = pcm->bus;
sound/pci/ac97/ac97_pcm.c
573
scoped_guard(spinlock_irq, &pcm->bus->bus_lock) {
sound/pci/ac97/ac97_pcm.c
579
if (bus->used_slots[pcm->stream][cidx] & (1 << i)) {
sound/pci/ac97/ac97_pcm.c
583
if (pcm->r[r].rslots[cidx] & (1 << i)) {
sound/pci/ac97/ac97_pcm.c
584
bus->used_slots[pcm->stream][cidx] |= (1 << i);
sound/pci/ac97/ac97_pcm.c
596
pcm->cur_dbl = r;
sound/pci/ac97/ac97_pcm.c
602
if (pcm->r[r].rslots[cidx] & (1 << i)) {
sound/pci/ac97/ac97_pcm.c
603
reg = get_slot_reg(pcm, cidx, i, r);
sound/pci/ac97/ac97_pcm.c
614
err = snd_ac97_set_rate(pcm->r[r].codec[cidx], reg, rate);
sound/pci/ac97/ac97_pcm.c
624
pcm->aslots = slots;
sound/pci/ac97/ac97_pcm.c
628
pcm->aslots = slots;
sound/pci/ac97/ac97_pcm.c
629
snd_ac97_pcm_close(pcm);
sound/pci/ac97/ac97_pcm.c
643
int snd_ac97_pcm_close(struct ac97_pcm *pcm)
sound/pci/ac97/ac97_pcm.c
646
unsigned short slots = pcm->aslots;
sound/pci/ac97/ac97_pcm.c
650
int r = pcm->cur_dbl;
sound/pci/ac97/ac97_pcm.c
655
if (pcm->r[r].rslots[cidx] & (1 << i)) {
sound/pci/ac97/ac97_pcm.c
656
int reg = get_slot_reg(pcm, cidx, i, r);
sound/pci/ac97/ac97_pcm.c
657
snd_ac97_update_power(pcm->r[r].codec[cidx],
sound/pci/ac97/ac97_pcm.c
664
bus = pcm->bus;
sound/pci/ac97/ac97_pcm.c
665
guard(spinlock_irq)(&pcm->bus->bus_lock);
sound/pci/ac97/ac97_pcm.c
670
bus->used_slots[pcm->stream][cidx] &= ~(1 << i);
sound/pci/ac97/ac97_pcm.c
672
pcm->aslots = 0;
sound/pci/ac97/ac97_pcm.c
673
pcm->cur_dbl = 0;
sound/pci/ad1889.c
591
struct snd_pcm *pcm;
sound/pci/ad1889.c
593
err = snd_pcm_new(chip->card, chip->card->driver, device, 1, 1, &pcm);
sound/pci/ad1889.c
597
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/ad1889.c
599
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/ad1889.c
602
pcm->private_data = chip;
sound/pci/ad1889.c
603
pcm->info_flags = 0;
sound/pci/ad1889.c
604
strscpy(pcm->name, chip->card->shortname);
sound/pci/ad1889.c
606
chip->pcm = pcm;
sound/pci/ad1889.c
610
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, &chip->pci->dev,
sound/pci/ad1889.c
83
struct snd_pcm *pcm;
sound/pci/ali5451/ali5451.c
1602
static void snd_ali_pcm_free(struct snd_pcm *pcm)
sound/pci/ali5451/ali5451.c
1604
struct snd_ali *codec = pcm->private_data;
sound/pci/ali5451/ali5451.c
1605
codec->pcm[pcm->device] = NULL;
sound/pci/ali5451/ali5451.c
1612
struct snd_pcm *pcm;
sound/pci/ali5451/ali5451.c
1616
desc->playback_num, desc->capture_num, &pcm);
sound/pci/ali5451/ali5451.c
1622
pcm->private_data = codec;
sound/pci/ali5451/ali5451.c
1623
pcm->private_free = snd_ali_pcm_free;
sound/pci/ali5451/ali5451.c
1625
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/ali5451/ali5451.c
1628
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/ali5451/ali5451.c
1631
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/ali5451/ali5451.c
1634
pcm->info_flags = 0;
sound/pci/ali5451/ali5451.c
1635
pcm->dev_class = desc->class;
sound/pci/ali5451/ali5451.c
1636
pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX;
sound/pci/ali5451/ali5451.c
1637
strscpy(pcm->name, desc->name);
sound/pci/ali5451/ali5451.c
1638
codec->pcm[0] = pcm;
sound/pci/ali5451/ali5451.c
173
pcm :1,
sound/pci/ali5451/ali5451.c
226
struct snd_pcm *pcm[MAX_CODECS];
sound/pci/ali5451/ali5451.c
850
if (pvoice->pcm && pvoice->substream) {
sound/pci/ali5451/ali5451.c
925
pvoice->pcm = 1;
sound/pci/ali5451/ali5451.c
948
if (pvoice->pcm)
sound/pci/ali5451/ali5451.c
950
pvoice->use = pvoice->pcm = pvoice->synth = 0;
sound/pci/als300.c
107
struct snd_pcm *pcm;
sound/pci/als300.c
186
if (chip->pcm && chip->playback_substream) {
sound/pci/als300.c
194
if (chip->pcm && chip->capture_substream) {
sound/pci/als300.c
219
if (chip->pcm && chip->playback_substream) {
sound/pci/als300.c
228
if (chip->pcm && chip->capture_substream) {
sound/pci/als300.c
537
struct snd_pcm *pcm;
sound/pci/als300.c
540
err = snd_pcm_new(chip->card, "ALS300", 0, 1, 1, &pcm);
sound/pci/als300.c
543
pcm->private_data = chip;
sound/pci/als300.c
544
strscpy(pcm->name, "ALS300");
sound/pci/als300.c
545
chip->pcm = pcm;
sound/pci/als300.c
548
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/als300.c
550
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/als300.c
554
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, &chip->pci->dev,
sound/pci/als4000.c
657
struct snd_pcm *pcm;
sound/pci/als4000.c
660
err = snd_pcm_new(chip->card, "ALS4000 DSP", device, 1, 1, &pcm);
sound/pci/als4000.c
663
pcm->private_data = chip;
sound/pci/als4000.c
664
pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX;
sound/pci/als4000.c
665
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_als4000_playback_ops);
sound/pci/als4000.c
666
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_als4000_capture_ops);
sound/pci/als4000.c
668
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/als4000.c
671
chip->pcm = pcm;
sound/pci/asihpi/asihpi.c
1238
struct snd_pcm *pcm;
sound/pci/asihpi/asihpi.c
1248
num_outstreams, num_instreams, &pcm);
sound/pci/asihpi/asihpi.c
1253
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/asihpi/asihpi.c
1255
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/asihpi/asihpi.c
1258
pcm->private_data = asihpi;
sound/pci/asihpi/asihpi.c
1259
pcm->info_flags = 0;
sound/pci/asihpi/asihpi.c
1260
strscpy(pcm->name, "Asihpi PCM");
sound/pci/asihpi/asihpi.c
1264
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/asihpi/asihpi.c
266
struct device *dev = substream->pcm->card->dev;
sound/pci/atiixp.c
1224
struct snd_pcm *pcm;
sound/pci/atiixp.c
1256
ATI_PCMDEV_ANALOG, 1, 1, &pcm);
sound/pci/atiixp.c
1259
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_atiixp_playback_ops);
sound/pci/atiixp.c
1260
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_atiixp_capture_ops);
sound/pci/atiixp.c
1261
pcm->private_data = chip;
sound/pci/atiixp.c
1262
strscpy(pcm->name, "ATI IXP AC97");
sound/pci/atiixp.c
1263
chip->pcmdevs[ATI_PCMDEV_ANALOG] = pcm;
sound/pci/atiixp.c
1265
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/atiixp.c
1268
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/atiixp.c
1286
ATI_PCMDEV_DIGITAL, 1, 0, &pcm);
sound/pci/atiixp.c
1289
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_atiixp_spdif_ops);
sound/pci/atiixp.c
1290
pcm->private_data = chip;
sound/pci/atiixp.c
1292
strscpy(pcm->name, "ATI IXP IEC958 (AC97)");
sound/pci/atiixp.c
1294
strscpy(pcm->name, "ATI IXP IEC958 (Direct)");
sound/pci/atiixp.c
1295
chip->pcmdevs[ATI_PCMDEV_DIGITAL] = pcm;
sound/pci/atiixp.c
1297
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/atiixp.c
957
struct ac97_pcm *pcm = chip->pcms[dma->ac97_pcm_type];
sound/pci/atiixp.c
962
snd_ac97_pcm_close(pcm);
sound/pci/atiixp.c
965
err = snd_ac97_pcm_open(pcm, params_rate(hw_params),
sound/pci/atiixp.c
967
pcm->r[0].slots);
sound/pci/atiixp.c
981
struct ac97_pcm *pcm = chip->pcms[dma->ac97_pcm_type];
sound/pci/atiixp.c
982
snd_ac97_pcm_close(pcm);
sound/pci/atiixp_modem.c
960
struct snd_pcm *pcm;
sound/pci/atiixp_modem.c
968
err = snd_pcm_new(chip->card, "ATI IXP MC97", ATI_PCMDEV_ANALOG, 1, 1, &pcm);
sound/pci/atiixp_modem.c
971
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_atiixp_playback_ops);
sound/pci/atiixp_modem.c
972
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_atiixp_capture_ops);
sound/pci/atiixp_modem.c
973
pcm->dev_class = SNDRV_PCM_CLASS_MODEM;
sound/pci/atiixp_modem.c
974
pcm->private_data = chip;
sound/pci/atiixp_modem.c
975
strscpy(pcm->name, "ATI IXP MC97");
sound/pci/atiixp_modem.c
976
chip->pcmdevs[ATI_PCMDEV_ANALOG] = pcm;
sound/pci/atiixp_modem.c
978
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/au88x0/au88x0.h
133
struct snd_pcm *pcm[VORTEX_PCM_LAST];
sound/pci/au88x0/au88x0_pcm.c
146
if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) {
sound/pci/au88x0/au88x0_pcm.c
148
if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_A3D) {
sound/pci/au88x0/au88x0_pcm.c
152
if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_SPDIF) {
sound/pci/au88x0/au88x0_pcm.c
166
if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB
sound/pci/au88x0/au88x0_pcm.c
167
|| VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S)
sound/pci/au88x0/au88x0_pcm.c
172
VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) {
sound/pci/au88x0/au88x0_pcm.c
219
if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) {
sound/pci/au88x0/au88x0_pcm.c
220
int dma, type = VORTEX_PCM_TYPE(substream->pcm);
sound/pci/au88x0/au88x0_pcm.c
243
if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) {
sound/pci/au88x0/au88x0_pcm.c
276
if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) {
sound/pci/au88x0/au88x0_pcm.c
278
if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) {
sound/pci/au88x0/au88x0_pcm.c
317
if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) {
sound/pci/au88x0/au88x0_pcm.c
321
if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_SPDIF)
sound/pci/au88x0/au88x0_pcm.c
348
if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) {
sound/pci/au88x0/au88x0_pcm.c
363
if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT)
sound/pci/au88x0/au88x0_pcm.c
374
if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT)
sound/pci/au88x0/au88x0_pcm.c
383
if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT)
sound/pci/au88x0/au88x0_pcm.c
407
if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT)
sound/pci/au88x0/au88x0_pcm.c
597
struct snd_pcm *pcm;
sound/pci/au88x0/au88x0_pcm.c
612
nr_capt, &pcm);
sound/pci/au88x0/au88x0_pcm.c
615
snprintf(pcm->name, sizeof(pcm->name),
sound/pci/au88x0/au88x0_pcm.c
617
chip->pcm[idx] = pcm;
sound/pci/au88x0/au88x0_pcm.c
619
VORTEX_PCM_TYPE(pcm) = idx;
sound/pci/au88x0/au88x0_pcm.c
620
pcm->private_data = chip;
sound/pci/au88x0/au88x0_pcm.c
622
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/au88x0/au88x0_pcm.c
625
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/au88x0/au88x0_pcm.c
630
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
sound/pci/au88x0/au88x0_pcm.c
633
switch (VORTEX_PCM_TYPE(pcm)) {
sound/pci/au88x0/au88x0_pcm.c
635
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/au88x0/au88x0_pcm.c
641
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/au88x0/au88x0_pcm.c
648
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/au88x0/au88x0_pcm.c
656
if (VORTEX_PCM_TYPE(pcm) == VORTEX_PCM_SPDIF) {
sound/pci/au88x0/au88x0_pcm.c
666
if (VORTEX_PCM_TYPE(pcm) == VORTEX_PCM_ADB) {
sound/pci/aw2/aw2-alsa.c
313
dev_dbg(substream->pcm->card->dev, "Playback_open\n");
sound/pci/aw2/aw2-alsa.c
329
dev_dbg(substream->pcm->card->dev, "Capture_open\n");
sound/pci/aw2/aw2-alsa.c
512
pcm_device->pcm = pcm_playback_ana;
sound/pci/aw2/aw2-alsa.c
544
pcm_device->pcm = pcm_playback_num;
sound/pci/aw2/aw2-alsa.c
577
pcm_device->pcm = pcm_capture;
sound/pci/aw2/aw2-alsa.c
77
struct snd_pcm *pcm;
sound/pci/azt3328.c
1607
dev_dbg(substream->pcm->card->dev, "%08li %s @ 0x%8lx, frames %8ld\n",
sound/pci/azt3328.c
2076
struct snd_pcm *pcm;
sound/pci/azt3328.c
2080
1, 1, &pcm);
sound/pci/azt3328.c
2083
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/azt3328.c
2085
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/azt3328.c
2088
pcm->private_data = chip;
sound/pci/azt3328.c
2089
pcm->info_flags = 0;
sound/pci/azt3328.c
2090
strscpy(pcm->name, chip->card->shortname);
sound/pci/azt3328.c
2092
chip->pcm[AZF_CODEC_PLAYBACK] = pcm;
sound/pci/azt3328.c
2093
chip->pcm[AZF_CODEC_CAPTURE] = pcm;
sound/pci/azt3328.c
2095
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, &chip->pci->dev,
sound/pci/azt3328.c
2099
1, 0, &pcm);
sound/pci/azt3328.c
2102
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/azt3328.c
2105
pcm->private_data = chip;
sound/pci/azt3328.c
2106
pcm->info_flags = 0;
sound/pci/azt3328.c
2107
strscpy(pcm->name, chip->card->shortname);
sound/pci/azt3328.c
2108
chip->pcm[AZF_CODEC_I2S_OUT] = pcm;
sound/pci/azt3328.c
2110
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, &chip->pci->dev,
sound/pci/azt3328.c
272
struct snd_pcm *pcm[3];
sound/pci/bt87x.c
410
if (substream->pcm->device == DEVICE_DIGITAL)
sound/pci/bt87x.c
663
struct snd_pcm *pcm;
sound/pci/bt87x.c
665
err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm);
sound/pci/bt87x.c
668
pcm->private_data = chip;
sound/pci/bt87x.c
669
strscpy(pcm->name, name);
sound/pci/bt87x.c
670
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_bt87x_pcm_ops);
sound/pci/bt87x.c
671
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
sound/pci/ca0106/ca0106.h
678
struct snd_pcm *pcm[4];
sound/pci/ca0106/ca0106_main.c
1268
struct snd_pcm *pcm;
sound/pci/ca0106/ca0106_main.c
1273
err = snd_pcm_new(emu->card, "ca0106", device, 1, 1, &pcm);
sound/pci/ca0106/ca0106_main.c
1277
pcm->private_data = emu;
sound/pci/ca0106/ca0106_main.c
1281
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ca0106_playback_front_ops);
sound/pci/ca0106/ca0106_main.c
1282
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ca0106_capture_0_ops);
sound/pci/ca0106/ca0106_main.c
1286
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ca0106_playback_rear_ops);
sound/pci/ca0106/ca0106_main.c
1287
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ca0106_capture_1_ops);
sound/pci/ca0106/ca0106_main.c
1291
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ca0106_playback_center_lfe_ops);
sound/pci/ca0106/ca0106_main.c
1292
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ca0106_capture_2_ops);
sound/pci/ca0106/ca0106_main.c
1296
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ca0106_playback_unknown_ops);
sound/pci/ca0106/ca0106_main.c
1297
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ca0106_capture_3_ops);
sound/pci/ca0106/ca0106_main.c
1302
pcm->info_flags = 0;
sound/pci/ca0106/ca0106_main.c
1303
strscpy(pcm->name, "CA0106");
sound/pci/ca0106/ca0106_main.c
1305
for(substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
sound/pci/ca0106/ca0106_main.c
1313
for (substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
sound/pci/ca0106/ca0106_main.c
1321
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, map, 2,
sound/pci/ca0106/ca0106_main.c
1326
emu->pcm[device] = pcm;
sound/pci/cmipci.c
1424
if (cm->pcm) {
sound/pci/cmipci.c
1837
struct snd_pcm *pcm;
sound/pci/cmipci.c
1840
err = snd_pcm_new(cm->card, cm->card->driver, device, 1, 1, &pcm);
sound/pci/cmipci.c
1844
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cmipci_playback_ops);
sound/pci/cmipci.c
1845
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cmipci_capture_ops);
sound/pci/cmipci.c
1847
pcm->private_data = cm;
sound/pci/cmipci.c
1848
pcm->info_flags = 0;
sound/pci/cmipci.c
1849
strscpy(pcm->name, "C-Media PCI DAC/ADC");
sound/pci/cmipci.c
1850
cm->pcm = pcm;
sound/pci/cmipci.c
1852
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/cmipci.c
1860
struct snd_pcm *pcm;
sound/pci/cmipci.c
1863
err = snd_pcm_new(cm->card, cm->card->driver, device, 1, 0, &pcm);
sound/pci/cmipci.c
1867
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cmipci_playback2_ops);
sound/pci/cmipci.c
1869
pcm->private_data = cm;
sound/pci/cmipci.c
1870
pcm->info_flags = 0;
sound/pci/cmipci.c
1871
strscpy(pcm->name, "C-Media PCI 2nd DAC");
sound/pci/cmipci.c
1872
cm->pcm2 = pcm;
sound/pci/cmipci.c
1874
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/cmipci.c
1882
struct snd_pcm *pcm;
sound/pci/cmipci.c
1885
err = snd_pcm_new(cm->card, cm->card->driver, device, 1, 1, &pcm);
sound/pci/cmipci.c
1889
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cmipci_playback_spdif_ops);
sound/pci/cmipci.c
1890
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cmipci_capture_spdif_ops);
sound/pci/cmipci.c
1892
pcm->private_data = cm;
sound/pci/cmipci.c
1893
pcm->info_flags = 0;
sound/pci/cmipci.c
1894
strscpy(pcm->name, "C-Media PCI IEC958");
sound/pci/cmipci.c
1895
cm->pcm_spdif = pcm;
sound/pci/cmipci.c
1897
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/cmipci.c
1900
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/cmipci.c
450
struct snd_pcm *pcm; /* DAC/ADC PCM */
sound/pci/cs4281.c
452
struct snd_pcm *pcm;
sound/pci/cs4281.c
937
struct snd_pcm *pcm;
sound/pci/cs4281.c
940
err = snd_pcm_new(chip->card, "CS4281", device, 1, 1, &pcm);
sound/pci/cs4281.c
944
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs4281_playback_ops);
sound/pci/cs4281.c
945
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cs4281_capture_ops);
sound/pci/cs4281.c
947
pcm->private_data = chip;
sound/pci/cs4281.c
948
pcm->info_flags = 0;
sound/pci/cs4281.c
949
strscpy(pcm->name, "CS4281");
sound/pci/cs4281.c
950
chip->pcm = pcm;
sound/pci/cs4281.c
952
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, &chip->pci->dev,
sound/pci/cs46xx/cs46xx.h
1673
struct snd_pcm *pcm;
sound/pci/cs46xx/cs46xx_lib.c
1355
if ((status1 & HISR_VC1) && chip->pcm) {
sound/pci/cs46xx/cs46xx_lib.c
1493
dev_dbg(substream->pcm->card->dev, "open front channel\n");
sound/pci/cs46xx/cs46xx_lib.c
1500
dev_dbg(substream->pcm->card->dev, "open rear channel\n");
sound/pci/cs46xx/cs46xx_lib.c
1506
dev_dbg(substream->pcm->card->dev, "open center - LFE channel\n");
sound/pci/cs46xx/cs46xx_lib.c
1721
struct snd_pcm *pcm;
sound/pci/cs46xx/cs46xx_lib.c
1724
err = snd_pcm_new(chip->card, "CS46xx", device, MAX_PLAYBACK_CHANNELS, 1, &pcm);
sound/pci/cs46xx/cs46xx_lib.c
1728
pcm->private_data = chip;
sound/pci/cs46xx/cs46xx_lib.c
1730
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs46xx_playback_ops);
sound/pci/cs46xx/cs46xx_lib.c
1731
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cs46xx_capture_ops);
sound/pci/cs46xx/cs46xx_lib.c
1734
pcm->info_flags = 0;
sound/pci/cs46xx/cs46xx_lib.c
1735
strscpy(pcm->name, "CS46xx");
sound/pci/cs46xx/cs46xx_lib.c
1736
chip->pcm = pcm;
sound/pci/cs46xx/cs46xx_lib.c
1738
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/cs46xx/cs46xx_lib.c
1749
struct snd_pcm *pcm;
sound/pci/cs46xx/cs46xx_lib.c
1752
err = snd_pcm_new(chip->card, "CS46xx - Rear", device, MAX_PLAYBACK_CHANNELS, 0, &pcm);
sound/pci/cs46xx/cs46xx_lib.c
1756
pcm->private_data = chip;
sound/pci/cs46xx/cs46xx_lib.c
1758
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs46xx_playback_rear_ops);
sound/pci/cs46xx/cs46xx_lib.c
1761
pcm->info_flags = 0;
sound/pci/cs46xx/cs46xx_lib.c
1762
strscpy(pcm->name, "CS46xx - Rear");
sound/pci/cs46xx/cs46xx_lib.c
1763
chip->pcm_rear = pcm;
sound/pci/cs46xx/cs46xx_lib.c
1765
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/cs46xx/cs46xx_lib.c
1774
struct snd_pcm *pcm;
sound/pci/cs46xx/cs46xx_lib.c
1777
err = snd_pcm_new(chip->card, "CS46xx - Center LFE", device, MAX_PLAYBACK_CHANNELS, 0, &pcm);
sound/pci/cs46xx/cs46xx_lib.c
1781
pcm->private_data = chip;
sound/pci/cs46xx/cs46xx_lib.c
1783
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs46xx_playback_clfe_ops);
sound/pci/cs46xx/cs46xx_lib.c
1786
pcm->info_flags = 0;
sound/pci/cs46xx/cs46xx_lib.c
1787
strscpy(pcm->name, "CS46xx - Center LFE");
sound/pci/cs46xx/cs46xx_lib.c
1788
chip->pcm_center_lfe = pcm;
sound/pci/cs46xx/cs46xx_lib.c
1790
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/cs46xx/cs46xx_lib.c
1799
struct snd_pcm *pcm;
sound/pci/cs46xx/cs46xx_lib.c
1802
err = snd_pcm_new(chip->card, "CS46xx - IEC958", device, 1, 0, &pcm);
sound/pci/cs46xx/cs46xx_lib.c
1806
pcm->private_data = chip;
sound/pci/cs46xx/cs46xx_lib.c
1808
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs46xx_playback_iec958_ops);
sound/pci/cs46xx/cs46xx_lib.c
1811
pcm->info_flags = 0;
sound/pci/cs46xx/cs46xx_lib.c
1812
strscpy(pcm->name, "CS46xx - IEC958");
sound/pci/cs46xx/cs46xx_lib.c
1813
chip->pcm_iec958 = pcm;
sound/pci/cs46xx/cs46xx_lib.c
1815
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/cs5535audio/cs5535audio.h
88
struct snd_pcm *pcm;
sound/pci/cs5535audio/cs5535audio_pcm.c
404
struct snd_pcm *pcm;
sound/pci/cs5535audio/cs5535audio_pcm.c
407
err = snd_pcm_new(cs5535au->card, "CS5535 Audio", 0, 1, 1, &pcm);
sound/pci/cs5535audio/cs5535audio_pcm.c
415
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/cs5535audio/cs5535audio_pcm.c
417
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/cs5535audio/cs5535audio_pcm.c
420
pcm->private_data = cs5535au;
sound/pci/cs5535audio/cs5535audio_pcm.c
421
pcm->info_flags = 0;
sound/pci/cs5535audio/cs5535audio_pcm.c
422
strscpy(pcm->name, "CS5535 Audio");
sound/pci/cs5535audio/cs5535audio_pcm.c
424
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/cs5535audio/cs5535audio_pcm.c
427
cs5535au->pcm = pcm;
sound/pci/ctxfi/ctatc.c
1214
if (atc->pcm) {
sound/pci/ctxfi/ctatc.c
1217
if (atc->pcm[i])
sound/pci/ctxfi/ctatc.c
1218
sum_mgr->put_sum(sum_mgr, atc->pcm[i]);
sound/pci/ctxfi/ctatc.c
1220
kfree(atc->pcm);
sound/pci/ctxfi/ctatc.c
1221
atc->pcm = NULL;
sound/pci/ctxfi/ctatc.c
1431
atc->pcm = kcalloc(NUM_ATC_PCM, sizeof(void *), GFP_KERNEL);
sound/pci/ctxfi/ctatc.c
1432
if (!atc->pcm)
sound/pci/ctxfi/ctatc.c
1479
(struct sum **)&atc->pcm[i]);
sound/pci/ctxfi/ctatc.c
1585
sum = atc->pcm[j];
sound/pci/ctxfi/ctatc.c
1587
sum = atc->pcm[j+1];
sound/pci/ctxfi/ctatc.c
255
int device = apcm->substream->pcm->device;
sound/pci/ctxfi/ctatc.c
306
INIT_VOL, atc->pcm[i+device*2]);
sound/pci/ctxfi/ctatc.h
136
void **pcm; /* SUMs for collecting all pcm stream */
sound/pci/ctxfi/ctpcm.c
128
if (IEC958 == substream->pcm->device) {
sound/pci/ctxfi/ctpcm.c
133
if (FRONT == substream->pcm->device)
sound/pci/ctxfi/ctpcm.c
168
if (IEC958 == substream->pcm->device)
sound/pci/ctxfi/ctpcm.c
205
if (IEC958 == substream->pcm->device)
sound/pci/ctxfi/ctpcm.c
417
struct snd_pcm *pcm;
sound/pci/ctxfi/ctpcm.c
426
playback_count, capture_count, &pcm);
sound/pci/ctxfi/ctpcm.c
433
pcm->private_data = atc;
sound/pci/ctxfi/ctpcm.c
434
pcm->info_flags = 0;
sound/pci/ctxfi/ctpcm.c
435
pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX;
sound/pci/ctxfi/ctpcm.c
436
strscpy(pcm->name, device_name, sizeof(pcm->name));
sound/pci/ctxfi/ctpcm.c
438
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &ct_pcm_playback_ops);
sound/pci/ctxfi/ctpcm.c
441
snd_pcm_set_ops(pcm,
sound/pci/ctxfi/ctpcm.c
444
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
sound/pci/ctxfi/ctpcm.c
466
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, map, chs,
sound/pci/ctxfi/ctpcm.c
472
atc->pcms[device] = pcm;
sound/pci/echoaudio/echoaudio.c
872
static void snd_echo_preallocate_pages(struct snd_pcm *pcm, struct device *dev)
sound/pci/echoaudio/echoaudio.c
878
for (ss = pcm->streams[stream].substream; ss; ss = ss->next)
sound/pci/echoaudio/echoaudio.c
890
struct snd_pcm *pcm;
sound/pci/echoaudio/echoaudio.c
902
num_analog_busses_in(chip), &pcm);
sound/pci/echoaudio/echoaudio.c
905
pcm->private_data = chip;
sound/pci/echoaudio/echoaudio.c
906
chip->analog_pcm = pcm;
sound/pci/echoaudio/echoaudio.c
907
strscpy(pcm->name, chip->card->shortname);
sound/pci/echoaudio/echoaudio.c
908
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &analog_playback_ops);
sound/pci/echoaudio/echoaudio.c
909
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &analog_capture_ops);
sound/pci/echoaudio/echoaudio.c
910
snd_echo_preallocate_pages(pcm, &chip->pci->dev);
sound/pci/echoaudio/echoaudio.c
915
num_digital_busses_in(chip), &pcm);
sound/pci/echoaudio/echoaudio.c
918
pcm->private_data = chip;
sound/pci/echoaudio/echoaudio.c
919
chip->digital_pcm = pcm;
sound/pci/echoaudio/echoaudio.c
920
strscpy(pcm->name, chip->card->shortname);
sound/pci/echoaudio/echoaudio.c
921
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &digital_capture_ops);
sound/pci/echoaudio/echoaudio.c
922
snd_echo_preallocate_pages(pcm, &chip->pci->dev);
sound/pci/echoaudio/echoaudio.c
935
num_analog_busses_in(chip), &pcm);
sound/pci/echoaudio/echoaudio.c
938
pcm->private_data = chip;
sound/pci/echoaudio/echoaudio.c
939
chip->analog_pcm = pcm;
sound/pci/echoaudio/echoaudio.c
940
strscpy(pcm->name, chip->card->shortname);
sound/pci/echoaudio/echoaudio.c
941
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &analog_playback_ops);
sound/pci/echoaudio/echoaudio.c
942
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &analog_capture_ops);
sound/pci/echoaudio/echoaudio.c
943
snd_echo_preallocate_pages(pcm, &chip->pci->dev);
sound/pci/echoaudio/echoaudio.c
949
num_digital_busses_in(chip), &pcm);
sound/pci/echoaudio/echoaudio.c
952
pcm->private_data = chip;
sound/pci/echoaudio/echoaudio.c
953
chip->digital_pcm = pcm;
sound/pci/echoaudio/echoaudio.c
954
strscpy(pcm->name, chip->card->shortname);
sound/pci/echoaudio/echoaudio.c
955
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &digital_playback_ops);
sound/pci/echoaudio/echoaudio.c
956
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &digital_capture_ops);
sound/pci/echoaudio/echoaudio.c
957
snd_echo_preallocate_pages(pcm, &chip->pci->dev);
sound/pci/emu10k1/emu10k1x.c
230
struct snd_pcm *pcm;
sound/pci/emu10k1/emu10k1x.c
398
epcm->voice = &epcm->emu->voices[substream->pcm->device];
sound/pci/emu10k1/emu10k1x.c
798
struct snd_pcm *pcm;
sound/pci/emu10k1/emu10k1x.c
806
err = snd_pcm_new(emu->card, "emu10k1x", device, 1, capture, &pcm);
sound/pci/emu10k1/emu10k1x.c
810
pcm->private_data = emu;
sound/pci/emu10k1/emu10k1x.c
814
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1x_playback_ops);
sound/pci/emu10k1/emu10k1x.c
815
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1x_capture_ops);
sound/pci/emu10k1/emu10k1x.c
819
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1x_playback_ops);
sound/pci/emu10k1/emu10k1x.c
823
pcm->info_flags = 0;
sound/pci/emu10k1/emu10k1x.c
826
strscpy(pcm->name, "EMU10K1X Front");
sound/pci/emu10k1/emu10k1x.c
830
strscpy(pcm->name, "EMU10K1X Rear");
sound/pci/emu10k1/emu10k1x.c
834
strscpy(pcm->name, "EMU10K1X Center/LFE");
sound/pci/emu10k1/emu10k1x.c
838
emu->pcm = pcm;
sound/pci/emu10k1/emu10k1x.c
840
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/emu10k1/emu10k1x.c
843
return snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, map, 2,
sound/pci/emu10k1/emufx.c
1083
struct snd_emu10k1_fx8010_pcm *pcm;
sound/pci/emu10k1/emufx.c
1091
pcm = &emu->fx8010.pcm[ipcm->substream];
sound/pci/emu10k1/emufx.c
1094
if (pcm->opened)
sound/pci/emu10k1/emufx.c
1097
pcm->valid = 0;
sound/pci/emu10k1/emufx.c
1102
pcm->valid = 1;
sound/pci/emu10k1/emufx.c
1103
pcm->opened = 0;
sound/pci/emu10k1/emufx.c
1104
pcm->channels = ipcm->channels;
sound/pci/emu10k1/emufx.c
1105
pcm->tram_start = ipcm->tram_start;
sound/pci/emu10k1/emufx.c
1106
pcm->buffer_size = ipcm->buffer_size;
sound/pci/emu10k1/emufx.c
1107
pcm->gpr_size = ipcm->gpr_size;
sound/pci/emu10k1/emufx.c
1108
pcm->gpr_count = ipcm->gpr_count;
sound/pci/emu10k1/emufx.c
1109
pcm->gpr_tmpcount = ipcm->gpr_tmpcount;
sound/pci/emu10k1/emufx.c
1110
pcm->gpr_ptr = ipcm->gpr_ptr;
sound/pci/emu10k1/emufx.c
1111
pcm->gpr_trigger = ipcm->gpr_trigger;
sound/pci/emu10k1/emufx.c
1112
pcm->gpr_running = ipcm->gpr_running;
sound/pci/emu10k1/emufx.c
1113
for (i = 0; i < pcm->channels; i++)
sound/pci/emu10k1/emufx.c
1114
pcm->etram[i] = ipcm->etram[i];
sound/pci/emu10k1/emufx.c
1123
struct snd_emu10k1_fx8010_pcm *pcm;
sound/pci/emu10k1/emufx.c
1129
pcm = &emu->fx8010.pcm[ipcm->substream];
sound/pci/emu10k1/emufx.c
1132
ipcm->channels = pcm->channels;
sound/pci/emu10k1/emufx.c
1133
ipcm->tram_start = pcm->tram_start;
sound/pci/emu10k1/emufx.c
1134
ipcm->buffer_size = pcm->buffer_size;
sound/pci/emu10k1/emufx.c
1135
ipcm->gpr_size = pcm->gpr_size;
sound/pci/emu10k1/emufx.c
1136
ipcm->gpr_ptr = pcm->gpr_ptr;
sound/pci/emu10k1/emufx.c
1137
ipcm->gpr_count = pcm->gpr_count;
sound/pci/emu10k1/emufx.c
1138
ipcm->gpr_tmpcount = pcm->gpr_tmpcount;
sound/pci/emu10k1/emufx.c
1139
ipcm->gpr_trigger = pcm->gpr_trigger;
sound/pci/emu10k1/emufx.c
1140
ipcm->gpr_running = pcm->gpr_running;
sound/pci/emu10k1/emufx.c
1141
for (i = 0; i < pcm->channels; i++)
sound/pci/emu10k1/emufx.c
1142
ipcm->etram[i] = pcm->etram[i];
sound/pci/emu10k1/emupcm.c
1405
struct snd_pcm *pcm;
sound/pci/emu10k1/emupcm.c
1409
err = snd_pcm_new(emu->card, "emu10k1", device, 32, 1, &pcm);
sound/pci/emu10k1/emupcm.c
1413
pcm->private_data = emu;
sound/pci/emu10k1/emupcm.c
1415
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1_playback_ops);
sound/pci/emu10k1/emupcm.c
1416
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1_capture_ops);
sound/pci/emu10k1/emupcm.c
1418
pcm->info_flags = 0;
sound/pci/emu10k1/emupcm.c
1419
pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX;
sound/pci/emu10k1/emupcm.c
1420
strscpy(pcm->name, "ADC Capture/Standard PCM Playback");
sound/pci/emu10k1/emupcm.c
1421
emu->pcm = pcm;
sound/pci/emu10k1/emupcm.c
1424
for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substream->next)
sound/pci/emu10k1/emupcm.c
1429
for (substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; substream; substream = substream->next)
sound/pci/emu10k1/emupcm.c
1438
struct snd_pcm *pcm;
sound/pci/emu10k1/emupcm.c
1442
err = snd_pcm_new(emu->card, "emu10k1", device, 1, 0, &pcm);
sound/pci/emu10k1/emupcm.c
1446
pcm->private_data = emu;
sound/pci/emu10k1/emupcm.c
1448
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1_efx_playback_ops);
sound/pci/emu10k1/emupcm.c
1450
pcm->info_flags = 0;
sound/pci/emu10k1/emupcm.c
1451
pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX;
sound/pci/emu10k1/emupcm.c
1452
strscpy(pcm->name, "Multichannel Playback");
sound/pci/emu10k1/emupcm.c
1453
emu->pcm_multi = pcm;
sound/pci/emu10k1/emupcm.c
1455
for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substream->next)
sound/pci/emu10k1/emupcm.c
1474
struct snd_pcm *pcm;
sound/pci/emu10k1/emupcm.c
1477
err = snd_pcm_new(emu->card, "emu10k1 mic", device, 0, 1, &pcm);
sound/pci/emu10k1/emupcm.c
1481
pcm->private_data = emu;
sound/pci/emu10k1/emupcm.c
1483
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1_capture_mic_ops);
sound/pci/emu10k1/emupcm.c
1485
pcm->info_flags = 0;
sound/pci/emu10k1/emupcm.c
1486
strscpy(pcm->name, "Mic Capture");
sound/pci/emu10k1/emupcm.c
1487
emu->pcm_mic = pcm;
sound/pci/emu10k1/emupcm.c
1489
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, &emu->pci->dev,
sound/pci/emu10k1/emupcm.c
1599
struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
sound/pci/emu10k1/emupcm.c
1600
unsigned int tram_size = pcm->buffer_size;
sound/pci/emu10k1/emupcm.c
1603
unsigned int tram_pos = pcm->tram_pos;
sound/pci/emu10k1/emupcm.c
1604
unsigned int tram_shift = pcm->tram_shift;
sound/pci/emu10k1/emupcm.c
1620
pcm->tram_pos = tram_pos;
sound/pci/emu10k1/emupcm.c
1621
pcm->tram_shift = tram_shift;
sound/pci/emu10k1/emupcm.c
1627
struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
sound/pci/emu10k1/emupcm.c
1629
return snd_pcm_indirect_playback_transfer(substream, &pcm->pcm_rec,
sound/pci/emu10k1/emupcm.c
1636
struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
sound/pci/emu10k1/emupcm.c
1639
for (i = 0; i < pcm->channels; i++)
sound/pci/emu10k1/emupcm.c
1640
snd_emu10k1_ptr_write(emu, TANKMEMADDRREGBASE + 0x80 + pcm->etram[i], 0, 0);
sound/pci/emu10k1/emupcm.c
1648
struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
sound/pci/emu10k1/emupcm.c
1657
memset(&pcm->pcm_rec, 0, sizeof(pcm->pcm_rec));
sound/pci/emu10k1/emupcm.c
1658
pcm->pcm_rec.hw_buffer_size = pcm->buffer_size * 2; /* byte size */
sound/pci/emu10k1/emupcm.c
1659
pcm->pcm_rec.sw_buffer_size = snd_pcm_lib_buffer_bytes(substream);
sound/pci/emu10k1/emupcm.c
1660
pcm->tram_pos = INITIAL_TRAM_POS(pcm->buffer_size);
sound/pci/emu10k1/emupcm.c
1661
pcm->tram_shift = 0;
sound/pci/emu10k1/emupcm.c
1663
emu->gpr_base + pcm->gpr_running, 0, /* reset */
sound/pci/emu10k1/emupcm.c
1664
emu->gpr_base + pcm->gpr_trigger, 0, /* reset */
sound/pci/emu10k1/emupcm.c
1665
emu->gpr_base + pcm->gpr_size, runtime->buffer_size,
sound/pci/emu10k1/emupcm.c
1666
emu->gpr_base + pcm->gpr_ptr, 0, /* reset ptr number */
sound/pci/emu10k1/emupcm.c
1667
emu->gpr_base + pcm->gpr_count, runtime->period_size,
sound/pci/emu10k1/emupcm.c
1668
emu->gpr_base + pcm->gpr_tmpcount, runtime->period_size,
sound/pci/emu10k1/emupcm.c
1670
for (i = 0; i < pcm->channels; i++)
sound/pci/emu10k1/emupcm.c
1671
snd_emu10k1_ptr_write(emu, TANKMEMADDRREGBASE + 0x80 + pcm->etram[i], 0, (TANKMEMADDRREG_READ|TANKMEMADDRREG_ALIGN) + i * (runtime->buffer_size / pcm->channels));
sound/pci/emu10k1/emupcm.c
1678
struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
sound/pci/emu10k1/emupcm.c
1699
result = snd_emu10k1_fx8010_register_irq_handler(emu, snd_emu10k1_fx8010_playback_irq, pcm->gpr_running, substream, &pcm->irq);
sound/pci/emu10k1/emupcm.c
1703
snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_trigger, 0, 1);
sound/pci/emu10k1/emupcm.c
1708
snd_emu10k1_fx8010_unregister_irq_handler(emu, &pcm->irq);
sound/pci/emu10k1/emupcm.c
1709
snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_trigger, 0, 0);
sound/pci/emu10k1/emupcm.c
1710
pcm->tram_pos = INITIAL_TRAM_POS(pcm->buffer_size);
sound/pci/emu10k1/emupcm.c
1711
pcm->tram_shift = 0;
sound/pci/emu10k1/emupcm.c
1722
struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
sound/pci/emu10k1/emupcm.c
1725
if (!snd_emu10k1_ptr_read(emu, emu->gpr_base + pcm->gpr_trigger, 0))
sound/pci/emu10k1/emupcm.c
1727
ptr = snd_emu10k1_ptr_read(emu, emu->gpr_base + pcm->gpr_ptr, 0) << 2;
sound/pci/emu10k1/emupcm.c
1728
return snd_pcm_indirect_playback_pointer(substream, &pcm->pcm_rec, ptr);
sound/pci/emu10k1/emupcm.c
1755
struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
sound/pci/emu10k1/emupcm.c
1758
runtime->hw.channels_min = runtime->hw.channels_max = pcm->channels;
sound/pci/emu10k1/emupcm.c
1759
runtime->hw.period_bytes_max = (pcm->buffer_size * 2) / 2;
sound/pci/emu10k1/emupcm.c
1761
if (pcm->valid == 0)
sound/pci/emu10k1/emupcm.c
1763
pcm->opened = 1;
sound/pci/emu10k1/emupcm.c
1770
struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
sound/pci/emu10k1/emupcm.c
1773
pcm->opened = 0;
sound/pci/emu10k1/emupcm.c
1789
struct snd_pcm *pcm;
sound/pci/emu10k1/emupcm.c
1793
err = snd_pcm_new(emu->card, "emu10k1 efx", device, emu->audigy ? 0 : 8, 1, &pcm);
sound/pci/emu10k1/emupcm.c
1797
pcm->private_data = emu;
sound/pci/emu10k1/emupcm.c
1800
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1_fx8010_playback_ops);
sound/pci/emu10k1/emupcm.c
1801
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1_capture_efx_ops);
sound/pci/emu10k1/emupcm.c
1803
pcm->info_flags = 0;
sound/pci/emu10k1/emupcm.c
1805
strscpy(pcm->name, "Multichannel Capture");
sound/pci/emu10k1/emupcm.c
1807
strscpy(pcm->name, "Multichannel Capture/PT Playback");
sound/pci/emu10k1/emupcm.c
1808
emu->pcm_efx = pcm;
sound/pci/emu10k1/emupcm.c
1834
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, &emu->pci->dev,
sound/pci/emu10k1/p16v.c
240
int channel = substream->pcm->device - emu->p16v_device_offset;
sound/pci/emu10k1/p16v.c
307
int channel = substream->pcm->device - emu->p16v_device_offset;
sound/pci/emu10k1/p16v.c
424
channel = substream->pcm->device-emu->p16v_device_offset;
sound/pci/emu10k1/p16v.c
485
int channel = substream->pcm->device - emu->p16v_device_offset;
sound/pci/emu10k1/p16v.c
552
struct snd_pcm *pcm;
sound/pci/emu10k1/p16v.c
560
err = snd_pcm_new(emu->card, "p16v", device, 1, capture, &pcm);
sound/pci/emu10k1/p16v.c
564
pcm->private_data = emu;
sound/pci/emu10k1/p16v.c
567
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_p16v_playback_front_ops);
sound/pci/emu10k1/p16v.c
568
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_p16v_capture_ops);
sound/pci/emu10k1/p16v.c
570
pcm->info_flags = 0;
sound/pci/emu10k1/p16v.c
571
pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX;
sound/pci/emu10k1/p16v.c
572
strscpy(pcm->name, "p16v");
sound/pci/emu10k1/p16v.c
573
emu->pcm_p16v = pcm;
sound/pci/emu10k1/p16v.c
576
for(substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
sound/pci/emu10k1/p16v.c
589
for (substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
sound/pci/ens1370.c
1218
struct snd_pcm *pcm;
sound/pci/ens1370.c
1221
err = snd_pcm_new(ensoniq->card, CHIP_NAME "/1", device, 1, 1, &pcm);
sound/pci/ens1370.c
1226
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ensoniq_playback2_ops);
sound/pci/ens1370.c
1228
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ensoniq_playback1_ops);
sound/pci/ens1370.c
1230
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ensoniq_capture_ops);
sound/pci/ens1370.c
1232
pcm->private_data = ensoniq;
sound/pci/ens1370.c
1233
pcm->info_flags = 0;
sound/pci/ens1370.c
1234
strscpy(pcm->name, CHIP_NAME " DAC2/ADC");
sound/pci/ens1370.c
1235
ensoniq->pcm1 = pcm;
sound/pci/ens1370.c
1237
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/ens1370.c
1241
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/ens1370.c
1244
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/ens1370.c
1252
struct snd_pcm *pcm;
sound/pci/ens1370.c
1255
err = snd_pcm_new(ensoniq->card, CHIP_NAME "/2", device, 1, 0, &pcm);
sound/pci/ens1370.c
1260
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ensoniq_playback1_ops);
sound/pci/ens1370.c
1262
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ensoniq_playback2_ops);
sound/pci/ens1370.c
1264
pcm->private_data = ensoniq;
sound/pci/ens1370.c
1265
pcm->info_flags = 0;
sound/pci/ens1370.c
1266
strscpy(pcm->name, CHIP_NAME " DAC1");
sound/pci/ens1370.c
1267
ensoniq->pcm2 = pcm;
sound/pci/ens1370.c
1269
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/ens1370.c
1273
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/ens1370.c
1276
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/es1938.c
197
struct snd_pcm *pcm;
sound/pci/es1938.c
966
struct snd_pcm *pcm;
sound/pci/es1938.c
969
err = snd_pcm_new(chip->card, "es-1938-1946", device, 2, 1, &pcm);
sound/pci/es1938.c
972
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_es1938_playback_ops);
sound/pci/es1938.c
973
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_es1938_capture_ops);
sound/pci/es1938.c
975
pcm->private_data = chip;
sound/pci/es1938.c
976
pcm->info_flags = 0;
sound/pci/es1938.c
977
strscpy(pcm->name, "ESS Solo-1");
sound/pci/es1938.c
979
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/es1938.c
982
chip->pcm = pcm;
sound/pci/es1968.c
1746
static void snd_es1968_pcm_free(struct snd_pcm *pcm)
sound/pci/es1968.c
1748
struct es1968 *esm = pcm->private_data;
sound/pci/es1968.c
1750
esm->pcm = NULL;
sound/pci/es1968.c
1756
struct snd_pcm *pcm;
sound/pci/es1968.c
1772
chip->capture_streams, &pcm);
sound/pci/es1968.c
1776
pcm->private_data = chip;
sound/pci/es1968.c
1777
pcm->private_free = snd_es1968_pcm_free;
sound/pci/es1968.c
1779
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_es1968_playback_ops);
sound/pci/es1968.c
1780
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_es1968_capture_ops);
sound/pci/es1968.c
1782
pcm->info_flags = 0;
sound/pci/es1968.c
1784
strscpy(pcm->name, "ESS Maestro");
sound/pci/es1968.c
1786
chip->pcm = pcm;
sound/pci/es1968.c
501
struct snd_pcm *pcm;
sound/pci/fm801.c
210
struct snd_pcm *pcm;
sound/pci/fm801.c
566
if (chip->pcm && (status & FM801_IRQ_PLAYBACK) && chip->playback_substream) {
sound/pci/fm801.c
580
if (chip->pcm && (status & FM801_IRQ_CAPTURE) && chip->capture_substream) {
sound/pci/fm801.c
716
struct snd_pcm *pcm;
sound/pci/fm801.c
719
err = snd_pcm_new(chip->card, "FM801", device, 1, 1, &pcm);
sound/pci/fm801.c
723
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_fm801_playback_ops);
sound/pci/fm801.c
724
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_fm801_capture_ops);
sound/pci/fm801.c
726
pcm->private_data = chip;
sound/pci/fm801.c
727
pcm->info_flags = 0;
sound/pci/fm801.c
728
strscpy(pcm->name, "FM801");
sound/pci/fm801.c
729
chip->pcm = pcm;
sound/pci/fm801.c
731
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, &pdev->dev,
sound/pci/fm801.c
734
return snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/ice1712/aureon.c
1897
kctl->id.device = ice->pcm->device;
sound/pci/ice1712/ice1712.c
1191
struct snd_pcm *pcm;
sound/pci/ice1712/ice1712.c
1194
err = snd_pcm_new(ice->card, "ICE1712 multi", device, 1, 1, &pcm);
sound/pci/ice1712/ice1712.c
1198
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ice1712_playback_pro_ops);
sound/pci/ice1712/ice1712.c
1199
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ice1712_capture_pro_ops);
sound/pci/ice1712/ice1712.c
1201
pcm->private_data = ice;
sound/pci/ice1712/ice1712.c
1202
pcm->info_flags = 0;
sound/pci/ice1712/ice1712.c
1203
strscpy(pcm->name, "ICE1712 multi");
sound/pci/ice1712/ice1712.c
1205
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/ice1712/ice1712.c
1208
ice->pcm_pro = pcm;
sound/pci/ice1712/ice1712.c
1213
pcm->streams[0].substream,
sound/pci/ice1712/ice1712.c
1214
pcm->streams[1].substream);
sound/pci/ice1712/ice1712.c
833
struct snd_pcm *pcm;
sound/pci/ice1712/ice1712.c
836
err = snd_pcm_new(ice->card, "ICE1712 consumer", device, 1, 1, &pcm);
sound/pci/ice1712/ice1712.c
840
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ice1712_playback_ops);
sound/pci/ice1712/ice1712.c
841
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ice1712_capture_ops);
sound/pci/ice1712/ice1712.c
843
pcm->private_data = ice;
sound/pci/ice1712/ice1712.c
844
pcm->info_flags = 0;
sound/pci/ice1712/ice1712.c
845
strscpy(pcm->name, "ICE1712 consumer");
sound/pci/ice1712/ice1712.c
846
ice->pcm = pcm;
sound/pci/ice1712/ice1712.c
848
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/ice1712/ice1712.c
859
struct snd_pcm *pcm;
sound/pci/ice1712/ice1712.c
862
err = snd_pcm_new(ice->card, "ICE1712 consumer (DS)", device, 6, 0, &pcm);
sound/pci/ice1712/ice1712.c
866
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ice1712_playback_ds_ops);
sound/pci/ice1712/ice1712.c
868
pcm->private_data = ice;
sound/pci/ice1712/ice1712.c
869
pcm->info_flags = 0;
sound/pci/ice1712/ice1712.c
870
strscpy(pcm->name, "ICE1712 consumer (DS)");
sound/pci/ice1712/ice1712.c
871
ice->pcm_ds = pcm;
sound/pci/ice1712/ice1712.c
873
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/ice1712/ice1712.h
298
struct snd_pcm *pcm;
sound/pci/ice1712/ice1724.c
1107
struct snd_pcm *pcm;
sound/pci/ice1712/ice1724.c
1115
err = snd_pcm_new(ice->card, "ICE1724", device, 1, capt, &pcm);
sound/pci/ice1712/ice1724.c
1119
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_vt1724_playback_pro_ops);
sound/pci/ice1712/ice1724.c
1121
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/ice1712/ice1724.c
1124
pcm->private_data = ice;
sound/pci/ice1712/ice1724.c
1125
pcm->info_flags = 0;
sound/pci/ice1712/ice1724.c
1126
strscpy(pcm->name, "ICE1724");
sound/pci/ice1712/ice1724.c
1128
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/ice1712/ice1724.c
1131
ice->pcm_pro = pcm;
sound/pci/ice1712/ice1724.c
1283
struct snd_pcm *pcm;
sound/pci/ice1712/ice1724.c
1306
err = snd_pcm_new(ice->card, name, device, play, capt, &pcm);
sound/pci/ice1712/ice1724.c
1311
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/ice1712/ice1724.c
1314
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/ice1712/ice1724.c
1317
pcm->private_data = ice;
sound/pci/ice1712/ice1724.c
1318
pcm->info_flags = 0;
sound/pci/ice1712/ice1724.c
1319
strscpy(pcm->name, name);
sound/pci/ice1712/ice1724.c
1321
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/ice1712/ice1724.c
1324
ice->pcm = pcm;
sound/pci/ice1712/ice1724.c
1412
struct snd_pcm *pcm;
sound/pci/ice1712/ice1724.c
1420
err = snd_pcm_new(ice->card, "ICE1724 Surrounds", device, play, 0, &pcm);
sound/pci/ice1712/ice1724.c
1424
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/ice1712/ice1724.c
1427
pcm->private_data = ice;
sound/pci/ice1712/ice1724.c
1428
pcm->info_flags = 0;
sound/pci/ice1712/ice1724.c
1429
strscpy(pcm->name, "ICE1724 Surround PCM");
sound/pci/ice1712/ice1724.c
1431
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/ice1712/ice1724.c
1434
ice->pcm_ds = pcm;
sound/pci/ice1712/ice1724.c
2376
if (snd_BUG_ON(!ice->pcm))
sound/pci/ice1712/ice1724.c
2393
kctl->id.device = ice->pcm->device;
sound/pci/ice1712/ice1724.c
2400
kctl->id.device = ice->pcm->device;
sound/pci/ice1712/ice1724.c
2407
kctl->id.device = ice->pcm->device;
sound/pci/ice1712/ice1724.c
2413
kctl->id.device = ice->pcm->device;
sound/pci/ice1712/ice1724.c
2620
if (ice->pcm && ice->has_spdif) { /* has SPDIF I/O */
sound/pci/ice1712/juli.c
442
ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
sound/pci/ice1712/prodigy192.c
660
ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
sound/pci/ice1712/quartet.c
796
ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
sound/pci/ice1712/revo.c
599
ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
sound/pci/intel8x0.c
1168
runtime->hw.rates = ichdev->pcm->rates;
sound/pci/intel8x0.c
1498
struct snd_pcm *pcm;
sound/pci/intel8x0.c
1508
rec->capture_ops ? 1 : 0, &pcm);
sound/pci/intel8x0.c
1513
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, rec->playback_ops);
sound/pci/intel8x0.c
1515
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, rec->capture_ops);
sound/pci/intel8x0.c
1517
pcm->private_data = chip;
sound/pci/intel8x0.c
1518
pcm->info_flags = 0;
sound/pci/intel8x0.c
1520
sprintf(pcm->name, "%s - %s", chip->card->shortname, rec->suffix);
sound/pci/intel8x0.c
1522
strscpy(pcm->name, chip->card->shortname);
sound/pci/intel8x0.c
1523
chip->pcm[device] = pcm;
sound/pci/intel8x0.c
1525
snd_pcm_set_managed_buffer_all(pcm, intel8x0_dma_type(chip),
sound/pci/intel8x0.c
1539
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/intel8x0.c
1676
if (! chip->ichd[rec->ac97_idx].pcm)
sound/pci/intel8x0.c
2299
chip->ichd[ICHD_PCMOUT].pcm = &pbus->pcms[0];
sound/pci/intel8x0.c
2300
chip->ichd[ICHD_PCMIN].pcm = &pbus->pcms[1];
sound/pci/intel8x0.c
2301
chip->ichd[ICHD_MIC].pcm = &pbus->pcms[2];
sound/pci/intel8x0.c
2303
chip->ichd[chip->spdif_idx].pcm = &pbus->pcms[3];
sound/pci/intel8x0.c
2305
chip->ichd[ICHD_PCM2IN].pcm = &pbus->pcms[4];
sound/pci/intel8x0.c
2306
chip->ichd[ICHD_MIC2].pcm = &pbus->pcms[5];
sound/pci/intel8x0.c
2310
struct ac97_pcm *pcm = chip->ichd[ICHD_PCM2IN].pcm;
sound/pci/intel8x0.c
2313
if (pcm) {
sound/pci/intel8x0.c
2317
if (pcm->r[0].codec[i]) {
sound/pci/intel8x0.c
2318
tmp |= chip->ac97_sdin[pcm->r[0].codec[i]->num] << ICH_DI2L_SHIFT;
sound/pci/intel8x0.c
2344
chip->ichd[chip->spdif_idx].pcm->rates = SNDRV_PCM_RATE_48000;
sound/pci/intel8x0.c
2712
subs = chip->pcm[0]->streams[0].substream;
sound/pci/intel8x0.c
332
struct ac97_pcm *pcm;
sound/pci/intel8x0.c
350
struct snd_pcm *pcm[6];
sound/pci/intel8x0.c
954
snd_ac97_pcm_close(ichdev->pcm);
sound/pci/intel8x0.c
958
err = snd_ac97_pcm_open(ichdev->pcm, params_rate(hw_params),
sound/pci/intel8x0.c
960
ichdev->pcm->r[dbl].slots);
sound/pci/intel8x0.c
965
snd_ac97_set_rate(ichdev->pcm->r[0].codec[0], AC97_SPDIF,
sound/pci/intel8x0.c
976
snd_ac97_pcm_close(ichdev->pcm);
sound/pci/intel8x0m.c
175
struct snd_pcm *pcm[2];
sound/pci/intel8x0m.c
722
struct snd_pcm *pcm;
sound/pci/intel8x0m.c
732
rec->capture_ops ? 1 : 0, &pcm);
sound/pci/intel8x0m.c
737
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, rec->playback_ops);
sound/pci/intel8x0m.c
739
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, rec->capture_ops);
sound/pci/intel8x0m.c
741
pcm->private_data = chip;
sound/pci/intel8x0m.c
742
pcm->info_flags = 0;
sound/pci/intel8x0m.c
743
pcm->dev_class = SNDRV_PCM_CLASS_MODEM;
sound/pci/intel8x0m.c
745
sprintf(pcm->name, "%s - %s", chip->card->shortname, rec->suffix);
sound/pci/intel8x0m.c
747
strscpy(pcm->name, chip->card->shortname);
sound/pci/intel8x0m.c
748
chip->pcm[device] = pcm;
sound/pci/intel8x0m.c
750
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/korg1212/korg1212.c
1306
static void snd_korg1212_free_pcm(struct snd_pcm *pcm)
sound/pci/korg1212/korg1212.c
1308
struct snd_korg1212 *korg1212 = pcm->private_data;
sound/pci/korg1212/korg1212.c
1313
korg1212->pcm = NULL;
sound/pci/korg1212/korg1212.c
2188
err = snd_pcm_new(korg1212->card, "korg1212", 0, 1, 1, &korg1212->pcm);
sound/pci/korg1212/korg1212.c
2192
korg1212->pcm->private_data = korg1212;
sound/pci/korg1212/korg1212.c
2193
korg1212->pcm->private_free = snd_korg1212_free_pcm;
sound/pci/korg1212/korg1212.c
2194
strscpy(korg1212->pcm->name, "korg1212");
sound/pci/korg1212/korg1212.c
2196
snd_pcm_set_ops(korg1212->pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_korg1212_playback_ops);
sound/pci/korg1212/korg1212.c
2198
snd_pcm_set_ops(korg1212->pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_korg1212_capture_ops);
sound/pci/korg1212/korg1212.c
2200
korg1212->pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX;
sound/pci/korg1212/korg1212.c
305
struct snd_pcm *pcm;
sound/pci/lola/lola.c
234
for (i = 0; in_sts && i < chip->pcm[CAPT].num_streams; i++) {
sound/pci/lola/lola.c
248
for (i = 0; out_sts && i < chip->pcm[PLAY].num_streams; i++) {
sound/pci/lola/lola.c
283
lola_pcm_update(chip, &chip->pcm[CAPT], notify_ins);
sound/pci/lola/lola.c
284
lola_pcm_update(chip, &chip->pcm[PLAY], notify_outs);
sound/pci/lola/lola.c
325
val = (1 << chip->pcm[PLAY].num_streams) - 1;
sound/pci/lola/lola.c
327
val = (1 << chip->pcm[CAPT].num_streams) - 1;
sound/pci/lola/lola.c
611
chip->pcm[CAPT].num_streams = (dever >> 0) & 0x3ff;
sound/pci/lola/lola.c
612
chip->pcm[PLAY].num_streams = (dever >> 10) & 0x3ff;
sound/pci/lola/lola.c
615
chip->pcm[CAPT].num_streams, chip->pcm[PLAY].num_streams,
sound/pci/lola/lola.c
619
if (chip->pcm[CAPT].num_streams > MAX_STREAM_IN_COUNT ||
sound/pci/lola/lola.c
620
chip->pcm[PLAY].num_streams > MAX_STREAM_OUT_COUNT ||
sound/pci/lola/lola.c
621
(!chip->pcm[CAPT].num_streams &&
sound/pci/lola/lola.c
622
!chip->pcm[PLAY].num_streams)) {
sound/pci/lola/lola.h
337
struct lola_pcm pcm[2];
sound/pci/lola/lola.h
484
void lola_pcm_update(struct lola *chip, struct lola_pcm *pcm, unsigned int bits);
sound/pci/lola/lola_mixer.c
128
chip->mixer.src_stream_outs = chip->pcm[PLAY].num_streams;
sound/pci/lola/lola_mixer.c
132
chip->mixer.dest_stream_ins = chip->pcm[CAPT].num_streams;
sound/pci/lola/lola_mixer.c
392
err = lola_codec_write(chip, chip->pcm[CAPT].streams[n].nid,
sound/pci/lola/lola_pcm.c
128
if (s->pcm->card != substream->pcm->card)
sound/pci/lola/lola_pcm.c
159
if (s->pcm->card != substream->pcm->card)
sound/pci/lola/lola_pcm.c
213
struct lola_pcm *pcm = lola_get_pcm(substream);
sound/pci/lola/lola_pcm.c
224
runtime->hw.channels_max = pcm->num_streams - str->index;
sound/pci/lola/lola_pcm.c
24
return &chip->pcm[substream->stream];
sound/pci/lola/lola_pcm.c
243
static void lola_cleanup_slave_streams(struct lola_pcm *pcm,
sound/pci/lola/lola_pcm.c
247
for (i = str->index + 1; i < pcm->num_streams; i++) {
sound/pci/lola/lola_pcm.c
248
struct lola_stream *s = &pcm->streams[i];
sound/pci/lola/lola_pcm.c
287
struct lola_pcm *pcm = lola_get_pcm(substream);
sound/pci/lola/lola_pcm.c
29
struct lola_pcm *pcm = lola_get_pcm(substream);
sound/pci/lola/lola_pcm.c
292
lola_cleanup_slave_streams(pcm, str);
sound/pci/lola/lola_pcm.c
31
return &pcm->streams[idx];
sound/pci/lola/lola_pcm.c
335
static int lola_setup_periods(struct lola *chip, struct lola_pcm *pcm,
sound/pci/lola/lola_pcm.c
346
bdl = (__le32 *)(pcm->bdl->area + LOLA_BDL_ENTRY_SIZE * str->index);
sound/pci/lola/lola_pcm.c
422
static int lola_setup_controller(struct lola *chip, struct lola_pcm *pcm,
sound/pci/lola/lola_pcm.c
431
bdl = pcm->bdl->addr + LOLA_BDL_ENTRY_SIZE * str->index;
sound/pci/lola/lola_pcm.c
449
struct lola_pcm *pcm = lola_get_pcm(substream);
sound/pci/lola/lola_pcm.c
457
lola_cleanup_slave_streams(pcm, str);
sound/pci/lola/lola_pcm.c
458
if (str->index + runtime->channels > pcm->num_streams)
sound/pci/lola/lola_pcm.c
474
err = lola_setup_periods(chip, pcm, substream, str);
sound/pci/lola/lola_pcm.c
487
err = lola_setup_controller(chip, pcm, str);
sound/pci/lola/lola_pcm.c
528
if (s->pcm->card != substream->pcm->card)
sound/pci/lola/lola_pcm.c
553
void lola_pcm_update(struct lola *chip, struct lola_pcm *pcm, unsigned int bits)
sound/pci/lola/lola_pcm.c
556
u8 num_streams = min_t(u8, pcm->num_streams, ARRAY_SIZE(pcm->streams));
sound/pci/lola/lola_pcm.c
560
struct lola_stream *str = &pcm->streams[i];
sound/pci/lola/lola_pcm.c
580
struct snd_pcm *pcm;
sound/pci/lola/lola_pcm.c
584
chip->pcm[i].bdl =
sound/pci/lola/lola_pcm.c
587
if (!chip->pcm[i].bdl)
sound/pci/lola/lola_pcm.c
592
chip->pcm[SNDRV_PCM_STREAM_PLAYBACK].num_streams,
sound/pci/lola/lola_pcm.c
593
chip->pcm[SNDRV_PCM_STREAM_CAPTURE].num_streams,
sound/pci/lola/lola_pcm.c
594
&pcm);
sound/pci/lola/lola_pcm.c
597
strscpy(pcm->name, "Digigram Lola", sizeof(pcm->name));
sound/pci/lola/lola_pcm.c
598
pcm->private_data = chip;
sound/pci/lola/lola_pcm.c
600
if (chip->pcm[i].num_streams)
sound/pci/lola/lola_pcm.c
601
snd_pcm_set_ops(pcm, i, &lola_pcm_ops);
sound/pci/lola/lola_pcm.c
604
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
sound/pci/lola/lola_pcm.c
670
struct lola_pcm *pcm = &chip->pcm[dir];
sound/pci/lola/lola_pcm.c
674
for (i = 0; i < pcm->num_streams; i++, nid++) {
sound/pci/lola/lola_pcm.c
675
err = lola_init_stream(chip, &pcm->streams[i], i, nid, dir);
sound/pci/lola/lola_proc.c
113
for (i = 0; i < chip->pcm[CAPT].num_streams; i++, nid++)
sound/pci/lola/lola_proc.c
115
for (i = 0; i < chip->pcm[PLAY].num_streams; i++, nid++)
sound/pci/lx6464es/lx6464es.c
260
dev_dbg(substream->pcm->card->dev, "->lx_pcm_close\n");
sound/pci/lx6464es/lx6464es.c
778
struct snd_pcm *pcm;
sound/pci/lx6464es/lx6464es.c
790
1, 1, &pcm);
sound/pci/lx6464es/lx6464es.c
794
pcm->private_data = chip;
sound/pci/lx6464es/lx6464es.c
796
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &lx_ops_playback);
sound/pci/lx6464es/lx6464es.c
797
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &lx_ops_capture);
sound/pci/lx6464es/lx6464es.c
799
pcm->info_flags = 0;
sound/pci/lx6464es/lx6464es.c
800
pcm->nonatomic = true;
sound/pci/lx6464es/lx6464es.c
801
strscpy(pcm->name, card_name);
sound/pci/lx6464es/lx6464es.c
803
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/lx6464es/lx6464es.c
806
chip->pcm = pcm;
sound/pci/lx6464es/lx6464es.h
87
struct snd_pcm *pcm;
sound/pci/maestro3.c
1397
dev_err(substream->pcm->card->dev, "oh my, not aligned\n");
sound/pci/maestro3.c
1845
struct snd_pcm *pcm;
sound/pci/maestro3.c
1849
MAX_PLAYBACKS, MAX_CAPTURES, &pcm);
sound/pci/maestro3.c
1853
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_m3_playback_ops);
sound/pci/maestro3.c
1854
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_m3_capture_ops);
sound/pci/maestro3.c
1856
pcm->private_data = chip;
sound/pci/maestro3.c
1857
pcm->info_flags = 0;
sound/pci/maestro3.c
1858
strscpy(pcm->name, chip->card->driver);
sound/pci/maestro3.c
1859
chip->pcm = pcm;
sound/pci/maestro3.c
1861
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/maestro3.c
730
struct snd_pcm *pcm;
sound/pci/mixart/mixart.c
423
dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_START\n");
sound/pci/mixart/mixart.c
440
dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_STOP\n");
sound/pci/mixart/mixart.c
447
dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_PUSH\n");
sound/pci/mixart/mixart.c
452
dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_RELEASE\n");
sound/pci/mixart/mixart.c
706
struct snd_pcm *pcm = subs->pcm;
sound/pci/mixart/mixart.c
714
if ( pcm == chip->pcm ) {
sound/pci/mixart/mixart.c
718
snd_BUG_ON(pcm != chip->pcm_dig);
sound/pci/mixart/mixart.c
778
struct snd_pcm *pcm = subs->pcm;
sound/pci/mixart/mixart.c
786
if ( pcm == chip->pcm ) {
sound/pci/mixart/mixart.c
790
snd_BUG_ON(pcm != chip->pcm_dig);
sound/pci/mixart/mixart.c
910
static void preallocate_buffers(struct snd_mixart *chip, struct snd_pcm *pcm)
sound/pci/mixart/mixart.c
918
for (subs = pcm->streams[stream].substream; subs; subs = subs->next, idx++)
sound/pci/mixart/mixart.c
920
subs->dma_device.id = subs->pcm->device << 16 |
sound/pci/mixart/mixart.c
925
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/mixart/mixart.c
935
struct snd_pcm *pcm;
sound/pci/mixart/mixart.c
941
MIXART_CAPTURE_STREAMS, &pcm);
sound/pci/mixart/mixart.c
948
pcm->private_data = chip;
sound/pci/mixart/mixart.c
950
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_mixart_playback_ops);
sound/pci/mixart/mixart.c
951
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_mixart_capture_ops);
sound/pci/mixart/mixart.c
953
pcm->info_flags = 0;
sound/pci/mixart/mixart.c
954
pcm->nonatomic = true;
sound/pci/mixart/mixart.c
955
strscpy(pcm->name, name);
sound/pci/mixart/mixart.c
957
preallocate_buffers(chip, pcm);
sound/pci/mixart/mixart.c
959
chip->pcm = pcm;
sound/pci/mixart/mixart.c
969
struct snd_pcm *pcm;
sound/pci/mixart/mixart.c
975
MIXART_CAPTURE_STREAMS, &pcm);
sound/pci/mixart/mixart.c
982
pcm->private_data = chip;
sound/pci/mixart/mixart.c
984
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_mixart_playback_ops);
sound/pci/mixart/mixart.c
985
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_mixart_capture_ops);
sound/pci/mixart/mixart.c
987
pcm->info_flags = 0;
sound/pci/mixart/mixart.c
988
pcm->nonatomic = true;
sound/pci/mixart/mixart.c
989
strscpy(pcm->name, name);
sound/pci/mixart/mixart.c
991
preallocate_buffers(chip, pcm);
sound/pci/mixart/mixart.c
993
chip->pcm_dig = pcm;
sound/pci/mixart/mixart.h
158
struct snd_pcm *pcm; /* PCM analog i/o */
sound/pci/nm256/nm256.c
229
struct snd_pcm *pcm;
sound/pci/nm256/nm256.c
900
struct snd_pcm *pcm;
sound/pci/nm256/nm256.c
910
1, 1, &pcm);
sound/pci/nm256/nm256.c
914
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_nm256_playback_ops);
sound/pci/nm256/nm256.c
915
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_nm256_capture_ops);
sound/pci/nm256/nm256.c
917
pcm->private_data = chip;
sound/pci/nm256/nm256.c
918
pcm->info_flags = 0;
sound/pci/nm256/nm256.c
919
chip->pcm = pcm;
sound/pci/oxygen/oxygen_pcm.c
667
struct snd_pcm *pcm;
sound/pci/oxygen/oxygen_pcm.c
676
0, outs, ins, &pcm);
sound/pci/oxygen/oxygen_pcm.c
680
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/oxygen/oxygen_pcm.c
683
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/oxygen/oxygen_pcm.c
686
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/oxygen/oxygen_pcm.c
688
pcm->private_data = chip;
sound/pci/oxygen/oxygen_pcm.c
689
strscpy(pcm->name, "Multichannel");
sound/pci/oxygen/oxygen_pcm.c
691
snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream,
sound/pci/oxygen/oxygen_pcm.c
697
snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream,
sound/pci/oxygen/oxygen_pcm.c
707
err = snd_pcm_new(chip->card, "Digital", 1, outs, ins, &pcm);
sound/pci/oxygen/oxygen_pcm.c
711
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/oxygen/oxygen_pcm.c
714
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/oxygen/oxygen_pcm.c
716
pcm->private_data = chip;
sound/pci/oxygen/oxygen_pcm.c
717
strscpy(pcm->name, "Digital");
sound/pci/oxygen/oxygen_pcm.c
718
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/oxygen/oxygen_pcm.c
733
2, outs, ins, &pcm);
sound/pci/oxygen/oxygen_pcm.c
737
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/oxygen/oxygen_pcm.c
744
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/oxygen/oxygen_pcm.c
746
pcm->private_data = chip;
sound/pci/oxygen/oxygen_pcm.c
747
strscpy(pcm->name, outs ? "Front Panel" : "Analog 2");
sound/pci/oxygen/oxygen_pcm.c
748
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/oxygen/oxygen_pcm.c
756
err = snd_pcm_new(chip->card, "Analog3", 3, 0, ins, &pcm);
sound/pci/oxygen/oxygen_pcm.c
759
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/oxygen/oxygen_pcm.c
764
pcm->private_data = chip;
sound/pci/oxygen/oxygen_pcm.c
765
strscpy(pcm->name, "Analog 3");
sound/pci/oxygen/oxygen_pcm.c
766
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/pcxhr/pcxhr.c
1116
struct snd_pcm *pcm;
sound/pci/pcxhr/pcxhr.c
1122
chip->nb_streams_capt, &pcm);
sound/pci/pcxhr/pcxhr.c
1127
pcm->private_data = chip;
sound/pci/pcxhr/pcxhr.c
1130
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcxhr_ops);
sound/pci/pcxhr/pcxhr.c
1132
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pcxhr_ops);
sound/pci/pcxhr/pcxhr.c
1134
pcm->info_flags = 0;
sound/pci/pcxhr/pcxhr.c
1135
pcm->nonatomic = true;
sound/pci/pcxhr/pcxhr.c
1136
strscpy(pcm->name, name);
sound/pci/pcxhr/pcxhr.c
1138
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/pcxhr/pcxhr.c
1141
chip->pcm = pcm;
sound/pci/pcxhr/pcxhr.h
158
struct snd_pcm *pcm; /* PCM */
sound/pci/riptide/riptide.c
1679
struct snd_pcm *pcm;
sound/pci/riptide/riptide.c
1683
&pcm);
sound/pci/riptide/riptide.c
1686
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/riptide/riptide.c
1688
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/riptide/riptide.c
1690
pcm->private_data = chip;
sound/pci/riptide/riptide.c
1691
pcm->info_flags = 0;
sound/pci/riptide/riptide.c
1692
strscpy(pcm->name, "RIPTIDE");
sound/pci/riptide/riptide.c
1693
chip->pcm = pcm;
sound/pci/riptide/riptide.c
1694
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
sound/pci/riptide/riptide.c
423
struct snd_pcm *pcm;
sound/pci/rme32.c
1230
static void snd_rme32_free_spdif_pcm(struct snd_pcm *pcm)
sound/pci/rme32.c
1232
struct rme32 *rme32 = (struct rme32 *) pcm->private_data;
sound/pci/rme32.c
1237
snd_rme32_free_adat_pcm(struct snd_pcm *pcm)
sound/pci/rme32.c
1239
struct rme32 *rme32 = (struct rme32 *) pcm->private_data;
sound/pci/rme96.c
1525
snd_rme96_free_spdif_pcm(struct snd_pcm *pcm)
sound/pci/rme96.c
1527
struct rme96 *rme96 = pcm->private_data;
sound/pci/rme96.c
1532
snd_rme96_free_adat_pcm(struct snd_pcm *pcm)
sound/pci/rme96.c
1534
struct rme96 *rme96 = pcm->private_data;
sound/pci/rme9652/hdsp.c
3863
snd_pcm_period_elapsed(hdsp->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
sound/pci/rme9652/hdsp.c
3866
snd_pcm_period_elapsed(hdsp->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream);
sound/pci/rme9652/hdsp.c
489
struct snd_pcm *pcm;
sound/pci/rme9652/hdsp.c
4896
struct snd_pcm *pcm;
sound/pci/rme9652/hdsp.c
4899
err = snd_pcm_new(card, hdsp->card_name, 0, 1, 1, &pcm);
sound/pci/rme9652/hdsp.c
4903
hdsp->pcm = pcm;
sound/pci/rme9652/hdsp.c
4904
pcm->private_data = hdsp;
sound/pci/rme9652/hdsp.c
4905
strscpy(pcm->name, hdsp->card_name);
sound/pci/rme9652/hdsp.c
4907
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_hdsp_playback_ops);
sound/pci/rme9652/hdsp.c
4908
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_hdsp_capture_ops);
sound/pci/rme9652/hdsp.c
4910
pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX;
sound/pci/rme9652/hdspm.c
1048
struct snd_pcm *pcm; /* has one pcm */
sound/pci/rme9652/hdspm.c
6327
struct snd_pcm *pcm;
sound/pci/rme9652/hdspm.c
6330
pcm = hdspm->pcm;
sound/pci/rme9652/hdspm.c
6334
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
sound/pci/rme9652/hdspm.c
6359
struct snd_pcm *pcm;
sound/pci/rme9652/hdspm.c
6362
err = snd_pcm_new(card, hdspm->card_name, 0, 1, 1, &pcm);
sound/pci/rme9652/hdspm.c
6366
hdspm->pcm = pcm;
sound/pci/rme9652/hdspm.c
6367
pcm->private_data = hdspm;
sound/pci/rme9652/hdspm.c
6368
strscpy(pcm->name, hdspm->card_name);
sound/pci/rme9652/hdspm.c
6370
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/rme9652/hdspm.c
6372
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/rme9652/hdspm.c
6375
pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX;
sound/pci/rme9652/rme9652.c
1779
snd_pcm_period_elapsed(rme9652->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
sound/pci/rme9652/rme9652.c
1783
snd_pcm_period_elapsed(rme9652->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream);
sound/pci/rme9652/rme9652.c
2315
struct snd_pcm *pcm;
sound/pci/rme9652/rme9652.c
2318
err = snd_pcm_new(card, rme9652->card_name, 0, 1, 1, &pcm);
sound/pci/rme9652/rme9652.c
2322
rme9652->pcm = pcm;
sound/pci/rme9652/rme9652.c
2323
pcm->private_data = rme9652;
sound/pci/rme9652/rme9652.c
2324
strscpy(pcm->name, rme9652->card_name);
sound/pci/rme9652/rme9652.c
2326
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_rme9652_playback_ops);
sound/pci/rme9652/rme9652.c
2327
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_rme9652_capture_ops);
sound/pci/rme9652/rme9652.c
2329
pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX;
sound/pci/rme9652/rme9652.c
236
struct snd_pcm *pcm;
sound/pci/sis7019.c
102
struct snd_pcm *pcm;
sound/pci/sis7019.c
849
struct snd_pcm *pcm;
sound/pci/sis7019.c
855
rc = snd_pcm_new(sis->card, "SiS7019", 0, 64, 1, &pcm);
sound/pci/sis7019.c
859
pcm->private_data = sis;
sound/pci/sis7019.c
860
strscpy(pcm->name, "SiS7019");
sound/pci/sis7019.c
861
sis->pcm = pcm;
sound/pci/sis7019.c
863
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &sis_playback_ops);
sound/pci/sis7019.c
864
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &sis_capture_ops);
sound/pci/sis7019.c
869
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/sonicvibes.c
210
struct snd_pcm *pcm;
sound/pci/sonicvibes.c
600
if (sonic->pcm) {
sound/pci/sonicvibes.c
833
struct snd_pcm *pcm;
sound/pci/sonicvibes.c
836
err = snd_pcm_new(sonic->card, "s3_86c617", device, 1, 1, &pcm);
sound/pci/sonicvibes.c
839
if (snd_BUG_ON(!pcm))
sound/pci/sonicvibes.c
842
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sonicvibes_playback_ops);
sound/pci/sonicvibes.c
843
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_sonicvibes_capture_ops);
sound/pci/sonicvibes.c
845
pcm->private_data = sonic;
sound/pci/sonicvibes.c
846
pcm->info_flags = 0;
sound/pci/sonicvibes.c
847
strscpy(pcm->name, "S3 SonicVibes");
sound/pci/sonicvibes.c
848
sonic->pcm = pcm;
sound/pci/sonicvibes.c
850
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/trident/trident.h
262
pcm: 1,
sound/pci/trident/trident.h
378
struct snd_pcm *pcm; /* ADC/DAC PCM */
sound/pci/trident/trident_main.c
2100
struct snd_pcm *pcm;
sound/pci/trident/trident_main.c
2103
err = snd_pcm_new(trident->card, "trident_dx_nx", device, trident->ChanPCM, 1, &pcm);
sound/pci/trident/trident_main.c
2107
pcm->private_data = trident;
sound/pci/trident/trident_main.c
2110
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_trident_nx_playback_ops);
sound/pci/trident/trident_main.c
2112
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_trident_playback_ops);
sound/pci/trident/trident_main.c
2114
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/pci/trident/trident_main.c
2119
pcm->info_flags = 0;
sound/pci/trident/trident_main.c
2120
pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX;
sound/pci/trident/trident_main.c
2121
strscpy(pcm->name, "Trident 4DWave");
sound/pci/trident/trident_main.c
2122
trident->pcm = pcm;
sound/pci/trident/trident_main.c
2126
for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substream->next)
sound/pci/trident/trident_main.c
2130
snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream,
sound/pci/trident/trident_main.c
2135
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/trident/trident_main.c
3643
if (!voice->pcm || voice->substream == NULL) {
sound/pci/trident/trident_main.c
3724
pvoice->pcm = 1;
sound/pci/trident/trident_main.c
3761
if (voice->pcm)
sound/pci/trident/trident_main.c
3765
voice->use = voice->pcm = voice->synth = voice->midi = 0;
sound/pci/via82xx.c
1291
struct viadev *viadev = &chip->devs[chip->capture_devno + substream->pcm->device];
sound/pci/via82xx.c
1415
struct snd_pcm *pcm;
sound/pci/via82xx.c
1426
err = snd_pcm_new(chip->card, chip->card->shortname, 0, 4, 1, &pcm);
sound/pci/via82xx.c
1429
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via8233_playback_ops);
sound/pci/via82xx.c
1430
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_via8233_capture_ops);
sound/pci/via82xx.c
1431
pcm->private_data = chip;
sound/pci/via82xx.c
1432
strscpy(pcm->name, chip->card->shortname);
sound/pci/via82xx.c
1433
chip->pcms[0] = pcm;
sound/pci/via82xx.c
1440
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
sound/pci/via82xx.c
1444
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/via82xx.c
1451
err = snd_pcm_new(chip->card, chip->card->shortname, 1, 1, 1, &pcm);
sound/pci/via82xx.c
1454
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via8233_multi_ops);
sound/pci/via82xx.c
1455
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_via8233_capture_ops);
sound/pci/via82xx.c
1456
pcm->private_data = chip;
sound/pci/via82xx.c
1457
strscpy(pcm->name, chip->card->shortname);
sound/pci/via82xx.c
1458
chip->pcms[1] = pcm;
sound/pci/via82xx.c
1464
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
sound/pci/via82xx.c
1468
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/via82xx.c
1483
struct snd_pcm *pcm;
sound/pci/via82xx.c
1494
err = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm);
sound/pci/via82xx.c
1497
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via8233_multi_ops);
sound/pci/via82xx.c
1498
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_via8233_capture_ops);
sound/pci/via82xx.c
1499
pcm->private_data = chip;
sound/pci/via82xx.c
1500
strscpy(pcm->name, chip->card->shortname);
sound/pci/via82xx.c
1501
chip->pcms[0] = pcm;
sound/pci/via82xx.c
1507
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
sound/pci/via82xx.c
1511
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/via82xx.c
1523
err = snd_pcm_new(chip->card, chip->card->shortname, 1, 1, 0, &pcm);
sound/pci/via82xx.c
1526
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via8233_playback_ops);
sound/pci/via82xx.c
1527
pcm->private_data = chip;
sound/pci/via82xx.c
1528
strscpy(pcm->name, chip->card->shortname);
sound/pci/via82xx.c
1529
chip->pcms[1] = pcm;
sound/pci/via82xx.c
1533
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
sound/pci/via82xx.c
1544
struct snd_pcm *pcm;
sound/pci/via82xx.c
1552
err = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm);
sound/pci/via82xx.c
1555
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via686_playback_ops);
sound/pci/via82xx.c
1556
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_via686_capture_ops);
sound/pci/via82xx.c
1557
pcm->private_data = chip;
sound/pci/via82xx.c
1558
strscpy(pcm->name, chip->card->shortname);
sound/pci/via82xx.c
1559
chip->pcms[0] = pcm;
sound/pci/via82xx.c
1563
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
sound/pci/via82xx_modem.c
773
struct viadev *viadev = &chip->devs[chip->capture_devno + substream->pcm->device];
sound/pci/via82xx_modem.c
826
struct snd_pcm *pcm;
sound/pci/via82xx_modem.c
834
err = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm);
sound/pci/via82xx_modem.c
837
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via686_playback_ops);
sound/pci/via82xx_modem.c
838
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_via686_capture_ops);
sound/pci/via82xx_modem.c
839
pcm->dev_class = SNDRV_PCM_CLASS_MODEM;
sound/pci/via82xx_modem.c
840
pcm->private_data = chip;
sound/pci/via82xx_modem.c
841
strscpy(pcm->name, chip->card->shortname);
sound/pci/via82xx_modem.c
842
chip->pcms[0] = pcm;
sound/pci/via82xx_modem.c
846
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
sound/pci/ymfpci/ymfpci.h
232
pcm: 1,
sound/pci/ymfpci/ymfpci.h
363
struct snd_pcm *pcm;
sound/pci/ymfpci/ymfpci_main.c
1100
struct snd_pcm *pcm;
sound/pci/ymfpci/ymfpci_main.c
1103
err = snd_pcm_new(chip->card, "YMFPCI", device, 32, 1, &pcm);
sound/pci/ymfpci/ymfpci_main.c
1106
pcm->private_data = chip;
sound/pci/ymfpci/ymfpci_main.c
1108
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ymfpci_playback_ops);
sound/pci/ymfpci/ymfpci_main.c
1109
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ymfpci_capture_rec_ops);
sound/pci/ymfpci/ymfpci_main.c
1112
pcm->info_flags = 0;
sound/pci/ymfpci/ymfpci_main.c
1113
strscpy(pcm->name, "YMFPCI");
sound/pci/ymfpci/ymfpci_main.c
1114
chip->pcm = pcm;
sound/pci/ymfpci/ymfpci_main.c
1116
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/ymfpci/ymfpci_main.c
1119
return snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/ymfpci/ymfpci_main.c
1134
struct snd_pcm *pcm;
sound/pci/ymfpci/ymfpci_main.c
1137
err = snd_pcm_new(chip->card, "YMFPCI - PCM2", device, 0, 1, &pcm);
sound/pci/ymfpci/ymfpci_main.c
1140
pcm->private_data = chip;
sound/pci/ymfpci/ymfpci_main.c
1142
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ymfpci_capture_ac97_ops);
sound/pci/ymfpci/ymfpci_main.c
1145
pcm->info_flags = 0;
sound/pci/ymfpci/ymfpci_main.c
1146
sprintf(pcm->name, "YMFPCI - %s",
sound/pci/ymfpci/ymfpci_main.c
1148
chip->pcm2 = pcm;
sound/pci/ymfpci/ymfpci_main.c
1150
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/ymfpci/ymfpci_main.c
1168
struct snd_pcm *pcm;
sound/pci/ymfpci/ymfpci_main.c
1171
err = snd_pcm_new(chip->card, "YMFPCI - IEC958", device, 1, 0, &pcm);
sound/pci/ymfpci/ymfpci_main.c
1174
pcm->private_data = chip;
sound/pci/ymfpci/ymfpci_main.c
1176
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ymfpci_playback_spdif_ops);
sound/pci/ymfpci/ymfpci_main.c
1179
pcm->info_flags = 0;
sound/pci/ymfpci/ymfpci_main.c
1180
strscpy(pcm->name, "YMFPCI - IEC958");
sound/pci/ymfpci/ymfpci_main.c
1181
chip->pcm_spdif = pcm;
sound/pci/ymfpci/ymfpci_main.c
1183
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/ymfpci/ymfpci_main.c
1209
struct snd_pcm *pcm;
sound/pci/ymfpci/ymfpci_main.c
1212
err = snd_pcm_new(chip->card, "YMFPCI - Rear", device, 1, 0, &pcm);
sound/pci/ymfpci/ymfpci_main.c
1215
pcm->private_data = chip;
sound/pci/ymfpci/ymfpci_main.c
1217
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ymfpci_playback_4ch_ops);
sound/pci/ymfpci/ymfpci_main.c
1220
pcm->info_flags = 0;
sound/pci/ymfpci/ymfpci_main.c
1221
strscpy(pcm->name, "YMFPCI - Rear PCM");
sound/pci/ymfpci/ymfpci_main.c
1222
chip->pcm_4ch = pcm;
sound/pci/ymfpci/ymfpci_main.c
1224
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/pci/ymfpci/ymfpci_main.c
1227
return snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/pci/ymfpci/ymfpci_main.c
1824
substream = chip->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
sound/pci/ymfpci/ymfpci_main.c
1829
kctl->id.device = chip->pcm->device;
sound/pci/ymfpci/ymfpci_main.c
211
voice->pcm = 1;
sound/pci/ymfpci/ymfpci_main.c
213
voice2->pcm = 1;
sound/pci/ymfpci/ymfpci_main.c
263
pvoice->use = pvoice->pcm = pvoice->synth = pvoice->midi = 0;
sound/pci/ymfpci/ymfpci_main.c
379
if (substream->pcm == chip->pcm && !ypcm->use_441_slot) {
sound/pci/ymfpci/ymfpci_main.c
648
substream->pcm == chip->pcm);
sound/pci/ymfpci/ymfpci_main.c
650
if (substream->pcm == chip->pcm && !ypcm->use_441_slot) {
sound/pcmcia/pdaudiocf/pdaudiocf.h
87
struct snd_pcm *pcm;
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
251
struct snd_pcm *pcm;
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
254
err = snd_pcm_new(chip->card, "PDAudioCF", 0, 0, 1, &pcm);
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
258
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pdacf_pcm_capture_ops);
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
259
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL,
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
262
pcm->private_data = chip;
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
263
pcm->info_flags = 0;
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
264
pcm->nonatomic = true;
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
265
strscpy(pcm->name, chip->card->shortname);
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
266
chip->pcm = pcm;
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
268
err = snd_ak4117_build(chip->ak4117, pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
sound/ppc/pmac.c
666
struct snd_pcm *pcm;
sound/ppc/pmac.c
672
err = snd_pcm_new(chip->card, chip->card->driver, 0, 1, num_captures, &pcm);
sound/ppc/pmac.c
676
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_pmac_playback_ops);
sound/ppc/pmac.c
678
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_pmac_capture_ops);
sound/ppc/pmac.c
680
pcm->private_data = chip;
sound/ppc/pmac.c
681
pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX;
sound/ppc/pmac.c
682
strscpy(pcm->name, chip->card->shortname);
sound/ppc/pmac.c
683
chip->pcm = pcm;
sound/ppc/pmac.c
695
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/ppc/pmac.h
130
struct snd_pcm *pcm;
sound/ppc/snd_ps3.c
962
&(the_card.pcm));
sound/ppc/snd_ps3.c
966
the_card.pcm->private_data = &the_card;
sound/ppc/snd_ps3.c
967
strscpy(the_card.pcm->name, "SPDIF");
sound/ppc/snd_ps3.c
970
snd_pcm_set_ops(the_card.pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/ppc/snd_ps3.c
973
the_card.pcm->info_flags = SNDRV_PCM_INFO_NONINTERLEAVED;
sound/ppc/snd_ps3.c
975
snd_pcm_set_managed_buffer_all(the_card.pcm,
sound/ppc/snd_ps3.h
52
struct snd_pcm *pcm;
sound/ppc/tumbler.c
855
DEFINE_MONO("PCM Playback Volume", pcm),
sound/sh/aica.c
221
dreamcastcard = substream->pcm->private_data;
sound/sh/aica.c
296
dreamcastcard = substream->pcm->private_data;
sound/sh/aica.c
318
dreamcastcard = substream->pcm->private_data;
sound/sh/aica.c
332
dreamcastcard = substream->pcm->private_data;
sound/sh/aica.c
355
struct snd_card_aica *dreamcastcard = substream->pcm->private_data;
sound/sh/aica.c
365
struct snd_card_aica *dreamcastcard = substream->pcm->private_data;
sound/sh/aica.c
375
struct snd_card_aica *dreamcastcard = substream->pcm->private_data;
sound/sh/aica.c
418
struct snd_pcm *pcm;
sound/sh/aica.c
423
&pcm);
sound/sh/aica.c
426
pcm->private_data = dreamcastcard;
sound/sh/aica.c
427
strscpy(pcm->name, "AICA PCM");
sound/sh/aica.c
428
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/sh/aica.c
431
snd_pcm_set_managed_buffer_all(pcm,
sound/sh/sh_dac_audio.c
219
struct snd_pcm *pcm;
sound/sh/sh_dac_audio.c
222
err = snd_pcm_new(chip->card, "SH_DAC PCM", device, 1, 0, &pcm);
sound/sh/sh_dac_audio.c
226
pcm->private_data = chip;
sound/sh/sh_dac_audio.c
227
strscpy(pcm->name, "SH_DAC PCM");
sound/sh/sh_dac_audio.c
228
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sh_dac_pcm_ops);
sound/sh/sh_dac_audio.c
231
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
sound/soc/amd/acp-pcm-dma.c
1168
snd_pcm_set_managed_buffer_all(rtd->pcm,
sound/soc/amd/acp-pcm-dma.c
1175
snd_pcm_set_managed_buffer_all(rtd->pcm,
sound/soc/amd/acp/acp-platform.c
297
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/amd/ps/ps-pdm-dma.c
272
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/amd/ps/ps-sdw-dma.c
505
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/amd/raven/acp3x-pcm-dma.c
318
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/amd/renoir/acp3x-pdm-dma.c
295
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/amd/vangogh/acp5x-pcm-dma.c
313
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/amd/yc/acp6x-pdm-dma.c
269
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/apple/mca.c
930
struct snd_pcm *pcm)
sound/soc/apple/mca.c
932
struct snd_soc_pcm_runtime *rtd = snd_pcm_chip(pcm);
sound/soc/apple/mca.c
941
rtd->pcm->streams[i].substream;
sound/soc/apple/mca.c
963
rtd->pcm->streams[i].substream;
sound/soc/apple/mca.c
972
mca_pcm_free(component, rtd->pcm);
sound/soc/atmel/atmel-pcm-pdc.c
47
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/atmel/atmel_wm8904.c
58
SND_SOC_DAILINK_DEFS(pcm,
sound/soc/atmel/atmel_wm8904.c
70
SND_SOC_DAILINK_REG(pcm),
sound/soc/atmel/mchp-pdmc.c
110
struct snd_pcm *pcm;
sound/soc/atmel/mchp-pdmc.c
228
for (s = info->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; s; s = s->next)
sound/soc/atmel/mchp-pdmc.c
335
info->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].chmap_kctl = NULL;
sound/soc/atmel/mchp-pdmc.c
692
static int mchp_pdmc_add_chmap_ctls(struct snd_pcm *pcm, struct mchp_pdmc *dd)
sound/soc/atmel/mchp-pdmc.c
707
if (WARN_ON(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].chmap_kctl))
sound/soc/atmel/mchp-pdmc.c
712
info->pcm = pcm;
sound/soc/atmel/mchp-pdmc.c
716
knew.device = pcm->device;
sound/soc/atmel/mchp-pdmc.c
717
knew.count = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream_count;
sound/soc/atmel/mchp-pdmc.c
724
err = snd_ctl_add(pcm->card, info->kctl);
sound/soc/atmel/mchp-pdmc.c
727
pcm->streams[SNDRV_PCM_STREAM_CAPTURE].chmap_kctl = info->kctl;
sound/soc/atmel/mchp-pdmc.c
737
ret = mchp_pdmc_add_chmap_ctls(rtd->pcm, dd);
sound/soc/atmel/sam9g20_wm8731.c
103
SND_SOC_DAILINK_REG(pcm),
sound/soc/atmel/sam9g20_wm8731.c
89
SND_SOC_DAILINK_DEFS(pcm,
sound/soc/atmel/tse850-pcm5142.c
288
SND_SOC_DAILINK_DEFS(pcm,
sound/soc/atmel/tse850-pcm5142.c
299
SND_SOC_DAILINK_REG(pcm),
sound/soc/au1x/dbdma2.c
305
struct snd_pcm *pcm = rtd->pcm;
sound/soc/au1x/dbdma2.c
307
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/au1x/dma.c
283
struct snd_pcm *pcm = rtd->pcm;
sound/soc/au1x/dma.c
285
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
sound/soc/bcm/bcm63xx-pcm-whistler.c
355
struct snd_pcm *pcm = rtd->pcm;
sound/soc/bcm/bcm63xx-pcm-whistler.c
361
ret = of_dma_configure(pcm->card->dev, pcm->card->dev->of_node, 1);
sound/soc/bcm/bcm63xx-pcm-whistler.c
365
ret = dma_coerce_mask_and_coherent(pcm->card->dev, DMA_BIT_MASK(32));
sound/soc/bcm/bcm63xx-pcm-whistler.c
369
if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream)
sound/soc/bcm/bcm63xx-pcm-whistler.c
371
pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
sound/soc/bcm/bcm63xx-pcm-whistler.c
372
if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream)
sound/soc/bcm/bcm63xx-pcm-whistler.c
374
pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
sound/soc/bcm/bcm63xx-pcm-whistler.c
376
return snd_pcm_set_fixed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_WC,
sound/soc/bcm/bcm63xx-pcm-whistler.c
377
pcm->card->dev,
sound/soc/bcm/cygnus-pcm.c
704
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/codecs/cros_ec_codec.c
937
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_VMALLOC,
sound/soc/codecs/hda-dai.c
16
struct hda_pcm *pcm;
sound/soc/codecs/hda-dai.c
21
pcm = container_of(stream_info, struct hda_pcm, stream[substream->stream]);
sound/soc/codecs/hda-dai.c
24
codec->core.vendor_id, stream_info, pcm, pcm->name, substream);
sound/soc/codecs/hda-dai.c
26
snd_hda_codec_pcm_get(pcm);
sound/soc/codecs/hda-dai.c
31
snd_hda_codec_pcm_put(pcm);
sound/soc/codecs/hda-dai.c
42
struct hda_pcm *pcm;
sound/soc/codecs/hda-dai.c
47
pcm = container_of(stream_info, struct hda_pcm, stream[substream->stream]);
sound/soc/codecs/hda-dai.c
50
codec->core.vendor_id, stream_info, pcm, pcm->name, substream);
sound/soc/codecs/hda-dai.c
56
snd_hda_codec_pcm_put(pcm);
sound/soc/codecs/hda.c
101
list_for_each_entry(pcm, &codec->pcm_list_head, list) {
sound/soc/codecs/hda.c
106
dev_err(component->dev, "register dai for %s failed\n", pcm->name);
sound/soc/codecs/hda.c
117
snd_soc_dai_init_dma_data(dai, &pcm->stream[0], &pcm->stream[1]);
sound/soc/codecs/hda.c
128
struct hda_pcm *pcm;
sound/soc/codecs/hda.c
133
list_for_each_entry(pcm, &codec->pcm_list_head, list) {
sound/soc/codecs/hda.c
134
if (strcmp(dai->driver->name, pcm->name))
sound/soc/codecs/hda.c
21
struct hda_pcm *pcm;
sound/soc/codecs/hda.c
28
pcm = list_first_entry(&codec->pcm_list_head, struct hda_pcm, list);
sound/soc/codecs/hda.c
30
for (i = 0; i < pcm_count; i++, pcm = list_next_entry(pcm, list)) {
sound/soc/codecs/hda.c
34
dev_info(dev, "creating for %s %d\n", pcm->name, i);
sound/soc/codecs/hda.c
36
drvs[i].name = pcm->name;
sound/soc/codecs/hda.c
41
if (!pcm->stream[dir].substreams) {
sound/soc/codecs/hda.c
42
dev_info(dev, "skipping playback dai for %s\n", pcm->name);
sound/soc/codecs/hda.c
47
devm_kasprintf(dev, GFP_KERNEL, "%s %s", pcm->name,
sound/soc/codecs/hda.c
51
stream->channels_min = pcm->stream[dir].channels_min;
sound/soc/codecs/hda.c
52
stream->channels_max = pcm->stream[dir].channels_max;
sound/soc/codecs/hda.c
53
stream->rates = pcm->stream[dir].rates;
sound/soc/codecs/hda.c
54
stream->formats = pcm->stream[dir].formats;
sound/soc/codecs/hda.c
55
stream->subformats = pcm->stream[dir].subformats;
sound/soc/codecs/hda.c
56
stream->sig_bits = pcm->stream[dir].maxbps;
sound/soc/codecs/hda.c
61
if (!pcm->stream[dir].substreams) {
sound/soc/codecs/hda.c
62
dev_info(dev, "skipping capture dai for %s\n", pcm->name);
sound/soc/codecs/hda.c
67
devm_kasprintf(dev, GFP_KERNEL, "%s %s", pcm->name,
sound/soc/codecs/hda.c
71
stream->channels_min = pcm->stream[dir].channels_min;
sound/soc/codecs/hda.c
72
stream->channels_max = pcm->stream[dir].channels_max;
sound/soc/codecs/hda.c
73
stream->rates = pcm->stream[dir].rates;
sound/soc/codecs/hda.c
74
stream->formats = pcm->stream[dir].formats;
sound/soc/codecs/hda.c
75
stream->subformats = pcm->stream[dir].subformats;
sound/soc/codecs/hda.c
76
stream->sig_bits = pcm->stream[dir].maxbps;
sound/soc/codecs/hda.c
87
struct hda_pcm *pcm;
sound/soc/codecs/hda.c
92
list_for_each_entry(pcm, &codec->pcm_list_head, list)
sound/soc/codecs/hdac_hda.c
198
struct hdac_hda_pcm *pcm;
sound/soc/codecs/hdac_hda.c
205
pcm = &hda_pvt->pcm[dai->id];
sound/soc/codecs/hdac_hda.c
208
pcm->stream_tag[direction] = hstream->stream_tag;
sound/soc/codecs/hdac_hda.c
241
hda_pvt->pcm[dai->id].format_val[substream->stream] = format_val;
sound/soc/codecs/hdac_hda.c
251
struct hda_pcm *pcm;
sound/soc/codecs/hdac_hda.c
254
pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai);
sound/soc/codecs/hdac_hda.c
255
if (!pcm)
sound/soc/codecs/hdac_hda.c
258
hda_stream = &pcm->stream[substream->stream];
sound/soc/codecs/hdac_hda.c
271
struct hda_pcm *pcm;
sound/soc/codecs/hdac_hda.c
276
pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai);
sound/soc/codecs/hdac_hda.c
277
if (!pcm)
sound/soc/codecs/hdac_hda.c
280
hda_stream = &pcm->stream[substream->stream];
sound/soc/codecs/hdac_hda.c
282
stream = hda_pvt->pcm[dai->id].stream_tag[substream->stream];
sound/soc/codecs/hdac_hda.c
283
format_val = hda_pvt->pcm[dai->id].format_val[substream->stream];
sound/soc/codecs/hdac_hda.c
299
struct hda_pcm *pcm;
sound/soc/codecs/hdac_hda.c
303
pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai);
sound/soc/codecs/hdac_hda.c
304
if (!pcm)
sound/soc/codecs/hdac_hda.c
307
snd_hda_codec_pcm_get(pcm);
sound/soc/codecs/hdac_hda.c
309
hda_stream = &pcm->stream[substream->stream];
sound/soc/codecs/hdac_hda.c
324
struct hda_pcm *pcm;
sound/soc/codecs/hdac_hda.c
327
pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai);
sound/soc/codecs/hdac_hda.c
328
if (!pcm)
sound/soc/codecs/hdac_hda.c
331
hda_stream = &pcm->stream[substream->stream];
sound/soc/codecs/hdac_hda.c
335
snd_hda_codec_pcm_put(pcm);
sound/soc/codecs/hdac_hda.h
27
struct hdac_hda_pcm pcm[HDAC_DAI_ID_NUM];
sound/soc/codecs/hdac_hdmi.c
1265
struct hdac_hdmi_pcm *pcm;
sound/soc/codecs/hdac_hdmi.c
1306
pcm = hdac_hdmi_get_pcm(hdev, port);
sound/soc/codecs/hdac_hdmi.c
1318
if (pcm) {
sound/soc/codecs/hdac_hdmi.c
1319
hdac_hdmi_jack_report(pcm, port, false);
sound/soc/codecs/hdac_hdmi.c
1328
if (pcm) {
sound/soc/codecs/hdac_hdmi.c
1329
hdac_hdmi_jack_report(pcm, port, true);
sound/soc/codecs/hdac_hdmi.c
1339
if (eld_changed && pcm)
sound/soc/codecs/hdac_hdmi.c
1343
&pcm->eld_ctl->id);
sound/soc/codecs/hdac_hdmi.c
146
struct hdac_hdmi_pcm *pcm;
sound/soc/codecs/hdac_hdmi.c
148
list_for_each_entry(pcm, &hdmi->pcm_list, head) {
sound/soc/codecs/hdac_hdmi.c
149
if (pcm->cvt == cvt)
sound/soc/codecs/hdac_hdmi.c
150
return pcm;
sound/soc/codecs/hdac_hdmi.c
156
static void hdac_hdmi_jack_report(struct hdac_hdmi_pcm *pcm,
sound/soc/codecs/hdac_hdmi.c
168
if (pcm->jack_event == 0) {
sound/soc/codecs/hdac_hdmi.c
171
pcm->pcm_id);
sound/soc/codecs/hdac_hdmi.c
172
snd_soc_jack_report(pcm->jack, SND_JACK_AVOUT,
sound/soc/codecs/hdac_hdmi.c
175
pcm->jack_event++;
sound/soc/codecs/hdac_hdmi.c
1780
struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx);
sound/soc/codecs/hdac_hdmi.c
1782
memcpy(chmap, pcm->chmap, ARRAY_SIZE(pcm->chmap));
sound/soc/codecs/hdac_hdmi.c
1789
struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx);
sound/soc/codecs/hdac_hdmi.c
1792
if (!pcm)
sound/soc/codecs/hdac_hdmi.c
1795
if (list_empty(&pcm->port_list))
sound/soc/codecs/hdac_hdmi.c
1798
mutex_lock(&pcm->lock);
sound/soc/codecs/hdac_hdmi.c
1799
pcm->chmap_set = true;
sound/soc/codecs/hdac_hdmi.c
1800
memcpy(pcm->chmap, chmap, ARRAY_SIZE(pcm->chmap));
sound/soc/codecs/hdac_hdmi.c
1801
list_for_each_entry(port, &pcm->port_list, head)
sound/soc/codecs/hdac_hdmi.c
1803
hdac_hdmi_setup_audio_infoframe(hdev, pcm, port);
sound/soc/codecs/hdac_hdmi.c
1804
mutex_unlock(&pcm->lock);
sound/soc/codecs/hdac_hdmi.c
1810
struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx);
sound/soc/codecs/hdac_hdmi.c
1812
if (!pcm)
sound/soc/codecs/hdac_hdmi.c
1815
if (list_empty(&pcm->port_list))
sound/soc/codecs/hdac_hdmi.c
182
if (pcm->jack_event == 1)
sound/soc/codecs/hdac_hdmi.c
1824
struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx);
sound/soc/codecs/hdac_hdmi.c
1827
if (!pcm)
sound/soc/codecs/hdac_hdmi.c
183
snd_soc_jack_report(pcm->jack, 0, SND_JACK_AVOUT);
sound/soc/codecs/hdac_hdmi.c
1830
if (list_empty(&pcm->port_list))
sound/soc/codecs/hdac_hdmi.c
1833
port = list_first_entry(&pcm->port_list, struct hdac_hdmi_port, head);
sound/soc/codecs/hdac_hdmi.c
184
if (pcm->jack_event > 0)
sound/soc/codecs/hdac_hdmi.c
185
pcm->jack_event--;
sound/soc/codecs/hdac_hdmi.c
206
static void hdac_hdmi_jack_report_sync(struct hdac_hdmi_pcm *pcm,
sound/soc/codecs/hdac_hdmi.c
209
hdac_hdmi_jack_report(pcm, port, is_connect);
sound/soc/codecs/hdac_hdmi.c
284
struct hdac_hdmi_pcm *pcm;
sound/soc/codecs/hdac_hdmi.c
286
list_for_each_entry(pcm, &hdmi->pcm_list, head) {
sound/soc/codecs/hdac_hdmi.c
287
if (pcm->pcm_id == pcm_idx)
sound/soc/codecs/hdac_hdmi.c
288
return pcm;
sound/soc/codecs/hdac_hdmi.c
356
struct hdac_hdmi_pcm *pcm, struct hdac_hdmi_port *port)
sound/soc/codecs/hdac_hdmi.c
363
struct hdac_hdmi_cvt *cvt = pcm->cvt;
sound/soc/codecs/hdac_hdmi.c
372
pcm->channels, pcm->chmap_set, true, pcm->chmap);
sound/soc/codecs/hdac_hdmi.c
378
pcm->channels, pcm->chmap, pcm->chmap_set);
sound/soc/codecs/hdac_hdmi.c
444
struct hdac_hdmi_pcm *pcm;
sound/soc/codecs/hdac_hdmi.c
456
pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt);
sound/soc/codecs/hdac_hdmi.c
458
if (pcm)
sound/soc/codecs/hdac_hdmi.c
459
pcm->stream_tag = (hstream->stream_tag << 4);
sound/soc/codecs/hdac_hdmi.c
469
struct hdac_hdmi_pcm *pcm;
sound/soc/codecs/hdac_hdmi.c
479
pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt);
sound/soc/codecs/hdac_hdmi.c
480
if (!pcm)
sound/soc/codecs/hdac_hdmi.c
483
pcm->format = format;
sound/soc/codecs/hdac_hdmi.c
484
pcm->channels = params_channels(hparams);
sound/soc/codecs/hdac_hdmi.c
530
struct hdac_hdmi_pcm *pcm;
sound/soc/codecs/hdac_hdmi.c
534
list_for_each_entry(pcm, &hdmi->pcm_list, head) {
sound/soc/codecs/hdac_hdmi.c
535
if (pcm->cvt == cvt) {
sound/soc/codecs/hdac_hdmi.c
536
if (list_empty(&pcm->port_list))
sound/soc/codecs/hdac_hdmi.c
539
list_for_each_entry(port, &pcm->port_list, head) {
sound/soc/codecs/hdac_hdmi.c
540
mutex_lock(&pcm->lock);
sound/soc/codecs/hdac_hdmi.c
543
mutex_unlock(&pcm->lock);
sound/soc/codecs/hdac_hdmi.c
636
struct hdac_hdmi_pcm *pcm;
sound/soc/codecs/hdac_hdmi.c
640
pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt);
sound/soc/codecs/hdac_hdmi.c
642
if (pcm) {
sound/soc/codecs/hdac_hdmi.c
643
mutex_lock(&pcm->lock);
sound/soc/codecs/hdac_hdmi.c
644
pcm->chmap_set = false;
sound/soc/codecs/hdac_hdmi.c
645
memset(pcm->chmap, 0, sizeof(pcm->chmap));
sound/soc/codecs/hdac_hdmi.c
646
pcm->channels = 0;
sound/soc/codecs/hdac_hdmi.c
647
mutex_unlock(&pcm->lock);
sound/soc/codecs/hdac_hdmi.c
722
struct hdac_hdmi_pcm *pcm;
sound/soc/codecs/hdac_hdmi.c
725
list_for_each_entry(pcm, &hdmi->pcm_list, head) {
sound/soc/codecs/hdac_hdmi.c
726
if (list_empty(&pcm->port_list))
sound/soc/codecs/hdac_hdmi.c
729
list_for_each_entry(p, &pcm->port_list, head) {
sound/soc/codecs/hdac_hdmi.c
731
return pcm;
sound/soc/codecs/hdac_hdmi.c
774
struct hdac_hdmi_pcm *pcm;
sound/soc/codecs/hdac_hdmi.c
779
pcm = hdac_hdmi_get_pcm(hdev, port);
sound/soc/codecs/hdac_hdmi.c
780
if (!pcm)
sound/soc/codecs/hdac_hdmi.c
797
return hdac_hdmi_setup_audio_infoframe(hdev, pcm, port);
sound/soc/codecs/hdac_hdmi.c
821
struct hdac_hdmi_pcm *pcm;
sound/soc/codecs/hdac_hdmi.c
826
pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, cvt);
sound/soc/codecs/hdac_hdmi.c
827
if (!pcm)
sound/soc/codecs/hdac_hdmi.c
843
AC_VERB_SET_CHANNEL_STREAMID, pcm->stream_tag);
sound/soc/codecs/hdac_hdmi.c
845
AC_VERB_SET_STREAM_FORMAT, pcm->format);
sound/soc/codecs/hdac_hdmi.c
913
struct hdac_hdmi_pcm *pcm;
sound/soc/codecs/hdac_hdmi.c
926
list_for_each_entry(pcm, &hdmi->pcm_list, head) {
sound/soc/codecs/hdac_hdmi.c
927
if (list_empty(&pcm->port_list))
sound/soc/codecs/hdac_hdmi.c
930
list_for_each_entry_safe(p, p_next, &pcm->port_list, head) {
sound/soc/codecs/hdac_hdmi.c
933
hdac_hdmi_jack_report_sync(pcm, port, false);
sound/soc/codecs/hdac_hdmi.c
943
list_for_each_entry(pcm, &hdmi->pcm_list, head) {
sound/soc/codecs/hdac_hdmi.c
944
if (!strcmp(cvt_name, pcm->cvt->name)) {
sound/soc/codecs/hdac_hdmi.c
945
list_add_tail(&port->head, &pcm->port_list);
sound/soc/codecs/hdac_hdmi.c
947
hdac_hdmi_jack_report_sync(pcm, port, true);
sound/soc/codecs/hdmi-codec.c
802
ret = snd_pcm_add_chmap_ctls(rtd->pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/soc/codecs/hdmi-codec.c
824
kctl->id.device = rtd->pcm->device;
sound/soc/codecs/pcm3008.c
115
struct pcm3008 *pcm;
sound/soc/codecs/pcm3008.c
117
pcm = devm_kzalloc(dev, sizeof(*pcm), GFP_KERNEL);
sound/soc/codecs/pcm3008.c
118
if (!pcm)
sound/soc/codecs/pcm3008.c
120
platform_set_drvdata(pdev, pcm);
sound/soc/codecs/pcm3008.c
130
pcm->dem0_pin = devm_gpiod_get(dev, "dem0", GPIOD_OUT_HIGH);
sound/soc/codecs/pcm3008.c
131
if (IS_ERR(pcm->dem0_pin))
sound/soc/codecs/pcm3008.c
132
return PTR_ERR(pcm->dem0_pin);
sound/soc/codecs/pcm3008.c
135
pcm->dem1_pin = devm_gpiod_get(dev, "dem1", GPIOD_OUT_LOW);
sound/soc/codecs/pcm3008.c
136
if (IS_ERR(pcm->dem1_pin))
sound/soc/codecs/pcm3008.c
137
return PTR_ERR(pcm->dem1_pin);
sound/soc/codecs/pcm3008.c
140
pcm->pdad_pin = devm_gpiod_get(dev, "pdad", GPIOD_OUT_LOW);
sound/soc/codecs/pcm3008.c
141
if (IS_ERR(pcm->pdad_pin))
sound/soc/codecs/pcm3008.c
142
return PTR_ERR(pcm->pdad_pin);
sound/soc/codecs/pcm3008.c
145
pcm->pdda_pin = devm_gpiod_get(dev, "pdda", GPIOD_OUT_LOW);
sound/soc/codecs/pcm3008.c
146
if (IS_ERR(pcm->pdda_pin))
sound/soc/codecs/pcm3008.c
147
return PTR_ERR(pcm->pdda_pin);
sound/soc/codecs/pcm3008.c
37
struct pcm3008 *pcm = component->dev->platform_data;
sound/soc/codecs/pcm3008.c
39
gpiod_set_value_cansleep(pcm->pdda_pin,
sound/soc/codecs/pcm3008.c
50
struct pcm3008 *pcm = component->dev->platform_data;
sound/soc/codecs/pcm3008.c
52
gpiod_set_value_cansleep(pcm->pdad_pin,
sound/soc/codecs/rt5514-spi.c
294
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_VMALLOC,
sound/soc/codecs/rt5677-spi.c
377
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_VMALLOC,
sound/soc/dwc/dwc-pcm.c
244
snd_pcm_set_managed_buffer_all(rtd->pcm,
sound/soc/fsl/fsl_asrc_dma.c
475
struct snd_pcm *pcm = rtd->pcm;
sound/soc/fsl/fsl_asrc_dma.c
504
ret = snd_pcm_set_fixed_buffer_all(pcm,
sound/soc/fsl/fsl_dma.c
280
struct snd_pcm *pcm = rtd->pcm;
sound/soc/fsl/fsl_dma.c
287
return snd_pcm_set_fixed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/fsl/fsl_qmc_audio.c
67
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV, card->dev,
sound/soc/fsl/fsl_spdif.c
1036
rtd->pcm->streams[stream].substream_count = (set ? 0 : 1);
sound/soc/fsl/fsl_xcvr.c
302
rtd->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream_count =
sound/soc/fsl/imx-pcm-fiq.c
217
struct snd_pcm *pcm = rtd->pcm;
sound/soc/fsl/imx-pcm-fiq.c
224
return snd_pcm_set_fixed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_WC,
sound/soc/fsl/imx-pcm-fiq.c
225
pcm->card->dev,
sound/soc/fsl/imx-pcm-fiq.c
234
struct snd_pcm *pcm = rtd->pcm;
sound/soc/fsl/imx-pcm-fiq.c
242
substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
sound/soc/fsl/imx-pcm-fiq.c
249
substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
sound/soc/fsl/imx-pcm-fiq.c
263
struct snd_pcm *pcm)
sound/soc/fsl/imx-pcm-rpmsg.c
597
struct snd_pcm *pcm = rtd->pcm;
sound/soc/fsl/imx-pcm-rpmsg.c
607
substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
sound/soc/fsl/imx-pcm-rpmsg.c
609
ret = snd_pcm_set_fixed_buffer(substream, SNDRV_DMA_TYPE_DEV_WC, pcm->card->dev,
sound/soc/fsl/imx-pcm-rpmsg.c
614
substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
sound/soc/fsl/imx-pcm-rpmsg.c
616
ret = snd_pcm_set_fixed_buffer(substream, SNDRV_DMA_TYPE_DEV_WC, pcm->card->dev,
sound/soc/fsl/mpc5200_dma.c
232
dev_err(substream->pcm->card->dev, "invalid buffer size\n");
sound/soc/fsl/mpc5200_dma.c
289
struct snd_pcm *pcm = rtd->pcm;
sound/soc/fsl/mpc5200_dma.c
294
card, dai, pcm);
sound/soc/fsl/mpc5200_dma.c
300
return snd_pcm_set_fixed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, card->dev,
sound/soc/generic/test-component.c
275
rtd->pcm,
sound/soc/generic/test-component.c
284
struct snd_pcm *pcm)
sound/soc/google/chv3-i2s.c
173
substream = rtd->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
sound/soc/google/chv3-i2s.c
181
substream = rtd->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
194
index = sst_get_stream_mapping(pstream->pcm->device,
sound/soc/intel/atom/sst-mfld-platform-pcm.c
391
snprintf(substream->pcm->id, sizeof(substream->pcm->id),
sound/soc/intel/atom/sst-mfld-platform-pcm.c
582
if (substream->pcm->internal)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
599
if (substream->pcm->internal)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
675
struct snd_pcm *pcm = rtd->pcm;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
679
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/intel/atom/sst-mfld-platform-pcm.c
680
pcm->card->dev,
sound/soc/intel/avs/boards/hdaudio.c
110
hpcm->pcm = spcm;
sound/soc/intel/avs/boards/hdaudio.c
115
hpcm->pcm = NULL;
sound/soc/intel/avs/boards/hdaudio.c
133
struct hda_pcm *pcm;
sound/soc/intel/avs/boards/hdaudio.c
142
list_for_each_entry(pcm, &codec->pcm_list_head, list)
sound/soc/intel/avs/boards/hdaudio.c
23
struct hda_pcm *pcm;
sound/soc/intel/avs/boards/hdaudio.c
33
pcm = list_first_entry(&codec->pcm_list_head, struct hda_pcm, list);
sound/soc/intel/avs/boards/hdaudio.c
35
for (i = 0; i < pcm_count; i++, pcm = list_next_entry(pcm, list)) {
sound/soc/intel/avs/boards/hdaudio.c
60
dl[i].codecs->dai_name = pcm->name;
sound/soc/intel/avs/boards/hdaudio.c
82
spcm = rtd->pcm ? rtd->pcm->streams[dir].pcm : NULL;
sound/soc/intel/avs/boards/hdaudio.c
90
return rtd->pcm;
sound/soc/intel/avs/ipc.c
113
struct snd_pcm *pcm;
sound/soc/intel/avs/ipc.c
116
pcm = rtd->pcm;
sound/soc/intel/avs/ipc.c
117
if (!pcm || rtd->dai_link->no_pcm)
sound/soc/intel/avs/ipc.c
123
substream = pcm->streams[dir].substream;
sound/soc/intel/avs/pcm.c
1356
struct snd_pcm *pcm = rtd->pcm;
sound/soc/intel/avs/pcm.c
1359
snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream,
sound/soc/intel/avs/pcm.c
1364
snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream,
sound/soc/intel/avs/pcm.c
1606
struct hda_pcm *pcm;
sound/soc/intel/avs/pcm.c
1618
list_for_each_entry(pcm, &codec->pcm_list_head, list)
sound/soc/intel/avs/pcm.c
1628
pcm = list_first_entry(&codec->pcm_list_head, struct hda_pcm, list);
sound/soc/intel/avs/pcm.c
1630
for (i = 0; i < pcm_count; i++, pcm = list_next_entry(pcm, list)) {
sound/soc/intel/avs/pcm.c
1642
if (pcm->stream[0].substreams) {
sound/soc/intel/avs/pcm.c
1652
dais[i].playback.formats = pcm->stream[0].formats;
sound/soc/intel/avs/pcm.c
1653
dais[i].playback.subformats = pcm->stream[0].subformats;
sound/soc/intel/avs/pcm.c
1654
dais[i].playback.rates = pcm->stream[0].rates;
sound/soc/intel/avs/pcm.c
1655
dais[i].playback.channels_min = pcm->stream[0].channels_min;
sound/soc/intel/avs/pcm.c
1656
dais[i].playback.channels_max = pcm->stream[0].channels_max;
sound/soc/intel/avs/pcm.c
1657
dais[i].playback.sig_bits = pcm->stream[0].maxbps;
sound/soc/intel/avs/pcm.c
1661
if (pcm->stream[1].substreams) {
sound/soc/intel/avs/pcm.c
1671
dais[i].capture.formats = pcm->stream[1].formats;
sound/soc/intel/avs/pcm.c
1672
dais[i].capture.subformats = pcm->stream[1].subformats;
sound/soc/intel/avs/pcm.c
1673
dais[i].capture.rates = pcm->stream[1].rates;
sound/soc/intel/avs/pcm.c
1674
dais[i].capture.channels_min = pcm->stream[1].channels_min;
sound/soc/intel/avs/pcm.c
1675
dais[i].capture.channels_max = pcm->stream[1].channels_max;
sound/soc/intel/avs/pcm.c
1676
dais[i].capture.sig_bits = pcm->stream[1].maxbps;
sound/soc/intel/avs/pcm.c
1683
pcm->name);
sound/soc/intel/avs/topology.c
1907
struct snd_soc_dai_driver *dai_drv, struct snd_soc_tplg_pcm *pcm,
sound/soc/intel/avs/topology.c
1914
if (pcm) {
sound/soc/intel/boards/ehl_rt5660.c
102
pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm, head);
sound/soc/intel/boards/ehl_rt5660.c
104
return hda_dsp_hdmi_build_controls(card, pcm->codec_dai->component);
sound/soc/intel/boards/ehl_rt5660.c
76
struct sof_hdmi_pcm *pcm;
sound/soc/intel/boards/ehl_rt5660.c
78
pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL);
sound/soc/intel/boards/ehl_rt5660.c
79
if (!pcm)
sound/soc/intel/boards/ehl_rt5660.c
83
pcm->device = rtd->dai_link->id;
sound/soc/intel/boards/ehl_rt5660.c
84
pcm->codec_dai = dai;
sound/soc/intel/boards/ehl_rt5660.c
86
list_add_tail(&pcm->head, &ctx->hdmi_pcm_list);
sound/soc/intel/boards/ehl_rt5660.c
94
struct sof_hdmi_pcm *pcm;
sound/soc/intel/boards/hda_dsp_common.c
32
spcm = rtd->pcm;
sound/soc/intel/boards/hda_dsp_common.c
41
return rtd->pcm;
sound/soc/intel/boards/hda_dsp_common.c
71
hpcm->pcm = spcm;
sound/soc/intel/boards/hda_dsp_common.c
77
hpcm->pcm = NULL;
sound/soc/intel/boards/sof_es8336.c
256
struct sof_hdmi_pcm *pcm;
sound/soc/intel/boards/sof_es8336.c
258
pcm = devm_kzalloc(runtime->card->dev, sizeof(*pcm), GFP_KERNEL);
sound/soc/intel/boards/sof_es8336.c
259
if (!pcm)
sound/soc/intel/boards/sof_es8336.c
263
pcm->device = runtime->dai_link->id;
sound/soc/intel/boards/sof_es8336.c
264
pcm->codec_dai = dai;
sound/soc/intel/boards/sof_es8336.c
266
list_add_tail(&pcm->head, &priv->hdmi_pcm_list);
sound/soc/intel/boards/sof_es8336.c
410
struct sof_hdmi_pcm *pcm;
sound/soc/intel/boards/sof_es8336.c
415
pcm = list_first_entry(&priv->hdmi_pcm_list, struct sof_hdmi_pcm, head);
sound/soc/intel/boards/sof_es8336.c
417
return hda_dsp_hdmi_build_controls(card, pcm->codec_dai->component);
sound/soc/intel/boards/sof_pcm512x.c
137
struct sof_hdmi_pcm *pcm;
sound/soc/intel/boards/sof_pcm512x.c
149
pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm, head);
sound/soc/intel/boards/sof_pcm512x.c
151
return hda_dsp_hdmi_build_controls(card, pcm->codec_dai->component);
sound/soc/intel/boards/sof_pcm512x.c
75
struct sof_hdmi_pcm *pcm;
sound/soc/intel/boards/sof_pcm512x.c
77
pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL);
sound/soc/intel/boards/sof_pcm512x.c
78
if (!pcm)
sound/soc/intel/boards/sof_pcm512x.c
82
pcm->device = rtd->dai_link->id;
sound/soc/intel/boards/sof_pcm512x.c
83
pcm->codec_dai = dai;
sound/soc/intel/boards/sof_pcm512x.c
85
list_add_tail(&pcm->head, &ctx->hdmi_pcm_list);
sound/soc/intel/catpt/pcm.c
607
snd_pcm_set_managed_buffer_all(rtm->pcm, SNDRV_DMA_TYPE_DEV_SG,
sound/soc/intel/keembay/kmb_platform.c
368
snd_pcm_set_managed_buffer_all(soc_runtime->pcm,
sound/soc/kirkwood/kirkwood-dma.c
251
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/loongson/loongson_dma.c
139
struct device *dev = substream->pcm->card->dev;
sound/soc/loongson/loongson_dma.c
202
struct device *dev = substream->pcm->card->dev;
sound/soc/loongson/loongson_dma.c
237
struct snd_card *card = substream->pcm->card;
sound/soc/loongson/loongson_dma.c
291
struct snd_card *card = substream->pcm->card;
sound/soc/loongson/loongson_dma.c
323
substream = rtd->pcm->streams[i].substream;
sound/soc/loongson/loongson_dma.c
339
return snd_pcm_set_fixed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/loongson/loongson_dma.c
386
if (substream->pcm->device & 1) {
sound/soc/loongson/loongson_dma.c
391
if (substream->pcm->device & 2)
sound/soc/loongson/loongson_dma.c
95
struct device *dev = substream->pcm->card->dev;
sound/soc/mediatek/common/mtk-afe-platform-driver.c
140
struct snd_pcm *pcm = rtd->pcm;
sound/soc/mediatek/common/mtk-afe-platform-driver.c
144
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, afe->dev,
sound/soc/mediatek/mt2701/mt2701-cs42448.c
114
dev_err(substream->pcm->card->dev,
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
2377
struct snd_pcm *pcm)
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
2379
snd_pcm_lib_preallocate_free_for_all(pcm);
sound/soc/mediatek/mt8196/mt8196-afe-pcm.c
2267
static void mt8196_afe_pcm_free(struct snd_soc_component *component, struct snd_pcm *pcm)
sound/soc/mediatek/mt8196/mt8196-afe-pcm.c
2269
snd_pcm_lib_preallocate_free_for_all(pcm);
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
596
dma_buf->dev.dev = substream->pcm->card->dev;
sound/soc/meson/aiu-fifo-i2s.c
166
fifo->pcm = &fifo_i2s_pcm;
sound/soc/meson/aiu-fifo-spdif.c
186
fifo->pcm = &fifo_spdif_pcm;
sound/soc/meson/aiu-fifo.c
138
snd_soc_set_runtime_hwparams(substream, fifo->pcm);
sound/soc/meson/aiu-fifo.c
182
size_t size = fifo->pcm->buffer_bytes_max;
sound/soc/meson/aiu-fifo.c
189
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/meson/aiu-fifo.h
21
const struct snd_pcm_hardware *pcm;
sound/soc/meson/axg-fifo.c
313
snd_pcm_set_managed_buffer(rtd->pcm->streams[type].substream,
sound/soc/pxa/pxa2xx-pcm-lib.c
120
static int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm)
sound/soc/pxa/pxa2xx-pcm-lib.c
124
return snd_pcm_set_fixed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_WC,
sound/soc/pxa/pxa2xx-pcm-lib.c
125
pcm->card->dev, size);
sound/soc/pxa/pxa2xx-pcm-lib.c
132
struct snd_pcm *pcm = rtd->pcm;
sound/soc/pxa/pxa2xx-pcm-lib.c
139
return pxa2xx_pcm_preallocate_dma_buffer(pcm);
sound/soc/qcom/lpass-cpu.c
414
ret = snd_pcm_add_chmap_ctls(rtd->pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/soc/qcom/lpass-platform.c
1128
struct snd_pcm *pcm, int dai_id)
sound/soc/qcom/lpass-platform.c
1134
if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream)
sound/soc/qcom/lpass-platform.c
1135
substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
sound/soc/qcom/lpass-platform.c
1137
substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
sound/soc/qcom/lpass-platform.c
1140
buf->dev.dev = pcm->card->dev;
sound/soc/qcom/lpass-platform.c
1171
struct snd_pcm *pcm = soc_runtime->pcm;
sound/soc/qcom/lpass-platform.c
1182
return lpass_platform_prealloc_cdc_dma_buffer(component, pcm, dai_id);
sound/soc/qcom/lpass-platform.c
1184
return snd_pcm_set_fixed_buffer_all(pcm, SNDRV_DMA_TYPE_NONCOHERENT,
sound/soc/qcom/qdsp6/q6apm-dai.c
575
struct snd_pcm *pcm = rtd->pcm;
sound/soc/qcom/qdsp6/q6apm-dai.c
589
if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream)
sound/soc/qcom/qdsp6/q6apm-dai.c
590
substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
sound/soc/qcom/qdsp6/q6apm-dai.c
591
else if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream)
sound/soc/qcom/qdsp6/q6apm-dai.c
592
substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
sound/soc/qcom/qdsp6/q6apm-dai.c
602
ret = snd_pcm_set_fixed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, component->dev, size);
sound/soc/qcom/qdsp6/q6apm-dai.c
636
static void q6apm_dai_pcm_free(struct snd_soc_component *component, struct snd_pcm *pcm)
sound/soc/qcom/qdsp6/q6apm-dai.c
640
substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
sound/soc/qcom/qdsp6/q6apm-dai.c
644
substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
sound/soc/qcom/qdsp6/q6asm-dai.c
1194
struct snd_pcm *pcm = rtd->pcm;
sound/soc/qcom/qdsp6/q6asm-dai.c
1197
return snd_pcm_set_fixed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/qcom/qdsp6/q6usb.c
201
int pcm, int direction, enum snd_soc_usb_kctl path,
sound/soc/qcom/qdsp6/q6usb.c
224
pcm == sdev->ppcm_idx[sdev->num_playback - 1]) {
sound/soc/renesas/dma-sh7760.c
294
struct snd_pcm *pcm = rtd->pcm;
sound/soc/renesas/dma-sh7760.c
299
snd_pcm_set_managed_buffer_all(pcm,
sound/soc/renesas/fsi.c
1844
rtd->pcm,
sound/soc/renesas/rcar/core.c
1437
for (substream = rtd->pcm->streams[stream].substream;
sound/soc/renesas/rcar/msiof.c
453
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/renesas/rz-ssi.c
958
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/renesas/siu.h
117
struct snd_pcm *pcm;
sound/soc/renesas/siu.h
129
to_platform_device(substream->pcm->card->dev);
sound/soc/renesas/siu_dai.c
342
dev_dbg(port_info->pcm->card->dev, "%s\n", __func__);
sound/soc/renesas/siu_dai.c
356
struct device *dev = port_info->pcm->card->dev;
sound/soc/renesas/siu_dai.c
387
struct device *dev = port_info->pcm->card->dev;
sound/soc/renesas/siu_dai.c
501
dev_dbg(substream->pcm->card->dev, "%s: port=%d@%p\n", __func__,
sound/soc/renesas/siu_dai.c
51
u32 pcm;
sound/soc/renesas/siu_dai.c
521
dev_dbg(substream->pcm->card->dev, "%s: port=%d@%p\n", __func__,
sound/soc/renesas/siu_dai.c
549
dev_dbg(substream->pcm->card->dev,
sound/soc/renesas/siu_dai.c
609
ifctl = siu_flags[info->port_id].playback.pcm |
sound/soc/renesas/siu_dai.c
610
siu_flags[info->port_id].capture.pcm;
sound/soc/renesas/siu_dai.c
67
.pcm = 0x40000000,
sound/soc/renesas/siu_dai.c
73
.pcm = 0x04000000,
sound/soc/renesas/siu_dai.c
81
.pcm = 0x00400000,
sound/soc/renesas/siu_dai.c
87
.pcm = 0x00040000,
sound/soc/renesas/siu_dai.c
99
dev_dbg(port_info->pcm->card->dev, "%s\n", __func__);
sound/soc/renesas/siu_pcm.c
109
struct device *dev = substream->pcm->card->dev;
sound/soc/renesas/siu_pcm.c
157
struct device *dev = substream->pcm->card->dev;
sound/soc/renesas/siu_pcm.c
206
struct device *dev = substream->pcm->card->dev;
sound/soc/renesas/siu_pcm.c
263
struct device *dev = siu_stream->substream->pcm->card->dev;
sound/soc/renesas/siu_pcm.c
300
struct device *dev = ss->pcm->card->dev;
sound/soc/renesas/siu_pcm.c
337
struct device *dev = ss->pcm->card->dev;
sound/soc/renesas/siu_pcm.c
361
struct device *dev = ss->pcm->card->dev;
sound/soc/renesas/siu_pcm.c
407
struct device *dev = ss->pcm->card->dev;
sound/soc/renesas/siu_pcm.c
450
struct device *dev = ss->pcm->card->dev;
sound/soc/renesas/siu_pcm.c
487
struct snd_pcm *pcm = rtd->pcm;
sound/soc/renesas/siu_pcm.c
512
snd_pcm_set_managed_buffer_all(pcm,
sound/soc/renesas/siu_pcm.c
516
(*port_info)->pcm = pcm;
sound/soc/renesas/siu_pcm.c
528
struct snd_pcm *pcm)
sound/soc/renesas/siu_pcm.c
530
struct platform_device *pdev = to_platform_device(pcm->card->dev);
sound/soc/renesas/siu_pcm.c
538
dev_dbg(pcm->card->dev, "%s\n", __func__);
sound/soc/rockchip/rockchip_i2s_tdm.c
535
&substream->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK];
sound/soc/rockchip/rockchip_i2s_tdm.c
555
&substream->pcm->streams[SNDRV_PCM_STREAM_CAPTURE];
sound/soc/rockchip/rockchip_rt5645.c
136
SND_SOC_DAILINK_DEFS(pcm,
sound/soc/rockchip/rockchip_rt5645.c
149
SND_SOC_DAILINK_REG(pcm),
sound/soc/samsung/idma.c
320
struct snd_pcm *pcm)
sound/soc/samsung/idma.c
325
substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
sound/soc/samsung/idma.c
339
static int preallocate_idma_buffer(struct snd_pcm *pcm, int stream)
sound/soc/samsung/idma.c
341
struct snd_pcm_substream *substream = pcm->streams[stream].substream;
sound/soc/samsung/idma.c
344
buf->dev.dev = pcm->card->dev;
sound/soc/samsung/idma.c
362
struct snd_pcm *pcm = rtd->pcm;
sound/soc/samsung/idma.c
369
if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
sound/soc/samsung/idma.c
370
ret = preallocate_idma_buffer(pcm,
sound/soc/samsung/pcm.c
154
static void s3c_pcm_snd_txctrl(struct s3c_pcm_info *pcm, int on)
sound/soc/samsung/pcm.c
156
void __iomem *regs = pcm->regs;
sound/soc/samsung/pcm.c
176
if (!pcm->idleclk)
sound/soc/samsung/pcm.c
185
static void s3c_pcm_snd_rxctrl(struct s3c_pcm_info *pcm, int on)
sound/soc/samsung/pcm.c
187
void __iomem *regs = pcm->regs;
sound/soc/samsung/pcm.c
207
if (!pcm->idleclk)
sound/soc/samsung/pcm.c
220
struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(snd_soc_rtd_to_cpu(rtd, 0));
sound/soc/samsung/pcm.c
222
dev_dbg(pcm->dev, "Entered %s\n", __func__);
sound/soc/samsung/pcm.c
228
scoped_guard(spinlock_irqsave, &pcm->lock) {
sound/soc/samsung/pcm.c
230
s3c_pcm_snd_rxctrl(pcm, 1);
sound/soc/samsung/pcm.c
232
s3c_pcm_snd_txctrl(pcm, 1);
sound/soc/samsung/pcm.c
239
scoped_guard(spinlock_irqsave, &pcm->lock) {
sound/soc/samsung/pcm.c
241
s3c_pcm_snd_rxctrl(pcm, 0);
sound/soc/samsung/pcm.c
243
s3c_pcm_snd_txctrl(pcm, 0);
sound/soc/samsung/pcm.c
259
struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(snd_soc_rtd_to_cpu(rtd, 0));
sound/soc/samsung/pcm.c
260
void __iomem *regs = pcm->regs;
sound/soc/samsung/pcm.c
265
dev_dbg(pcm->dev, "Entered %s\n", __func__);
sound/soc/samsung/pcm.c
275
scoped_guard(spinlock_irqsave, &pcm->lock) {
sound/soc/samsung/pcm.c
279
clk = pcm->pclk;
sound/soc/samsung/pcm.c
281
clk = pcm->cclk;
sound/soc/samsung/pcm.c
284
sclk_div = clk_get_rate(clk) / pcm->sclk_per_fs /
sound/soc/samsung/pcm.c
293
sync_div = pcm->sclk_per_fs - 1;
sound/soc/samsung/pcm.c
302
dev_dbg(pcm->dev, "PCMSOURCE_CLK-%lu SCLK=%ufs SCLK_DIV=%d SYNC_DIV=%d\n",
sound/soc/samsung/pcm.c
303
clk_get_rate(clk), pcm->sclk_per_fs,
sound/soc/samsung/pcm.c
312
struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai);
sound/soc/samsung/pcm.c
313
void __iomem *regs = pcm->regs;
sound/soc/samsung/pcm.c
316
dev_dbg(pcm->dev, "Entered %s\n", __func__);
sound/soc/samsung/pcm.c
318
guard(spinlock_irqsave)(&pcm->lock);
sound/soc/samsung/pcm.c
327
dev_err(pcm->dev, "Unsupported clock inversion!\n");
sound/soc/samsung/pcm.c
336
dev_err(pcm->dev, "Unsupported master/slave format!\n");
sound/soc/samsung/pcm.c
342
pcm->idleclk = 1;
sound/soc/samsung/pcm.c
345
pcm->idleclk = 0;
sound/soc/samsung/pcm.c
348
dev_err(pcm->dev, "Invalid Clock gating request!\n");
sound/soc/samsung/pcm.c
362
dev_err(pcm->dev, "Unsupported data format!\n");
sound/soc/samsung/pcm.c
373
struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai);
sound/soc/samsung/pcm.c
377
pcm->sclk_per_fs = div;
sound/soc/samsung/pcm.c
390
struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai);
sound/soc/samsung/pcm.c
391
void __iomem *regs = pcm->regs;
sound/soc/samsung/pcm.c
402
if (clk_get_rate(pcm->cclk) != freq)
sound/soc/samsung/pcm.c
403
clk_set_rate(pcm->cclk, freq);
sound/soc/samsung/pcm.c
418
struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(dai);
sound/soc/samsung/pcm.c
420
snd_soc_dai_init_dma_data(dai, pcm->dma_playback, pcm->dma_capture);
sound/soc/samsung/pcm.c
470
struct s3c_pcm_info *pcm;
sound/soc/samsung/pcm.c
489
pcm = &s3c_pcm[pdev->id];
sound/soc/samsung/pcm.c
490
pcm->dev = &pdev->dev;
sound/soc/samsung/pcm.c
492
spin_lock_init(&pcm->lock);
sound/soc/samsung/pcm.c
495
pcm->sclk_per_fs = 128;
sound/soc/samsung/pcm.c
497
pcm->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res);
sound/soc/samsung/pcm.c
498
if (IS_ERR(pcm->regs))
sound/soc/samsung/pcm.c
499
return PTR_ERR(pcm->regs);
sound/soc/samsung/pcm.c
501
pcm->cclk = devm_clk_get(&pdev->dev, "audio-bus");
sound/soc/samsung/pcm.c
502
if (IS_ERR(pcm->cclk)) {
sound/soc/samsung/pcm.c
504
return PTR_ERR(pcm->cclk);
sound/soc/samsung/pcm.c
506
ret = clk_prepare_enable(pcm->cclk);
sound/soc/samsung/pcm.c
511
dev_set_drvdata(&pdev->dev, pcm);
sound/soc/samsung/pcm.c
513
pcm->pclk = devm_clk_get(&pdev->dev, "pcm");
sound/soc/samsung/pcm.c
514
if (IS_ERR(pcm->pclk)) {
sound/soc/samsung/pcm.c
516
ret = PTR_ERR(pcm->pclk);
sound/soc/samsung/pcm.c
519
ret = clk_prepare_enable(pcm->pclk);
sound/soc/samsung/pcm.c
533
pcm->dma_capture = &s3c_pcm_stereo_in[pdev->id];
sound/soc/samsung/pcm.c
534
pcm->dma_playback = &s3c_pcm_stereo_out[pdev->id];
sound/soc/samsung/pcm.c
557
clk_disable_unprepare(pcm->pclk);
sound/soc/samsung/pcm.c
559
clk_disable_unprepare(pcm->cclk);
sound/soc/samsung/pcm.c
565
struct s3c_pcm_info *pcm = &s3c_pcm[pdev->id];
sound/soc/samsung/pcm.c
568
clk_disable_unprepare(pcm->cclk);
sound/soc/samsung/pcm.c
569
clk_disable_unprepare(pcm->pclk);
sound/soc/soc-component.c
1072
if (!rtd->pcm)
sound/soc/soc-component.c
1077
component->driver->pcm_free(component, rtd->pcm);
sound/soc/soc-compress.c
371
fe->pcm->streams[cstream->direction].substream;
sound/soc/soc-compress.c
631
rtd->pcm = be_pcm;
sound/soc/soc-core.c
684
snd_pcm_suspend_all(rtd->pcm);
sound/soc/soc-dapm.c
4529
struct snd_pcm_substream *substream = rtd->pcm->streams[stream].substream;
sound/soc/soc-generic-dmaengine-pcm.c
102
struct dmaengine_pcm *pcm = soc_component_to_pcm(component);
sound/soc/soc-generic-dmaengine-pcm.c
103
struct device *dma_dev = dmaengine_dma_dev(pcm, substream);
sound/soc/soc-generic-dmaengine-pcm.c
104
struct dma_chan *chan = pcm->chan[substream->stream];
sound/soc/soc-generic-dmaengine-pcm.c
114
if (pcm->config->pcm_hardware)
sound/soc/soc-generic-dmaengine-pcm.c
116
pcm->config->pcm_hardware);
sound/soc/soc-generic-dmaengine-pcm.c
132
if (pcm->flags & SND_DMAENGINE_PCM_FLAG_NO_RESIDUE)
sound/soc/soc-generic-dmaengine-pcm.c
151
struct dmaengine_pcm *pcm = soc_component_to_pcm(component);
sound/soc/soc-generic-dmaengine-pcm.c
152
struct dma_chan *chan = pcm->chan[substream->stream];
sound/soc/soc-generic-dmaengine-pcm.c
179
struct dmaengine_pcm *pcm = soc_component_to_pcm(component);
sound/soc/soc-generic-dmaengine-pcm.c
190
if ((pcm->flags & SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX) && pcm->chan[0])
sound/soc/soc-generic-dmaengine-pcm.c
191
return pcm->chan[0];
sound/soc/soc-generic-dmaengine-pcm.c
193
if (pcm->config->compat_request_channel)
sound/soc/soc-generic-dmaengine-pcm.c
194
return pcm->config->compat_request_channel(rtd, substream);
sound/soc/soc-generic-dmaengine-pcm.c
196
return snd_dmaengine_pcm_request_channel(pcm->config->compat_filter_fn,
sound/soc/soc-generic-dmaengine-pcm.c
222
struct dmaengine_pcm *pcm = soc_component_to_pcm(component);
sound/soc/soc-generic-dmaengine-pcm.c
223
const struct snd_dmaengine_pcm_config *config = pcm->config;
sound/soc/soc-generic-dmaengine-pcm.c
240
struct snd_pcm_substream *substream = rtd->pcm->streams[i].substream;
sound/soc/soc-generic-dmaengine-pcm.c
244
if (!pcm->chan[i] && config->chan_names[i])
sound/soc/soc-generic-dmaengine-pcm.c
245
pcm->chan[i] = dma_request_slave_channel(dev,
sound/soc/soc-generic-dmaengine-pcm.c
248
if (!pcm->chan[i] && (pcm->flags & SND_DMAENGINE_PCM_FLAG_COMPAT)) {
sound/soc/soc-generic-dmaengine-pcm.c
249
pcm->chan[i] = dmaengine_pcm_compat_request_channel(
sound/soc/soc-generic-dmaengine-pcm.c
253
if (!pcm->chan[i]) {
sound/soc/soc-generic-dmaengine-pcm.c
261
dmaengine_dma_dev(pcm, substream),
sound/soc/soc-generic-dmaengine-pcm.c
265
if (!dmaengine_pcm_can_report_residue(dev, pcm->chan[i]))
sound/soc/soc-generic-dmaengine-pcm.c
266
pcm->flags |= SND_DMAENGINE_PCM_FLAG_NO_RESIDUE;
sound/soc/soc-generic-dmaengine-pcm.c
268
if (rtd->pcm->streams[i].pcm->name[0] == '\0') {
sound/soc/soc-generic-dmaengine-pcm.c
269
strscpy_pad(rtd->pcm->streams[i].pcm->name,
sound/soc/soc-generic-dmaengine-pcm.c
270
rtd->pcm->streams[i].pcm->id,
sound/soc/soc-generic-dmaengine-pcm.c
271
sizeof(rtd->pcm->streams[i].pcm->name));
sound/soc/soc-generic-dmaengine-pcm.c
28
static struct device *dmaengine_dma_dev(struct dmaengine_pcm *pcm,
sound/soc/soc-generic-dmaengine-pcm.c
282
struct dmaengine_pcm *pcm = soc_component_to_pcm(component);
sound/soc/soc-generic-dmaengine-pcm.c
284
if (pcm->flags & SND_DMAENGINE_PCM_FLAG_NO_RESIDUE)
sound/soc/soc-generic-dmaengine-pcm.c
296
struct dmaengine_pcm *pcm = soc_component_to_pcm(component);
sound/soc/soc-generic-dmaengine-pcm.c
299
unsigned long bytes) = pcm->config->process;
sound/soc/soc-generic-dmaengine-pcm.c
31
if (!pcm->chan[substream->stream])
sound/soc/soc-generic-dmaengine-pcm.c
34
return pcm->chan[substream->stream]->device->dev;
sound/soc/soc-generic-dmaengine-pcm.c
359
static int dmaengine_pcm_request_chan_of(struct dmaengine_pcm *pcm,
sound/soc/soc-generic-dmaengine-pcm.c
366
if ((pcm->flags & SND_DMAENGINE_PCM_FLAG_NO_DT) || (!dev->of_node &&
sound/soc/soc-generic-dmaengine-pcm.c
383
if (pcm->flags & SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX)
sound/soc/soc-generic-dmaengine-pcm.c
398
pcm->chan[i] = NULL;
sound/soc/soc-generic-dmaengine-pcm.c
400
pcm->chan[i] = chan;
sound/soc/soc-generic-dmaengine-pcm.c
402
if (pcm->flags & SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX)
sound/soc/soc-generic-dmaengine-pcm.c
406
if (pcm->flags & SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX)
sound/soc/soc-generic-dmaengine-pcm.c
407
pcm->chan[1] = pcm->chan[0];
sound/soc/soc-generic-dmaengine-pcm.c
412
static void dmaengine_pcm_release_chan(struct dmaengine_pcm *pcm)
sound/soc/soc-generic-dmaengine-pcm.c
417
if (!pcm->chan[i])
sound/soc/soc-generic-dmaengine-pcm.c
419
dma_release_channel(pcm->chan[i]);
sound/soc/soc-generic-dmaengine-pcm.c
420
if (pcm->flags & SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX)
sound/soc/soc-generic-dmaengine-pcm.c
439
struct dmaengine_pcm *pcm;
sound/soc/soc-generic-dmaengine-pcm.c
442
pcm = kzalloc_obj(*pcm);
sound/soc/soc-generic-dmaengine-pcm.c
443
if (!pcm)
sound/soc/soc-generic-dmaengine-pcm.c
448
pcm->config = config;
sound/soc/soc-generic-dmaengine-pcm.c
449
pcm->flags = flags;
sound/soc/soc-generic-dmaengine-pcm.c
452
pcm->component.name = config->name;
sound/soc/soc-generic-dmaengine-pcm.c
454
ret = dmaengine_pcm_request_chan_of(pcm, dev, config);
sound/soc/soc-generic-dmaengine-pcm.c
463
ret = snd_soc_component_initialize(&pcm->component, driver, dev);
sound/soc/soc-generic-dmaengine-pcm.c
467
ret = snd_soc_add_component(&pcm->component, NULL, 0);
sound/soc/soc-generic-dmaengine-pcm.c
474
dmaengine_pcm_release_chan(pcm);
sound/soc/soc-generic-dmaengine-pcm.c
475
kfree(pcm);
sound/soc/soc-generic-dmaengine-pcm.c
490
struct dmaengine_pcm *pcm;
sound/soc/soc-generic-dmaengine-pcm.c
496
pcm = soc_component_to_pcm(component);
sound/soc/soc-generic-dmaengine-pcm.c
499
dmaengine_pcm_release_chan(pcm);
sound/soc/soc-generic-dmaengine-pcm.c
500
kfree(pcm);
sound/soc/soc-generic-dmaengine-pcm.c
80
struct dmaengine_pcm *pcm = soc_component_to_pcm(component);
sound/soc/soc-generic-dmaengine-pcm.c
85
if (!pcm->config->prepare_slave_config)
sound/soc/soc-generic-dmaengine-pcm.c
90
ret = pcm->config->prepare_slave_config(substream, params, &slave_config);
sound/soc/soc-pcm.c
1435
if (!fe_substream->pcm->nonatomic && be_substream->pcm->nonatomic)
sound/soc/soc-pcm.c
1440
if (fe_substream->pcm->nonatomic && !be_substream->pcm->nonatomic) {
sound/soc/soc-pcm.c
1442
be_substream->pcm->nonatomic = 1;
sound/soc/soc-pcm.c
1998
const struct snd_soc_pcm_stream *pcm;
sound/soc/soc-pcm.c
2010
pcm = snd_soc_dai_get_pcm_stream(dai, stream);
sound/soc/soc-pcm.c
2012
soc_pcm_hw_update_rate(hw, pcm);
sound/soc/soc-pcm.c
2986
static int soc_create_pcm(struct snd_pcm **pcm,
sound/soc/soc-pcm.c
2999
playback, capture, pcm);
sound/soc/soc-pcm.c
3005
playback, capture, pcm);
sound/soc/soc-pcm.c
3016
capture, pcm);
sound/soc/soc-pcm.c
3031
struct snd_pcm *pcm;
sound/soc/soc-pcm.c
3039
ret = soc_create_pcm(&pcm, rtd, playback, capture);
sound/soc/soc-pcm.c
3053
rtd->pcm = pcm;
sound/soc/soc-pcm.c
3054
pcm->nonatomic = rtd->dai_link->nonatomic;
sound/soc/soc-pcm.c
3055
pcm->private_data = rtd;
sound/soc/soc-pcm.c
3056
pcm->no_device_suspend = true;
sound/soc/soc-pcm.c
3060
pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->private_data = rtd;
sound/soc/soc-pcm.c
3062
pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->private_data = rtd;
sound/soc/soc-pcm.c
3103
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &rtd->ops);
sound/soc/soc-pcm.c
3106
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &rtd->ops);
sound/soc/soc-pcm.c
3121
return be->pcm->streams[stream].substream;
sound/soc/soc-topology-test.c
138
struct snd_soc_tplg_pcm pcm;
sound/soc/soc-topology-test.c
169
.pcm = {
sound/soc/soc-topology.c
1385
struct snd_soc_tplg_pcm *pcm)
sound/soc/soc-topology.c
1398
ret = soc_tplg_check_name(pcm->dai_name);
sound/soc/soc-topology.c
1402
if (pcm->dai_name[0]) {
sound/soc/soc-topology.c
1403
dai_drv->name = devm_kstrdup(tplg->dev, pcm->dai_name, GFP_KERNEL);
sound/soc/soc-topology.c
1409
dai_drv->id = le32_to_cpu(pcm->dai_id);
sound/soc/soc-topology.c
1411
if (pcm->playback) {
sound/soc/soc-topology.c
1413
caps = &pcm->caps[SND_SOC_TPLG_STREAM_PLAYBACK];
sound/soc/soc-topology.c
1419
if (pcm->capture) {
sound/soc/soc-topology.c
1421
caps = &pcm->caps[SND_SOC_TPLG_STREAM_CAPTURE];
sound/soc/soc-topology.c
1427
if (pcm->compress)
sound/soc/soc-topology.c
1431
ret = soc_tplg_dai_load(tplg, dai_drv, pcm, NULL);
sound/soc/soc-topology.c
1487
struct snd_soc_tplg_pcm *pcm)
sound/soc/soc-topology.c
1508
ret = soc_tplg_check_name(pcm->pcm_name);
sound/soc/soc-topology.c
1512
if (pcm->pcm_name[0]) {
sound/soc/soc-topology.c
1513
link->name = devm_kstrdup(tplg->dev, pcm->pcm_name, GFP_KERNEL);
sound/soc/soc-topology.c
1514
link->stream_name = devm_kstrdup(tplg->dev, pcm->pcm_name, GFP_KERNEL);
sound/soc/soc-topology.c
1520
link->id = le32_to_cpu(pcm->pcm_id);
sound/soc/soc-topology.c
1522
ret = soc_tplg_check_name(pcm->dai_name);
sound/soc/soc-topology.c
1526
if (pcm->dai_name[0]) {
sound/soc/soc-topology.c
1527
link->cpus->dai_name = devm_kstrdup(tplg->dev, pcm->dai_name, GFP_KERNEL);
sound/soc/soc-topology.c
1551
link->playback_only = le32_to_cpu(pcm->playback) && !le32_to_cpu(pcm->capture);
sound/soc/soc-topology.c
1552
link->capture_only = !le32_to_cpu(pcm->playback) && le32_to_cpu(pcm->capture);
sound/soc/soc-topology.c
1553
if (pcm->flag_mask)
sound/soc/soc-topology.c
1555
le32_to_cpu(pcm->flag_mask),
sound/soc/soc-topology.c
1556
le32_to_cpu(pcm->flags));
sound/soc/soc-topology.c
1581
struct snd_soc_tplg_pcm *pcm)
sound/soc/soc-topology.c
1585
ret = soc_tplg_dai_create(tplg, pcm);
sound/soc/soc-topology.c
1589
return soc_tplg_fe_link_create(tplg, pcm);
sound/soc/soc-topology.c
1595
struct snd_soc_tplg_pcm *pcm;
sound/soc/soc-topology.c
1604
pcm = (struct snd_soc_tplg_pcm *)tplg->pos;
sound/soc/soc-topology.c
1605
size = le32_to_cpu(pcm->size);
sound/soc/soc-topology.c
1619
pcm = (struct snd_soc_tplg_pcm *)tplg->pos;
sound/soc/soc-topology.c
1620
size = le32_to_cpu(pcm->size);
sound/soc/soc-topology.c
1625
if (size != sizeof(*pcm))
sound/soc/soc-topology.c
1629
ret = soc_tplg_pcm_create(tplg, pcm);
sound/soc/soc-topology.c
1636
tplg->pos += size + le32_to_cpu(pcm->priv.size);
sound/soc/soc-topology.c
286
struct snd_soc_tplg_pcm *pcm, struct snd_soc_dai *dai)
sound/soc/soc-topology.c
290
pcm, dai);
sound/soc/soc-usb.c
108
int snd_soc_usb_update_offload_route(struct device *dev, int card, int pcm,
sound/soc/soc-usb.c
121
ret = ctx->update_offload_route_info(ctx->component, card, pcm,
sound/soc/sof/compress.c
172
struct sof_ipc_pcm_params *pcm;
sound/soc/sof/compress.c
195
if (sizeof(*pcm) + ext_data_size > sdev->ipc->max_payload_size)
sound/soc/sof/compress.c
206
pcm = kzalloc(sizeof(*pcm) + ext_data_size, GFP_KERNEL);
sound/soc/sof/compress.c
207
if (!pcm)
sound/soc/sof/compress.c
220
pcm->params.buffer.pages = PFN_UP(crtd->dma_bytes);
sound/soc/sof/compress.c
221
pcm->hdr.size = sizeof(*pcm) + ext_data_size;
sound/soc/sof/compress.c
222
pcm->hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS;
sound/soc/sof/compress.c
224
pcm->comp_id = spcm->stream[cstream->direction].comp_id;
sound/soc/sof/compress.c
225
pcm->params.hdr.size = sizeof(pcm->params) + ext_data_size;
sound/soc/sof/compress.c
226
pcm->params.buffer.phy_addr = spcm->stream[cstream->direction].page_table.addr;
sound/soc/sof/compress.c
227
pcm->params.buffer.size = crtd->dma_bytes;
sound/soc/sof/compress.c
228
pcm->params.direction = cstream->direction;
sound/soc/sof/compress.c
229
pcm->params.channels = params->codec.ch_out;
sound/soc/sof/compress.c
230
pcm->params.rate = params->codec.sample_rate;
sound/soc/sof/compress.c
231
pcm->params.buffer_fmt = SOF_IPC_BUFFER_INTERLEAVED;
sound/soc/sof/compress.c
232
pcm->params.frame_fmt = SOF_IPC_FRAME_S32_LE;
sound/soc/sof/compress.c
233
pcm->params.sample_container_bytes =
sound/soc/sof/compress.c
235
pcm->params.host_period_bytes = params->buffer.fragment_size;
sound/soc/sof/compress.c
236
pcm->params.ext_data_length = ext_data_size;
sound/soc/sof/compress.c
238
memcpy((u8 *)pcm->params.ext_data, &params->codec, ext_data_size);
sound/soc/sof/compress.c
240
ret = sof_ipc_tx_message(sdev->ipc, pcm, sizeof(*pcm) + ext_data_size,
sound/soc/sof/compress.c
251
le32_to_cpu(spcm->pcm.pcm_id));
sound/soc/sof/compress.c
257
sstream->sample_container_bytes = pcm->params.sample_container_bytes;
sound/soc/sof/compress.c
263
kfree(pcm);
sound/soc/sof/ipc.c
193
if (!ops->pcm) {
sound/soc/sof/ipc3-pcm.c
101
pcm.params.stream_tag = platform_params->stream_tag;
sound/soc/sof/ipc3-pcm.c
104
pcm.params.buffer.phy_addr = platform_params->phy_addr;
sound/soc/sof/ipc3-pcm.c
112
pcm.params.host_period_bytes = 0;
sound/soc/sof/ipc3-pcm.c
114
pcm.params.no_stream_position = 1;
sound/soc/sof/ipc3-pcm.c
118
pcm.params.cont_update_posn = 1;
sound/soc/sof/ipc3-pcm.c
121
pcm.params.stream_tag);
sound/soc/sof/ipc3-pcm.c
124
ret = sof_ipc_tx_message(sdev->ipc, &pcm, sizeof(pcm),
sound/soc/sof/ipc3-pcm.c
129
pcm.params.stream_tag);
sound/soc/sof/ipc3-pcm.c
49
struct sof_ipc_pcm_params pcm;
sound/soc/sof/ipc3-pcm.c
57
memset(&pcm, 0, sizeof(pcm));
sound/soc/sof/ipc3-pcm.c
60
pcm.params.buffer.pages = PFN_UP(runtime->dma_bytes);
sound/soc/sof/ipc3-pcm.c
63
pcm.hdr.size = sizeof(pcm);
sound/soc/sof/ipc3-pcm.c
64
pcm.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS;
sound/soc/sof/ipc3-pcm.c
65
pcm.comp_id = spcm->stream[substream->stream].comp_id;
sound/soc/sof/ipc3-pcm.c
66
pcm.params.hdr.size = sizeof(pcm.params);
sound/soc/sof/ipc3-pcm.c
67
pcm.params.buffer.phy_addr = spcm->stream[substream->stream].page_table.addr;
sound/soc/sof/ipc3-pcm.c
68
pcm.params.buffer.size = runtime->dma_bytes;
sound/soc/sof/ipc3-pcm.c
69
pcm.params.direction = substream->stream;
sound/soc/sof/ipc3-pcm.c
70
pcm.params.sample_valid_bytes = params_width(params) >> 3;
sound/soc/sof/ipc3-pcm.c
71
pcm.params.buffer_fmt = SOF_IPC_BUFFER_INTERLEAVED;
sound/soc/sof/ipc3-pcm.c
72
pcm.params.rate = params_rate(params);
sound/soc/sof/ipc3-pcm.c
73
pcm.params.channels = params_channels(params);
sound/soc/sof/ipc3-pcm.c
74
pcm.params.host_period_bytes = params_period_bytes(params);
sound/soc/sof/ipc3-pcm.c
80
pcm.params.sample_container_bytes = ret >> 3;
sound/soc/sof/ipc3-pcm.c
85
pcm.params.frame_fmt = SOF_IPC_FRAME_S16_LE;
sound/soc/sof/ipc3-pcm.c
88
pcm.params.frame_fmt = SOF_IPC_FRAME_S24_4LE;
sound/soc/sof/ipc3-pcm.c
91
pcm.params.frame_fmt = SOF_IPC_FRAME_S32_LE;
sound/soc/sof/ipc3-pcm.c
94
pcm.params.frame_fmt = SOF_IPC_FRAME_FLOAT;
sound/soc/sof/ipc3-topology.c
1916
struct sof_ipc_pcm_params pcm;
sound/soc/sof/ipc3-topology.c
1930
memset(&pcm, 0, sizeof(pcm));
sound/soc/sof/ipc3-topology.c
1931
pcm.hdr.size = sizeof(pcm);
sound/soc/sof/ipc3-topology.c
1932
pcm.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS;
sound/soc/sof/ipc3-topology.c
1933
pcm.comp_id = swidget->comp_id;
sound/soc/sof/ipc3-topology.c
1934
pcm.params.hdr.size = sizeof(pcm.params);
sound/soc/sof/ipc3-topology.c
1935
pcm.params.direction = dir;
sound/soc/sof/ipc3-topology.c
1936
pcm.params.sample_valid_bytes = params_width(params) >> 3;
sound/soc/sof/ipc3-topology.c
1937
pcm.params.buffer_fmt = SOF_IPC_BUFFER_INTERLEAVED;
sound/soc/sof/ipc3-topology.c
1938
pcm.params.rate = params_rate(params);
sound/soc/sof/ipc3-topology.c
1939
pcm.params.channels = params_channels(params);
sound/soc/sof/ipc3-topology.c
1940
pcm.params.host_period_bytes = params_period_bytes(params);
sound/soc/sof/ipc3-topology.c
1945
pcm.params.frame_fmt = SOF_IPC_FRAME_S16_LE;
sound/soc/sof/ipc3-topology.c
1948
pcm.params.frame_fmt = SOF_IPC_FRAME_S24_4LE;
sound/soc/sof/ipc3-topology.c
1951
pcm.params.frame_fmt = SOF_IPC_FRAME_S32_LE;
sound/soc/sof/ipc3-topology.c
1958
ret = sof_ipc_tx_message_no_reply(sdev->ipc, &pcm, sizeof(pcm));
sound/soc/sof/ipc3.c
1145
.pcm = &ipc3_pcm_ops,
sound/soc/sof/ipc3.c
888
if (spcm->pcm.compress)
sound/soc/sof/ipc4-topology.c
602
unsigned pcm_id = le32_to_cpu(spcm->pcm.pcm_id);
sound/soc/sof/ipc4.c
923
.pcm = &ipc4_pcm_ops,
sound/soc/sof/pcm.c
123
const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm);
sound/soc/sof/pcm.c
214
const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm);
sound/soc/sof/pcm.c
320
const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm);
sound/soc/sof/pcm.c
364
le32_to_cpu(spcm->pcm.pcm_id), dir);
sound/soc/sof/pcm.c
390
const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm);
sound/soc/sof/pcm.c
502
const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm);
sound/soc/sof/pcm.c
557
caps = &spcm->pcm.caps[substream->stream];
sound/soc/sof/pcm.c
642
struct snd_pcm *pcm = rtd->pcm;
sound/soc/sof/pcm.c
655
le32_to_cpu(spcm->pcm.pcm_id), spcm->pcm.pcm_name);
sound/soc/sof/pcm.c
658
if (!spcm->pcm.playback)
sound/soc/sof/pcm.c
661
caps = &spcm->pcm.caps[stream];
sound/soc/sof/pcm.c
663
if (!pcm->streams[stream].substream) {
sound/soc/sof/pcm.c
672
snd_pcm_set_managed_buffer(pcm->streams[stream].substream,
sound/soc/sof/pcm.c
677
if (!strncmp(pcm->id, "HDMI", 4)) {
sound/soc/sof/pcm.c
687
if (sscanf(pcm->id, "HDMI%d", &hdmi_idx) == 1)
sound/soc/sof/pcm.c
688
snprintf(pcm->name, sizeof(pcm->name), "HDMI %d",
sound/soc/sof/pcm.c
691
strscpy(pcm->name, pcm->id, sizeof(pcm->name));
sound/soc/sof/pcm.c
697
if (!spcm->pcm.capture)
sound/soc/sof/pcm.c
700
caps = &spcm->pcm.caps[stream];
sound/soc/sof/pcm.c
702
if (!pcm->streams[stream].substream) {
sound/soc/sof/pcm.c
711
snd_pcm_set_managed_buffer(pcm->streams[stream].substream,
sound/soc/sof/pcm.c
731
const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm);
sound/soc/sof/pcm.c
815
const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm);
sound/soc/sof/sof-audio.c
919
if (strcmp(spcm->pcm.dai_name, name) == 0)
sound/soc/sof/sof-audio.c
923
if (*spcm->pcm.caps[0].name &&
sound/soc/sof/sof-audio.c
924
!strcmp(spcm->pcm.caps[0].name, name))
sound/soc/sof/sof-audio.c
928
if (*spcm->pcm.caps[1].name &&
sound/soc/sof/sof-audio.c
929
!strcmp(spcm->pcm.caps[1].name, name))
sound/soc/sof/sof-audio.h
363
struct snd_soc_tplg_pcm pcm;
sound/soc/sof/sof-audio.h
623
if (le32_to_cpu(spcm->pcm.dai_id) == rtd->dai_link->id)
sound/soc/sof/sof-audio.h
644
le32_to_cpu((__spcm)->pcm.pcm_id), \
sound/soc/sof/sof-audio.h
645
(__spcm)->pcm.pcm_name, __dir, \
sound/soc/sof/sof-audio.h
650
le32_to_cpu((__spcm)->pcm.pcm_id), \
sound/soc/sof/sof-audio.h
651
(__spcm)->pcm.pcm_name, __dir, \
sound/soc/sof/sof-audio.h
656
__func__, le32_to_cpu((__spcm)->pcm.pcm_id), \
sound/soc/sof/sof-audio.h
657
(__spcm)->pcm.pcm_name, __dir, \
sound/soc/sof/sof-priv.h
508
const struct sof_ipc_pcm_ops *pcm;
sound/soc/sof/topology.c
1195
spcm->pcm.caps[dir].name,
sound/soc/sof/topology.c
1747
struct snd_soc_tplg_pcm *pcm, struct snd_soc_dai *dai)
sound/soc/sof/topology.c
1750
const struct sof_ipc_pcm_ops *ipc_pcm_ops = sof_ipc_get_ops(sdev, pcm);
sound/soc/sof/topology.c
1752
struct snd_soc_tplg_private *private = &pcm->priv;
sound/soc/sof/topology.c
1758
if (!pcm)
sound/soc/sof/topology.c
1769
if (pcm->compress)
sound/soc/sof/topology.c
1775
spcm->pcm = *pcm;
sound/soc/sof/topology.c
1776
dev_dbg(scomp->dev, "tplg: load pcm %s\n", pcm->dai_name);
sound/soc/sof/topology.c
1800
if (!spcm->pcm.playback)
sound/soc/sof/topology.c
1805
caps = &spcm->pcm.caps[stream];
sound/soc/sof/topology.c
1829
if (!spcm->pcm.capture)
sound/soc/sof/topology.c
1832
caps = &spcm->pcm.caps[stream];
sound/soc/sof/topology.c
1855
if (spcm->pcm.playback)
sound/soc/sof/topology.c
1865
const struct sof_ipc_pcm_ops *ipc_pcm_ops = sof_ipc_get_ops(sdev, pcm);
sound/soc/sof/topology.c
1869
if (spcm->pcm.playback)
sound/soc/sof/topology.c
1872
if (spcm->pcm.capture)
sound/soc/sprd/sprd-pcm-dma.c
436
struct snd_pcm *pcm = rtd->pcm;
sound/soc/sprd/sprd-pcm-dma.c
443
return snd_pcm_set_fixed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/stm/stm32_adfsdm.c
283
struct snd_pcm *pcm = rtd->pcm;
sound/soc/stm/stm32_adfsdm.c
288
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/soc/stm/stm32_sai_sub.c
1307
knew.device = rtd->pcm->device;
sound/soc/stm/stm32_sai_sub.c
1308
return snd_ctl_add(rtd->pcm->card, snd_ctl_new1(&knew, sai));
sound/soc/tegra/tegra_isomgr_bw.c
25
struct snd_pcm *pcm = substream->pcm;
sound/soc/tegra/tegra_isomgr_bw.c
32
if (!runtime || !pcm)
sound/soc/tegra/tegra_isomgr_bw.c
35
if (pcm->device >= adma_isomgr->max_pcm_device) {
sound/soc/tegra/tegra_isomgr_bw.c
37
pcm->device, adma_isomgr->max_pcm_device);
sound/soc/tegra/tegra_isomgr_bw.c
45
if ((adma_isomgr->bw_per_dev[type][pcm->device] && is_running) ||
sound/soc/tegra/tegra_isomgr_bw.c
46
(!adma_isomgr->bw_per_dev[type][pcm->device] && !is_running))
sound/soc/tegra/tegra_isomgr_bw.c
67
adma_isomgr->bw_per_dev[type][pcm->device];
sound/soc/tegra/tegra_isomgr_bw.c
71
adma_isomgr->bw_per_dev[type][pcm->device] = bandwidth;
sound/soc/tegra/tegra_pcm.c
197
struct snd_pcm *pcm = rtd->pcm;
sound/soc/tegra/tegra_pcm.c
204
return snd_pcm_set_fixed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_WC, dev, size);
sound/soc/uniphier/aio-dma.c
203
struct snd_pcm *pcm = rtd->pcm;
sound/soc/uniphier/aio-dma.c
210
snd_pcm_set_managed_buffer_all(pcm,
sound/soc/ux500/mop500_ab8500.c
231
substream->pcm->name,
sound/soc/ux500/mop500_ab8500.c
232
substream->pcm->id,
sound/soc/xilinx/xlnx_formatter_pcm.c
570
snd_pcm_set_managed_buffer_all(rtd->pcm,
sound/soc/xtensa/xtfpga-i2s.c
472
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
sound/sparc/amd7930.c
325
struct snd_pcm *pcm;
sound/sparc/amd7930.c
725
struct snd_pcm *pcm;
sound/sparc/amd7930.c
732
/* capture count */ 1, &pcm)) < 0)
sound/sparc/amd7930.c
735
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_amd7930_playback_ops);
sound/sparc/amd7930.c
736
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_amd7930_capture_ops);
sound/sparc/amd7930.c
738
pcm->private_data = amd;
sound/sparc/amd7930.c
739
pcm->info_flags = 0;
sound/sparc/amd7930.c
740
strscpy(pcm->name, amd->card->shortname);
sound/sparc/amd7930.c
741
amd->pcm = pcm;
sound/sparc/amd7930.c
743
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
sound/sparc/cs4231.c
1172
struct snd_pcm *pcm;
sound/sparc/cs4231.c
1175
err = snd_pcm_new(card, "CS4231", 0, 1, 1, &pcm);
sound/sparc/cs4231.c
1179
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/sparc/cs4231.c
1181
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/sparc/cs4231.c
1185
pcm->private_data = chip;
sound/sparc/cs4231.c
1186
pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX;
sound/sparc/cs4231.c
1187
strscpy(pcm->name, "CS4231");
sound/sparc/cs4231.c
1189
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
sound/sparc/cs4231.c
1192
chip->pcm = pcm;
sound/sparc/cs4231.c
1467
if (snd_BUG_ON(!chip || !chip->pcm))
sound/sparc/cs4231.c
1470
strscpy(card->mixername, chip->pcm->name);
sound/sparc/cs4231.c
93
struct snd_pcm *pcm;
sound/sparc/dbri.c
2214
struct snd_pcm *pcm;
sound/sparc/dbri.c
2221
/* capture count */ 1, &pcm);
sound/sparc/dbri.c
2225
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_dbri_ops);
sound/sparc/dbri.c
2226
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_dbri_ops);
sound/sparc/dbri.c
2228
pcm->private_data = card->private_data;
sound/sparc/dbri.c
2229
pcm->info_flags = 0;
sound/sparc/dbri.c
2230
strscpy(pcm->name, card->shortname);
sound/sparc/dbri.c
2232
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
sound/spi/at73c213.c
326
struct snd_pcm *pcm;
sound/spi/at73c213.c
330
device, 1, 0, &pcm);
sound/spi/at73c213.c
334
pcm->private_data = chip;
sound/spi/at73c213.c
335
pcm->info_flags = SNDRV_PCM_INFO_BLOCK_TRANSFER;
sound/spi/at73c213.c
336
strscpy(pcm->name, "at73c213");
sound/spi/at73c213.c
337
chip->pcm = pcm;
sound/spi/at73c213.c
339
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &at73c213_playback_ops);
sound/spi/at73c213.c
341
snd_pcm_set_managed_buffer_all(chip->pcm,
sound/spi/at73c213.c
63
struct snd_pcm *pcm;
sound/spi/at73c213.c
688
if (chip == NULL || chip->pcm == NULL)
sound/spi/at73c213.c
693
strscpy(card->mixername, chip->pcm->name);
sound/usb/6fire/chip.c
46
if (chip->pcm)
sound/usb/6fire/chip.c
60
if (chip->pcm)
sound/usb/6fire/chip.h
22
struct pcm_runtime *pcm;
sound/usb/6fire/pcm.c
290
struct pcm_runtime *rt = in_urb->chip->pcm;
sound/usb/6fire/pcm.c
380
struct pcm_runtime *rt = urb->chip->pcm;
sound/usb/6fire/pcm.c
588
struct snd_pcm *pcm;
sound/usb/6fire/pcm.c
621
ret = snd_pcm_new(chip->card, "DMX6FireUSB", 0, 1, 1, &pcm);
sound/usb/6fire/pcm.c
629
pcm->private_data = rt;
sound/usb/6fire/pcm.c
630
strscpy(pcm->name, "DMX 6Fire USB");
sound/usb/6fire/pcm.c
631
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcm_ops);
sound/usb/6fire/pcm.c
632
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pcm_ops);
sound/usb/6fire/pcm.c
633
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
sound/usb/6fire/pcm.c
635
rt->instance = pcm;
sound/usb/6fire/pcm.c
637
chip->pcm = rt;
sound/usb/6fire/pcm.c
643
struct pcm_runtime *rt = chip->pcm;
sound/usb/6fire/pcm.c
665
struct pcm_runtime *rt = chip->pcm;
sound/usb/6fire/pcm.c
669
chip->pcm = NULL;
sound/usb/caiaq/audio.c
775
cdev->n_audio_out, cdev->n_audio_in, &cdev->pcm);
sound/usb/caiaq/audio.c
782
cdev->pcm->private_data = cdev;
sound/usb/caiaq/audio.c
783
strscpy(cdev->pcm->name, cdev->product_name, sizeof(cdev->pcm->name));
sound/usb/caiaq/audio.c
808
snd_pcm_set_ops(cdev->pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/usb/caiaq/audio.c
810
snd_pcm_set_ops(cdev->pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/usb/caiaq/audio.c
812
snd_pcm_set_managed_buffer_all(cdev->pcm, SNDRV_DMA_TYPE_VMALLOC,
sound/usb/caiaq/device.h
111
struct snd_pcm *pcm;
sound/usb/card.h
205
struct snd_pcm *pcm;
sound/usb/hiface/chip.h
24
struct pcm_runtime *pcm;
sound/usb/hiface/pcm.c
305
struct pcm_runtime *rt = out_urb->chip->pcm;
sound/usb/hiface/pcm.c
513
struct pcm_runtime *rt = chip->pcm;
sound/usb/hiface/pcm.c
525
struct pcm_runtime *rt = chip->pcm;
sound/usb/hiface/pcm.c
531
kfree(chip->pcm);
sound/usb/hiface/pcm.c
532
chip->pcm = NULL;
sound/usb/hiface/pcm.c
535
static void hiface_pcm_free(struct snd_pcm *pcm)
sound/usb/hiface/pcm.c
537
struct pcm_runtime *rt = pcm->private_data;
sound/usb/hiface/pcm.c
547
struct snd_pcm *pcm;
sound/usb/hiface/pcm.c
570
ret = snd_pcm_new(chip->card, "USB-SPDIF Audio", 0, 1, 0, &pcm);
sound/usb/hiface/pcm.c
576
pcm->private_data = rt;
sound/usb/hiface/pcm.c
577
pcm->private_free = hiface_pcm_free;
sound/usb/hiface/pcm.c
579
strscpy(pcm->name, "USB-SPDIF Audio", sizeof(pcm->name));
sound/usb/hiface/pcm.c
580
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcm_ops);
sound/usb/hiface/pcm.c
581
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC,
sound/usb/hiface/pcm.c
584
rt->instance = pcm;
sound/usb/hiface/pcm.c
586
chip->pcm = rt;
sound/usb/line6/pcm.c
234
if (s->pcm->card != substream->pcm->card)
sound/usb/line6/pcm.c
467
static void line6_cleanup_pcm(struct snd_pcm *pcm)
sound/usb/line6/pcm.c
469
struct snd_line6_pcm *line6pcm = snd_pcm_chip(pcm);
sound/usb/line6/pcm.c
479
struct snd_pcm *pcm;
sound/usb/line6/pcm.c
486
pcm = *pcm_ret;
sound/usb/line6/pcm.c
487
strscpy(pcm->name, line6->properties->name);
sound/usb/line6/pcm.c
490
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/usb/line6/pcm.c
492
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_line6_capture_ops);
sound/usb/line6/pcm.c
495
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
sound/usb/line6/pcm.c
521
struct snd_pcm *pcm;
sound/usb/line6/pcm.c
527
err = snd_line6_new_pcm(line6, &pcm);
sound/usb/line6/pcm.c
536
line6pcm->pcm = pcm;
sound/usb/line6/pcm.c
548
pcm->private_data = line6pcm;
sound/usb/line6/pcm.c
549
pcm->private_free = line6_cleanup_pcm;
sound/usb/line6/pcm.h
144
struct snd_pcm *pcm;
sound/usb/line6/pcm.h
38
(line6pcm->pcm->streams[stream].substream)
sound/usb/media.c
33
int snd_media_stream_init(struct snd_usb_substream *subs, struct snd_pcm *pcm,
sound/usb/media.c
38
struct device *pcm_dev = pcm->streams[stream].dev;
sound/usb/media.c
68
mctl->media_entity.name = pcm->name;
sound/usb/media.h
56
int snd_media_stream_init(struct snd_usb_substream *subs, struct snd_pcm *pcm,
sound/usb/media.h
67
struct snd_pcm *pcm, int stream)
sound/usb/misc/ua101.c
1255
err = snd_pcm_new(card, name, 0, 1, 1, &ua->pcm);
sound/usb/misc/ua101.c
1258
ua->pcm->private_data = ua;
sound/usb/misc/ua101.c
1259
strscpy(ua->pcm->name, name);
sound/usb/misc/ua101.c
1260
snd_pcm_set_ops(ua->pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_pcm_ops);
sound/usb/misc/ua101.c
1261
snd_pcm_set_ops(ua->pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_pcm_ops);
sound/usb/misc/ua101.c
1262
snd_pcm_set_managed_buffer_all(ua->pcm, SNDRV_DMA_TYPE_VMALLOC,
sound/usb/misc/ua101.c
83
struct snd_pcm *pcm;
sound/usb/pcm.c
1270
ret = snd_media_stream_init(subs, as->pcm, direction);
sound/usb/pcm.c
1812
void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream)
sound/usb/pcm.c
1818
snd_pcm_set_ops(pcm, stream, ops);
sound/usb/pcm.c
1823
struct snd_pcm *pcm = subs->stream->pcm;
sound/usb/pcm.c
1824
struct snd_pcm_substream *s = pcm->streams[subs->direction].substream;
sound/usb/pcm.h
5
void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream);
sound/usb/proc.c
214
snd_iprintf(buffer, "%s : %s\n", chip->card->longname, stream->pcm->name);
sound/usb/qcom/qc_audio_offload.c
1604
if (atomic_read(&chip->shutdown) || !subs->stream || !subs->stream->pcm ||
sound/usb/qcom/qc_audio_offload.c
1760
sdev->ppcm_idx[idx] = as->pcm->device;
sound/usb/stream.c
210
static int add_chmap(struct snd_pcm *pcm, int stream,
sound/usb/stream.c
225
err = snd_pcm_add_chmap_ctls(pcm, stream, NULL, 0, 0, &chmap);
sound/usb/stream.c
510
struct snd_pcm *pcm;
sound/usb/stream.c
535
err = snd_pcm_new_stream(as->pcm, stream, 1);
sound/usb/stream.c
539
return add_chmap(as->pcm, stream, subs);
sound/usb/stream.c
552
&pcm);
sound/usb/stream.c
557
as->pcm = pcm;
sound/usb/stream.c
558
pcm->private_data = as;
sound/usb/stream.c
559
pcm->private_free = snd_usb_audio_pcm_free;
sound/usb/stream.c
560
pcm->info_flags = 0;
sound/usb/stream.c
562
scnprintf(pcm->name, sizeof(pcm->name), "USB Audio #%d",
sound/usb/stream.c
565
strscpy(pcm->name, "USB Audio");
sound/usb/stream.c
582
return add_chmap(pcm, stream, &as->substream[stream]);
sound/usb/stream.c
66
static void snd_usb_audio_pcm_free(struct snd_pcm *pcm)
sound/usb/stream.c
68
struct snd_usb_stream *stream = pcm->private_data;
sound/usb/stream.c
70
stream->pcm = NULL;
sound/usb/stream.c
98
snd_usb_set_pcm_ops(as->pcm, stream);
sound/usb/usx2y/us144mkii.c
312
snd_pcm_suspend_all(tascam->pcm);
sound/usb/usx2y/us144mkii.c
535
err = snd_pcm_new(card, "US144MKII PCM", 0, 1, 1, &tascam->pcm);
sound/usb/usx2y/us144mkii.c
538
tascam->pcm->private_data = tascam;
sound/usb/usx2y/us144mkii.c
539
strscpy(tascam->pcm->name, "US144MKII PCM", sizeof(tascam->pcm->name));
sound/usb/usx2y/us144mkii.c
541
err = tascam_init_pcm(tascam->pcm);
sound/usb/usx2y/us144mkii.h
208
struct snd_pcm *pcm;
sound/usb/usx2y/us144mkii_pcm.c
358
int tascam_init_pcm(struct snd_pcm *pcm)
sound/usb/usx2y/us144mkii_pcm.c
360
struct tascam_card *tascam = pcm->private_data;
sound/usb/usx2y/us144mkii_pcm.c
362
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &tascam_playback_ops);
sound/usb/usx2y/us144mkii_pcm.c
363
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &tascam_capture_ops);
sound/usb/usx2y/us144mkii_pcm.c
365
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
sound/usb/usx2y/us144mkii_pcm.h
82
int tascam_init_pcm(struct snd_pcm *pcm);
sound/usb/usx2y/usbusx2yaudio.c
754
struct snd_card *card = substream->pstr->pcm->card;
sound/usb/usx2y/usbusx2yaudio.c
928
static void snd_usx2y_pcm_private_free(struct snd_pcm *pcm)
sound/usb/usx2y/usbusx2yaudio.c
930
struct snd_usx2y_substream **usx2y_stream = pcm->private_data;
sound/usb/usx2y/usbusx2yaudio.c
938
struct snd_pcm *pcm;
sound/usb/usx2y/usbusx2yaudio.c
958
&pcm);
sound/usb/usx2y/usbusx2yaudio.c
965
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_usx2y_pcm_ops);
sound/usb/usx2y/usbusx2yaudio.c
966
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_usx2y_pcm_ops);
sound/usb/usx2y/usbusx2yaudio.c
968
pcm->private_data = usx2y_substream;
sound/usb/usx2y/usbusx2yaudio.c
969
pcm->private_free = snd_usx2y_pcm_private_free;
sound/usb/usx2y/usbusx2yaudio.c
970
pcm->info_flags = 0;
sound/usb/usx2y/usbusx2yaudio.c
972
sprintf(pcm->name, NAME_ALLCAPS" Audio #%d", usx2y(card)->pcm_devs);
sound/usb/usx2y/usbusx2yaudio.c
975
snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream,
sound/usb/usx2y/usbusx2yaudio.c
981
snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream,
sound/usb/usx2y/usx2yhwdeppcm.c
723
struct snd_pcm *pcm;
sound/usb/usx2y/usx2yhwdeppcm.c
742
err = snd_pcm_new(card, NAME_ALLCAPS" hwdep Audio", 2, 1, 1, &pcm);
sound/usb/usx2y/usx2yhwdeppcm.c
746
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_usx2y_usbpcm_ops);
sound/usb/usx2y/usx2yhwdeppcm.c
747
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_usx2y_usbpcm_ops);
sound/usb/usx2y/usx2yhwdeppcm.c
749
pcm->private_data = usx2y(card)->subs;
sound/usb/usx2y/usx2yhwdeppcm.c
750
pcm->info_flags = 0;
sound/usb/usx2y/usx2yhwdeppcm.c
752
sprintf(pcm->name, NAME_ALLCAPS" hwdep Audio");
sound/usb/usx2y/usx2yhwdeppcm.c
753
snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream,
sound/usb/usx2y/usx2yhwdeppcm.c
757
snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream,
sound/virtio/virtio_chmap.c
121
static int virtsnd_chmap_add_ctls(struct snd_pcm *pcm, int direction,
sound/virtio/virtio_chmap.c
131
return snd_pcm_add_chmap_ctls(pcm, direction, vs->chmaps, max_channels,
sound/virtio/virtio_chmap.c
203
if (!vpcm->pcm)
sound/virtio/virtio_chmap.c
212
rc = virtsnd_chmap_add_ctls(vpcm->pcm, i, vs);
sound/virtio/virtio_pcm.c
430
npbs, ncps, &vpcm->pcm);
sound/virtio/virtio_pcm.c
437
vpcm->pcm->info_flags = 0;
sound/virtio/virtio_pcm.c
438
vpcm->pcm->dev_class = SNDRV_PCM_CLASS_GENERIC;
sound/virtio/virtio_pcm.c
439
vpcm->pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX;
sound/virtio/virtio_pcm.c
440
snprintf(vpcm->pcm->name, sizeof(vpcm->pcm->name),
sound/virtio/virtio_pcm.c
441
VIRTIO_SND_PCM_NAME " %u", vpcm->pcm->device);
sound/virtio/virtio_pcm.c
442
vpcm->pcm->private_data = vpcm;
sound/virtio/virtio_pcm.c
443
vpcm->pcm->nonatomic = true;
sound/virtio/virtio_pcm.c
477
struct snd_pcm_str *ks = &vpcm->pcm->streams[i];
sound/virtio/virtio_pcm.c
486
snd_pcm_set_ops(vpcm->pcm, i, &virtsnd_pcm_ops[i]);
sound/virtio/virtio_pcm.c
489
snd_pcm_set_managed_buffer_all(vpcm->pcm,
sound/virtio/virtio_pcm.h
90
struct snd_pcm *pcm;
sound/x86/intel_hdmi_audio.c
1572
struct snd_pcm *pcm)
sound/x86/intel_hdmi_audio.c
1578
"HDMI/DP,pcm=%d", pcm->device);
sound/x86/intel_hdmi_audio.c
1642
struct snd_pcm *pcm;
sound/x86/intel_hdmi_audio.c
1736
MAX_CAP_STREAMS, &pcm);
sound/x86/intel_hdmi_audio.c
1741
pcm->private_data = ctx;
sound/x86/intel_hdmi_audio.c
1742
pcm->info_flags = 0;
sound/x86/intel_hdmi_audio.c
1743
strscpy(pcm->name, card->shortname, sizeof(pcm->name));
sound/x86/intel_hdmi_audio.c
1745
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &had_pcm_ops);
sound/x86/intel_hdmi_audio.c
1750
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_WC,
sound/x86/intel_hdmi_audio.c
1762
kctl->id.device = pcm->device;
sound/x86/intel_hdmi_audio.c
1770
ret = had_register_chmap_ctls(ctx, pcm);
sound/x86/intel_hdmi_audio.c
1774
ret = had_create_jack(ctx, pcm);
sound/x86/intel_hdmi_audio.c
564
struct snd_pcm *pcm)
sound/x86/intel_hdmi_audio.c
568
err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/xen/xen_snd_front_alsa.c
51
struct snd_pcm *pcm;
sound/xen/xen_snd_front_alsa.c
688
struct snd_pcm *pcm;
sound/xen/xen_snd_front_alsa.c
745
&pcm);
sound/xen/xen_snd_front_alsa.c
749
pcm->private_data = pcm_instance_info;
sound/xen/xen_snd_front_alsa.c
750
pcm->info_flags = 0;
sound/xen/xen_snd_front_alsa.c
752
pcm->nonatomic = true;
sound/xen/xen_snd_front_alsa.c
753
strscpy(pcm->name, "Virtual card PCM", sizeof(pcm->name));
sound/xen/xen_snd_front_alsa.c
756
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
sound/xen/xen_snd_front_alsa.c
760
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
sound/xen/xen_snd_front_alsa.c
763
pcm_instance_info->pcm = pcm;
tools/testing/selftests/alsa/pcm-test.c
554
void run_time_tests(struct pcm_data *pcm, enum test_class class,
tools/testing/selftests/alsa/pcm-test.c
574
test_pcm_time(pcm, class, test_name, pcm_cfg);
tools/testing/selftests/alsa/pcm-test.c
583
struct pcm_data *pcm;
tools/testing/selftests/alsa/pcm-test.c
585
for (pcm = pcm_list; pcm != NULL; pcm = pcm->next) {
tools/testing/selftests/alsa/pcm-test.c
586
if (pcm->card != card->card)
tools/testing/selftests/alsa/pcm-test.c
589
run_time_tests(pcm, TEST_CLASS_DEFAULT, default_pcm_config);
tools/testing/selftests/alsa/pcm-test.c
590
run_time_tests(pcm, TEST_CLASS_SYSTEM, pcm->pcm_config);
tools/testing/selftests/alsa/pcm-test.c
600
struct pcm_data *pcm;
tools/testing/selftests/alsa/pcm-test.c
623
for (pcm = pcm_list; pcm != NULL; pcm = pcm->next) {
tools/testing/selftests/alsa/pcm-test.c
625
cfg = pcm->pcm_config;
tools/testing/selftests/alsa/pcm-test.c
641
for (pcm = pcm_missing; pcm != NULL; pcm = pcm->next) {
tools/testing/selftests/alsa/pcm-test.c
643
pcm->card_name, pcm->device, pcm->subdevice,
tools/testing/selftests/alsa/pcm-test.c
644
snd_pcm_stream_name(pcm->stream));