pcm 48 arch/mips/include/asm/octeon/cvmx-coremask.h static inline bool cvmx_coremask_is_core_set(const struct cvmx_coremask *pcm, pcm 56 arch/mips/include/asm/octeon/cvmx-coremask.h return (pcm->coremask_bitmap[i] & ((u64)1 << n)) != 0; pcm 71 arch/mips/include/asm/octeon/cvmx-coremask.h static inline void cvmx_coremask_set64(struct cvmx_coremask *pcm, pcm 74 arch/mips/include/asm/octeon/cvmx-coremask.h pcm->coremask_bitmap[0] = coremask_64; pcm 80 arch/mips/include/asm/octeon/cvmx-coremask.h static inline void cvmx_coremask_clear_core(struct cvmx_coremask *pcm, int core) pcm 86 arch/mips/include/asm/octeon/cvmx-coremask.h pcm->coremask_bitmap[i] &= ~(1ull << n); pcm 370 arch/x86/include/asm/io.h enum page_cache_mode pcm); pcm 18 arch/x86/include/asm/pat.h enum page_cache_mode pcm); pcm 21 arch/x86/include/asm/pat.h enum page_cache_mode *pcm); pcm 653 arch/x86/include/asm/pgtable.h enum page_cache_mode pcm, pcm 670 arch/x86/include/asm/pgtable.h if ((pcm == _PAGE_CACHE_MODE_UC_MINUS && pcm 672 arch/x86/include/asm/pgtable.h (pcm == _PAGE_CACHE_MODE_WC && pcm 674 arch/x86/include/asm/pgtable.h (pcm == _PAGE_CACHE_MODE_WT && pcm 676 arch/x86/include/asm/pgtable.h (pcm == _PAGE_CACHE_MODE_WT && pcm 467 arch/x86/include/asm/pgtable_types.h static inline unsigned long cachemode2protval(enum page_cache_mode pcm) pcm 469 arch/x86/include/asm/pgtable_types.h if (likely(pcm == 0)) pcm 471 arch/x86/include/asm/pgtable_types.h return __cachemode2pte_tbl[pcm]; pcm 473 arch/x86/include/asm/pgtable_types.h static inline pgprot_t cachemode2pgprot(enum page_cache_mode pcm) pcm 475 arch/x86/include/asm/pgtable_types.h return __pgprot(cachemode2protval(pcm)); pcm 23 arch/x86/mm/iomap_32.c enum page_cache_mode pcm = _PAGE_CACHE_MODE_WC; pcm 29 arch/x86/mm/iomap_32.c ret = io_reserve_memtype(base, base + size, &pcm); pcm 33 arch/x86/mm/iomap_32.c *prot = __pgprot(__PAGE_KERNEL | cachemode2protval(pcm)); pcm 44 arch/x86/mm/ioremap.c enum page_cache_mode pcm) pcm 49 arch/x86/mm/ioremap.c switch (pcm) { pcm 177 arch/x86/mm/ioremap.c enum page_cache_mode pcm, void *caller, bool encrypted) pcm 221 arch/x86/mm/ioremap.c pcm, &new_pcm); pcm 227 arch/x86/mm/ioremap.c if (pcm != new_pcm) { pcm 228 arch/x86/mm/ioremap.c if (!is_new_memtype_allowed(phys_addr, size, pcm, new_pcm)) { pcm 233 arch/x86/mm/ioremap.c pcm, new_pcm); pcm 236 arch/x86/mm/ioremap.c pcm = new_pcm; pcm 248 arch/x86/mm/ioremap.c switch (pcm) { pcm 279 arch/x86/mm/ioremap.c if (kernel_map_sync_memtype(phys_addr, size, pcm)) pcm 334 arch/x86/mm/ioremap.c enum page_cache_mode pcm = _PAGE_CACHE_MODE_UC_MINUS; pcm 336 arch/x86/mm/ioremap.c return __ioremap_caller(phys_addr, size, pcm, pcm 367 arch/x86/mm/ioremap.c enum page_cache_mode pcm = _PAGE_CACHE_MODE_UC; pcm 369 arch/x86/mm/ioremap.c return __ioremap_caller(phys_addr, size, pcm, pcm 828 arch/x86/mm/pat.c enum page_cache_mode pcm = _PAGE_CACHE_MODE_WB; pcm 834 arch/x86/mm/pat.c pcm = _PAGE_CACHE_MODE_UC_MINUS; pcm 837 arch/x86/mm/pat.c cachemode2protval(pcm)); pcm 846 arch/x86/mm/pat.c enum page_cache_mode pcm) pcm 864 arch/x86/mm/pat.c if (ioremap_change_attr((unsigned long)__va(base), id_sz, pcm) < 0) { pcm 867 arch/x86/mm/pat.c cattr_name(pcm), pcm 885 arch/x86/mm/pat.c enum page_cache_mode pcm = want_pcm; pcm 898 arch/x86/mm/pat.c pcm = lookup_memtype(paddr); pcm 899 arch/x86/mm/pat.c if (want_pcm != pcm) { pcm 905 arch/x86/mm/pat.c cattr_name(pcm)); pcm 908 arch/x86/mm/pat.c cachemode2protval(pcm)); pcm 913 arch/x86/mm/pat.c ret = reserve_memtype(paddr, paddr + size, want_pcm, &pcm); pcm 917 arch/x86/mm/pat.c if (pcm != want_pcm) { pcm 919 arch/x86/mm/pat.c !is_new_memtype_allowed(paddr, size, want_pcm, pcm)) { pcm 926 arch/x86/mm/pat.c cattr_name(pcm)); pcm 935 arch/x86/mm/pat.c cachemode2protval(pcm)); pcm 938 arch/x86/mm/pat.c if (kernel_map_sync_memtype(paddr, size, pcm) < 0) { pcm 998 arch/x86/mm/pat.c enum page_cache_mode pcm; pcm 1018 arch/x86/mm/pat.c pcm = lookup_memtype(paddr); pcm 1024 arch/x86/mm/pat.c if (pcm != lookup_memtype(paddr)) pcm 1029 arch/x86/mm/pat.c cachemode2protval(pcm)); pcm 1036 arch/x86/mm/pat.c enum page_cache_mode pcm; pcm 1042 arch/x86/mm/pat.c pcm = lookup_memtype(pfn_t_to_phys(pfn)); pcm 1044 arch/x86/mm/pat.c cachemode2protval(pcm)); pcm 18 arch/x86/mm/pat_internal.h static inline char *cattr_name(enum page_cache_mode pcm) pcm 20 arch/x86/mm/pat_internal.h switch (pcm) { pcm 118 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c struct snd_pcm *pcm; pcm 523 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c struct snd_pcm *pcm; pcm 554 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c ret = snd_pcm_new(card, "DW HDMI", 0, 1, 0, &pcm); pcm 558 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c dw->pcm = pcm; pcm 559 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c pcm->private_data = dw; pcm 560 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c strlcpy(pcm->name, DRIVER_NAME, sizeof(pcm->name)); pcm 561 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_dw_hdmi_ops); pcm 567 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 135 drivers/gpu/drm/i2c/ch7006_drv.c | bitf(CH7006_CLKMODE_PCM, params->pcm); pcm 17 drivers/gpu/drm/tegra/hda.c fmt->pcm = false; pcm 19 drivers/gpu/drm/tegra/hda.c fmt->pcm = true; pcm 15 drivers/gpu/drm/tegra/hda.h bool pcm; pcm 142 drivers/isdn/hardware/mISDN/hfc_multi.h int pcm; /* id of pcm bus */ pcm 204 drivers/isdn/hardware/mISDN/hfcmulti.c static int pcm[MAX_CARDS]; pcm 233 drivers/isdn/hardware/mISDN/hfcmulti.c module_param_array(pcm, int, NULL, S_IRUGO | S_IWUSR); pcm 1459 drivers/isdn/hardware/mISDN/hfcmulti.c if (hc->pcm) pcm 1461 drivers/isdn/hardware/mISDN/hfcmulti.c hc->pcm); pcm 1467 drivers/isdn/hardware/mISDN/hfcmulti.c hc->pcm = PCM_cnt; pcm 1469 drivers/isdn/hardware/mISDN/hfcmulti.c "(auto selected)\n", hc->pcm); pcm 3601 drivers/isdn/hardware/mISDN/hfcmulti.c features->pcm_id = hc->pcm; pcm 5028 drivers/isdn/hardware/mISDN/hfcmulti.c hc->pcm = pcm[HFC_cnt]; pcm 514 drivers/media/pci/cx23885/cx23885-alsa.c struct snd_pcm *pcm; pcm 516 drivers/media/pci/cx23885/cx23885-alsa.c err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); pcm 519 drivers/media/pci/cx23885/cx23885-alsa.c pcm->private_data = chip; pcm 520 drivers/media/pci/cx23885/cx23885-alsa.c strscpy(pcm->name, name, sizeof(pcm->name)); pcm 521 drivers/media/pci/cx23885/cx23885-alsa.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cx23885_pcm_ops); pcm 658 drivers/media/pci/cx25821/cx25821-alsa.c struct snd_pcm *pcm; pcm 661 drivers/media/pci/cx25821/cx25821-alsa.c err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); pcm 666 drivers/media/pci/cx25821/cx25821-alsa.c pcm->private_data = chip; pcm 667 drivers/media/pci/cx25821/cx25821-alsa.c pcm->info_flags = 0; pcm 668 drivers/media/pci/cx25821/cx25821-alsa.c strscpy(pcm->name, name, sizeof(pcm->name)); pcm 669 drivers/media/pci/cx25821/cx25821-alsa.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cx25821_pcm_ops); pcm 604 drivers/media/pci/cx88/cx88-alsa.c struct snd_pcm *pcm; pcm 606 drivers/media/pci/cx88/cx88-alsa.c err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); pcm 609 drivers/media/pci/cx88/cx88-alsa.c pcm->private_data = chip; pcm 610 drivers/media/pci/cx88/cx88-alsa.c strscpy(pcm->name, name, sizeof(pcm->name)); pcm 611 drivers/media/pci/cx88/cx88-alsa.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cx88_pcm_ops); pcm 588 drivers/media/pci/ngene/ngene.h struct snd_pcm *pcm; pcm 236 drivers/media/pci/saa7134/saa7134-alsa.c snd_card_saa7134_pcm_t *pcm = runtime->private_data; pcm 237 drivers/media/pci/saa7134/saa7134-alsa.c struct saa7134_dev *dev=pcm->dev; pcm 503 drivers/media/pci/saa7134/saa7134-alsa.c snd_card_saa7134_pcm_t *pcm = runtime->private_data; pcm 505 drivers/media/pci/saa7134/saa7134-alsa.c pcm->dev->dmasound.substream = substream; pcm 593 drivers/media/pci/saa7134/saa7134-alsa.c snd_card_saa7134_pcm_t *pcm = runtime->private_data; pcm 594 drivers/media/pci/saa7134/saa7134-alsa.c struct saa7134_dev *dev=pcm->dev; pcm 645 drivers/media/pci/saa7134/saa7134-alsa.c snd_card_saa7134_pcm_t *pcm = runtime->private_data; pcm 647 drivers/media/pci/saa7134/saa7134-alsa.c kfree(pcm); pcm 796 drivers/media/pci/saa7134/saa7134-alsa.c snd_card_saa7134_pcm_t *pcm; pcm 818 drivers/media/pci/saa7134/saa7134-alsa.c pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); pcm 819 drivers/media/pci/saa7134/saa7134-alsa.c if (pcm == NULL) pcm 822 drivers/media/pci/saa7134/saa7134-alsa.c pcm->dev=saa7134->dev; pcm 824 drivers/media/pci/saa7134/saa7134-alsa.c spin_lock_init(&pcm->lock); pcm 826 drivers/media/pci/saa7134/saa7134-alsa.c pcm->substream = substream; pcm 827 drivers/media/pci/saa7134/saa7134-alsa.c runtime->private_data = pcm; pcm 887 drivers/media/pci/saa7134/saa7134-alsa.c struct snd_pcm *pcm; pcm 890 drivers/media/pci/saa7134/saa7134-alsa.c if ((err = snd_pcm_new(saa7134->card, "SAA7134 PCM", device, 0, 1, &pcm)) < 0) pcm 892 drivers/media/pci/saa7134/saa7134-alsa.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_card_saa7134_capture_ops); pcm 893 drivers/media/pci/saa7134/saa7134-alsa.c pcm->private_data = saa7134; pcm 894 drivers/media/pci/saa7134/saa7134-alsa.c pcm->info_flags = 0; pcm 895 drivers/media/pci/saa7134/saa7134-alsa.c strscpy(pcm->name, "SAA7134 PCM", sizeof(pcm->name)); pcm 333 drivers/media/pci/solo6x10/solo6x10-g723.c struct snd_pcm *pcm; pcm 339 drivers/media/pci/solo6x10/solo6x10-g723.c &pcm); pcm 343 drivers/media/pci/solo6x10/solo6x10-g723.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 346 drivers/media/pci/solo6x10/solo6x10-g723.c snd_pcm_chip(pcm) = solo_dev; pcm 347 drivers/media/pci/solo6x10/solo6x10-g723.c pcm->info_flags = 0; pcm 348 drivers/media/pci/solo6x10/solo6x10-g723.c strscpy(pcm->name, card->shortname, sizeof(pcm->name)); pcm 350 drivers/media/pci/solo6x10/solo6x10-g723.c for (i = 0, ss = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; pcm 354 drivers/media/pci/solo6x10/solo6x10-g723.c snd_pcm_lib_preallocate_pages_for_all(pcm, pcm 360 drivers/media/pci/solo6x10/solo6x10-g723.c solo_dev->snd_pcm = pcm; pcm 283 drivers/media/pci/tw686x/tw686x-audio.c struct snd_pcm *pcm; pcm 288 drivers/media/pci/tw686x/tw686x-audio.c err = snd_pcm_new(card, card->driver, 0, 0, max_channels(dev), &pcm); pcm 292 drivers/media/pci/tw686x/tw686x-audio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &tw686x_pcm_ops); pcm 293 drivers/media/pci/tw686x/tw686x-audio.c snd_pcm_chip(pcm) = dev; pcm 294 drivers/media/pci/tw686x/tw686x-audio.c pcm->info_flags = 0; pcm 295 drivers/media/pci/tw686x/tw686x-audio.c strscpy(pcm->name, "tw686x PCM", sizeof(pcm->name)); pcm 297 drivers/media/pci/tw686x/tw686x-audio.c for (i = 0, ss = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; pcm 301 drivers/media/pci/tw686x/tw686x-audio.c snd_pcm_lib_preallocate_pages_for_all(pcm, pcm 641 drivers/media/usb/cx231xx/cx231xx-audio.c struct snd_pcm *pcm; pcm 664 drivers/media/usb/cx231xx/cx231xx-audio.c err = snd_pcm_new(card, "Cx231xx Audio", 0, 0, 1, &pcm); pcm 668 drivers/media/usb/cx231xx/cx231xx-audio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 670 drivers/media/usb/cx231xx/cx231xx-audio.c pcm->info_flags = 0; pcm 671 drivers/media/usb/cx231xx/cx231xx-audio.c pcm->private_data = dev; pcm 672 drivers/media/usb/cx231xx/cx231xx-audio.c strscpy(pcm->name, "Conexant cx231xx Capture", sizeof(pcm->name)); pcm 903 drivers/media/usb/em28xx/em28xx-audio.c struct snd_pcm *pcm; pcm 935 drivers/media/usb/em28xx/em28xx-audio.c err = snd_pcm_new(card, "Em28xx Audio", 0, 0, 1, &pcm); pcm 939 drivers/media/usb/em28xx/em28xx-audio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_em28xx_pcm_capture); pcm 940 drivers/media/usb/em28xx/em28xx-audio.c pcm->info_flags = 0; pcm 941 drivers/media/usb/em28xx/em28xx-audio.c pcm->private_data = dev; pcm 942 drivers/media/usb/em28xx/em28xx-audio.c strscpy(pcm->name, "Empia 28xx Capture", sizeof(pcm->name)); pcm 38 drivers/media/usb/go7007/snd-go7007.c struct snd_pcm *pcm; pcm 249 drivers/media/usb/go7007/snd-go7007.c ret = snd_pcm_new(gosnd->card, "go7007", 0, 0, 1, &gosnd->pcm); pcm 260 drivers/media/usb/go7007/snd-go7007.c gosnd->pcm->private_data = go; pcm 261 drivers/media/usb/go7007/snd-go7007.c snd_pcm_set_ops(gosnd->pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 415 drivers/media/usb/tm6000/tm6000-alsa.c struct snd_pcm *pcm; pcm 453 drivers/media/usb/tm6000/tm6000-alsa.c rc = snd_pcm_new(card, "TM6000 Audio", 0, 0, 1, &pcm); pcm 457 drivers/media/usb/tm6000/tm6000-alsa.c pcm->info_flags = 0; pcm 458 drivers/media/usb/tm6000/tm6000-alsa.c pcm->private_data = chip; pcm 459 drivers/media/usb/tm6000/tm6000-alsa.c strscpy(pcm->name, "Trident TM5600/60x0", sizeof(pcm->name)); pcm 461 drivers/media/usb/tm6000/tm6000-alsa.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_tm6000_pcm_ops); pcm 351 drivers/media/usb/usbtv/usbtv-audio.c struct snd_pcm *pcm; pcm 371 drivers/media/usb/usbtv/usbtv-audio.c rv = snd_pcm_new(card, "USBTV Audio", 0, 0, 1, &pcm); pcm 375 drivers/media/usb/usbtv/usbtv-audio.c strscpy(pcm->name, "USBTV Audio Input", sizeof(pcm->name)); pcm 376 drivers/media/usb/usbtv/usbtv-audio.c pcm->info_flags = 0; pcm 377 drivers/media/usb/usbtv/usbtv-audio.c pcm->private_data = usbtv; pcm 379 drivers/media/usb/usbtv/usbtv-audio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_usbtv_pcm_ops); pcm 380 drivers/media/usb/usbtv/usbtv-audio.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, pcm 500 drivers/net/fddi/skfp/h/cmtdef.h void pcm(struct s_smc *smc, const int np, int event); pcm 101 drivers/net/fddi/skfp/queue.c pcm(smc,class - EVENT_PCMA,(int)ev->event) ; pcm 109 drivers/net/fddi/skfp/smtinit.c pcm(smc,p,0) ; /* PCM A state machine */ pcm 784 drivers/net/wireless/broadcom/b43/b43.h struct b43_firmware_file pcm; pcm 2158 drivers/net/wireless/broadcom/b43/main.c b43_do_release_fw(&dev->fw.pcm); pcm 2381 drivers/net/wireless/broadcom/b43/main.c err = b43_do_request_fw(ctx, filename, &fw->pcm, false); pcm 2634 drivers/net/wireless/broadcom/b43/main.c if (dev->fw.pcm.data) { pcm 2636 drivers/net/wireless/broadcom/b43/main.c data = (__be32 *) (dev->fw.pcm.data->data + hdr_len); pcm 2637 drivers/net/wireless/broadcom/b43/main.c len = (dev->fw.pcm.data->size - hdr_len) / sizeof(__be32); pcm 646 drivers/net/wireless/broadcom/b43legacy/b43legacy.h const struct firmware *pcm; pcm 1470 drivers/net/wireless/broadcom/b43legacy/main.c release_firmware(dev->fw.pcm); pcm 1471 drivers/net/wireless/broadcom/b43legacy/main.c dev->fw.pcm = NULL; pcm 1581 drivers/net/wireless/broadcom/b43legacy/main.c if (!fw->pcm) { pcm 1586 drivers/net/wireless/broadcom/b43legacy/main.c err = do_request_fw(dev, filename, &fw->pcm, false); pcm 1690 drivers/net/wireless/broadcom/b43legacy/main.c if (dev->fw.pcm) { pcm 1692 drivers/net/wireless/broadcom/b43legacy/main.c data = (__be32 *) (dev->fw.pcm->data + hdr_len); pcm 1693 drivers/net/wireless/broadcom/b43legacy/main.c len = (dev->fw.pcm->size - hdr_len) / sizeof(__be32); pcm 763 drivers/pinctrl/qcom/pinctrl-msm8660.c FUNCTION(pcm), pcm 892 drivers/pinctrl/qcom/pinctrl-msm8660.c PINGROUP(111, pcm, _, _, _, _, _, _), pcm 893 drivers/pinctrl/qcom/pinctrl-msm8660.c PINGROUP(112, pcm, _, _, _, _, _, _), pcm 894 drivers/pinctrl/qcom/pinctrl-msm8660.c PINGROUP(113, pcm, _, _, _, _, _, _), pcm 895 drivers/pinctrl/qcom/pinctrl-msm8660.c PINGROUP(114, pcm, _, _, _, _, _, _), pcm 843 drivers/soundwire/cadence_master.c cdns->pcm.num_bd = config.pcm_bd; pcm 844 drivers/soundwire/cadence_master.c cdns->pcm.num_in = config.pcm_in; pcm 845 drivers/soundwire/cadence_master.c cdns->pcm.num_out = config.pcm_out; pcm 851 drivers/soundwire/cadence_master.c stream = &cdns->pcm; pcm 1153 drivers/soundwire/cadence_master.c void *stream, bool pcm, int direction) pcm 1162 drivers/soundwire/cadence_master.c if (pcm) pcm 142 drivers/soundwire/cadence_master.h struct sdw_cdns_streams pcm; pcm 200 drivers/soundwire/cadence_master.h void *stream, bool pcm, int direction); pcm 404 drivers/soundwire/intel.c intel_pdi_get_ch_cap(struct sdw_intel *sdw, unsigned int pdi_num, bool pcm) pcm 410 drivers/soundwire/intel.c if (pcm) { pcm 437 drivers/soundwire/intel.c unsigned int *num_ch, bool pcm) pcm 442 drivers/soundwire/intel.c pdi->ch_count = intel_pdi_get_ch_cap(sdw, pdi->num, pcm); pcm 452 drivers/soundwire/intel.c struct sdw_cdns_streams *stream, bool pcm) pcm 455 drivers/soundwire/intel.c &stream->num_ch_bd, pcm); pcm 458 drivers/soundwire/intel.c &stream->num_ch_in, pcm); pcm 461 drivers/soundwire/intel.c &stream->num_ch_out, pcm); pcm 469 drivers/soundwire/intel.c intel_pdi_stream_ch_update(sdw, &sdw->cdns.pcm, true); pcm 613 drivers/soundwire/intel.c u32 ch, u32 dir, bool pcm) pcm 635 drivers/soundwire/intel.c if (pcm) { pcm 636 drivers/soundwire/intel.c ret = sdw_cdns_alloc_stream(cdns, &cdns->pcm, port, ch, dir); pcm 682 drivers/soundwire/intel.c bool pcm = true; pcm 697 drivers/soundwire/intel.c pcm = false; pcm 699 drivers/soundwire/intel.c dma->nr_ports = sdw_cdns_get_stream(cdns, &cdns->pcm, ch, dir); pcm 712 drivers/soundwire/intel.c dma->port[i] = intel_alloc_port(sdw, ch, dir, pcm); pcm 836 drivers/soundwire/intel.c u32 num, u32 off, u32 max_ch, bool pcm) pcm 883 drivers/soundwire/intel.c if (pcm) pcm 900 drivers/soundwire/intel.c num_dai = cdns->pcm.num_pdi + cdns->pdm.num_pdi; pcm 907 drivers/soundwire/intel.c stream = &cdns->pcm; pcm 909 drivers/soundwire/intel.c ret = intel_create_dai(cdns, dais, INTEL_PDI_IN, cdns->pcm.num_in, pcm 914 drivers/soundwire/intel.c off += cdns->pcm.num_in; pcm 915 drivers/soundwire/intel.c ret = intel_create_dai(cdns, dais, INTEL_PDI_OUT, cdns->pcm.num_out, pcm 920 drivers/soundwire/intel.c off += cdns->pcm.num_out; pcm 921 drivers/soundwire/intel.c ret = intel_create_dai(cdns, dais, INTEL_PDI_BD, cdns->pcm.num_bd, pcm 928 drivers/soundwire/intel.c off += cdns->pcm.num_bd; pcm 579 drivers/staging/most/sound/sound.c struct snd_pcm *pcm; pcm 658 drivers/staging/most/sound/sound.c playback_count, capture_count, &pcm); pcm 663 drivers/staging/most/sound/sound.c pcm->private_data = channel; pcm 664 drivers/staging/most/sound/sound.c strscpy(pcm->name, device_name, sizeof(pcm->name)); pcm 665 drivers/staging/most/sound/sound.c snd_pcm_set_ops(pcm, direction, &pcm_ops); pcm 345 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct snd_pcm *pcm; pcm 348 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c err = snd_pcm_new(chip->card, name, idx, numchannels, 0, &pcm); pcm 352 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c pcm->private_data = chip; pcm 353 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c pcm->nonatomic = true; pcm 354 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c strcpy(pcm->name, name); pcm 361 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 365 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 369 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c chip->pcm_spdif = pcm; pcm 371 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c chip->pcm = pcm; pcm 53 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h struct snd_pcm *pcm; pcm 243 drivers/usb/dwc3/trace.h int pcm = ((__entry->size >> 24) & 3) + 1; pcm 247 drivers/usb/dwc3/trace.h switch (pcm) { pcm 56 drivers/usb/gadget/function/u_audio.c struct snd_pcm *pcm; pcm 497 drivers/usb/gadget/function/u_audio.c struct snd_pcm *pcm; pcm 572 drivers/usb/gadget/function/u_audio.c p_chmask ? 1 : 0, c_chmask ? 1 : 0, &pcm); pcm 576 drivers/usb/gadget/function/u_audio.c strlcpy(pcm->name, pcm_name, sizeof(pcm->name)); pcm 577 drivers/usb/gadget/function/u_audio.c pcm->private_data = uac; pcm 578 drivers/usb/gadget/function/u_audio.c uac->pcm = pcm; pcm 580 drivers/usb/gadget/function/u_audio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &uac_pcm_ops); pcm 581 drivers/usb/gadget/function/u_audio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &uac_pcm_ops); pcm 587 drivers/usb/gadget/function/u_audio.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, pcm 63 include/drm/i2c/ch7006.h int xcm, pcm; pcm 403 include/sound/ac97_codec.h int snd_ac97_pcm_open(struct ac97_pcm *pcm, unsigned int rate, pcm 405 include/sound/ac97_codec.h int snd_ac97_pcm_close(struct ac97_pcm *pcm); pcm 130 include/sound/ad1816a.h struct snd_pcm *pcm; pcm 1491 include/sound/emu10k1.h pcm: 1, pcm 1614 include/sound/emu10k1.h struct snd_emu10k1_fx8010_pcm pcm[8]; pcm 1725 include/sound/emu10k1.h struct snd_pcm *pcm; pcm 79 include/sound/emu8000.h struct snd_pcm *pcm; /* pcm on emu8000 wavetable */ pcm 33 include/sound/es1688.h struct snd_pcm *pcm; pcm 237 include/sound/gus.h pcm: 1, pcm 413 include/sound/gus.h struct snd_pcm *pcm; pcm 77 include/sound/hda_chmap.h int snd_hdac_add_chmap_ctls(struct snd_pcm *pcm, int pcm_idx, pcm 167 include/sound/hda_codec.h struct snd_pcm *pcm; /* assigned PCM instance */ pcm 421 include/sound/hda_codec.h static inline void snd_hda_codec_pcm_get(struct hda_pcm *pcm) pcm 423 include/sound/hda_codec.h kref_get(&pcm->kref); pcm 425 include/sound/hda_codec.h void snd_hda_codec_pcm_put(struct hda_pcm *pcm); pcm 21 include/sound/pcm.h #define snd_pcm_chip(pcm) ((pcm)->private_data) pcm 439 include/sound/pcm.h struct snd_pcm *pcm; pcm 485 include/sound/pcm.h struct snd_pcm *pcm; pcm 517 include/sound/pcm.h void (*private_free) (struct snd_pcm *pcm); pcm 538 include/sound/pcm.h int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count); pcm 542 include/sound/pcm.h int (*n_register) (struct snd_pcm * pcm); pcm 543 include/sound/pcm.h int (*n_disconnect) (struct snd_pcm * pcm); pcm 544 include/sound/pcm.h int (*n_unregister) (struct snd_pcm * pcm); pcm 564 include/sound/pcm.h int snd_pcm_suspend_all(struct snd_pcm *pcm); pcm 566 include/sound/pcm.h static inline int snd_pcm_suspend_all(struct snd_pcm *pcm) pcm 572 include/sound/pcm.h int snd_pcm_open_substream(struct snd_pcm *pcm, int stream, struct file *file, pcm 575 include/sound/pcm.h int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, struct file *file, pcm 1054 include/sound/pcm.h void snd_pcm_set_ops(struct snd_pcm * pcm, int direction, pcm 1179 include/sound/pcm.h void snd_pcm_lib_preallocate_free_for_all(struct snd_pcm *pcm); pcm 1183 include/sound/pcm.h void snd_pcm_lib_preallocate_pages_for_all(struct snd_pcm *pcm, pcm 1368 include/sound/pcm.h struct snd_pcm *pcm; /* assigned PCM instance */ pcm 1386 include/sound/pcm.h for (s = info->pcm->streams[info->stream].substream; s; s = s->next) pcm 1402 include/sound/pcm.h int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream, pcm 1418 include/sound/pcm.h #define pcm_err(pcm, fmt, args...) \ pcm 1419 include/sound/pcm.h dev_err((pcm)->card->dev, fmt, ##args) pcm 1420 include/sound/pcm.h #define pcm_warn(pcm, fmt, args...) \ pcm 1421 include/sound/pcm.h dev_warn((pcm)->card->dev, fmt, ##args) pcm 1422 include/sound/pcm.h #define pcm_dbg(pcm, fmt, args...) \ pcm 1423 include/sound/pcm.h dev_dbg((pcm)->card->dev, fmt, ##args) pcm 12 include/sound/pcm_params.h int snd_pcm_hw_param_first(struct snd_pcm_substream *pcm, pcm 15 include/sound/pcm_params.h int snd_pcm_hw_param_last(struct snd_pcm_substream *pcm, pcm 24 include/sound/pxa2xx-lib.h extern int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream); pcm 25 include/sound/pxa2xx-lib.h extern void pxa2xx_pcm_free_dma_buffers(struct snd_pcm *pcm); pcm 83 include/sound/sb.h struct snd_pcm *pcm; pcm 55 include/sound/soc-component.h void (*pcm_free)(struct snd_pcm *pcm); pcm 384 include/sound/soc-component.h int snd_soc_pcm_component_new(struct snd_pcm *pcm); pcm 385 include/sound/soc-component.h void snd_soc_pcm_component_free(struct snd_pcm *pcm); pcm 138 include/sound/soc-topology.h struct snd_soc_tplg_pcm *pcm, struct snd_soc_dai *dai); pcm 1134 include/sound/soc.h struct snd_pcm *pcm; pcm 143 include/sound/vx_core.h struct snd_pcm *pcm[VX_MAX_CODECS]; pcm 82 include/sound/wss.h struct snd_pcm *pcm; pcm 929 sound/aoa/codecs/onyx.c onyx->codec.soundbus_dev->pcm->device; \ pcm 936 sound/aoa/codecs/onyx.c if (onyx->codec.soundbus_dev->pcm) { pcm 861 sound/aoa/soundbus/i2sbus/pcm.c static void i2sbus_private_free(struct snd_pcm *pcm) pcm 863 sound/aoa/soundbus/i2sbus/pcm.c struct i2sbus_dev *i2sdev = snd_pcm_chip(pcm); pcm 866 sound/aoa/soundbus/i2sbus/pcm.c i2sdev->sound.pcm = NULL; pcm 963 sound/aoa/soundbus/i2sbus/pcm.c if (!dev->pcm) { pcm 965 sound/aoa/soundbus/i2sbus/pcm.c &dev->pcm); pcm 977 sound/aoa/soundbus/i2sbus/pcm.c if (dev->pcm->card != card) { pcm 984 sound/aoa/soundbus/i2sbus/pcm.c err = snd_pcm_new_stream(dev->pcm, SNDRV_PCM_STREAM_PLAYBACK, 1); pcm 987 sound/aoa/soundbus/i2sbus/pcm.c snd_pcm_set_ops(dev->pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 989 sound/aoa/soundbus/i2sbus/pcm.c dev->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].dev.parent = pcm 995 sound/aoa/soundbus/i2sbus/pcm.c if (dev->pcm->card != card) { pcm 1001 sound/aoa/soundbus/i2sbus/pcm.c err = snd_pcm_new_stream(dev->pcm, SNDRV_PCM_STREAM_CAPTURE, 1); pcm 1004 sound/aoa/soundbus/i2sbus/pcm.c snd_pcm_set_ops(dev->pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 1006 sound/aoa/soundbus/i2sbus/pcm.c dev->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].dev.parent = pcm 1017 sound/aoa/soundbus/i2sbus/pcm.c err = snd_device_register(card, dev->pcm); pcm 1025 sound/aoa/soundbus/i2sbus/pcm.c dev->pcm->private_data = i2sdev; pcm 1026 sound/aoa/soundbus/i2sbus/pcm.c dev->pcm->private_free = i2sbus_private_free; pcm 1030 sound/aoa/soundbus/i2sbus/pcm.c dev->pcm, SNDRV_DMA_TYPE_DEV, pcm 1062 sound/aoa/soundbus/i2sbus/pcm.c if (list_empty(&dev->codec_list) && dev->pcm) { pcm 1064 sound/aoa/soundbus/i2sbus/pcm.c snd_device_free(dev->pcm->card, dev->pcm); pcm 156 sound/aoa/soundbus/soundbus.h struct snd_pcm *pcm; pcm 415 sound/arm/aaci.c runtime->hw.rates = aacirun->pcm->rates; pcm 429 sound/arm/aaci.c if (aacirun->pcm->r[1].slots) pcm 483 sound/arm/aaci.c snd_ac97_pcm_close(aacirun->pcm); pcm 512 sound/arm/aaci.c snd_ac97_pcm_close(aacirun->pcm); pcm 525 sound/arm/aaci.c err = snd_ac97_pcm_open(aacirun->pcm, rate, channels, pcm 526 sound/arm/aaci.c aacirun->pcm->r[dbl].slots); pcm 878 sound/arm/aaci.c aaci->playback.pcm = &ac97_bus->pcms[0]; pcm 879 sound/arm/aaci.c aaci->capture.pcm = &ac97_bus->pcms[1]; pcm 927 sound/arm/aaci.c struct snd_pcm *pcm; pcm 930 sound/arm/aaci.c ret = snd_pcm_new(aaci->card, "AACI AC'97", 0, 1, 1, &pcm); pcm 932 sound/arm/aaci.c aaci->pcm = pcm; pcm 933 sound/arm/aaci.c pcm->private_data = aaci; pcm 934 sound/arm/aaci.c pcm->info_flags = 0; pcm 936 sound/arm/aaci.c strlcpy(pcm->name, DRIVER_NAME, sizeof(pcm->name)); pcm 938 sound/arm/aaci.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &aaci_playback_ops); pcm 939 sound/arm/aaci.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &aaci_capture_ops); pcm 940 sound/arm/aaci.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 204 sound/arm/aaci.h struct ac97_pcm *pcm; pcm 240 sound/arm/aaci.h struct snd_pcm *pcm; pcm 82 sound/arm/pxa2xx-ac97.c platform_ops = substream->pcm->card->dev->platform_data; pcm 96 sound/arm/pxa2xx-ac97.c platform_ops = substream->pcm->card->dev->platform_data; pcm 188 sound/arm/pxa2xx-ac97.c struct snd_pcm *pcm; pcm 191 sound/arm/pxa2xx-ac97.c ret = snd_pcm_new(card, "PXA2xx-PCM", 0, 1, 1, &pcm); pcm 195 sound/arm/pxa2xx-ac97.c pcm->private_free = pxa2xx_pcm_free_dma_buffers; pcm 202 sound/arm/pxa2xx-ac97.c snd_pcm_set_ops(pcm, stream, &pxa2xx_ac97_pcm_ops); pcm 203 sound/arm/pxa2xx-ac97.c ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, stream); pcm 208 sound/arm/pxa2xx-ac97.c snd_pcm_set_ops(pcm, stream, &pxa2xx_ac97_pcm_ops); pcm 209 sound/arm/pxa2xx-ac97.c ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, stream); pcm 213 sound/arm/pxa2xx-ac97.c pxa2xx_ac97_pcm = pcm; pcm 138 sound/arm/pxa2xx-pcm-lib.c return dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, pcm 143 sound/arm/pxa2xx-pcm-lib.c int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) pcm 145 sound/arm/pxa2xx-pcm-lib.c struct snd_pcm_substream *substream = pcm->streams[stream].substream; pcm 149 sound/arm/pxa2xx-pcm-lib.c buf->dev.dev = pcm->card->dev; pcm 151 sound/arm/pxa2xx-pcm-lib.c buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL); pcm 159 sound/arm/pxa2xx-pcm-lib.c void pxa2xx_pcm_free_dma_buffers(struct snd_pcm *pcm) pcm 166 sound/arm/pxa2xx-pcm-lib.c substream = pcm->streams[stream].substream; pcm 172 sound/arm/pxa2xx-pcm-lib.c dma_free_wc(pcm->card->dev, buf->bytes, buf->area, buf->addr); pcm 181 sound/arm/pxa2xx-pcm-lib.c struct snd_pcm *pcm = rtd->pcm; pcm 188 sound/arm/pxa2xx-pcm-lib.c if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { pcm 189 sound/arm/pxa2xx-pcm-lib.c ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, pcm 195 sound/arm/pxa2xx-pcm-lib.c if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { pcm 196 sound/arm/pxa2xx-pcm-lib.c ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, pcm 42 sound/atmel/ac97c.c struct snd_pcm *pcm; pcm 586 sound/atmel/ac97c.c struct snd_pcm *pcm; pcm 596 sound/atmel/ac97c.c retval = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm); pcm 600 sound/atmel/ac97c.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &atmel_ac97_capture_ops); pcm 601 sound/atmel/ac97c.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &atmel_ac97_playback_ops); pcm 603 sound/atmel/ac97c.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 607 sound/atmel/ac97c.c pcm->private_data = chip; pcm 608 sound/atmel/ac97c.c pcm->info_flags = 0; pcm 609 sound/atmel/ac97c.c strcpy(pcm->name, chip->card->shortname); pcm 610 sound/atmel/ac97c.c chip->pcm = pcm; pcm 181 sound/core/oss/pcm_oss.c static int snd_pcm_hw_param_mask(struct snd_pcm_substream *pcm, pcm 190 sound/core/oss/pcm_oss.c int err = snd_pcm_hw_refine(pcm, params); pcm 240 sound/core/oss/pcm_oss.c static int snd_pcm_hw_param_min(struct snd_pcm_substream *pcm, pcm 249 sound/core/oss/pcm_oss.c int err = snd_pcm_hw_refine(pcm, params); pcm 301 sound/core/oss/pcm_oss.c static int snd_pcm_hw_param_max(struct snd_pcm_substream *pcm, pcm 310 sound/core/oss/pcm_oss.c int err = snd_pcm_hw_refine(pcm, params); pcm 375 sound/core/oss/pcm_oss.c static int snd_pcm_hw_param_near(struct snd_pcm_substream *pcm, pcm 405 sound/core/oss/pcm_oss.c min = snd_pcm_hw_param_min(pcm, params, var, min, &mindir); pcm 418 sound/core/oss/pcm_oss.c max = snd_pcm_hw_param_max(pcm, params1, var, max, &maxdir); pcm 430 sound/core/oss/pcm_oss.c max = snd_pcm_hw_param_max(pcm, params, var, max, &maxdir); pcm 440 sound/core/oss/pcm_oss.c v = snd_pcm_hw_param_last(pcm, params, var, dir); pcm 442 sound/core/oss/pcm_oss.c v = snd_pcm_hw_param_first(pcm, params, var, dir); pcm 506 sound/core/oss/pcm_oss.c static int snd_pcm_hw_param_set(struct snd_pcm_substream *pcm, pcm 515 sound/core/oss/pcm_oss.c int err = snd_pcm_hw_refine(pcm, params); pcm 871 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, "No usable accesses\n"); pcm 896 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, "Cannot find a format!!!\n"); pcm 946 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, "HW_PARAMS failed: %i\n", err); pcm 958 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, pcm 966 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, pcm 1012 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, "SW_PARAMS failed: %i\n", err); pcm 1127 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, pcm 1214 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, pcm 1244 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, pcm 1285 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, pcm 1314 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, pcm 1590 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, "sync1: size = %li\n", size); pcm 1616 sound/core/oss/pcm_oss.c pcm_err(substream->pcm, pcm 1652 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, "sync: buffer_used\n"); pcm 1663 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, "sync: period_ptr\n"); pcm 2035 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, "pcm_oss: trigger = 0x%x\n", trigger); pcm 2267 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, pcm 2293 sound/core/oss/pcm_oss.c static void snd_pcm_oss_look_for_setup(struct snd_pcm *pcm, int stream, pcm 2299 sound/core/oss/pcm_oss.c mutex_lock(&pcm->streams[stream].oss.setup_mutex); pcm 2301 sound/core/oss/pcm_oss.c for (setup = pcm->streams[stream].oss.setup_list; setup; pcm 2310 sound/core/oss/pcm_oss.c mutex_unlock(&pcm->streams[stream].oss.setup_mutex); pcm 2375 sound/core/oss/pcm_oss.c struct snd_pcm *pcm, pcm 2393 sound/core/oss/pcm_oss.c (pcm->info_flags & SNDRV_PCM_INFO_HALF_DUPLEX)) pcm 2400 sound/core/oss/pcm_oss.c if (! pcm->streams[idx].substream_count) pcm 2409 sound/core/oss/pcm_oss.c err = snd_pcm_open_substream(pcm, idx, file, &substream); pcm 2447 sound/core/oss/pcm_oss.c struct snd_pcm *pcm; pcm 2457 sound/core/oss/pcm_oss.c pcm = snd_lookup_oss_minor_data(iminor(inode), pcm 2459 sound/core/oss/pcm_oss.c if (pcm == NULL) { pcm 2463 sound/core/oss/pcm_oss.c err = snd_card_file_add(pcm->card, file); pcm 2466 sound/core/oss/pcm_oss.c if (!try_module_get(pcm->card->module)) { pcm 2476 sound/core/oss/pcm_oss.c snd_pcm_oss_look_for_setup(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 2479 sound/core/oss/pcm_oss.c snd_pcm_oss_look_for_setup(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 2487 sound/core/oss/pcm_oss.c add_wait_queue(&pcm->open_wait, &wait); pcm 2488 sound/core/oss/pcm_oss.c mutex_lock(&pcm->open_mutex); pcm 2490 sound/core/oss/pcm_oss.c err = snd_pcm_oss_open_file(file, pcm, &pcm_oss_file, pcm 2502 sound/core/oss/pcm_oss.c mutex_unlock(&pcm->open_mutex); pcm 2504 sound/core/oss/pcm_oss.c mutex_lock(&pcm->open_mutex); pcm 2505 sound/core/oss/pcm_oss.c if (pcm->card->shutdown) { pcm 2514 sound/core/oss/pcm_oss.c remove_wait_queue(&pcm->open_wait, &wait); pcm 2515 sound/core/oss/pcm_oss.c mutex_unlock(&pcm->open_mutex); pcm 2518 sound/core/oss/pcm_oss.c snd_card_unref(pcm->card); pcm 2522 sound/core/oss/pcm_oss.c module_put(pcm->card->module); pcm 2524 sound/core/oss/pcm_oss.c snd_card_file_remove(pcm->card, file); pcm 2526 sound/core/oss/pcm_oss.c if (pcm) pcm 2527 sound/core/oss/pcm_oss.c snd_card_unref(pcm->card); pcm 2533 sound/core/oss/pcm_oss.c struct snd_pcm *pcm; pcm 2543 sound/core/oss/pcm_oss.c pcm = substream->pcm; pcm 2544 sound/core/oss/pcm_oss.c if (!pcm->card->shutdown) pcm 2546 sound/core/oss/pcm_oss.c mutex_lock(&pcm->open_mutex); pcm 2548 sound/core/oss/pcm_oss.c mutex_unlock(&pcm->open_mutex); pcm 2549 sound/core/oss/pcm_oss.c wake_up(&pcm->open_wait); pcm 2550 sound/core/oss/pcm_oss.c module_put(pcm->card->module); pcm 2551 sound/core/oss/pcm_oss.c snd_card_file_remove(pcm->card, file); pcm 2577 sound/core/oss/pcm_oss.c return snd_mixer_oss_ioctl_card(substream->pcm->card, cmd, arg); pcm 2741 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, pcm 2762 sound/core/oss/pcm_oss.c pcm_dbg(substream->pcm, "pcm_oss: write %li bytes (wrote %li bytes)\n", pcm 3023 sound/core/oss/pcm_oss.c static void snd_pcm_oss_proc_init(struct snd_pcm *pcm) pcm 3028 sound/core/oss/pcm_oss.c struct snd_pcm_str *pstr = &pcm->streams[stream]; pcm 3031 sound/core/oss/pcm_oss.c if ((entry = snd_info_create_card_entry(pcm->card, "oss", pstr->proc_root)) != NULL) { pcm 3046 sound/core/oss/pcm_oss.c static void snd_pcm_oss_proc_done(struct snd_pcm *pcm) pcm 3050 sound/core/oss/pcm_oss.c struct snd_pcm_str *pstr = &pcm->streams[stream]; pcm 3057 sound/core/oss/pcm_oss.c #define snd_pcm_oss_proc_init(pcm) pcm 3058 sound/core/oss/pcm_oss.c #define snd_pcm_oss_proc_done(pcm) pcm 3079 sound/core/oss/pcm_oss.c static void register_oss_dsp(struct snd_pcm *pcm, int index) pcm 3082 sound/core/oss/pcm_oss.c pcm->card, index, &snd_pcm_oss_f_reg, pcm 3083 sound/core/oss/pcm_oss.c pcm) < 0) { pcm 3084 sound/core/oss/pcm_oss.c pcm_err(pcm, "unable to register OSS PCM device %i:%i\n", pcm 3085 sound/core/oss/pcm_oss.c pcm->card->number, pcm->device); pcm 3089 sound/core/oss/pcm_oss.c static int snd_pcm_oss_register_minor(struct snd_pcm *pcm) pcm 3091 sound/core/oss/pcm_oss.c pcm->oss.reg = 0; pcm 3092 sound/core/oss/pcm_oss.c if (dsp_map[pcm->card->number] == (int)pcm->device) { pcm 3095 sound/core/oss/pcm_oss.c register_oss_dsp(pcm, 0); pcm 3096 sound/core/oss/pcm_oss.c duplex = (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream_count > 0 && pcm 3097 sound/core/oss/pcm_oss.c pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream_count && pcm 3098 sound/core/oss/pcm_oss.c !(pcm->info_flags & SNDRV_PCM_INFO_HALF_DUPLEX)); pcm 3099 sound/core/oss/pcm_oss.c sprintf(name, "%s%s", pcm->name, duplex ? " (DUPLEX)" : ""); pcm 3102 sound/core/oss/pcm_oss.c pcm->card->number, pcm 3105 sound/core/oss/pcm_oss.c pcm->oss.reg++; pcm 3106 sound/core/oss/pcm_oss.c pcm->oss.reg_mask |= 1; pcm 3108 sound/core/oss/pcm_oss.c if (adsp_map[pcm->card->number] == (int)pcm->device) { pcm 3109 sound/core/oss/pcm_oss.c register_oss_dsp(pcm, 1); pcm 3110 sound/core/oss/pcm_oss.c pcm->oss.reg++; pcm 3111 sound/core/oss/pcm_oss.c pcm->oss.reg_mask |= 2; pcm 3114 sound/core/oss/pcm_oss.c if (pcm->oss.reg) pcm 3115 sound/core/oss/pcm_oss.c snd_pcm_oss_proc_init(pcm); pcm 3120 sound/core/oss/pcm_oss.c static int snd_pcm_oss_disconnect_minor(struct snd_pcm *pcm) pcm 3122 sound/core/oss/pcm_oss.c if (pcm->oss.reg) { pcm 3123 sound/core/oss/pcm_oss.c if (pcm->oss.reg_mask & 1) { pcm 3124 sound/core/oss/pcm_oss.c pcm->oss.reg_mask &= ~1; pcm 3126 sound/core/oss/pcm_oss.c pcm->card, 0); pcm 3128 sound/core/oss/pcm_oss.c if (pcm->oss.reg_mask & 2) { pcm 3129 sound/core/oss/pcm_oss.c pcm->oss.reg_mask &= ~2; pcm 3131 sound/core/oss/pcm_oss.c pcm->card, 1); pcm 3133 sound/core/oss/pcm_oss.c if (dsp_map[pcm->card->number] == (int)pcm->device) { pcm 3135 sound/core/oss/pcm_oss.c snd_oss_info_unregister(SNDRV_OSS_INFO_DEV_AUDIO, pcm->card->number); pcm 3138 sound/core/oss/pcm_oss.c pcm->oss.reg = 0; pcm 3143 sound/core/oss/pcm_oss.c static int snd_pcm_oss_unregister_minor(struct snd_pcm *pcm) pcm 3145 sound/core/oss/pcm_oss.c snd_pcm_oss_disconnect_minor(pcm); pcm 3146 sound/core/oss/pcm_oss.c snd_pcm_oss_proc_done(pcm); pcm 33 sound/core/pcm.c static int snd_pcm_free(struct snd_pcm *pcm); pcm 40 sound/core/pcm.c struct snd_pcm *pcm; pcm 42 sound/core/pcm.c list_for_each_entry(pcm, &snd_pcm_devices, list) { pcm 43 sound/core/pcm.c if (pcm->card == card && pcm->device == device) pcm 44 sound/core/pcm.c return pcm; pcm 51 sound/core/pcm.c struct snd_pcm *pcm; pcm 53 sound/core/pcm.c list_for_each_entry(pcm, &snd_pcm_devices, list) { pcm 54 sound/core/pcm.c if (pcm->card == card && pcm->device > device) pcm 55 sound/core/pcm.c return pcm->device; pcm 56 sound/core/pcm.c else if (pcm->card->number > card->number) pcm 64 sound/core/pcm.c struct snd_pcm *pcm; pcm 69 sound/core/pcm.c list_for_each_entry(pcm, &snd_pcm_devices, list) { pcm 70 sound/core/pcm.c if (pcm->card == newpcm->card && pcm->device == newpcm->device) pcm 72 sound/core/pcm.c if (pcm->card->number > newpcm->card->number || pcm 73 sound/core/pcm.c (pcm->card == newpcm->card && pcm 74 sound/core/pcm.c pcm->device > newpcm->device)) { pcm 75 sound/core/pcm.c list_add(&newpcm->list, pcm->list.prev); pcm 106 sound/core/pcm.c struct snd_pcm *pcm; pcm 122 sound/core/pcm.c pcm = snd_pcm_get(card, device); pcm 123 sound/core/pcm.c if (pcm == NULL) { pcm 127 sound/core/pcm.c pstr = &pcm->streams[stream]; pcm 144 sound/core/pcm.c mutex_lock(&pcm->open_mutex); pcm 146 sound/core/pcm.c mutex_unlock(&pcm->open_mutex); pcm 382 sound/core/pcm.c mutex_lock(&substream->pcm->open_mutex); pcm 410 sound/core/pcm.c mutex_unlock(&substream->pcm->open_mutex); pcm 419 sound/core/pcm.c mutex_lock(&substream->pcm->open_mutex); pcm 438 sound/core/pcm.c mutex_unlock(&substream->pcm->open_mutex); pcm 449 sound/core/pcm.c mutex_lock(&substream->pcm->open_mutex); pcm 474 sound/core/pcm.c mutex_unlock(&substream->pcm->open_mutex); pcm 505 sound/core/pcm.c struct snd_pcm *pcm = pstr->pcm; pcm 509 sound/core/pcm.c sprintf(name, "pcm%i%c", pcm->device, pcm 511 sound/core/pcm.c entry = snd_info_create_card_entry(pcm->card, name, pcm 512 sound/core/pcm.c pcm->card->proc_root); pcm 517 sound/core/pcm.c entry = snd_info_create_card_entry(pcm->card, "info", pstr->proc_root); pcm 521 sound/core/pcm.c entry = snd_info_create_card_entry(pcm->card, "xrun_debug", pcm 547 sound/core/pcm.c entry = snd_info_create_card_entry(substream->pcm->card, name, pcm 560 sound/core/pcm.c card = substream->pcm->card; pcm 607 sound/core/pcm.c if (!pstr->pcm->no_device_suspend) pcm 608 sound/core/pcm.c snd_pcm_suspend_all(pstr->pcm); pcm 636 sound/core/pcm.c int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count) pcm 639 sound/core/pcm.c struct snd_pcm_str *pstr = &pcm->streams[stream]; pcm 646 sound/core/pcm.c pstr->pcm = pcm; pcm 651 sound/core/pcm.c snd_device_initialize(&pstr->dev, pcm->card); pcm 654 sound/core/pcm.c dev_set_name(&pstr->dev, "pcmC%iD%i%c", pcm->card->number, pcm->device, pcm 657 sound/core/pcm.c if (!pcm->internal) { pcm 660 sound/core/pcm.c pcm_err(pcm, "Error in snd_pcm_stream_proc_init\n"); pcm 669 sound/core/pcm.c substream->pcm = pcm; pcm 680 sound/core/pcm.c if (!pcm->internal) { pcm 683 sound/core/pcm.c pcm_err(pcm, pcm 707 sound/core/pcm.c struct snd_pcm *pcm; pcm 722 sound/core/pcm.c pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); pcm 723 sound/core/pcm.c if (!pcm) pcm 725 sound/core/pcm.c pcm->card = card; pcm 726 sound/core/pcm.c pcm->device = device; pcm 727 sound/core/pcm.c pcm->internal = internal; pcm 728 sound/core/pcm.c mutex_init(&pcm->open_mutex); pcm 729 sound/core/pcm.c init_waitqueue_head(&pcm->open_wait); pcm 730 sound/core/pcm.c INIT_LIST_HEAD(&pcm->list); pcm 732 sound/core/pcm.c strlcpy(pcm->id, id, sizeof(pcm->id)); pcm 734 sound/core/pcm.c err = snd_pcm_new_stream(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 739 sound/core/pcm.c err = snd_pcm_new_stream(pcm, SNDRV_PCM_STREAM_CAPTURE, capture_count); pcm 743 sound/core/pcm.c err = snd_device_new(card, SNDRV_DEV_PCM, pcm, pcm 749 sound/core/pcm.c *rpcm = pcm; pcm 753 sound/core/pcm.c snd_pcm_free(pcm); pcm 813 sound/core/pcm.c snd_ctl_remove(pstr->pcm->card, pstr->chmap_kctl); pcm 848 sound/core/pcm.c #define pcm_call_notify(pcm, call) \ pcm 852 sound/core/pcm.c _notify->call(pcm); \ pcm 855 sound/core/pcm.c #define pcm_call_notify(pcm, call) do {} while (0) pcm 858 sound/core/pcm.c static int snd_pcm_free(struct snd_pcm *pcm) pcm 860 sound/core/pcm.c if (!pcm) pcm 862 sound/core/pcm.c if (!pcm->internal) pcm 863 sound/core/pcm.c pcm_call_notify(pcm, n_unregister); pcm 864 sound/core/pcm.c if (pcm->private_free) pcm 865 sound/core/pcm.c pcm->private_free(pcm); pcm 866 sound/core/pcm.c snd_pcm_lib_preallocate_free_for_all(pcm); pcm 867 sound/core/pcm.c snd_pcm_free_stream(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK]); pcm 868 sound/core/pcm.c snd_pcm_free_stream(&pcm->streams[SNDRV_PCM_STREAM_CAPTURE]); pcm 869 sound/core/pcm.c kfree(pcm); pcm 875 sound/core/pcm.c struct snd_pcm *pcm = device->device_data; pcm 876 sound/core/pcm.c return snd_pcm_free(pcm); pcm 879 sound/core/pcm.c int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, pcm 890 sound/core/pcm.c if (snd_BUG_ON(!pcm || !rsubstream)) pcm 896 sound/core/pcm.c pstr = &pcm->streams[stream]; pcm 900 sound/core/pcm.c card = pcm->card; pcm 903 sound/core/pcm.c if (pcm->info_flags & SNDRV_PCM_INFO_HALF_DUPLEX) { pcm 906 sound/core/pcm.c for (substream = pcm->streams[opposite].substream; substream; pcm 970 sound/core/pcm.c substream->private_data = pcm->private_data; pcm 1009 sound/core/pcm.c struct snd_pcm *pcm = pstr->pcm; pcm 1018 sound/core/pcm.c if (pcm->dev_class > SNDRV_PCM_CLASS_LAST) pcm 1021 sound/core/pcm.c str = strs[pcm->dev_class]; pcm 1044 sound/core/pcm.c struct snd_pcm *pcm; pcm 1048 sound/core/pcm.c pcm = device->device_data; pcm 1051 sound/core/pcm.c err = snd_pcm_add(pcm); pcm 1056 sound/core/pcm.c if (pcm->streams[cidx].substream == NULL) pcm 1067 sound/core/pcm.c err = snd_register_device(devtype, pcm->card, pcm->device, pcm 1068 sound/core/pcm.c &snd_pcm_f_ops[cidx], pcm, pcm 1069 sound/core/pcm.c &pcm->streams[cidx].dev); pcm 1071 sound/core/pcm.c list_del_init(&pcm->list); pcm 1075 sound/core/pcm.c for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) pcm 1079 sound/core/pcm.c pcm_call_notify(pcm, n_register); pcm 1088 sound/core/pcm.c struct snd_pcm *pcm = device->device_data; pcm 1093 sound/core/pcm.c mutex_lock(&pcm->open_mutex); pcm 1094 sound/core/pcm.c wake_up(&pcm->open_wait); pcm 1095 sound/core/pcm.c list_del_init(&pcm->list); pcm 1097 sound/core/pcm.c for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) { pcm 1112 sound/core/pcm.c pcm_call_notify(pcm, n_disconnect); pcm 1114 sound/core/pcm.c snd_unregister_device(&pcm->streams[cidx].dev); pcm 1115 sound/core/pcm.c free_chmap(&pcm->streams[cidx]); pcm 1117 sound/core/pcm.c mutex_unlock(&pcm->open_mutex); pcm 1134 sound/core/pcm.c struct snd_pcm *pcm; pcm 1144 sound/core/pcm.c list_for_each_entry(pcm, &snd_pcm_devices, list) pcm 1145 sound/core/pcm.c notify->n_unregister(pcm); pcm 1148 sound/core/pcm.c list_for_each_entry(pcm, &snd_pcm_devices, list) pcm 1149 sound/core/pcm.c notify->n_register(pcm); pcm 1165 sound/core/pcm.c struct snd_pcm *pcm; pcm 1168 sound/core/pcm.c list_for_each_entry(pcm, &snd_pcm_devices, list) { pcm 1170 sound/core/pcm.c pcm->card->number, pcm->device, pcm->id, pcm->name); pcm 1171 sound/core/pcm.c if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) pcm 1173 sound/core/pcm.c pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream_count); pcm 1174 sound/core/pcm.c if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) pcm 1176 sound/core/pcm.c pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream_count); pcm 116 sound/core/pcm_lib.c substream->pcm->card->number, pcm 117 sound/core/pcm_lib.c substream->pcm->device, pcm 153 sound/core/pcm_lib.c pcm_warn(substream->pcm, "XRUN: %s\n", name); pcm 293 sound/core/pcm_lib.c pcm_err(substream->pcm, pcm 471 sound/core/pcm_lib.c void snd_pcm_set_ops(struct snd_pcm *pcm, int direction, pcm 474 sound/core/pcm_lib.c struct snd_pcm_str *stream = &pcm->streams[direction]; pcm 492 sound/core/pcm_lib.c runtime->sync.id32[0] = substream->pcm->card->number; pcm 1611 sound/core/pcm_lib.c int snd_pcm_hw_param_first(struct snd_pcm_substream *pcm, pcm 1619 sound/core/pcm_lib.c int err = snd_pcm_hw_refine(pcm, params); pcm 1657 sound/core/pcm_lib.c int snd_pcm_hw_param_last(struct snd_pcm_substream *pcm, pcm 1665 sound/core/pcm_lib.c int err = snd_pcm_hw_refine(pcm, params); pcm 1891 sound/core/pcm_lib.c pcm_dbg(substream->pcm, pcm 2400 sound/core/pcm_lib.c info->pcm->streams[info->stream].chmap_kctl = NULL; pcm 2416 sound/core/pcm_lib.c int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream, pcm 2434 sound/core/pcm_lib.c if (WARN_ON(pcm->streams[stream].chmap_kctl)) pcm 2439 sound/core/pcm_lib.c info->pcm = pcm; pcm 2447 sound/core/pcm_lib.c knew.device = pcm->device; pcm 2448 sound/core/pcm_lib.c knew.count = pcm->streams[stream].substream_count; pcm 2456 sound/core/pcm_lib.c err = snd_ctl_add(pcm->card, info->kctl); pcm 2459 sound/core/pcm_lib.c pcm->streams[stream].chmap_kctl = info->kctl; pcm 53 sound/core/pcm_memory.c substream->pcm->card->number, substream->pcm->device, pcm 55 sound/core/pcm_memory.c substream->pcm->name, orig_size); pcm 87 sound/core/pcm_memory.c void snd_pcm_lib_preallocate_free_for_all(struct snd_pcm *pcm) pcm 93 sound/core/pcm_memory.c for (substream = pcm->streams[stream].substream; substream; substream = substream->next) pcm 174 sound/core/pcm_memory.c entry = snd_info_create_card_entry(substream->pcm->card, "prealloc", pcm 182 sound/core/pcm_memory.c entry = snd_info_create_card_entry(substream->pcm->card, "prealloc_max", pcm 241 sound/core/pcm_memory.c void snd_pcm_lib_preallocate_pages_for_all(struct snd_pcm *pcm, pcm 249 sound/core/pcm_memory.c for (substream = pcm->streams[stream].substream; substream; substream = substream->next) pcm 67 sound/core/pcm_native.c static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream); pcm 108 sound/core/pcm_native.c snd_pcm_group_lock(&substream->self_group, substream->pcm->nonatomic); pcm 120 sound/core/pcm_native.c snd_pcm_group_unlock(&substream->self_group, substream->pcm->nonatomic); pcm 135 sound/core/pcm_native.c substream->pcm->nonatomic); pcm 143 sound/core/pcm_native.c if (substream->pcm->nonatomic) pcm 158 sound/core/pcm_native.c substream->pcm->nonatomic); pcm 165 sound/core/pcm_native.c if (substream->pcm->nonatomic) pcm 183 sound/core/pcm_native.c if (substream->pcm->nonatomic) pcm 192 sound/core/pcm_native.c struct snd_pcm *pcm = substream->pcm; pcm 196 sound/core/pcm_native.c info->card = pcm->card->number; pcm 197 sound/core/pcm_native.c info->device = pcm->device; pcm 200 sound/core/pcm_native.c strlcpy(info->id, pcm->id, sizeof(info->id)); pcm 201 sound/core/pcm_native.c strlcpy(info->name, pcm->name, sizeof(info->name)); pcm 202 sound/core/pcm_native.c info->dev_class = pcm->dev_class; pcm 203 sound/core/pcm_native.c info->dev_subclass = pcm->dev_subclass; pcm 581 sound/core/pcm_native.c static int snd_pcm_hw_params_choose(struct snd_pcm_substream *pcm, pcm 611 sound/core/pcm_native.c changed = snd_pcm_hw_param_first(pcm, params, *v, NULL); pcm 613 sound/core/pcm_native.c changed = snd_pcm_hw_param_last(pcm, params, *v, NULL); pcm 621 sound/core/pcm_native.c trace_hw_mask_param(pcm, *v, 0, &old_mask, pcm 625 sound/core/pcm_native.c trace_hw_interval_param(pcm, *v, 0, &old_interval, pcm 1031 sound/core/pcm_native.c if (s->pcm->nonatomic) pcm 1063 sound/core/pcm_native.c if (s1->pcm->nonatomic) pcm 1114 sound/core/pcm_native.c snd_pcm_group_unlock(group, substream->pcm->nonatomic); pcm 1126 sound/core/pcm_native.c bool nonatomic = substream->pcm->nonatomic; pcm 1514 sound/core/pcm_native.c int snd_pcm_suspend_all(struct snd_pcm *pcm) pcm 1519 sound/core/pcm_native.c if (! pcm) pcm 1523 sound/core/pcm_native.c for (substream = pcm->streams[stream].substream; pcm 1840 sound/core/pcm_native.c card = substream->pcm->card; pcm 1923 sound/core/pcm_native.c dev_dbg(substream->pcm->card->dev, pcm 1972 sound/core/pcm_native.c struct snd_pcm *pcm; pcm 1978 sound/core/pcm_native.c pcm = snd_lookup_minor_data(minor, SNDRV_DEVICE_TYPE_PCM_PLAYBACK); pcm 1979 sound/core/pcm_native.c if (!pcm) pcm 1980 sound/core/pcm_native.c pcm = snd_lookup_minor_data(minor, SNDRV_DEVICE_TYPE_PCM_CAPTURE); pcm 1981 sound/core/pcm_native.c if (!pcm) pcm 1983 sound/core/pcm_native.c snd_card_unref(pcm->card); pcm 1996 sound/core/pcm_native.c bool nonatomic = substream->pcm->nonatomic; pcm 2023 sound/core/pcm_native.c substream->pcm->nonatomic != substream1->pcm->nonatomic) { pcm 2065 sound/core/pcm_native.c bool nonatomic = substream->pcm->nonatomic; pcm 2460 sound/core/pcm_native.c int snd_pcm_open_substream(struct snd_pcm *pcm, int stream, pcm 2467 sound/core/pcm_native.c err = snd_pcm_attach_substream(pcm, stream, file, &substream); pcm 2477 sound/core/pcm_native.c pcm_dbg(pcm, "snd_pcm_hw_constraints_init failed\n"); pcm 2488 sound/core/pcm_native.c pcm_dbg(pcm, "snd_pcm_hw_constraints_complete failed\n"); pcm 2502 sound/core/pcm_native.c struct snd_pcm *pcm, pcm 2509 sound/core/pcm_native.c err = snd_pcm_open_substream(pcm, stream, file, &substream); pcm 2528 sound/core/pcm_native.c struct snd_pcm *pcm; pcm 2532 sound/core/pcm_native.c pcm = snd_lookup_minor_data(iminor(inode), pcm 2534 sound/core/pcm_native.c err = snd_pcm_open(file, pcm, SNDRV_PCM_STREAM_PLAYBACK); pcm 2535 sound/core/pcm_native.c if (pcm) pcm 2536 sound/core/pcm_native.c snd_card_unref(pcm->card); pcm 2542 sound/core/pcm_native.c struct snd_pcm *pcm; pcm 2546 sound/core/pcm_native.c pcm = snd_lookup_minor_data(iminor(inode), pcm 2548 sound/core/pcm_native.c err = snd_pcm_open(file, pcm, SNDRV_PCM_STREAM_CAPTURE); pcm 2549 sound/core/pcm_native.c if (pcm) pcm 2550 sound/core/pcm_native.c snd_card_unref(pcm->card); pcm 2554 sound/core/pcm_native.c static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream) pcm 2559 sound/core/pcm_native.c if (pcm == NULL) { pcm 2563 sound/core/pcm_native.c err = snd_card_file_add(pcm->card, file); pcm 2566 sound/core/pcm_native.c if (!try_module_get(pcm->card->module)) { pcm 2571 sound/core/pcm_native.c add_wait_queue(&pcm->open_wait, &wait); pcm 2572 sound/core/pcm_native.c mutex_lock(&pcm->open_mutex); pcm 2574 sound/core/pcm_native.c err = snd_pcm_open_file(file, pcm, stream); pcm 2585 sound/core/pcm_native.c mutex_unlock(&pcm->open_mutex); pcm 2587 sound/core/pcm_native.c mutex_lock(&pcm->open_mutex); pcm 2588 sound/core/pcm_native.c if (pcm->card->shutdown) { pcm 2597 sound/core/pcm_native.c remove_wait_queue(&pcm->open_wait, &wait); pcm 2598 sound/core/pcm_native.c mutex_unlock(&pcm->open_mutex); pcm 2604 sound/core/pcm_native.c module_put(pcm->card->module); pcm 2606 sound/core/pcm_native.c snd_card_file_remove(pcm->card, file); pcm 2613 sound/core/pcm_native.c struct snd_pcm *pcm; pcm 2621 sound/core/pcm_native.c pcm = substream->pcm; pcm 2622 sound/core/pcm_native.c mutex_lock(&pcm->open_mutex); pcm 2625 sound/core/pcm_native.c mutex_unlock(&pcm->open_mutex); pcm 2626 sound/core/pcm_native.c wake_up(&pcm->open_wait); pcm 2627 sound/core/pcm_native.c module_put(pcm->card->module); pcm 2628 sound/core/pcm_native.c snd_card_file_remove(pcm->card, file); pcm 2911 sound/core/pcm_native.c res = snd_power_wait(substream->pcm->card, SNDRV_CTL_POWER_D0); pcm 2999 sound/core/pcm_native.c pcm_dbg(substream->pcm, "unknown ioctl = 0x%x\n", cmd); pcm 43 sound/core/pcm_param_trace.h __entry->card = substream->pcm->card->number; pcm 44 sound/core/pcm_param_trace.h __entry->device = substream->pcm->device; pcm 93 sound/core/pcm_param_trace.h __entry->card = substream->pcm->card->number; pcm 94 sound/core/pcm_param_trace.h __entry->device = substream->pcm->device; pcm 43 sound/core/pcm_timer.c pcm_err(substream->pcm, pcm 105 sound/core/pcm_timer.c tid.card = substream->pcm->card->number; pcm 106 sound/core/pcm_timer.c tid.device = substream->pcm->device; pcm 108 sound/core/pcm_timer.c if (snd_timer_new(substream->pcm->card, "PCM", &tid, &timer) < 0) pcm 127 sound/core/pcm_timer.c snd_device_free(substream->pcm->card, substream->timer); pcm 28 sound/core/pcm_trace.h __entry->card = (substream)->pcm->card->number; pcm 29 sound/core/pcm_trace.h __entry->device = (substream)->pcm->device; pcm 64 sound/core/pcm_trace.h __entry->card = (substream)->pcm->card->number; pcm 65 sound/core/pcm_trace.h __entry->device = (substream)->pcm->device; pcm 94 sound/core/pcm_trace.h __entry->card = (substream)->pcm->card->number; pcm 95 sound/core/pcm_trace.h __entry->device = (substream)->pcm->device; pcm 121 sound/core/pcm_trace.h __entry->card = (substream)->pcm->card->number; pcm 122 sound/core/pcm_trace.h __entry->device = (substream)->pcm->device; pcm 86 sound/drivers/aloop.c struct snd_pcm *pcm[2]; pcm 138 sound/drivers/aloop.c int device = dpcm->substream->pstr->pcm->device; pcm 597 sound/drivers/aloop.c if (!substream->pcm->device) pcm 774 sound/drivers/aloop.c struct snd_pcm *pcm; pcm 778 sound/drivers/aloop.c substreams, substreams, &pcm); pcm 781 sound/drivers/aloop.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &loopback_pcm_ops); pcm 782 sound/drivers/aloop.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &loopback_pcm_ops); pcm 784 sound/drivers/aloop.c pcm->private_data = loopback; pcm 785 sound/drivers/aloop.c pcm->info_flags = 0; pcm 786 sound/drivers/aloop.c strcpy(pcm->name, "Loopback PCM"); pcm 788 sound/drivers/aloop.c loopback->pcm[device] = pcm; pcm 1013 sound/drivers/aloop.c struct snd_pcm *pcm; pcm 1020 sound/drivers/aloop.c pcm = loopback->pcm[dev]; pcm 1022 sound/drivers/aloop.c pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream_count; pcm 121 sound/drivers/dummy.c struct snd_pcm *pcm; pcm 563 sound/drivers/dummy.c if (substream->pcm->device & 1) { pcm 567 sound/drivers/dummy.c if (substream->pcm->device & 2) pcm 684 sound/drivers/dummy.c struct snd_pcm *pcm; pcm 689 sound/drivers/dummy.c substreams, substreams, &pcm); pcm 692 sound/drivers/dummy.c dummy->pcm = pcm; pcm 697 sound/drivers/dummy.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, ops); pcm 698 sound/drivers/dummy.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, ops); pcm 699 sound/drivers/dummy.c pcm->private_data = dummy; pcm 700 sound/drivers/dummy.c pcm->info_flags = 0; pcm 701 sound/drivers/dummy.c strcpy(pcm->name, "Dummy PCM"); pcm 703 sound/drivers/dummy.c snd_pcm_lib_preallocate_pages_for_all(pcm, pcm 354 sound/drivers/ml403-ac97cr.c struct snd_pcm *pcm; pcm 1228 sound/drivers/ml403-ac97cr.c struct snd_pcm *pcm; pcm 1232 sound/drivers/ml403-ac97cr.c &pcm); pcm 1235 sound/drivers/ml403-ac97cr.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1237 sound/drivers/ml403-ac97cr.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 1239 sound/drivers/ml403-ac97cr.c pcm->private_data = ml403_ac97cr; pcm 1240 sound/drivers/ml403-ac97cr.c pcm->info_flags = 0; pcm 1241 sound/drivers/ml403-ac97cr.c strcpy(pcm->name, "ML403AC97CR DAC/ADC"); pcm 1242 sound/drivers/ml403-ac97cr.c ml403_ac97cr->pcm = pcm; pcm 1244 sound/drivers/ml403-ac97cr.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, pcm 55 sound/drivers/pcsp/pcsp.h struct snd_pcm *pcm; pcm 342 sound/drivers/pcsp/pcsp_lib.c err = snd_pcm_new(chip->card, "pcspeaker", 0, 1, 0, &chip->pcm); pcm 346 sound/drivers/pcsp/pcsp_lib.c snd_pcm_set_ops(chip->pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 349 sound/drivers/pcsp/pcsp_lib.c chip->pcm->private_data = chip; pcm 350 sound/drivers/pcsp/pcsp_lib.c chip->pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX; pcm 351 sound/drivers/pcsp/pcsp_lib.c strcpy(chip->pcm->name, "pcsp"); pcm 353 sound/drivers/pcsp/pcsp_lib.c snd_pcm_lib_preallocate_pages_for_all(chip->pcm, pcm 522 sound/drivers/vx/vx_pcm.c audio = subs->pcm->device * 2; pcm 913 sound/drivers/vx/vx_pcm.c audio = subs->pcm->device * 2; pcm 1200 sound/drivers/vx/vx_pcm.c static void snd_vx_pcm_free(struct snd_pcm *pcm) pcm 1202 sound/drivers/vx/vx_pcm.c struct vx_core *chip = pcm->private_data; pcm 1203 sound/drivers/vx/vx_pcm.c chip->pcm[pcm->device] = NULL; pcm 1215 sound/drivers/vx/vx_pcm.c struct snd_pcm *pcm; pcm 1229 sound/drivers/vx/vx_pcm.c outs, ins, &pcm); pcm 1233 sound/drivers/vx/vx_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &vx_pcm_playback_ops); pcm 1235 sound/drivers/vx/vx_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &vx_pcm_capture_ops); pcm 1237 sound/drivers/vx/vx_pcm.c pcm->private_data = chip; pcm 1238 sound/drivers/vx/vx_pcm.c pcm->private_free = snd_vx_pcm_free; pcm 1239 sound/drivers/vx/vx_pcm.c pcm->info_flags = 0; pcm 1240 sound/drivers/vx/vx_pcm.c pcm->nonatomic = true; pcm 1241 sound/drivers/vx/vx_pcm.c strcpy(pcm->name, chip->card->shortname); pcm 1242 sound/drivers/vx/vx_pcm.c chip->pcm[i] = pcm; pcm 149 sound/firewire/amdtp-am824.c static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, pcm 155 sound/firewire/amdtp-am824.c struct snd_pcm_runtime *runtime = pcm->runtime; pcm 180 sound/firewire/amdtp-am824.c static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, pcm 186 sound/firewire/amdtp-am824.c struct snd_pcm_runtime *runtime = pcm->runtime; pcm 351 sound/firewire/amdtp-am824.c struct snd_pcm_substream *pcm) pcm 362 sound/firewire/amdtp-am824.c if (pcm) { pcm 363 sound/firewire/amdtp-am824.c write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); pcm 381 sound/firewire/amdtp-am824.c struct snd_pcm_substream *pcm) pcm 392 sound/firewire/amdtp-am824.c if (pcm) { pcm 393 sound/firewire/amdtp-am824.c read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); pcm 413 sound/firewire/amdtp-stream.c struct snd_pcm_substream *pcm, pcm 419 sound/firewire/amdtp-stream.c if (ptr >= pcm->runtime->buffer_size) pcm 420 sound/firewire/amdtp-stream.c ptr -= pcm->runtime->buffer_size; pcm 424 sound/firewire/amdtp-stream.c if (s->pcm_period_pointer >= pcm->runtime->period_size) { pcm 425 sound/firewire/amdtp-stream.c s->pcm_period_pointer -= pcm->runtime->period_size; pcm 433 sound/firewire/amdtp-stream.c struct snd_pcm_substream *pcm = READ_ONCE(s->pcm); pcm 435 sound/firewire/amdtp-stream.c if (pcm) pcm 436 sound/firewire/amdtp-stream.c snd_pcm_period_elapsed(pcm); pcm 767 sound/firewire/amdtp-stream.c struct snd_pcm_substream *pcm; pcm 770 sound/firewire/amdtp-stream.c pcm = READ_ONCE(s->pcm); pcm 771 sound/firewire/amdtp-stream.c pcm_frames = s->process_ctx_payloads(s, descs, packets, pcm); pcm 772 sound/firewire/amdtp-stream.c if (pcm) pcm 773 sound/firewire/amdtp-stream.c update_pcm_pointers(s, pcm, pcm_frames); pcm 1130 sound/firewire/amdtp-stream.c struct snd_pcm_substream *pcm; pcm 1132 sound/firewire/amdtp-stream.c pcm = READ_ONCE(s->pcm); pcm 1133 sound/firewire/amdtp-stream.c if (pcm) pcm 1134 sound/firewire/amdtp-stream.c snd_pcm_stop_xrun(pcm); pcm 110 sound/firewire/amdtp-stream.h struct snd_pcm_substream *pcm); pcm 160 sound/firewire/amdtp-stream.h struct snd_pcm_substream *pcm; pcm 235 sound/firewire/amdtp-stream.h return !!s->pcm; pcm 248 sound/firewire/amdtp-stream.h struct snd_pcm_substream *pcm) pcm 250 sound/firewire/amdtp-stream.h WRITE_ONCE(s->pcm, pcm); pcm 45 sound/firewire/bebob/bebob.h unsigned int pcm; pcm 246 sound/firewire/bebob/bebob_maudio.c bebob->tx_stream_formations[i + 1].pcm = pcm 250 sound/firewire/bebob/bebob_maudio.c bebob->rx_stream_formations[i + 1].pcm = pcm 25 sound/firewire/bebob/bebob_pcm.c if (formations[i].pcm == 0) pcm 28 sound/firewire/bebob/bebob_pcm.c if (!snd_interval_test(c, formations[i].pcm)) pcm 54 sound/firewire/bebob/bebob_pcm.c if (formations[i].pcm == 0) pcm 60 sound/firewire/bebob/bebob_pcm.c t.min = min(t.min, formations[i].pcm); pcm 61 sound/firewire/bebob/bebob_pcm.c t.max = max(t.max, formations[i].pcm); pcm 82 sound/firewire/bebob/bebob_pcm.c if (formations[i].pcm == 0) pcm 85 sound/firewire/bebob/bebob_pcm.c hw->channels_min = min(hw->channels_min, formations[i].pcm); pcm 86 sound/firewire/bebob/bebob_pcm.c hw->channels_max = max(hw->channels_max, formations[i].pcm); pcm 342 sound/firewire/bebob/bebob_pcm.c struct snd_pcm *pcm; pcm 345 sound/firewire/bebob/bebob_pcm.c err = snd_pcm_new(bebob->card, bebob->card->driver, 0, 1, 1, &pcm); pcm 349 sound/firewire/bebob/bebob_pcm.c pcm->private_data = bebob; pcm 350 sound/firewire/bebob/bebob_pcm.c snprintf(pcm->name, sizeof(pcm->name), pcm 352 sound/firewire/bebob/bebob_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_ops); pcm 353 sound/firewire/bebob/bebob_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_ops); pcm 117 sound/firewire/bebob/bebob_proc.c formation[i].pcm, formation[i].midi); pcm 126 sound/firewire/bebob/bebob_proc.c formation[i].pcm, formation[i].midi); pcm 258 sound/firewire/bebob/bebob_stream.c unsigned int pcm, midi, location; pcm 289 sound/firewire/bebob/bebob_stream.c pcm = 0; pcm 356 sound/firewire/bebob/bebob_stream.c location = pcm + sec_loc; pcm 368 sound/firewire/bebob/bebob_stream.c pcm += channels; pcm 549 sound/firewire/bebob/bebob_stream.c err = amdtp_am824_set_parameters(stream, rate, formation->pcm, pcm 746 sound/firewire/bebob/bebob_stream.c formation[i].pcm += channels; pcm 775 sound/firewire/bebob/bebob_stream.c if (formation[i].pcm > AM824_MAX_CHANNELS_FOR_PCM || pcm 16 sound/firewire/dice/dice-pcm.c unsigned int index = substream->pcm->device; pcm 54 sound/firewire/dice/dice-pcm.c unsigned int index = substream->pcm->device; pcm 130 sound/firewire/dice/dice-pcm.c unsigned int index = substream->pcm->device; pcm 276 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; pcm 290 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; pcm 305 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; pcm 323 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; pcm 342 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; pcm 349 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; pcm 357 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; pcm 365 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; pcm 396 sound/firewire/dice/dice-pcm.c struct snd_pcm *pcm; pcm 411 sound/firewire/dice/dice-pcm.c &pcm); pcm 414 sound/firewire/dice/dice-pcm.c pcm->private_data = dice; pcm 415 sound/firewire/dice/dice-pcm.c strcpy(pcm->name, dice->card->shortname); pcm 418 sound/firewire/dice/dice-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 422 sound/firewire/dice/dice-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 145 sound/firewire/digi00x/amdtp-dot.c static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, pcm 151 sound/firewire/digi00x/amdtp-dot.c struct snd_pcm_runtime *runtime = pcm->runtime; pcm 177 sound/firewire/digi00x/amdtp-dot.c static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, pcm 183 sound/firewire/digi00x/amdtp-dot.c struct snd_pcm_runtime *runtime = pcm->runtime; pcm 347 sound/firewire/digi00x/amdtp-dot.c struct snd_pcm_substream *pcm) pcm 357 sound/firewire/digi00x/amdtp-dot.c if (pcm) { pcm 358 sound/firewire/digi00x/amdtp-dot.c read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); pcm 371 sound/firewire/digi00x/amdtp-dot.c struct snd_pcm_substream *pcm) pcm 381 sound/firewire/digi00x/amdtp-dot.c if (pcm) { pcm 382 sound/firewire/digi00x/amdtp-dot.c write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); pcm 321 sound/firewire/digi00x/digi00x-pcm.c struct snd_pcm *pcm; pcm 324 sound/firewire/digi00x/digi00x-pcm.c err = snd_pcm_new(dg00x->card, dg00x->card->driver, 0, 1, 1, &pcm); pcm 328 sound/firewire/digi00x/digi00x-pcm.c pcm->private_data = dg00x; pcm 329 sound/firewire/digi00x/digi00x-pcm.c snprintf(pcm->name, sizeof(pcm->name), pcm 331 sound/firewire/digi00x/digi00x-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_ops); pcm 332 sound/firewire/digi00x/digi00x-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_ops); pcm 30 sound/firewire/fireface/amdtp-ff.c static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, pcm 36 sound/firewire/fireface/amdtp-ff.c struct snd_pcm_runtime *runtime = pcm->runtime; pcm 60 sound/firewire/fireface/amdtp-ff.c static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, pcm 66 sound/firewire/fireface/amdtp-ff.c struct snd_pcm_runtime *runtime = pcm->runtime; pcm 118 sound/firewire/fireface/amdtp-ff.c struct snd_pcm_substream *pcm) pcm 128 sound/firewire/fireface/amdtp-ff.c if (pcm) { pcm 129 sound/firewire/fireface/amdtp-ff.c write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); pcm 142 sound/firewire/fireface/amdtp-ff.c struct snd_pcm_substream *pcm) pcm 152 sound/firewire/fireface/amdtp-ff.c if (pcm) { pcm 153 sound/firewire/fireface/amdtp-ff.c read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); pcm 365 sound/firewire/fireface/ff-pcm.c struct snd_pcm *pcm; pcm 368 sound/firewire/fireface/ff-pcm.c err = snd_pcm_new(ff->card, ff->card->driver, 0, 1, 1, &pcm); pcm 372 sound/firewire/fireface/ff-pcm.c pcm->private_data = ff; pcm 373 sound/firewire/fireface/ff-pcm.c snprintf(pcm->name, sizeof(pcm->name), pcm 375 sound/firewire/fireface/ff-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcm_playback_ops); pcm 376 sound/firewire/fireface/ff-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pcm_capture_ops); pcm 370 sound/firewire/fireworks/fireworks_pcm.c struct snd_pcm *pcm; pcm 373 sound/firewire/fireworks/fireworks_pcm.c err = snd_pcm_new(efw->card, efw->card->driver, 0, 1, 1, &pcm); pcm 377 sound/firewire/fireworks/fireworks_pcm.c pcm->private_data = efw; pcm 378 sound/firewire/fireworks/fireworks_pcm.c snprintf(pcm->name, sizeof(pcm->name), "%s PCM", efw->card->shortname); pcm 379 sound/firewire/fireworks/fireworks_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_ops); pcm 380 sound/firewire/fireworks/fireworks_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_ops); pcm 54 sound/firewire/isight.c struct snd_pcm_substream *pcm; pcm 90 sound/firewire/isight.c struct snd_pcm_runtime *runtime = isight->pcm->runtime; pcm 104 sound/firewire/isight.c snd_pcm_period_elapsed(isight->pcm); pcm 117 sound/firewire/isight.c runtime = isight->pcm->runtime; pcm 135 sound/firewire/isight.c snd_pcm_stop_xrun(isight->pcm); pcm 147 sound/firewire/isight.c runtime = isight->pcm->runtime; pcm 458 sound/firewire/isight.c struct snd_pcm *pcm; pcm 461 sound/firewire/isight.c err = snd_pcm_new(isight->card, "iSight", 0, 0, 1, &pcm); pcm 464 sound/firewire/isight.c pcm->private_data = isight; pcm 465 sound/firewire/isight.c strcpy(pcm->name, "iSight"); pcm 466 sound/firewire/isight.c isight->pcm = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; pcm 467 sound/firewire/isight.c isight->pcm->ops = &ops; pcm 120 sound/firewire/motu/amdtp-motu.c static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, pcm 126 sound/firewire/motu/amdtp-motu.c struct snd_pcm_runtime *runtime = pcm->runtime; pcm 156 sound/firewire/motu/amdtp-motu.c static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, pcm 162 sound/firewire/motu/amdtp-motu.c struct snd_pcm_runtime *runtime = pcm->runtime; pcm 332 sound/firewire/motu/amdtp-motu.c struct snd_pcm_substream *pcm) pcm 344 sound/firewire/motu/amdtp-motu.c if (pcm) { pcm 345 sound/firewire/motu/amdtp-motu.c read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); pcm 406 sound/firewire/motu/amdtp-motu.c struct snd_pcm_substream *pcm) pcm 418 sound/firewire/motu/amdtp-motu.c if (pcm) { pcm 419 sound/firewire/motu/amdtp-motu.c write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); pcm 347 sound/firewire/motu/motu-pcm.c struct snd_pcm *pcm; pcm 350 sound/firewire/motu/motu-pcm.c err = snd_pcm_new(motu->card, motu->card->driver, 0, 1, 1, &pcm); pcm 353 sound/firewire/motu/motu-pcm.c pcm->private_data = motu; pcm 354 sound/firewire/motu/motu-pcm.c strcpy(pcm->name, motu->card->shortname); pcm 356 sound/firewire/motu/motu-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_ops); pcm 357 sound/firewire/motu/motu-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_ops); pcm 31 sound/firewire/oxfw/oxfw-pcm.c if (!snd_interval_test(c, formation.pcm)) pcm 63 sound/firewire/oxfw/oxfw-pcm.c if (list[count] == formation.pcm) pcm 67 sound/firewire/oxfw/oxfw-pcm.c if (list[j] == formation.pcm) pcm 71 sound/firewire/oxfw/oxfw-pcm.c list[count] = formation.pcm; pcm 100 sound/firewire/oxfw/oxfw-pcm.c hw->channels_min = min(hw->channels_min, formation.pcm); pcm 101 sound/firewire/oxfw/oxfw-pcm.c hw->channels_max = max(hw->channels_max, formation.pcm); pcm 162 sound/firewire/oxfw/oxfw-pcm.c substream->runtime->hw.channels_min = formation.pcm; pcm 163 sound/firewire/oxfw/oxfw-pcm.c substream->runtime->hw.channels_max = formation.pcm; pcm 326 sound/firewire/oxfw/oxfw-pcm.c struct snd_pcm_substream *pcm; pcm 330 sound/firewire/oxfw/oxfw-pcm.c pcm = substream; pcm 333 sound/firewire/oxfw/oxfw-pcm.c pcm = NULL; pcm 338 sound/firewire/oxfw/oxfw-pcm.c amdtp_stream_pcm_trigger(&oxfw->tx_stream, pcm); pcm 344 sound/firewire/oxfw/oxfw-pcm.c struct snd_pcm_substream *pcm; pcm 348 sound/firewire/oxfw/oxfw-pcm.c pcm = substream; pcm 351 sound/firewire/oxfw/oxfw-pcm.c pcm = NULL; pcm 356 sound/firewire/oxfw/oxfw-pcm.c amdtp_stream_pcm_trigger(&oxfw->rx_stream, pcm); pcm 413 sound/firewire/oxfw/oxfw-pcm.c struct snd_pcm *pcm; pcm 420 sound/firewire/oxfw/oxfw-pcm.c err = snd_pcm_new(oxfw->card, oxfw->card->driver, 0, 1, cap, &pcm); pcm 424 sound/firewire/oxfw/oxfw-pcm.c pcm->private_data = oxfw; pcm 425 sound/firewire/oxfw/oxfw-pcm.c strcpy(pcm->name, oxfw->card->shortname); pcm 426 sound/firewire/oxfw/oxfw-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_ops); pcm 428 sound/firewire/oxfw/oxfw-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_ops); pcm 43 sound/firewire/oxfw/oxfw-proc.c formation.rate, formation.pcm, formation.midi); pcm 73 sound/firewire/oxfw/oxfw-proc.c formation.rate, formation.pcm, formation.midi); pcm 80 sound/firewire/oxfw/oxfw-stream.c if ((formation.rate == rate) && (formation.pcm == pcm_channels)) pcm 226 sound/firewire/oxfw/oxfw-stream.c if (fmt.rate == formation.rate && fmt.pcm == formation.pcm && pcm 234 sound/firewire/oxfw/oxfw-stream.c if (formation.pcm == 0) pcm 237 sound/firewire/oxfw/oxfw-stream.c err = amdtp_am824_set_parameters(stream, formation.rate, formation.pcm, pcm 274 sound/firewire/oxfw/oxfw-stream.c pcm_channels = formation.pcm; pcm 276 sound/firewire/oxfw/oxfw-stream.c if (formation.rate != rate || formation.pcm != pcm_channels) { pcm 289 sound/firewire/oxfw/oxfw-stream.c formation.rate != rate || formation.pcm != pcm_channels) { pcm 526 sound/firewire/oxfw/oxfw-stream.c formation->pcm += channels; pcm 561 sound/firewire/oxfw/oxfw-stream.c if (formation->pcm > AM824_MAX_CHANNELS_FOR_PCM || pcm 114 sound/firewire/oxfw/oxfw.h unsigned int pcm; pcm 35 sound/firewire/tascam/amdtp-tascam.c static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, pcm 41 sound/firewire/tascam/amdtp-tascam.c struct snd_pcm_runtime *runtime = pcm->runtime; pcm 65 sound/firewire/tascam/amdtp-tascam.c static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, pcm 71 sound/firewire/tascam/amdtp-tascam.c struct snd_pcm_runtime *runtime = pcm->runtime; pcm 182 sound/firewire/tascam/amdtp-tascam.c struct snd_pcm_substream *pcm) pcm 192 sound/firewire/tascam/amdtp-tascam.c if (pcm) { pcm 193 sound/firewire/tascam/amdtp-tascam.c read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); pcm 206 sound/firewire/tascam/amdtp-tascam.c struct snd_pcm_substream *pcm) pcm 216 sound/firewire/tascam/amdtp-tascam.c if (pcm) { pcm 217 sound/firewire/tascam/amdtp-tascam.c write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); pcm 253 sound/firewire/tascam/tascam-pcm.c struct snd_pcm *pcm; pcm 256 sound/firewire/tascam/tascam-pcm.c err = snd_pcm_new(tscm->card, tscm->card->driver, 0, 1, 1, &pcm); pcm 260 sound/firewire/tascam/tascam-pcm.c pcm->private_data = tscm; pcm 261 sound/firewire/tascam/tascam-pcm.c snprintf(pcm->name, sizeof(pcm->name), pcm 263 sound/firewire/tascam/tascam-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_ops); pcm 264 sound/firewire/tascam/tascam-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_ops); pcm 289 sound/hda/hdac_stream.c int key = (substream->pcm->device << 16) | (substream->number << 2) | pcm 826 sound/hda/hdmi_chmap.c int snd_hdac_add_chmap_ctls(struct snd_pcm *pcm, int pcm_idx, pcm 833 sound/hda/hdmi_chmap.c err = snd_pcm_add_chmap_ctls(pcm, pcm 530 sound/i2c/cs8427.c kctl->id.device = play_substream->pcm->device; pcm 498 sound/i2c/other/ak4113.c kctl->id.device = cap_substream->pcm->device; pcm 479 sound/i2c/other/ak4114.c kctl->id.device = ply_substream->pcm->device; pcm 482 sound/i2c/other/ak4114.c kctl->id.device = cap_substream->pcm->device; pcm 423 sound/i2c/other/ak4117.c kctl->id.device = cap_substream->pcm->device; pcm 669 sound/isa/ad1816a/ad1816a_lib.c struct snd_pcm *pcm; pcm 671 sound/isa/ad1816a/ad1816a_lib.c if ((error = snd_pcm_new(chip->card, "AD1816A", device, 1, 1, &pcm))) pcm 674 sound/isa/ad1816a/ad1816a_lib.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ad1816a_playback_ops); pcm 675 sound/isa/ad1816a/ad1816a_lib.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ad1816a_capture_ops); pcm 677 sound/isa/ad1816a/ad1816a_lib.c pcm->private_data = chip; pcm 678 sound/isa/ad1816a/ad1816a_lib.c pcm->info_flags = (chip->dma1 == chip->dma2 ) ? SNDRV_PCM_INFO_JOINT_DUPLEX : 0; pcm 680 sound/isa/ad1816a/ad1816a_lib.c strcpy(pcm->name, snd_ad1816a_chip_id(chip)); pcm 683 sound/isa/ad1816a/ad1816a_lib.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 687 sound/isa/ad1816a/ad1816a_lib.c chip->pcm = pcm; pcm 99 sound/isa/ad1848/ad1848.c strlcpy(card->shortname, chip->pcm->name, sizeof(card->shortname)); pcm 104 sound/isa/ad1848/ad1848.c chip->pcm->name, chip->port, irq[n], dma1[n]); pcm 108 sound/isa/ad1848/ad1848.c chip->pcm->name, chip->port, irq[n], dma1[n]); pcm 159 sound/isa/cmi8330.c struct snd_pcm *pcm; pcm 428 sound/isa/cmi8330.c struct snd_pcm *pcm; pcm 436 sound/isa/cmi8330.c if ((err = snd_pcm_new(card, (chip->type == CMI8329) ? "CMI8329" : "CMI8330", 0, 1, 1, &pcm)) < 0) pcm 438 sound/isa/cmi8330.c strcpy(pcm->name, (chip->type == CMI8329) ? "CMI8329" : "CMI8330"); pcm 439 sound/isa/cmi8330.c pcm->private_data = chip; pcm 455 sound/isa/cmi8330.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &chip->streams[SNDRV_PCM_STREAM_PLAYBACK].ops); pcm 456 sound/isa/cmi8330.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &chip->streams[SNDRV_PCM_STREAM_CAPTURE].ops); pcm 458 sound/isa/cmi8330.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 461 sound/isa/cmi8330.c chip->pcm = pcm; pcm 99 sound/isa/cs423x/cs4231.c strlcpy(card->shortname, chip->pcm->name, sizeof(card->shortname)); pcm 104 sound/isa/cs423x/cs4231.c chip->pcm->name, chip->port, irq[n], dma1[n]); pcm 108 sound/isa/cs423x/cs4231.c chip->pcm->name, chip->port, irq[n], dma1[n], dma2[n]); pcm 408 sound/isa/cs423x/cs4236.c strlcpy(card->driver, chip->pcm->name, sizeof(card->driver)); pcm 409 sound/isa/cs423x/cs4236.c strlcpy(card->shortname, chip->pcm->name, sizeof(card->shortname)); pcm 413 sound/isa/cs423x/cs4236.c chip->pcm->name, chip->port, irq[dev], dma1[dev]); pcm 417 sound/isa/cs423x/cs4236.c chip->pcm->name, chip->port, irq[dev], dma1[dev], pcm 372 sound/isa/cs423x/cs4236_lib.c chip->pcm->info_flags &= ~SNDRV_PCM_INFO_JOINT_DUPLEX; pcm 137 sound/isa/es1688/es1688.c strlcpy(card->shortname, chip->pcm->name, sizeof(card->shortname)); pcm 139 sound/isa/es1688/es1688.c "%s at 0x%lx, irq %i, dma %i", chip->pcm->name, chip->port, pcm 716 sound/isa/es1688/es1688_lib.c struct snd_pcm *pcm; pcm 719 sound/isa/es1688/es1688_lib.c err = snd_pcm_new(card, "ESx688", device, 1, 1, &pcm); pcm 723 sound/isa/es1688/es1688_lib.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_es1688_playback_ops); pcm 724 sound/isa/es1688/es1688_lib.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_es1688_capture_ops); pcm 726 sound/isa/es1688/es1688_lib.c pcm->private_data = chip; pcm 727 sound/isa/es1688/es1688_lib.c pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX; pcm 728 sound/isa/es1688/es1688_lib.c strcpy(pcm->name, snd_es1688_chip_id(chip)); pcm 729 sound/isa/es1688/es1688_lib.c chip->pcm = pcm; pcm 731 sound/isa/es1688/es1688_lib.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 104 sound/isa/es18xx.c struct snd_pcm *pcm; pcm 1679 sound/isa/es18xx.c struct snd_pcm *pcm; pcm 1685 sound/isa/es18xx.c err = snd_pcm_new(card, str, device, 2, 1, &pcm); pcm 1687 sound/isa/es18xx.c err = snd_pcm_new(card, str, device, 1, 1, &pcm); pcm 1691 sound/isa/es18xx.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_es18xx_playback_ops); pcm 1692 sound/isa/es18xx.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_es18xx_capture_ops); pcm 1695 sound/isa/es18xx.c pcm->private_data = chip; pcm 1696 sound/isa/es18xx.c pcm->info_flags = 0; pcm 1698 sound/isa/es18xx.c pcm->info_flags |= SNDRV_PCM_INFO_JOINT_DUPLEX; pcm 1700 sound/isa/es18xx.c pcm->info_flags |= SNDRV_PCM_INFO_HALF_DUPLEX; pcm 1701 sound/isa/es18xx.c sprintf(pcm->name, "ESS AudioDrive ES%x", chip->version); pcm 1702 sound/isa/es18xx.c chip->pcm = pcm; pcm 1704 sound/isa/es18xx.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1833 sound/isa/es18xx.c strcpy(card->mixername, chip->pcm->name); pcm 699 sound/isa/gus/gus_pcm.c (long) pcm->playback.buffer, (long) gus->gf1.pcm_buffer); pcm 794 sound/isa/gus/gus_pcm.c if (!pvoice->pcm) pcm 859 sound/isa/gus/gus_pcm.c struct snd_pcm *pcm; pcm 870 sound/isa/gus/gus_pcm.c &pcm); pcm 873 sound/isa/gus/gus_pcm.c pcm->private_data = gus; pcm 875 sound/isa/gus/gus_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_gf1_pcm_playback_ops); pcm 877 sound/isa/gus/gus_pcm.c for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substream->next) pcm 882 sound/isa/gus/gus_pcm.c pcm->info_flags = 0; pcm 883 sound/isa/gus/gus_pcm.c pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; pcm 885 sound/isa/gus/gus_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_gf1_pcm_capture_ops); pcm 887 sound/isa/gus/gus_pcm.c pcm->info_flags |= SNDRV_PCM_INFO_HALF_DUPLEX; pcm 888 sound/isa/gus/gus_pcm.c snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, pcm 892 sound/isa/gus/gus_pcm.c strcpy(pcm->name, pcm->id); pcm 894 sound/isa/gus/gus_pcm.c sprintf(pcm->name + strlen(pcm->name), " rev %c", gus->revision + 'A'); pcm 896 sound/isa/gus/gus_pcm.c strcat(pcm->name, " (synth)"); pcm 897 sound/isa/gus/gus_pcm.c gus->pcm = pcm; pcm 227 sound/isa/gus/gus_reset.c pvoice->pcm = 1; pcm 289 sound/isa/gus/gus_reset.c if (voice->pcm) pcm 291 sound/isa/gus/gus_reset.c voice->use = voice->pcm = 0; pcm 686 sound/isa/gus/interwave.c sprintf(wss->pcm->name + strlen(wss->pcm->name), " rev %c", pcm 688 sound/isa/gus/interwave.c strcat(wss->pcm->name, " (codec)"); pcm 673 sound/isa/msnd/msnd.c struct snd_pcm *pcm; pcm 676 sound/isa/msnd/msnd.c err = snd_pcm_new(card, "MSNDPINNACLE", device, 1, 1, &pcm); pcm 680 sound/isa/msnd/msnd.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_msnd_playback_ops); pcm 681 sound/isa/msnd/msnd.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_msnd_capture_ops); pcm 683 sound/isa/msnd/msnd.c pcm->private_data = chip; pcm 684 sound/isa/msnd/msnd.c strcpy(pcm->name, "Hurricane"); pcm 107 sound/isa/opti9xx/miro.c struct snd_pcm *pcm; pcm 940 sound/isa/opti9xx/miro.c snd_iprintf(buffer, " codec : %s\n", miro->pcm->name); pcm 1315 sound/isa/opti9xx/miro.c miro->pcm = codec->pcm; pcm 1350 sound/isa/opti9xx/miro.c card->shortname, miro->name, codec->pcm->name, pcm 595 sound/isa/opti9xx/opti92x-ad1848.c if (snd_BUG_ON(!chip || !chip->pcm)) pcm 600 sound/isa/opti9xx/opti92x-ad1848.c strcpy(card->mixername, chip->pcm->name); pcm 880 sound/isa/opti9xx/opti92x-ad1848.c card->shortname, codec->pcm->name, pcm 885 sound/isa/opti9xx/opti92x-ad1848.c card->shortname, codec->pcm->name, chip->wss_base + 4, irq, pcm 675 sound/isa/sb/emu8000_pcm.c static void snd_emu8000_pcm_free(struct snd_pcm *pcm) pcm 677 sound/isa/sb/emu8000_pcm.c struct snd_emu8000 *emu = pcm->private_data; pcm 678 sound/isa/sb/emu8000_pcm.c emu->pcm = NULL; pcm 683 sound/isa/sb/emu8000_pcm.c struct snd_pcm *pcm; pcm 686 sound/isa/sb/emu8000_pcm.c if ((err = snd_pcm_new(card, "Emu8000 PCM", index, 1, 0, &pcm)) < 0) pcm 688 sound/isa/sb/emu8000_pcm.c pcm->private_data = emu; pcm 689 sound/isa/sb/emu8000_pcm.c pcm->private_free = snd_emu8000_pcm_free; pcm 690 sound/isa/sb/emu8000_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &emu8k_pcm_ops); pcm 691 sound/isa/sb/emu8000_pcm.c emu->pcm = pcm; pcm 693 sound/isa/sb/emu8000_pcm.c snd_device_register(card, pcm); pcm 93 sound/isa/sb/emu8000_synth.c if (hw->pcm) pcm 94 sound/isa/sb/emu8000_synth.c snd_device_free(dev->card, hw->pcm); pcm 854 sound/isa/sb/sb16_main.c struct snd_pcm *pcm; pcm 857 sound/isa/sb/sb16_main.c if ((err = snd_pcm_new(card, "SB16 DSP", device, 1, 1, &pcm)) < 0) pcm 859 sound/isa/sb/sb16_main.c sprintf(pcm->name, "DSP v%i.%i", chip->version >> 8, chip->version & 0xff); pcm 860 sound/isa/sb/sb16_main.c pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; pcm 861 sound/isa/sb/sb16_main.c pcm->private_data = chip; pcm 862 sound/isa/sb/sb16_main.c chip->pcm = pcm; pcm 864 sound/isa/sb/sb16_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sb16_playback_ops); pcm 865 sound/isa/sb/sb16_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_sb16_capture_ops); pcm 873 sound/isa/sb/sb16_main.c pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX; pcm 876 sound/isa/sb/sb16_main.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 583 sound/isa/sb/sb8_main.c struct snd_pcm *pcm; pcm 587 sound/isa/sb/sb8_main.c if ((err = snd_pcm_new(card, "SB8 DSP", device, 1, 1, &pcm)) < 0) pcm 589 sound/isa/sb/sb8_main.c sprintf(pcm->name, "DSP v%i.%i", chip->version >> 8, chip->version & 0xff); pcm 590 sound/isa/sb/sb8_main.c pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX; pcm 591 sound/isa/sb/sb8_main.c pcm->private_data = chip; pcm 593 sound/isa/sb/sb8_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sb8_playback_ops); pcm 594 sound/isa/sb/sb8_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_sb8_capture_ops); pcm 598 sound/isa/sb/sb8_main.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1911 sound/isa/wss/wss_lib.c struct snd_pcm *pcm; pcm 1914 sound/isa/wss/wss_lib.c err = snd_pcm_new(chip->card, "WSS", device, 1, 1, &pcm); pcm 1918 sound/isa/wss/wss_lib.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_wss_playback_ops); pcm 1919 sound/isa/wss/wss_lib.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_wss_capture_ops); pcm 1922 sound/isa/wss/wss_lib.c pcm->private_data = chip; pcm 1923 sound/isa/wss/wss_lib.c pcm->info_flags = 0; pcm 1925 sound/isa/wss/wss_lib.c pcm->info_flags |= SNDRV_PCM_INFO_HALF_DUPLEX; pcm 1927 sound/isa/wss/wss_lib.c pcm->info_flags |= SNDRV_PCM_INFO_JOINT_DUPLEX; pcm 1928 sound/isa/wss/wss_lib.c strcpy(pcm->name, snd_wss_chip_id(chip)); pcm 1930 sound/isa/wss/wss_lib.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1934 sound/isa/wss/wss_lib.c chip->pcm = pcm; pcm 2234 sound/isa/wss/wss_lib.c if (snd_BUG_ON(!chip || !chip->pcm)) pcm 2239 sound/isa/wss/wss_lib.c strcpy(card->mixername, chip->pcm->name); pcm 727 sound/mips/hal2.c struct snd_pcm *pcm; pcm 731 sound/mips/hal2.c err = snd_pcm_new(hal2->card, "SGI HAL2 Audio", 0, 1, 1, &pcm); pcm 735 sound/mips/hal2.c pcm->private_data = hal2; pcm 736 sound/mips/hal2.c strcpy(pcm->name, "SGI HAL2"); pcm 739 sound/mips/hal2.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 741 sound/mips/hal2.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 743 sound/mips/hal2.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, pcm 707 sound/mips/sgio2audio.c struct snd_pcm *pcm; pcm 711 sound/mips/sgio2audio.c err = snd_pcm_new(chip->card, "SGI O2 Audio", 0, 1, 1, &pcm); pcm 715 sound/mips/sgio2audio.c pcm->private_data = chip; pcm 716 sound/mips/sgio2audio.c strcpy(pcm->name, "SGI O2 DAC1"); pcm 719 sound/mips/sgio2audio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 721 sound/mips/sgio2audio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 725 sound/mips/sgio2audio.c err = snd_pcm_new(chip->card, "SGI O2 Audio", 1, 1, 0, &pcm); pcm 729 sound/mips/sgio2audio.c pcm->private_data = chip; pcm 730 sound/mips/sgio2audio.c strcpy(pcm->name, "SGI O2 DAC2"); pcm 733 sound/mips/sgio2audio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 611 sound/parisc/harmony.c struct snd_pcm *pcm; pcm 619 sound/parisc/harmony.c err = snd_pcm_new(h->card, "harmony", 0, 1, 1, &pcm); pcm 623 sound/parisc/harmony.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 625 sound/parisc/harmony.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 628 sound/parisc/harmony.c pcm->private_data = h; pcm 629 sound/parisc/harmony.c pcm->info_flags = 0; pcm 630 sound/parisc/harmony.c strcpy(pcm->name, "harmony"); pcm 631 sound/parisc/harmony.c h->pcm = pcm; pcm 659 sound/parisc/harmony.c snd_pcm_lib_preallocate_pages_for_all(pcm, h->dma.type, h->dma.dev, pcm 48 sound/parisc/harmony.h struct snd_pcm *pcm; pcm 144 sound/pci/ac97/ac97_pcm.c static unsigned char get_slot_reg(struct ac97_pcm *pcm, unsigned short cidx, pcm 151 sound/pci/ac97/ac97_pcm.c if (pcm->spdif) pcm 153 sound/pci/ac97/ac97_pcm.c if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK) pcm 154 sound/pci/ac97/ac97_pcm.c return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; pcm 393 sound/pci/ac97/ac97_pcm.c static unsigned int get_rates(struct ac97_pcm *pcm, unsigned int cidx, unsigned short slots, int dbl) pcm 402 sound/pci/ac97/ac97_pcm.c reg = get_slot_reg(pcm, cidx, i, dbl); pcm 411 sound/pci/ac97/ac97_pcm.c rates &= pcm->r[dbl].codec[cidx]->rates[idx]; pcm 436 sound/pci/ac97/ac97_pcm.c const struct ac97_pcm *pcm; pcm 466 sound/pci/ac97/ac97_pcm.c pcm = &pcms[i]; pcm 469 sound/pci/ac97/ac97_pcm.c if (pcm->copy_flag) { pcm 470 sound/pci/ac97/ac97_pcm.c *rpcm = *pcm; pcm 473 sound/pci/ac97/ac97_pcm.c rpcm->stream = pcm->stream; pcm 474 sound/pci/ac97/ac97_pcm.c rpcm->exclusive = pcm->exclusive; pcm 475 sound/pci/ac97/ac97_pcm.c rpcm->spdif = pcm->spdif; pcm 476 sound/pci/ac97/ac97_pcm.c rpcm->private_value = pcm->private_value; pcm 479 sound/pci/ac97/ac97_pcm.c slots = pcm->r[0].slots; pcm 484 sound/pci/ac97/ac97_pcm.c if (pcm->spdif && pcm->stream == 0) pcm 487 sound/pci/ac97/ac97_pcm.c tmp = avail_slots[pcm->stream][j]; pcm 488 sound/pci/ac97/ac97_pcm.c if (pcm->exclusive) { pcm 497 sound/pci/ac97/ac97_pcm.c tmp &= pcm->r[0].slots; pcm 502 sound/pci/ac97/ac97_pcm.c rpcm->r[0].rate_table[j] = rate_table[pcm->stream][j]; pcm 507 sound/pci/ac97/ac97_pcm.c if (pcm->exclusive) pcm 508 sound/pci/ac97/ac97_pcm.c avail_slots[pcm->stream][j] &= ~tmp; pcm 515 sound/pci/ac97/ac97_pcm.c if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK && pcm 517 sound/pci/ac97/ac97_pcm.c rate_table[pcm->stream][0] == 0) { pcm 520 sound/pci/ac97/ac97_pcm.c if ((tmp & pcm->r[1].slots) == tmp) { pcm 525 sound/pci/ac97/ac97_pcm.c if (pcm->exclusive) pcm 526 sound/pci/ac97/ac97_pcm.c avail_slots[pcm->stream][0] &= ~tmp; pcm 555 sound/pci/ac97/ac97_pcm.c int snd_ac97_pcm_open(struct ac97_pcm *pcm, unsigned int rate, pcm 565 sound/pci/ac97/ac97_pcm.c bus = pcm->bus; pcm 574 sound/pci/ac97/ac97_pcm.c spin_lock_irq(&pcm->bus->bus_lock); pcm 580 sound/pci/ac97/ac97_pcm.c if (bus->used_slots[pcm->stream][cidx] & (1 << i)) { pcm 581 sound/pci/ac97/ac97_pcm.c spin_unlock_irq(&pcm->bus->bus_lock); pcm 585 sound/pci/ac97/ac97_pcm.c if (pcm->r[r].rslots[cidx] & (1 << i)) { pcm 586 sound/pci/ac97/ac97_pcm.c bus->used_slots[pcm->stream][cidx] |= (1 << i); pcm 591 sound/pci/ac97/ac97_pcm.c spin_unlock_irq(&pcm->bus->bus_lock); pcm 599 sound/pci/ac97/ac97_pcm.c pcm->cur_dbl = r; pcm 600 sound/pci/ac97/ac97_pcm.c spin_unlock_irq(&pcm->bus->bus_lock); pcm 605 sound/pci/ac97/ac97_pcm.c if (pcm->r[r].rslots[cidx] & (1 << i)) { pcm 606 sound/pci/ac97/ac97_pcm.c reg = get_slot_reg(pcm, cidx, i, r); pcm 617 sound/pci/ac97/ac97_pcm.c err = snd_ac97_set_rate(pcm->r[r].codec[cidx], reg, rate); pcm 627 sound/pci/ac97/ac97_pcm.c pcm->aslots = slots; pcm 631 sound/pci/ac97/ac97_pcm.c pcm->aslots = slots; pcm 632 sound/pci/ac97/ac97_pcm.c snd_ac97_pcm_close(pcm); pcm 646 sound/pci/ac97/ac97_pcm.c int snd_ac97_pcm_close(struct ac97_pcm *pcm) pcm 649 sound/pci/ac97/ac97_pcm.c unsigned short slots = pcm->aslots; pcm 653 sound/pci/ac97/ac97_pcm.c int r = pcm->cur_dbl; pcm 658 sound/pci/ac97/ac97_pcm.c if (pcm->r[r].rslots[cidx] & (1 << i)) { pcm 659 sound/pci/ac97/ac97_pcm.c int reg = get_slot_reg(pcm, cidx, i, r); pcm 660 sound/pci/ac97/ac97_pcm.c snd_ac97_update_power(pcm->r[r].codec[cidx], pcm 667 sound/pci/ac97/ac97_pcm.c bus = pcm->bus; pcm 668 sound/pci/ac97/ac97_pcm.c spin_lock_irq(&pcm->bus->bus_lock); pcm 673 sound/pci/ac97/ac97_pcm.c bus->used_slots[pcm->stream][cidx] &= ~(1 << i); pcm 675 sound/pci/ac97/ac97_pcm.c pcm->aslots = 0; pcm 676 sound/pci/ac97/ac97_pcm.c pcm->cur_dbl = 0; pcm 677 sound/pci/ac97/ac97_pcm.c spin_unlock_irq(&pcm->bus->bus_lock); pcm 84 sound/pci/ad1889.c struct snd_pcm *pcm; pcm 616 sound/pci/ad1889.c struct snd_pcm *pcm; pcm 618 sound/pci/ad1889.c err = snd_pcm_new(chip->card, chip->card->driver, device, 1, 1, &pcm); pcm 622 sound/pci/ad1889.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 624 sound/pci/ad1889.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 627 sound/pci/ad1889.c pcm->private_data = chip; pcm 628 sound/pci/ad1889.c pcm->info_flags = 0; pcm 629 sound/pci/ad1889.c strcpy(pcm->name, chip->card->shortname); pcm 631 sound/pci/ad1889.c chip->pcm = pcm; pcm 635 sound/pci/ad1889.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 174 sound/pci/ali5451/ali5451.c pcm :1, pcm 227 sound/pci/ali5451/ali5451.c struct snd_pcm *pcm[MAX_CODECS]; pcm 853 sound/pci/ali5451/ali5451.c if (pvoice->pcm && pvoice->substream) { pcm 929 sound/pci/ali5451/ali5451.c pvoice->pcm = 1; pcm 954 sound/pci/ali5451/ali5451.c if (pvoice->pcm) pcm 956 sound/pci/ali5451/ali5451.c pvoice->use = pvoice->pcm = pvoice->synth = 0; pcm 1645 sound/pci/ali5451/ali5451.c static void snd_ali_pcm_free(struct snd_pcm *pcm) pcm 1647 sound/pci/ali5451/ali5451.c struct snd_ali *codec = pcm->private_data; pcm 1648 sound/pci/ali5451/ali5451.c codec->pcm[pcm->device] = NULL; pcm 1655 sound/pci/ali5451/ali5451.c struct snd_pcm *pcm; pcm 1659 sound/pci/ali5451/ali5451.c desc->playback_num, desc->capture_num, &pcm); pcm 1665 sound/pci/ali5451/ali5451.c pcm->private_data = codec; pcm 1666 sound/pci/ali5451/ali5451.c pcm->private_free = snd_ali_pcm_free; pcm 1668 sound/pci/ali5451/ali5451.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1671 sound/pci/ali5451/ali5451.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 1674 sound/pci/ali5451/ali5451.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1678 sound/pci/ali5451/ali5451.c pcm->info_flags = 0; pcm 1679 sound/pci/ali5451/ali5451.c pcm->dev_class = desc->class; pcm 1680 sound/pci/ali5451/ali5451.c pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; pcm 1681 sound/pci/ali5451/ali5451.c strcpy(pcm->name, desc->name); pcm 1682 sound/pci/ali5451/ali5451.c codec->pcm[0] = pcm; pcm 108 sound/pci/als300.c struct snd_pcm *pcm; pcm 197 sound/pci/als300.c if (chip->pcm && chip->playback_substream) { pcm 205 sound/pci/als300.c if (chip->pcm && chip->capture_substream) { pcm 230 sound/pci/als300.c if (chip->pcm && chip->playback_substream) { pcm 239 sound/pci/als300.c if (chip->pcm && chip->capture_substream) { pcm 577 sound/pci/als300.c struct snd_pcm *pcm; pcm 580 sound/pci/als300.c err = snd_pcm_new(chip->card, "ALS300", 0, 1, 1, &pcm); pcm 583 sound/pci/als300.c pcm->private_data = chip; pcm 584 sound/pci/als300.c strcpy(pcm->name, "ALS300"); pcm 585 sound/pci/als300.c chip->pcm = pcm; pcm 588 sound/pci/als300.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 590 sound/pci/als300.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 594 sound/pci/als300.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 685 sound/pci/als4000.c struct snd_pcm *pcm; pcm 688 sound/pci/als4000.c err = snd_pcm_new(chip->card, "ALS4000 DSP", device, 1, 1, &pcm); pcm 691 sound/pci/als4000.c pcm->private_data = chip; pcm 692 sound/pci/als4000.c pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; pcm 693 sound/pci/als4000.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_als4000_playback_ops); pcm 694 sound/pci/als4000.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_als4000_capture_ops); pcm 696 sound/pci/als4000.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(chip->pci), pcm 699 sound/pci/als4000.c chip->pcm = pcm; pcm 1301 sound/pci/asihpi/asihpi.c struct snd_pcm *pcm; pcm 1311 sound/pci/asihpi/asihpi.c num_outstreams, num_instreams, &pcm); pcm 1316 sound/pci/asihpi/asihpi.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1318 sound/pci/asihpi/asihpi.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 1321 sound/pci/asihpi/asihpi.c pcm->private_data = asihpi; pcm 1322 sound/pci/asihpi/asihpi.c pcm->info_flags = 0; pcm 1323 sound/pci/asihpi/asihpi.c strcpy(pcm->name, "Asihpi PCM"); pcm 1327 sound/pci/asihpi/asihpi.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 968 sound/pci/atiixp.c struct ac97_pcm *pcm = chip->pcms[dma->ac97_pcm_type]; pcm 973 sound/pci/atiixp.c snd_ac97_pcm_close(pcm); pcm 976 sound/pci/atiixp.c err = snd_ac97_pcm_open(pcm, params_rate(hw_params), pcm 978 sound/pci/atiixp.c pcm->r[0].slots); pcm 992 sound/pci/atiixp.c struct ac97_pcm *pcm = chip->pcms[dma->ac97_pcm_type]; pcm 993 sound/pci/atiixp.c snd_ac97_pcm_close(pcm); pcm 1245 sound/pci/atiixp.c struct snd_pcm *pcm; pcm 1277 sound/pci/atiixp.c ATI_PCMDEV_ANALOG, 1, 1, &pcm); pcm 1280 sound/pci/atiixp.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_atiixp_playback_ops); pcm 1281 sound/pci/atiixp.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_atiixp_capture_ops); pcm 1282 sound/pci/atiixp.c pcm->private_data = chip; pcm 1283 sound/pci/atiixp.c strcpy(pcm->name, "ATI IXP AC97"); pcm 1284 sound/pci/atiixp.c chip->pcmdevs[ATI_PCMDEV_ANALOG] = pcm; pcm 1286 sound/pci/atiixp.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1290 sound/pci/atiixp.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1308 sound/pci/atiixp.c ATI_PCMDEV_DIGITAL, 1, 0, &pcm); pcm 1311 sound/pci/atiixp.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_atiixp_spdif_ops); pcm 1312 sound/pci/atiixp.c pcm->private_data = chip; pcm 1314 sound/pci/atiixp.c strcpy(pcm->name, "ATI IXP IEC958 (AC97)"); pcm 1316 sound/pci/atiixp.c strcpy(pcm->name, "ATI IXP IEC958 (Direct)"); pcm 1317 sound/pci/atiixp.c chip->pcmdevs[ATI_PCMDEV_DIGITAL] = pcm; pcm 1319 sound/pci/atiixp.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 979 sound/pci/atiixp_modem.c struct snd_pcm *pcm; pcm 987 sound/pci/atiixp_modem.c err = snd_pcm_new(chip->card, "ATI IXP MC97", ATI_PCMDEV_ANALOG, 1, 1, &pcm); pcm 990 sound/pci/atiixp_modem.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_atiixp_playback_ops); pcm 991 sound/pci/atiixp_modem.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_atiixp_capture_ops); pcm 992 sound/pci/atiixp_modem.c pcm->dev_class = SNDRV_PCM_CLASS_MODEM; pcm 993 sound/pci/atiixp_modem.c pcm->private_data = chip; pcm 994 sound/pci/atiixp_modem.c strcpy(pcm->name, "ATI IXP MC97"); pcm 995 sound/pci/atiixp_modem.c chip->pcmdevs[ATI_PCMDEV_ANALOG] = pcm; pcm 997 sound/pci/atiixp_modem.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 133 sound/pci/au88x0/au88x0.h struct snd_pcm *pcm[VORTEX_PCM_LAST]; pcm 146 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { pcm 148 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_A3D) { pcm 152 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_SPDIF) { pcm 166 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB pcm 167 sound/pci/au88x0/au88x0_pcm.c || VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S) pcm 172 sound/pci/au88x0/au88x0_pcm.c VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { pcm 227 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { pcm 228 sound/pci/au88x0/au88x0_pcm.c int dma, type = VORTEX_PCM_TYPE(substream->pcm); pcm 251 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { pcm 284 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { pcm 286 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { pcm 325 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { pcm 329 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_SPDIF) pcm 356 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { pcm 371 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) pcm 382 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) pcm 391 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) pcm 415 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) pcm 607 sound/pci/au88x0/au88x0_pcm.c struct snd_pcm *pcm; pcm 622 sound/pci/au88x0/au88x0_pcm.c nr_capt, &pcm); pcm 625 sound/pci/au88x0/au88x0_pcm.c snprintf(pcm->name, sizeof(pcm->name), pcm 627 sound/pci/au88x0/au88x0_pcm.c chip->pcm[idx] = pcm; pcm 629 sound/pci/au88x0/au88x0_pcm.c VORTEX_PCM_TYPE(pcm) = idx; pcm 630 sound/pci/au88x0/au88x0_pcm.c pcm->private_data = chip; pcm 632 sound/pci/au88x0/au88x0_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 635 sound/pci/au88x0/au88x0_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 640 sound/pci/au88x0/au88x0_pcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, pcm 644 sound/pci/au88x0/au88x0_pcm.c switch (VORTEX_PCM_TYPE(pcm)) { pcm 646 sound/pci/au88x0/au88x0_pcm.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 652 sound/pci/au88x0/au88x0_pcm.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 659 sound/pci/au88x0/au88x0_pcm.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 667 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(pcm) == VORTEX_PCM_SPDIF) { pcm 676 sound/pci/au88x0/au88x0_pcm.c if (VORTEX_PCM_TYPE(pcm) == VORTEX_PCM_ADB) { pcm 77 sound/pci/aw2/aw2-alsa.c struct snd_pcm *pcm; pcm 386 sound/pci/aw2/aw2-alsa.c dev_dbg(substream->pcm->card->dev, "Playback_open\n"); pcm 402 sound/pci/aw2/aw2-alsa.c dev_dbg(substream->pcm->card->dev, "Capture_open\n"); pcm 605 sound/pci/aw2/aw2-alsa.c pcm_device->pcm = pcm_playback_ana; pcm 637 sound/pci/aw2/aw2-alsa.c pcm_device->pcm = pcm_playback_num; pcm 670 sound/pci/aw2/aw2-alsa.c pcm_device->pcm = pcm_capture; pcm 273 sound/pci/azt3328.c struct snd_pcm *pcm[3]; pcm 1638 sound/pci/azt3328.c dev_dbg(substream->pcm->card->dev, "%08li %s @ 0x%8lx, frames %8ld\n", pcm 2118 sound/pci/azt3328.c struct snd_pcm *pcm; pcm 2122 sound/pci/azt3328.c 1, 1, &pcm); pcm 2125 sound/pci/azt3328.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 2127 sound/pci/azt3328.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 2130 sound/pci/azt3328.c pcm->private_data = chip; pcm 2131 sound/pci/azt3328.c pcm->info_flags = 0; pcm 2132 sound/pci/azt3328.c strcpy(pcm->name, chip->card->shortname); pcm 2134 sound/pci/azt3328.c chip->pcm[AZF_CODEC_PLAYBACK] = pcm; pcm 2135 sound/pci/azt3328.c chip->pcm[AZF_CODEC_CAPTURE] = pcm; pcm 2137 sound/pci/azt3328.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 2142 sound/pci/azt3328.c 1, 0, &pcm); pcm 2145 sound/pci/azt3328.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 2148 sound/pci/azt3328.c pcm->private_data = chip; pcm 2149 sound/pci/azt3328.c pcm->info_flags = 0; pcm 2150 sound/pci/azt3328.c strcpy(pcm->name, chip->card->shortname); pcm 2151 sound/pci/azt3328.c chip->pcm[AZF_CODEC_I2S_OUT] = pcm; pcm 2153 sound/pci/azt3328.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 416 sound/pci/bt87x.c if (substream->pcm->device == DEVICE_DIGITAL) pcm 695 sound/pci/bt87x.c struct snd_pcm *pcm; pcm 697 sound/pci/bt87x.c err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); pcm 700 sound/pci/bt87x.c pcm->private_data = chip; pcm 701 sound/pci/bt87x.c strcpy(pcm->name, name); pcm 702 sound/pci/bt87x.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_bt87x_pcm_ops); pcm 703 sound/pci/bt87x.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, pcm 679 sound/pci/ca0106/ca0106.h struct snd_pcm *pcm[4]; pcm 1351 sound/pci/ca0106/ca0106_main.c struct snd_pcm *pcm; pcm 1356 sound/pci/ca0106/ca0106_main.c err = snd_pcm_new(emu->card, "ca0106", device, 1, 1, &pcm); pcm 1360 sound/pci/ca0106/ca0106_main.c pcm->private_data = emu; pcm 1364 sound/pci/ca0106/ca0106_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ca0106_playback_front_ops); pcm 1365 sound/pci/ca0106/ca0106_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ca0106_capture_0_ops); pcm 1369 sound/pci/ca0106/ca0106_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ca0106_playback_rear_ops); pcm 1370 sound/pci/ca0106/ca0106_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ca0106_capture_1_ops); pcm 1374 sound/pci/ca0106/ca0106_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ca0106_playback_center_lfe_ops); pcm 1375 sound/pci/ca0106/ca0106_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ca0106_capture_2_ops); pcm 1379 sound/pci/ca0106/ca0106_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ca0106_playback_unknown_ops); pcm 1380 sound/pci/ca0106/ca0106_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ca0106_capture_3_ops); pcm 1385 sound/pci/ca0106/ca0106_main.c pcm->info_flags = 0; pcm 1386 sound/pci/ca0106/ca0106_main.c strcpy(pcm->name, "CA0106"); pcm 1388 sound/pci/ca0106/ca0106_main.c for(substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; pcm 1396 sound/pci/ca0106/ca0106_main.c for (substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; pcm 1404 sound/pci/ca0106/ca0106_main.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, map, 2, pcm 1409 sound/pci/ca0106/ca0106_main.c emu->pcm[device] = pcm; pcm 455 sound/pci/cmipci.c struct snd_pcm *pcm; /* DAC/ADC PCM */ pcm 1453 sound/pci/cmipci.c if (cm->pcm) { pcm 1889 sound/pci/cmipci.c struct snd_pcm *pcm; pcm 1892 sound/pci/cmipci.c err = snd_pcm_new(cm->card, cm->card->driver, device, 1, 1, &pcm); pcm 1896 sound/pci/cmipci.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cmipci_playback_ops); pcm 1897 sound/pci/cmipci.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cmipci_capture_ops); pcm 1899 sound/pci/cmipci.c pcm->private_data = cm; pcm 1900 sound/pci/cmipci.c pcm->info_flags = 0; pcm 1901 sound/pci/cmipci.c strcpy(pcm->name, "C-Media PCI DAC/ADC"); pcm 1902 sound/pci/cmipci.c cm->pcm = pcm; pcm 1904 sound/pci/cmipci.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1912 sound/pci/cmipci.c struct snd_pcm *pcm; pcm 1915 sound/pci/cmipci.c err = snd_pcm_new(cm->card, cm->card->driver, device, 1, 0, &pcm); pcm 1919 sound/pci/cmipci.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cmipci_playback2_ops); pcm 1921 sound/pci/cmipci.c pcm->private_data = cm; pcm 1922 sound/pci/cmipci.c pcm->info_flags = 0; pcm 1923 sound/pci/cmipci.c strcpy(pcm->name, "C-Media PCI 2nd DAC"); pcm 1924 sound/pci/cmipci.c cm->pcm2 = pcm; pcm 1926 sound/pci/cmipci.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1934 sound/pci/cmipci.c struct snd_pcm *pcm; pcm 1937 sound/pci/cmipci.c err = snd_pcm_new(cm->card, cm->card->driver, device, 1, 1, &pcm); pcm 1941 sound/pci/cmipci.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cmipci_playback_spdif_ops); pcm 1942 sound/pci/cmipci.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cmipci_capture_spdif_ops); pcm 1944 sound/pci/cmipci.c pcm->private_data = cm; pcm 1945 sound/pci/cmipci.c pcm->info_flags = 0; pcm 1946 sound/pci/cmipci.c strcpy(pcm->name, "C-Media PCI IEC958"); pcm 1947 sound/pci/cmipci.c cm->pcm_spdif = pcm; pcm 1949 sound/pci/cmipci.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1952 sound/pci/cmipci.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 453 sound/pci/cs4281.c struct snd_pcm *pcm; pcm 962 sound/pci/cs4281.c struct snd_pcm *pcm; pcm 965 sound/pci/cs4281.c err = snd_pcm_new(chip->card, "CS4281", device, 1, 1, &pcm); pcm 969 sound/pci/cs4281.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs4281_playback_ops); pcm 970 sound/pci/cs4281.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cs4281_capture_ops); pcm 972 sound/pci/cs4281.c pcm->private_data = chip; pcm 973 sound/pci/cs4281.c pcm->info_flags = 0; pcm 974 sound/pci/cs4281.c strcpy(pcm->name, "CS4281"); pcm 975 sound/pci/cs4281.c chip->pcm = pcm; pcm 977 sound/pci/cs4281.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1674 sound/pci/cs46xx/cs46xx.h struct snd_pcm *pcm; pcm 1391 sound/pci/cs46xx/cs46xx_lib.c if ((status1 & HISR_VC1) && chip->pcm) { pcm 1532 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(substream->pcm->card->dev, "open front channel\n"); pcm 1539 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(substream->pcm->card->dev, "open rear channel\n"); pcm 1545 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(substream->pcm->card->dev, "open center - LFE channel\n"); pcm 1770 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm *pcm; pcm 1773 sound/pci/cs46xx/cs46xx_lib.c if ((err = snd_pcm_new(chip->card, "CS46xx", device, MAX_PLAYBACK_CHANNELS, 1, &pcm)) < 0) pcm 1776 sound/pci/cs46xx/cs46xx_lib.c pcm->private_data = chip; pcm 1778 sound/pci/cs46xx/cs46xx_lib.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs46xx_playback_ops); pcm 1779 sound/pci/cs46xx/cs46xx_lib.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cs46xx_capture_ops); pcm 1782 sound/pci/cs46xx/cs46xx_lib.c pcm->info_flags = 0; pcm 1783 sound/pci/cs46xx/cs46xx_lib.c strcpy(pcm->name, "CS46xx"); pcm 1784 sound/pci/cs46xx/cs46xx_lib.c chip->pcm = pcm; pcm 1786 sound/pci/cs46xx/cs46xx_lib.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1796 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm *pcm; pcm 1799 sound/pci/cs46xx/cs46xx_lib.c if ((err = snd_pcm_new(chip->card, "CS46xx - Rear", device, MAX_PLAYBACK_CHANNELS, 0, &pcm)) < 0) pcm 1802 sound/pci/cs46xx/cs46xx_lib.c pcm->private_data = chip; pcm 1804 sound/pci/cs46xx/cs46xx_lib.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs46xx_playback_rear_ops); pcm 1807 sound/pci/cs46xx/cs46xx_lib.c pcm->info_flags = 0; pcm 1808 sound/pci/cs46xx/cs46xx_lib.c strcpy(pcm->name, "CS46xx - Rear"); pcm 1809 sound/pci/cs46xx/cs46xx_lib.c chip->pcm_rear = pcm; pcm 1811 sound/pci/cs46xx/cs46xx_lib.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1819 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm *pcm; pcm 1822 sound/pci/cs46xx/cs46xx_lib.c if ((err = snd_pcm_new(chip->card, "CS46xx - Center LFE", device, MAX_PLAYBACK_CHANNELS, 0, &pcm)) < 0) pcm 1825 sound/pci/cs46xx/cs46xx_lib.c pcm->private_data = chip; pcm 1827 sound/pci/cs46xx/cs46xx_lib.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs46xx_playback_clfe_ops); pcm 1830 sound/pci/cs46xx/cs46xx_lib.c pcm->info_flags = 0; pcm 1831 sound/pci/cs46xx/cs46xx_lib.c strcpy(pcm->name, "CS46xx - Center LFE"); pcm 1832 sound/pci/cs46xx/cs46xx_lib.c chip->pcm_center_lfe = pcm; pcm 1834 sound/pci/cs46xx/cs46xx_lib.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1842 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm *pcm; pcm 1845 sound/pci/cs46xx/cs46xx_lib.c if ((err = snd_pcm_new(chip->card, "CS46xx - IEC958", device, 1, 0, &pcm)) < 0) pcm 1848 sound/pci/cs46xx/cs46xx_lib.c pcm->private_data = chip; pcm 1850 sound/pci/cs46xx/cs46xx_lib.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs46xx_playback_iec958_ops); pcm 1853 sound/pci/cs46xx/cs46xx_lib.c pcm->info_flags = 0; pcm 1854 sound/pci/cs46xx/cs46xx_lib.c strcpy(pcm->name, "CS46xx - IEC958"); pcm 1855 sound/pci/cs46xx/cs46xx_lib.c chip->pcm_iec958 = pcm; pcm 1857 sound/pci/cs46xx/cs46xx_lib.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 88 sound/pci/cs5535audio/cs5535audio.h struct snd_pcm *pcm; pcm 414 sound/pci/cs5535audio/cs5535audio_pcm.c struct snd_pcm *pcm; pcm 417 sound/pci/cs5535audio/cs5535audio_pcm.c err = snd_pcm_new(cs5535au->card, "CS5535 Audio", 0, 1, 1, &pcm); pcm 425 sound/pci/cs5535audio/cs5535audio_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 427 sound/pci/cs5535audio/cs5535audio_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 430 sound/pci/cs5535audio/cs5535audio_pcm.c pcm->private_data = cs5535au; pcm 431 sound/pci/cs5535audio/cs5535audio_pcm.c pcm->info_flags = 0; pcm 432 sound/pci/cs5535audio/cs5535audio_pcm.c strcpy(pcm->name, "CS5535 Audio"); pcm 434 sound/pci/cs5535audio/cs5535audio_pcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 437 sound/pci/cs5535audio/cs5535audio_pcm.c cs5535au->pcm = pcm; pcm 250 sound/pci/ctxfi/ctatc.c int device = apcm->substream->pcm->device; pcm 301 sound/pci/ctxfi/ctatc.c INIT_VOL, atc->pcm[i+device*2]); pcm 1180 sound/pci/ctxfi/ctatc.c if (atc->pcm) { pcm 1183 sound/pci/ctxfi/ctatc.c sum_mgr->put_sum(sum_mgr, atc->pcm[i]); pcm 1185 sound/pci/ctxfi/ctatc.c kfree(atc->pcm); pcm 1186 sound/pci/ctxfi/ctatc.c atc->pcm = NULL; pcm 1390 sound/pci/ctxfi/ctatc.c atc->pcm = kcalloc(2 * 4, sizeof(void *), GFP_KERNEL); pcm 1391 sound/pci/ctxfi/ctatc.c if (!atc->pcm) pcm 1438 sound/pci/ctxfi/ctatc.c (struct sum **)&atc->pcm[i]); pcm 1538 sound/pci/ctxfi/ctatc.c sum = atc->pcm[j]; pcm 1540 sound/pci/ctxfi/ctatc.c sum = atc->pcm[j+1]; pcm 132 sound/pci/ctxfi/ctatc.h void **pcm; /* SUMs for collecting all pcm stream */ pcm 128 sound/pci/ctxfi/ctpcm.c if (IEC958 == substream->pcm->device) { pcm 133 sound/pci/ctxfi/ctpcm.c if (FRONT == substream->pcm->device) pcm 168 sound/pci/ctxfi/ctpcm.c if (IEC958 == substream->pcm->device) pcm 211 sound/pci/ctxfi/ctpcm.c if (IEC958 == substream->pcm->device) pcm 427 sound/pci/ctxfi/ctpcm.c struct snd_pcm *pcm; pcm 436 sound/pci/ctxfi/ctpcm.c playback_count, capture_count, &pcm); pcm 443 sound/pci/ctxfi/ctpcm.c pcm->private_data = atc; pcm 444 sound/pci/ctxfi/ctpcm.c pcm->info_flags = 0; pcm 445 sound/pci/ctxfi/ctpcm.c pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; pcm 446 sound/pci/ctxfi/ctpcm.c strlcpy(pcm->name, device_name, sizeof(pcm->name)); pcm 448 sound/pci/ctxfi/ctpcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &ct_pcm_playback_ops); pcm 451 sound/pci/ctxfi/ctpcm.c snd_pcm_set_ops(pcm, pcm 454 sound/pci/ctxfi/ctpcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, pcm 476 sound/pci/ctxfi/ctpcm.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, map, chs, pcm 482 sound/pci/ctxfi/ctpcm.c atc->pcms[device] = pcm; pcm 872 sound/pci/echoaudio/echoaudio.c static int snd_echo_preallocate_pages(struct snd_pcm *pcm, struct device *dev) pcm 878 sound/pci/echoaudio/echoaudio.c for (ss = pcm->streams[stream].substream; ss; ss = ss->next) pcm 892 sound/pci/echoaudio/echoaudio.c struct snd_pcm *pcm; pcm 904 sound/pci/echoaudio/echoaudio.c num_analog_busses_in(chip), &pcm)) < 0) pcm 906 sound/pci/echoaudio/echoaudio.c pcm->private_data = chip; pcm 907 sound/pci/echoaudio/echoaudio.c chip->analog_pcm = pcm; pcm 908 sound/pci/echoaudio/echoaudio.c strcpy(pcm->name, chip->card->shortname); pcm 909 sound/pci/echoaudio/echoaudio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &analog_playback_ops); pcm 910 sound/pci/echoaudio/echoaudio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &analog_capture_ops); pcm 911 sound/pci/echoaudio/echoaudio.c if ((err = snd_echo_preallocate_pages(pcm, snd_dma_pci_data(chip->pci))) < 0) pcm 917 sound/pci/echoaudio/echoaudio.c num_digital_busses_in(chip), &pcm)) < 0) pcm 919 sound/pci/echoaudio/echoaudio.c pcm->private_data = chip; pcm 920 sound/pci/echoaudio/echoaudio.c chip->digital_pcm = pcm; pcm 921 sound/pci/echoaudio/echoaudio.c strcpy(pcm->name, chip->card->shortname); pcm 922 sound/pci/echoaudio/echoaudio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &digital_capture_ops); pcm 923 sound/pci/echoaudio/echoaudio.c if ((err = snd_echo_preallocate_pages(pcm, snd_dma_pci_data(chip->pci))) < 0) pcm 937 sound/pci/echoaudio/echoaudio.c num_analog_busses_in(chip), &pcm)) < 0) pcm 939 sound/pci/echoaudio/echoaudio.c pcm->private_data = chip; pcm 940 sound/pci/echoaudio/echoaudio.c chip->analog_pcm = pcm; pcm 941 sound/pci/echoaudio/echoaudio.c strcpy(pcm->name, chip->card->shortname); pcm 942 sound/pci/echoaudio/echoaudio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &analog_playback_ops); pcm 943 sound/pci/echoaudio/echoaudio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &analog_capture_ops); pcm 944 sound/pci/echoaudio/echoaudio.c if ((err = snd_echo_preallocate_pages(pcm, snd_dma_pci_data(chip->pci))) < 0) pcm 951 sound/pci/echoaudio/echoaudio.c num_digital_busses_in(chip), &pcm)) < 0) pcm 953 sound/pci/echoaudio/echoaudio.c pcm->private_data = chip; pcm 954 sound/pci/echoaudio/echoaudio.c chip->digital_pcm = pcm; pcm 955 sound/pci/echoaudio/echoaudio.c strcpy(pcm->name, chip->card->shortname); pcm 956 sound/pci/echoaudio/echoaudio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &digital_playback_ops); pcm 957 sound/pci/echoaudio/echoaudio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &digital_capture_ops); pcm 958 sound/pci/echoaudio/echoaudio.c if ((err = snd_echo_preallocate_pages(pcm, snd_dma_pci_data(chip->pci))) < 0) pcm 231 sound/pci/emu10k1/emu10k1x.c struct snd_pcm *pcm; pcm 409 sound/pci/emu10k1/emu10k1x.c epcm->voice = &epcm->emu->voices[substream->pcm->device]; pcm 838 sound/pci/emu10k1/emu10k1x.c struct snd_pcm *pcm; pcm 846 sound/pci/emu10k1/emu10k1x.c if ((err = snd_pcm_new(emu->card, "emu10k1x", device, 1, capture, &pcm)) < 0) pcm 849 sound/pci/emu10k1/emu10k1x.c pcm->private_data = emu; pcm 853 sound/pci/emu10k1/emu10k1x.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1x_playback_ops); pcm 854 sound/pci/emu10k1/emu10k1x.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1x_capture_ops); pcm 858 sound/pci/emu10k1/emu10k1x.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1x_playback_ops); pcm 862 sound/pci/emu10k1/emu10k1x.c pcm->info_flags = 0; pcm 865 sound/pci/emu10k1/emu10k1x.c strcpy(pcm->name, "EMU10K1X Front"); pcm 869 sound/pci/emu10k1/emu10k1x.c strcpy(pcm->name, "EMU10K1X Rear"); pcm 873 sound/pci/emu10k1/emu10k1x.c strcpy(pcm->name, "EMU10K1X Center/LFE"); pcm 877 sound/pci/emu10k1/emu10k1x.c emu->pcm = pcm; pcm 879 sound/pci/emu10k1/emu10k1x.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 883 sound/pci/emu10k1/emu10k1x.c return snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, map, 2, pcm 1012 sound/pci/emu10k1/emufx.c struct snd_emu10k1_fx8010_pcm *pcm; pcm 1020 sound/pci/emu10k1/emufx.c pcm = &emu->fx8010.pcm[ipcm->substream]; pcm 1023 sound/pci/emu10k1/emufx.c if (pcm->opened) { pcm 1028 sound/pci/emu10k1/emufx.c pcm->valid = 0; pcm 1035 sound/pci/emu10k1/emufx.c pcm->valid = 1; pcm 1036 sound/pci/emu10k1/emufx.c pcm->opened = 0; pcm 1037 sound/pci/emu10k1/emufx.c pcm->channels = ipcm->channels; pcm 1038 sound/pci/emu10k1/emufx.c pcm->tram_start = ipcm->tram_start; pcm 1039 sound/pci/emu10k1/emufx.c pcm->buffer_size = ipcm->buffer_size; pcm 1040 sound/pci/emu10k1/emufx.c pcm->gpr_size = ipcm->gpr_size; pcm 1041 sound/pci/emu10k1/emufx.c pcm->gpr_count = ipcm->gpr_count; pcm 1042 sound/pci/emu10k1/emufx.c pcm->gpr_tmpcount = ipcm->gpr_tmpcount; pcm 1043 sound/pci/emu10k1/emufx.c pcm->gpr_ptr = ipcm->gpr_ptr; pcm 1044 sound/pci/emu10k1/emufx.c pcm->gpr_trigger = ipcm->gpr_trigger; pcm 1045 sound/pci/emu10k1/emufx.c pcm->gpr_running = ipcm->gpr_running; pcm 1046 sound/pci/emu10k1/emufx.c for (i = 0; i < pcm->channels; i++) pcm 1047 sound/pci/emu10k1/emufx.c pcm->etram[i] = ipcm->etram[i]; pcm 1060 sound/pci/emu10k1/emufx.c struct snd_emu10k1_fx8010_pcm *pcm; pcm 1066 sound/pci/emu10k1/emufx.c pcm = &emu->fx8010.pcm[ipcm->substream]; pcm 1069 sound/pci/emu10k1/emufx.c ipcm->channels = pcm->channels; pcm 1070 sound/pci/emu10k1/emufx.c ipcm->tram_start = pcm->tram_start; pcm 1071 sound/pci/emu10k1/emufx.c ipcm->buffer_size = pcm->buffer_size; pcm 1072 sound/pci/emu10k1/emufx.c ipcm->gpr_size = pcm->gpr_size; pcm 1073 sound/pci/emu10k1/emufx.c ipcm->gpr_ptr = pcm->gpr_ptr; pcm 1074 sound/pci/emu10k1/emufx.c ipcm->gpr_count = pcm->gpr_count; pcm 1075 sound/pci/emu10k1/emufx.c ipcm->gpr_tmpcount = pcm->gpr_tmpcount; pcm 1076 sound/pci/emu10k1/emufx.c ipcm->gpr_trigger = pcm->gpr_trigger; pcm 1077 sound/pci/emu10k1/emufx.c ipcm->gpr_running = pcm->gpr_running; pcm 1078 sound/pci/emu10k1/emufx.c for (i = 0; i < pcm->channels; i++) pcm 1079 sound/pci/emu10k1/emufx.c ipcm->etram[i] = pcm->etram[i]; pcm 1778 sound/pci/emu10k1/emumixer.c int err, pcm; pcm 2029 sound/pci/emu10k1/emumixer.c for (pcm = 0; pcm < 32; pcm++) { pcm 2033 sound/pci/emu10k1/emumixer.c mix = &emu->pcm_mixer[pcm]; pcm 2049 sound/pci/emu10k1/emumixer.c for (pcm = 0; pcm < NUM_EFX_PLAYBACK; pcm++) { pcm 2053 sound/pci/emu10k1/emumixer.c mix = &emu->efx_pcm_mixer[pcm]; pcm 2056 sound/pci/emu10k1/emumixer.c mix->send_routing[0][0] = pcm; pcm 2057 sound/pci/emu10k1/emumixer.c mix->send_routing[0][1] = (pcm == 0) ? 1 : 0; pcm 1398 sound/pci/emu10k1/emupcm.c struct snd_pcm *pcm; pcm 1402 sound/pci/emu10k1/emupcm.c if ((err = snd_pcm_new(emu->card, "emu10k1", device, 32, 1, &pcm)) < 0) pcm 1405 sound/pci/emu10k1/emupcm.c pcm->private_data = emu; pcm 1407 sound/pci/emu10k1/emupcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1_playback_ops); pcm 1408 sound/pci/emu10k1/emupcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1_capture_ops); pcm 1410 sound/pci/emu10k1/emupcm.c pcm->info_flags = 0; pcm 1411 sound/pci/emu10k1/emupcm.c pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; pcm 1412 sound/pci/emu10k1/emupcm.c strcpy(pcm->name, "ADC Capture/Standard PCM Playback"); pcm 1413 sound/pci/emu10k1/emupcm.c emu->pcm = pcm; pcm 1415 sound/pci/emu10k1/emupcm.c for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substream->next) pcm 1420 sound/pci/emu10k1/emupcm.c for (substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; substream; substream = substream->next) pcm 1430 sound/pci/emu10k1/emupcm.c struct snd_pcm *pcm; pcm 1434 sound/pci/emu10k1/emupcm.c if ((err = snd_pcm_new(emu->card, "emu10k1", device, 1, 0, &pcm)) < 0) pcm 1437 sound/pci/emu10k1/emupcm.c pcm->private_data = emu; pcm 1439 sound/pci/emu10k1/emupcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1_efx_playback_ops); pcm 1441 sound/pci/emu10k1/emupcm.c pcm->info_flags = 0; pcm 1442 sound/pci/emu10k1/emupcm.c pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; pcm 1443 sound/pci/emu10k1/emupcm.c strcpy(pcm->name, "Multichannel Playback"); pcm 1444 sound/pci/emu10k1/emupcm.c emu->pcm_multi = pcm; pcm 1446 sound/pci/emu10k1/emupcm.c for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substream->next) pcm 1468 sound/pci/emu10k1/emupcm.c struct snd_pcm *pcm; pcm 1471 sound/pci/emu10k1/emupcm.c if ((err = snd_pcm_new(emu->card, "emu10k1 mic", device, 0, 1, &pcm)) < 0) pcm 1474 sound/pci/emu10k1/emupcm.c pcm->private_data = emu; pcm 1476 sound/pci/emu10k1/emupcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1_capture_mic_ops); pcm 1478 sound/pci/emu10k1/emupcm.c pcm->info_flags = 0; pcm 1479 sound/pci/emu10k1/emupcm.c strcpy(pcm->name, "Mic Capture"); pcm 1480 sound/pci/emu10k1/emupcm.c emu->pcm_mic = pcm; pcm 1482 sound/pci/emu10k1/emupcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1604 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; pcm 1605 sound/pci/emu10k1/emupcm.c unsigned int tram_size = pcm->buffer_size; pcm 1608 sound/pci/emu10k1/emupcm.c unsigned int tram_pos = pcm->tram_pos; pcm 1609 sound/pci/emu10k1/emupcm.c unsigned int tram_shift = pcm->tram_shift; pcm 1625 sound/pci/emu10k1/emupcm.c pcm->tram_pos = tram_pos; pcm 1626 sound/pci/emu10k1/emupcm.c pcm->tram_shift = tram_shift; pcm 1632 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; pcm 1634 sound/pci/emu10k1/emupcm.c return snd_pcm_indirect_playback_transfer(substream, &pcm->pcm_rec, pcm 1647 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; pcm 1650 sound/pci/emu10k1/emupcm.c for (i = 0; i < pcm->channels; i++) pcm 1651 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, TANKMEMADDRREGBASE + 0x80 + pcm->etram[i], 0, 0); pcm 1660 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; pcm 1669 sound/pci/emu10k1/emupcm.c memset(&pcm->pcm_rec, 0, sizeof(pcm->pcm_rec)); pcm 1670 sound/pci/emu10k1/emupcm.c pcm->pcm_rec.hw_buffer_size = pcm->buffer_size * 2; /* byte size */ pcm 1671 sound/pci/emu10k1/emupcm.c pcm->pcm_rec.sw_buffer_size = snd_pcm_lib_buffer_bytes(substream); pcm 1672 sound/pci/emu10k1/emupcm.c pcm->tram_pos = INITIAL_TRAM_POS(pcm->buffer_size); pcm 1673 sound/pci/emu10k1/emupcm.c pcm->tram_shift = 0; pcm 1674 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_running, 0, 0); /* reset */ pcm 1675 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_trigger, 0, 0); /* reset */ pcm 1676 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_size, 0, runtime->buffer_size); pcm 1677 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_ptr, 0, 0); /* reset ptr number */ pcm 1678 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_count, 0, runtime->period_size); pcm 1679 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_tmpcount, 0, runtime->period_size); pcm 1680 sound/pci/emu10k1/emupcm.c for (i = 0; i < pcm->channels; i++) pcm 1681 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, TANKMEMADDRREGBASE + 0x80 + pcm->etram[i], 0, (TANKMEMADDRREG_READ|TANKMEMADDRREG_ALIGN) + i * (runtime->buffer_size / pcm->channels)); pcm 1688 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; pcm 1709 sound/pci/emu10k1/emupcm.c result = snd_emu10k1_fx8010_register_irq_handler(emu, snd_emu10k1_fx8010_playback_irq, pcm->gpr_running, substream, &pcm->irq); pcm 1713 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_trigger, 0, 1); pcm 1718 sound/pci/emu10k1/emupcm.c snd_emu10k1_fx8010_unregister_irq_handler(emu, &pcm->irq); pcm 1719 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_trigger, 0, 0); pcm 1720 sound/pci/emu10k1/emupcm.c pcm->tram_pos = INITIAL_TRAM_POS(pcm->buffer_size); pcm 1721 sound/pci/emu10k1/emupcm.c pcm->tram_shift = 0; pcm 1735 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; pcm 1738 sound/pci/emu10k1/emupcm.c if (!snd_emu10k1_ptr_read(emu, emu->gpr_base + pcm->gpr_trigger, 0)) pcm 1740 sound/pci/emu10k1/emupcm.c ptr = snd_emu10k1_ptr_read(emu, emu->gpr_base + pcm->gpr_ptr, 0) << 2; pcm 1741 sound/pci/emu10k1/emupcm.c return snd_pcm_indirect_playback_pointer(substream, &pcm->pcm_rec, ptr); pcm 1768 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; pcm 1771 sound/pci/emu10k1/emupcm.c runtime->hw.channels_min = runtime->hw.channels_max = pcm->channels; pcm 1772 sound/pci/emu10k1/emupcm.c runtime->hw.period_bytes_max = (pcm->buffer_size * 2) / 2; pcm 1774 sound/pci/emu10k1/emupcm.c if (pcm->valid == 0) { pcm 1778 sound/pci/emu10k1/emupcm.c pcm->opened = 1; pcm 1786 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; pcm 1789 sound/pci/emu10k1/emupcm.c pcm->opened = 0; pcm 1808 sound/pci/emu10k1/emupcm.c struct snd_pcm *pcm; pcm 1812 sound/pci/emu10k1/emupcm.c if ((err = snd_pcm_new(emu->card, "emu10k1 efx", device, 8, 1, &pcm)) < 0) pcm 1815 sound/pci/emu10k1/emupcm.c pcm->private_data = emu; pcm 1817 sound/pci/emu10k1/emupcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1_fx8010_playback_ops); pcm 1818 sound/pci/emu10k1/emupcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1_capture_efx_ops); pcm 1820 sound/pci/emu10k1/emupcm.c pcm->info_flags = 0; pcm 1821 sound/pci/emu10k1/emupcm.c strcpy(pcm->name, "Multichannel Capture/PT Playback"); pcm 1822 sound/pci/emu10k1/emupcm.c emu->pcm_efx = pcm; pcm 1857 sound/pci/emu10k1/emupcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 375 sound/pci/emu10k1/emuproc.c voice->pcm, pcm 200 sound/pci/emu10k1/p16v.c runtime->sync.id32[0] = substream->pcm->card->number; pcm 258 sound/pci/emu10k1/p16v.c emu->p16v_voices[substream->pcm->device - emu->p16v_device_offset].use = 0; pcm 320 sound/pci/emu10k1/p16v.c int channel = substream->pcm->device - emu->p16v_device_offset; pcm 382 sound/pci/emu10k1/p16v.c int channel = substream->pcm->device - emu->p16v_device_offset; pcm 471 sound/pci/emu10k1/p16v.c channel = substream->pcm->device-emu->p16v_device_offset; pcm 534 sound/pci/emu10k1/p16v.c int channel = substream->pcm->device - emu->p16v_device_offset; pcm 620 sound/pci/emu10k1/p16v.c struct snd_pcm *pcm; pcm 628 sound/pci/emu10k1/p16v.c if ((err = snd_pcm_new(emu->card, "p16v", device, 1, capture, &pcm)) < 0) pcm 631 sound/pci/emu10k1/p16v.c pcm->private_data = emu; pcm 634 sound/pci/emu10k1/p16v.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_p16v_playback_front_ops); pcm 635 sound/pci/emu10k1/p16v.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_p16v_capture_ops); pcm 637 sound/pci/emu10k1/p16v.c pcm->info_flags = 0; pcm 638 sound/pci/emu10k1/p16v.c pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; pcm 639 sound/pci/emu10k1/p16v.c strcpy(pcm->name, "p16v"); pcm 640 sound/pci/emu10k1/p16v.c emu->pcm_p16v = pcm; pcm 642 sound/pci/emu10k1/p16v.c for(substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; pcm 655 sound/pci/emu10k1/p16v.c for (substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; pcm 84 sound/pci/emu10k1/voice.c voice->pcm = 1; pcm 124 sound/pci/emu10k1/voice.c pvoice->use = pvoice->pcm = pvoice->synth = pvoice->midi = pvoice->efx = 0; pcm 147 sound/pci/emu10k1/voice.c pvoice->use = pvoice->pcm = pvoice->synth = pvoice->midi = pvoice->efx = 0; pcm 1258 sound/pci/ens1370.c struct snd_pcm *pcm; pcm 1261 sound/pci/ens1370.c err = snd_pcm_new(ensoniq->card, CHIP_NAME "/1", device, 1, 1, &pcm); pcm 1266 sound/pci/ens1370.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ensoniq_playback2_ops); pcm 1268 sound/pci/ens1370.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ensoniq_playback1_ops); pcm 1270 sound/pci/ens1370.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ensoniq_capture_ops); pcm 1272 sound/pci/ens1370.c pcm->private_data = ensoniq; pcm 1273 sound/pci/ens1370.c pcm->info_flags = 0; pcm 1274 sound/pci/ens1370.c strcpy(pcm->name, CHIP_NAME " DAC2/ADC"); pcm 1275 sound/pci/ens1370.c ensoniq->pcm1 = pcm; pcm 1277 sound/pci/ens1370.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1281 sound/pci/ens1370.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1284 sound/pci/ens1370.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1292 sound/pci/ens1370.c struct snd_pcm *pcm; pcm 1295 sound/pci/ens1370.c err = snd_pcm_new(ensoniq->card, CHIP_NAME "/2", device, 1, 0, &pcm); pcm 1300 sound/pci/ens1370.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ensoniq_playback1_ops); pcm 1302 sound/pci/ens1370.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ensoniq_playback2_ops); pcm 1304 sound/pci/ens1370.c pcm->private_data = ensoniq; pcm 1305 sound/pci/ens1370.c pcm->info_flags = 0; pcm 1306 sound/pci/ens1370.c strcpy(pcm->name, CHIP_NAME " DAC1"); pcm 1307 sound/pci/ens1370.c ensoniq->pcm2 = pcm; pcm 1309 sound/pci/ens1370.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1313 sound/pci/ens1370.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1316 sound/pci/ens1370.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 201 sound/pci/es1938.c struct snd_pcm *pcm; pcm 1022 sound/pci/es1938.c struct snd_pcm *pcm; pcm 1025 sound/pci/es1938.c if ((err = snd_pcm_new(chip->card, "es-1938-1946", device, 2, 1, &pcm)) < 0) pcm 1027 sound/pci/es1938.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_es1938_playback_ops); pcm 1028 sound/pci/es1938.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_es1938_capture_ops); pcm 1030 sound/pci/es1938.c pcm->private_data = chip; pcm 1031 sound/pci/es1938.c pcm->info_flags = 0; pcm 1032 sound/pci/es1938.c strcpy(pcm->name, "ESS Solo-1"); pcm 1034 sound/pci/es1938.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1037 sound/pci/es1938.c chip->pcm = pcm; pcm 507 sound/pci/es1968.c struct snd_pcm *pcm; pcm 1788 sound/pci/es1968.c static void snd_es1968_pcm_free(struct snd_pcm *pcm) pcm 1790 sound/pci/es1968.c struct es1968 *esm = pcm->private_data; pcm 1792 sound/pci/es1968.c esm->pcm = NULL; pcm 1798 sound/pci/es1968.c struct snd_pcm *pcm; pcm 1813 sound/pci/es1968.c chip->capture_streams, &pcm)) < 0) pcm 1816 sound/pci/es1968.c pcm->private_data = chip; pcm 1817 sound/pci/es1968.c pcm->private_free = snd_es1968_pcm_free; pcm 1819 sound/pci/es1968.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_es1968_playback_ops); pcm 1820 sound/pci/es1968.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_es1968_capture_ops); pcm 1822 sound/pci/es1968.c pcm->info_flags = 0; pcm 1824 sound/pci/es1968.c strcpy(pcm->name, "ESS Maestro"); pcm 1826 sound/pci/es1968.c chip->pcm = pcm; pcm 185 sound/pci/fm801.c struct snd_pcm *pcm; pcm 555 sound/pci/fm801.c if (chip->pcm && (status & FM801_IRQ_PLAYBACK) && chip->playback_substream) { pcm 569 sound/pci/fm801.c if (chip->pcm && (status & FM801_IRQ_CAPTURE) && chip->capture_substream) { pcm 709 sound/pci/fm801.c struct snd_pcm *pcm; pcm 712 sound/pci/fm801.c if ((err = snd_pcm_new(chip->card, "FM801", device, 1, 1, &pcm)) < 0) pcm 715 sound/pci/fm801.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_fm801_playback_ops); pcm 716 sound/pci/fm801.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_fm801_capture_ops); pcm 718 sound/pci/fm801.c pcm->private_data = chip; pcm 719 sound/pci/fm801.c pcm->info_flags = 0; pcm 720 sound/pci/fm801.c strcpy(pcm->name, "FM801"); pcm 721 sound/pci/fm801.c chip->pcm = pcm; pcm 723 sound/pci/fm801.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 727 sound/pci/fm801.c return snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 698 sound/pci/hda/hda_codec.c struct hda_pcm *pcm = container_of(kref, struct hda_pcm, kref); pcm 700 sound/pci/hda/hda_codec.c if (pcm->pcm) pcm 701 sound/pci/hda/hda_codec.c snd_device_free(pcm->codec->card, pcm->pcm); pcm 702 sound/pci/hda/hda_codec.c clear_bit(pcm->device, pcm->codec->bus->pcm_dev_bits); pcm 703 sound/pci/hda/hda_codec.c kfree(pcm->name); pcm 704 sound/pci/hda/hda_codec.c kfree(pcm); pcm 707 sound/pci/hda/hda_codec.c void snd_hda_codec_pcm_put(struct hda_pcm *pcm) pcm 709 sound/pci/hda/hda_codec.c kref_put(&pcm->kref, release_pcm); pcm 716 sound/pci/hda/hda_codec.c struct hda_pcm *pcm; pcm 719 sound/pci/hda/hda_codec.c pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); pcm 720 sound/pci/hda/hda_codec.c if (!pcm) pcm 723 sound/pci/hda/hda_codec.c pcm->codec = codec; pcm 724 sound/pci/hda/hda_codec.c kref_init(&pcm->kref); pcm 726 sound/pci/hda/hda_codec.c pcm->name = kvasprintf(GFP_KERNEL, fmt, args); pcm 728 sound/pci/hda/hda_codec.c if (!pcm->name) { pcm 729 sound/pci/hda/hda_codec.c kfree(pcm); pcm 733 sound/pci/hda/hda_codec.c list_add_tail(&pcm->list, &codec->pcm_list_head); pcm 734 sound/pci/hda/hda_codec.c return pcm; pcm 743 sound/pci/hda/hda_codec.c struct hda_pcm *pcm, *n; pcm 745 sound/pci/hda/hda_codec.c list_for_each_entry_safe(pcm, n, &codec->pcm_list_head, list) { pcm 746 sound/pci/hda/hda_codec.c list_del_init(&pcm->list); pcm 747 sound/pci/hda/hda_codec.c if (pcm->pcm) pcm 748 sound/pci/hda/hda_codec.c snd_device_disconnect(codec->card, pcm->pcm); pcm 749 sound/pci/hda/hda_codec.c snd_hda_codec_pcm_put(pcm); pcm 1741 sound/pci/hda/hda_codec.c if (!cpcm->pcm) pcm 1743 sound/pci/hda/hda_codec.c if (cpcm->pcm->streams[0].substream_opened || pcm 1744 sound/pci/hda/hda_codec.c cpcm->pcm->streams[1].substream_opened) pcm 3018 sound/pci/hda/hda_codec.c struct hda_pcm *pcm; pcm 3021 sound/pci/hda/hda_codec.c list_for_each_entry(pcm, &codec->pcm_list_head, list) { pcm 3023 sound/pci/hda/hda_codec.c struct hda_pcm_stream *hinfo = &pcm->stream[str]; pcm 3027 sound/pci/hda/hda_codec.c if (!pcm->pcm || pcm->own_chmap || !hinfo->substreams) pcm 3030 sound/pci/hda/hda_codec.c err = snd_pcm_add_chmap_ctls(pcm->pcm, str, elem, pcm 3299 sound/pci/hda/hda_codec.c if (cpcm->pcm) pcm 4017 sound/pci/hda/hda_codec.c void snd_print_pcm_bits(int pcm, char *buf, int buflen) pcm 4023 sound/pci/hda/hda_codec.c if (pcm & (AC_SUPPCM_BITS_8 << i)) pcm 245 sound/pci/hda/hda_controller.c if (s->pcm->card != substream->pcm->card) pcm 258 sound/pci/hda/hda_controller.c if (s->pcm->card != substream->pcm->card) pcm 707 sound/pci/hda/hda_controller.c static void azx_pcm_free(struct snd_pcm *pcm) pcm 709 sound/pci/hda/hda_controller.c struct azx_pcm *apcm = pcm->private_data; pcm 712 sound/pci/hda/hda_controller.c apcm->info->pcm = NULL; pcm 724 sound/pci/hda/hda_controller.c struct snd_pcm *pcm; pcm 732 sound/pci/hda/hda_controller.c if (apcm->pcm->device == pcm_dev) { pcm 741 sound/pci/hda/hda_controller.c &pcm); pcm 744 sound/pci/hda/hda_controller.c strlcpy(pcm->name, cpcm->name, sizeof(pcm->name)); pcm 747 sound/pci/hda/hda_controller.c snd_device_free(chip->card, pcm); pcm 751 sound/pci/hda/hda_controller.c apcm->pcm = pcm; pcm 754 sound/pci/hda/hda_controller.c pcm->private_data = apcm; pcm 755 sound/pci/hda/hda_controller.c pcm->private_free = azx_pcm_free; pcm 757 sound/pci/hda/hda_controller.c pcm->dev_class = SNDRV_PCM_CLASS_MODEM; pcm 759 sound/pci/hda/hda_controller.c cpcm->pcm = pcm; pcm 762 sound/pci/hda/hda_controller.c snd_pcm_set_ops(pcm, s, &azx_pcm_ops); pcm 770 sound/pci/hda/hda_controller.c snd_pcm_lib_preallocate_pages_for_all(pcm, type, pcm 87 sound/pci/hda/hda_controller.h struct snd_pcm *pcm; pcm 353 sound/pci/hda/hda_eld.c static void hdmi_print_pcm_rates(int pcm, char *buf, int buflen) pcm 362 sound/pci/hda/hda_eld.c if (pcm & (1 << i)) pcm 268 sound/pci/hda/hda_local.h void snd_print_pcm_bits(int pcm, char *buf, int buflen); pcm 82 sound/pci/hda/hda_proc.c if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL) pcm 88 sound/pci/hda/hda_proc.c cpcm->pcm->device); pcm 161 sound/pci/hda/hda_proc.c static void print_pcm_rates(struct snd_info_buffer *buffer, unsigned int pcm) pcm 169 sound/pci/hda/hda_proc.c pcm &= AC_SUPPCM_RATES; pcm 170 sound/pci/hda/hda_proc.c snd_iprintf(buffer, " rates [0x%x]:", pcm); pcm 172 sound/pci/hda/hda_proc.c if (pcm & (1 << i)) pcm 177 sound/pci/hda/hda_proc.c static void print_pcm_bits(struct snd_info_buffer *buffer, unsigned int pcm) pcm 181 sound/pci/hda/hda_proc.c snd_iprintf(buffer, " bits [0x%x]:", (pcm >> 16) & 0xff); pcm 182 sound/pci/hda/hda_proc.c snd_print_pcm_bits(pcm, buf, sizeof(buf)); pcm 202 sound/pci/hda/hda_proc.c unsigned int pcm = param_read(codec, nid, AC_PAR_PCM); pcm 204 sound/pci/hda/hda_proc.c if (pcm == -1 || stream == -1) { pcm 208 sound/pci/hda/hda_proc.c print_pcm_rates(buffer, pcm); pcm 209 sound/pci/hda/hda_proc.c print_pcm_bits(buffer, pcm); pcm 6276 sound/pci/hda/patch_ca0132.c struct hda_pcm *pcm; pcm 6278 sound/pci/hda/patch_ca0132.c list_for_each_entry(pcm, &codec->pcm_list_head, list) { pcm 6280 sound/pci/hda/patch_ca0132.c &pcm->stream[SNDRV_PCM_STREAM_PLAYBACK]; pcm 6286 sound/pci/hda/patch_ca0132.c err = snd_pcm_add_chmap_ctls(pcm->pcm, pcm 91 sound/pci/hda/patch_hdmi.c struct hdmi_pcm *pcm; /* pointer to spec->pcm_rec[n] dynamically*/ pcm 124 sound/pci/hda/patch_hdmi.c struct hda_pcm *pcm; pcm 241 sound/pci/hda/patch_hdmi.c #define get_pcm_rec(spec, idx) (get_hdmi_pcm(spec, idx)->pcm) pcm 291 sound/pci/hda/patch_hdmi.c if (per_pin->pcm && pcm 292 sound/pci/hda/patch_hdmi.c per_pin->pcm->pcm->stream == hinfo) pcm 1068 sound/pci/hda/patch_hdmi.c if (!per_pin->pcm) pcm 1349 sound/pci/hda/patch_hdmi.c if (per_pin->pcm) pcm 1355 sound/pci/hda/patch_hdmi.c per_pin->pcm = get_hdmi_pcm(spec, idx); pcm 1365 sound/pci/hda/patch_hdmi.c if (!per_pin->pcm) pcm 1369 sound/pci/hda/patch_hdmi.c per_pin->pcm = NULL; pcm 1391 sound/pci/hda/patch_hdmi.c struct hda_pcm *pcm; pcm 1398 sound/pci/hda/patch_hdmi.c pcm = get_pcm_rec(spec, per_pin->pcm_idx); pcm 1401 sound/pci/hda/patch_hdmi.c if (!pcm->pcm) pcm 1407 sound/pci/hda/patch_hdmi.c hinfo = pcm->stream; pcm 1408 sound/pci/hda/patch_hdmi.c substream = pcm->pcm->streams[0].substream; pcm 1759 sound/pci/hda/patch_hdmi.c per_pin->pcm = NULL; pcm 1762 sound/pci/hda/patch_hdmi.c per_pin->pcm = get_hdmi_pcm(spec, pin_idx); pcm 2107 sound/pci/hda/patch_hdmi.c spec->pcm_rec[idx].pcm = info; pcm 2126 sound/pci/hda/patch_hdmi.c struct hdmi_pcm *pcm = jack->private_data; pcm 2128 sound/pci/hda/patch_hdmi.c pcm->jack = NULL; pcm 2197 sound/pci/hda/patch_hdmi.c if (!get_pcm_rec(spec, pcm_idx)->pcm) { pcm 2245 sound/pci/hda/patch_hdmi.c struct hda_pcm *pcm; pcm 2247 sound/pci/hda/patch_hdmi.c pcm = get_pcm_rec(spec, pcm_idx); pcm 2248 sound/pci/hda/patch_hdmi.c if (!pcm || !pcm->pcm) pcm 2250 sound/pci/hda/patch_hdmi.c err = snd_hdac_add_chmap_ctls(pcm->pcm, pcm_idx, &spec->chmap); pcm 2945 sound/pci/hda/patch_hdmi.c spec->pcm_rec[0].pcm = info; pcm 3414 sound/pci/hda/patch_hdmi.c err = snd_pcm_add_chmap_ctls(info->pcm, pcm 3619 sound/pci/hda/patch_hdmi.c struct hda_pcm *pcm = get_pcm_rec(spec, i); pcm 3621 sound/pci/hda/patch_hdmi.c if (pcm->pcm_type == type) pcm 3622 sound/pci/hda/patch_hdmi.c return pcm; pcm 3631 sound/pci/hda/patch_hdmi.c struct hda_pcm *pcm; pcm 3638 sound/pci/hda/patch_hdmi.c pcm = hda_find_pcm_by_type(codec, HDA_PCM_TYPE_HDMI); pcm 3639 sound/pci/hda/patch_hdmi.c if (!pcm) pcm 3646 sound/pci/hda/patch_hdmi.c stream = &pcm->stream[SNDRV_PCM_STREAM_PLAYBACK]; pcm 1909 sound/pci/ice1712/aureon.c kctl->id.device = ice->pcm->device; pcm 871 sound/pci/ice1712/ice1712.c struct snd_pcm *pcm; pcm 874 sound/pci/ice1712/ice1712.c err = snd_pcm_new(ice->card, "ICE1712 consumer", device, 1, 1, &pcm); pcm 878 sound/pci/ice1712/ice1712.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ice1712_playback_ops); pcm 879 sound/pci/ice1712/ice1712.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ice1712_capture_ops); pcm 881 sound/pci/ice1712/ice1712.c pcm->private_data = ice; pcm 882 sound/pci/ice1712/ice1712.c pcm->info_flags = 0; pcm 883 sound/pci/ice1712/ice1712.c strcpy(pcm->name, "ICE1712 consumer"); pcm 884 sound/pci/ice1712/ice1712.c ice->pcm = pcm; pcm 886 sound/pci/ice1712/ice1712.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 897 sound/pci/ice1712/ice1712.c struct snd_pcm *pcm; pcm 900 sound/pci/ice1712/ice1712.c err = snd_pcm_new(ice->card, "ICE1712 consumer (DS)", device, 6, 0, &pcm); pcm 904 sound/pci/ice1712/ice1712.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ice1712_playback_ds_ops); pcm 906 sound/pci/ice1712/ice1712.c pcm->private_data = ice; pcm 907 sound/pci/ice1712/ice1712.c pcm->info_flags = 0; pcm 908 sound/pci/ice1712/ice1712.c strcpy(pcm->name, "ICE1712 consumer (DS)"); pcm 909 sound/pci/ice1712/ice1712.c ice->pcm_ds = pcm; pcm 911 sound/pci/ice1712/ice1712.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1241 sound/pci/ice1712/ice1712.c struct snd_pcm *pcm; pcm 1244 sound/pci/ice1712/ice1712.c err = snd_pcm_new(ice->card, "ICE1712 multi", device, 1, 1, &pcm); pcm 1248 sound/pci/ice1712/ice1712.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ice1712_playback_pro_ops); pcm 1249 sound/pci/ice1712/ice1712.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ice1712_capture_pro_ops); pcm 1251 sound/pci/ice1712/ice1712.c pcm->private_data = ice; pcm 1252 sound/pci/ice1712/ice1712.c pcm->info_flags = 0; pcm 1253 sound/pci/ice1712/ice1712.c strcpy(pcm->name, "ICE1712 multi"); pcm 1255 sound/pci/ice1712/ice1712.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1258 sound/pci/ice1712/ice1712.c ice->pcm_pro = pcm; pcm 1263 sound/pci/ice1712/ice1712.c pcm->streams[0].substream, pcm 1264 sound/pci/ice1712/ice1712.c pcm->streams[1].substream); pcm 298 sound/pci/ice1712/ice1712.h struct snd_pcm *pcm; pcm 1127 sound/pci/ice1712/ice1724.c struct snd_pcm *pcm; pcm 1135 sound/pci/ice1712/ice1724.c err = snd_pcm_new(ice->card, "ICE1724", device, 1, capt, &pcm); pcm 1139 sound/pci/ice1712/ice1724.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_vt1724_playback_pro_ops); pcm 1141 sound/pci/ice1712/ice1724.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 1144 sound/pci/ice1712/ice1724.c pcm->private_data = ice; pcm 1145 sound/pci/ice1712/ice1724.c pcm->info_flags = 0; pcm 1146 sound/pci/ice1712/ice1724.c strcpy(pcm->name, "ICE1724"); pcm 1148 sound/pci/ice1712/ice1724.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1152 sound/pci/ice1712/ice1724.c ice->pcm_pro = pcm; pcm 1308 sound/pci/ice1712/ice1724.c struct snd_pcm *pcm; pcm 1331 sound/pci/ice1712/ice1724.c err = snd_pcm_new(ice->card, name, device, play, capt, &pcm); pcm 1336 sound/pci/ice1712/ice1724.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1339 sound/pci/ice1712/ice1724.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 1342 sound/pci/ice1712/ice1724.c pcm->private_data = ice; pcm 1343 sound/pci/ice1712/ice1724.c pcm->info_flags = 0; pcm 1344 sound/pci/ice1712/ice1724.c strcpy(pcm->name, name); pcm 1346 sound/pci/ice1712/ice1724.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1350 sound/pci/ice1712/ice1724.c ice->pcm = pcm; pcm 1441 sound/pci/ice1712/ice1724.c struct snd_pcm *pcm; pcm 1449 sound/pci/ice1712/ice1724.c err = snd_pcm_new(ice->card, "ICE1724 Surrounds", device, play, 0, &pcm); pcm 1453 sound/pci/ice1712/ice1724.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1456 sound/pci/ice1712/ice1724.c pcm->private_data = ice; pcm 1457 sound/pci/ice1712/ice1724.c pcm->info_flags = 0; pcm 1458 sound/pci/ice1712/ice1724.c strcpy(pcm->name, "ICE1724 Surround PCM"); pcm 1460 sound/pci/ice1712/ice1724.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1464 sound/pci/ice1712/ice1724.c ice->pcm_ds = pcm; pcm 2419 sound/pci/ice1712/ice1724.c if (snd_BUG_ON(!ice->pcm)) pcm 2436 sound/pci/ice1712/ice1724.c kctl->id.device = ice->pcm->device; pcm 2440 sound/pci/ice1712/ice1724.c kctl->id.device = ice->pcm->device; pcm 2444 sound/pci/ice1712/ice1724.c kctl->id.device = ice->pcm->device; pcm 2449 sound/pci/ice1712/ice1724.c kctl->id.device = ice->pcm->device; pcm 2714 sound/pci/ice1712/ice1724.c if (ice->pcm && ice->has_spdif) { /* has SPDIF I/O */ pcm 464 sound/pci/ice1712/juli.c ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); pcm 668 sound/pci/ice1712/prodigy192.c ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); pcm 815 sound/pci/ice1712/quartet.c ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); pcm 599 sound/pci/ice1712/revo.c ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); pcm 355 sound/pci/intel8x0.c struct ac97_pcm *pcm; pcm 372 sound/pci/intel8x0.c struct snd_pcm *pcm[6]; pcm 908 sound/pci/intel8x0.c snd_ac97_pcm_close(ichdev->pcm); pcm 911 sound/pci/intel8x0.c err = snd_ac97_pcm_open(ichdev->pcm, params_rate(hw_params), pcm 913 sound/pci/intel8x0.c ichdev->pcm->r[dbl].slots); pcm 918 sound/pci/intel8x0.c snd_ac97_set_rate(ichdev->pcm->r[0].codec[0], AC97_SPDIF, pcm 929 sound/pci/intel8x0.c snd_ac97_pcm_close(ichdev->pcm); pcm 1121 sound/pci/intel8x0.c runtime->hw.rates = ichdev->pcm->rates; pcm 1463 sound/pci/intel8x0.c struct snd_pcm *pcm; pcm 1473 sound/pci/intel8x0.c rec->capture_ops ? 1 : 0, &pcm); pcm 1478 sound/pci/intel8x0.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, rec->playback_ops); pcm 1480 sound/pci/intel8x0.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, rec->capture_ops); pcm 1482 sound/pci/intel8x0.c pcm->private_data = chip; pcm 1483 sound/pci/intel8x0.c pcm->info_flags = 0; pcm 1485 sound/pci/intel8x0.c sprintf(pcm->name, "%s - %s", chip->card->shortname, rec->suffix); pcm 1487 sound/pci/intel8x0.c strcpy(pcm->name, chip->card->shortname); pcm 1488 sound/pci/intel8x0.c chip->pcm[device] = pcm; pcm 1490 sound/pci/intel8x0.c snd_pcm_lib_preallocate_pages_for_all(pcm, intel8x0_dma_type(chip), pcm 1504 sound/pci/intel8x0.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1641 sound/pci/intel8x0.c if (! chip->ichd[rec->ac97_idx].pcm) pcm 2262 sound/pci/intel8x0.c chip->ichd[ICHD_PCMOUT].pcm = &pbus->pcms[0]; pcm 2263 sound/pci/intel8x0.c chip->ichd[ICHD_PCMIN].pcm = &pbus->pcms[1]; pcm 2264 sound/pci/intel8x0.c chip->ichd[ICHD_MIC].pcm = &pbus->pcms[2]; pcm 2266 sound/pci/intel8x0.c chip->ichd[chip->spdif_idx].pcm = &pbus->pcms[3]; pcm 2268 sound/pci/intel8x0.c chip->ichd[ICHD_PCM2IN].pcm = &pbus->pcms[4]; pcm 2269 sound/pci/intel8x0.c chip->ichd[ICHD_MIC2].pcm = &pbus->pcms[5]; pcm 2273 sound/pci/intel8x0.c struct ac97_pcm *pcm = chip->ichd[ICHD_PCM2IN].pcm; pcm 2276 sound/pci/intel8x0.c if (pcm) { pcm 2280 sound/pci/intel8x0.c if (pcm->r[0].codec[i]) { pcm 2281 sound/pci/intel8x0.c tmp |= chip->ac97_sdin[pcm->r[0].codec[1]->num] << ICH_DI2L_SHIFT; pcm 2307 sound/pci/intel8x0.c chip->ichd[chip->spdif_idx].pcm->rates = SNDRV_PCM_RATE_48000; pcm 2684 sound/pci/intel8x0.c subs = chip->pcm[0]->streams[0].substream; pcm 190 sound/pci/intel8x0m.c struct snd_pcm *pcm[2]; pcm 708 sound/pci/intel8x0m.c struct snd_pcm *pcm; pcm 718 sound/pci/intel8x0m.c rec->capture_ops ? 1 : 0, &pcm); pcm 723 sound/pci/intel8x0m.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, rec->playback_ops); pcm 725 sound/pci/intel8x0m.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, rec->capture_ops); pcm 727 sound/pci/intel8x0m.c pcm->private_data = chip; pcm 728 sound/pci/intel8x0m.c pcm->info_flags = 0; pcm 729 sound/pci/intel8x0m.c pcm->dev_class = SNDRV_PCM_CLASS_MODEM; pcm 731 sound/pci/intel8x0m.c sprintf(pcm->name, "%s - %s", chip->card->shortname, rec->suffix); pcm 733 sound/pci/intel8x0m.c strcpy(pcm->name, chip->card->shortname); pcm 734 sound/pci/intel8x0m.c chip->pcm[device] = pcm; pcm 736 sound/pci/intel8x0m.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 305 sound/pci/korg1212/korg1212.c struct snd_pcm *pcm; pcm 1364 sound/pci/korg1212/korg1212.c static void snd_korg1212_free_pcm(struct snd_pcm *pcm) pcm 1366 sound/pci/korg1212/korg1212.c struct snd_korg1212 *korg1212 = pcm->private_data; pcm 1371 sound/pci/korg1212/korg1212.c korg1212->pcm = NULL; pcm 2386 sound/pci/korg1212/korg1212.c if ((err = snd_pcm_new(korg1212->card, "korg1212", 0, 1, 1, &korg1212->pcm)) < 0) pcm 2389 sound/pci/korg1212/korg1212.c korg1212->pcm->private_data = korg1212; pcm 2390 sound/pci/korg1212/korg1212.c korg1212->pcm->private_free = snd_korg1212_free_pcm; pcm 2391 sound/pci/korg1212/korg1212.c strcpy(korg1212->pcm->name, "korg1212"); pcm 2393 sound/pci/korg1212/korg1212.c snd_pcm_set_ops(korg1212->pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_korg1212_playback_ops); pcm 2395 sound/pci/korg1212/korg1212.c snd_pcm_set_ops(korg1212->pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_korg1212_capture_ops); pcm 2397 sound/pci/korg1212/korg1212.c korg1212->pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; pcm 237 sound/pci/lola/lola.c for (i = 0; in_sts && i < chip->pcm[CAPT].num_streams; i++) { pcm 251 sound/pci/lola/lola.c for (i = 0; out_sts && i < chip->pcm[PLAY].num_streams; i++) { pcm 286 sound/pci/lola/lola.c lola_pcm_update(chip, &chip->pcm[CAPT], notify_ins); pcm 287 sound/pci/lola/lola.c lola_pcm_update(chip, &chip->pcm[PLAY], notify_outs); pcm 328 sound/pci/lola/lola.c val = (1 << chip->pcm[PLAY].num_streams) - 1; pcm 330 sound/pci/lola/lola.c val = (1 << chip->pcm[CAPT].num_streams) - 1; pcm 644 sound/pci/lola/lola.c chip->pcm[CAPT].num_streams = (dever >> 0) & 0x3ff; pcm 645 sound/pci/lola/lola.c chip->pcm[PLAY].num_streams = (dever >> 10) & 0x3ff; pcm 648 sound/pci/lola/lola.c chip->pcm[CAPT].num_streams, chip->pcm[PLAY].num_streams, pcm 652 sound/pci/lola/lola.c if (chip->pcm[CAPT].num_streams > MAX_STREAM_IN_COUNT || pcm 653 sound/pci/lola/lola.c chip->pcm[PLAY].num_streams > MAX_STREAM_OUT_COUNT || pcm 654 sound/pci/lola/lola.c (!chip->pcm[CAPT].num_streams && pcm 655 sound/pci/lola/lola.c !chip->pcm[PLAY].num_streams)) { pcm 337 sound/pci/lola/lola.h struct lola_pcm pcm[2]; pcm 485 sound/pci/lola/lola.h void lola_pcm_update(struct lola *chip, struct lola_pcm *pcm, unsigned int bits); pcm 126 sound/pci/lola/lola_mixer.c chip->mixer.src_stream_outs = chip->pcm[PLAY].num_streams; pcm 130 sound/pci/lola/lola_mixer.c chip->mixer.dest_stream_ins = chip->pcm[CAPT].num_streams; pcm 433 sound/pci/lola/lola_mixer.c err = lola_codec_write(chip, chip->pcm[CAPT].streams[n].nid, pcm 24 sound/pci/lola/lola_pcm.c return &chip->pcm[substream->stream]; pcm 29 sound/pci/lola/lola_pcm.c struct lola_pcm *pcm = lola_get_pcm(substream); pcm 31 sound/pci/lola/lola_pcm.c return &pcm->streams[idx]; pcm 128 sound/pci/lola/lola_pcm.c if (s->pcm->card != substream->pcm->card) pcm 159 sound/pci/lola/lola_pcm.c if (s->pcm->card != substream->pcm->card) pcm 213 sound/pci/lola/lola_pcm.c struct lola_pcm *pcm = lola_get_pcm(substream); pcm 226 sound/pci/lola/lola_pcm.c runtime->hw.channels_max = pcm->num_streams - str->index; pcm 246 sound/pci/lola/lola_pcm.c static void lola_cleanup_slave_streams(struct lola_pcm *pcm, pcm 250 sound/pci/lola/lola_pcm.c for (i = str->index + 1; i < pcm->num_streams; i++) { pcm 251 sound/pci/lola/lola_pcm.c struct lola_stream *s = &pcm->streams[i]; pcm 292 sound/pci/lola/lola_pcm.c struct lola_pcm *pcm = lola_get_pcm(substream); pcm 297 sound/pci/lola/lola_pcm.c lola_cleanup_slave_streams(pcm, str); pcm 341 sound/pci/lola/lola_pcm.c static int lola_setup_periods(struct lola *chip, struct lola_pcm *pcm, pcm 352 sound/pci/lola/lola_pcm.c bdl = (__le32 *)(pcm->bdl.area + LOLA_BDL_ENTRY_SIZE * str->index); pcm 428 sound/pci/lola/lola_pcm.c static int lola_setup_controller(struct lola *chip, struct lola_pcm *pcm, pcm 437 sound/pci/lola/lola_pcm.c bdl = pcm->bdl.addr + LOLA_BDL_ENTRY_SIZE * str->index; pcm 455 sound/pci/lola/lola_pcm.c struct lola_pcm *pcm = lola_get_pcm(substream); pcm 463 sound/pci/lola/lola_pcm.c lola_cleanup_slave_streams(pcm, str); pcm 464 sound/pci/lola/lola_pcm.c if (str->index + runtime->channels > pcm->num_streams) { pcm 482 sound/pci/lola/lola_pcm.c err = lola_setup_periods(chip, pcm, substream, str); pcm 495 sound/pci/lola/lola_pcm.c err = lola_setup_controller(chip, pcm, str); pcm 536 sound/pci/lola/lola_pcm.c if (s->pcm->card != substream->pcm->card) pcm 562 sound/pci/lola/lola_pcm.c void lola_pcm_update(struct lola *chip, struct lola_pcm *pcm, unsigned int bits) pcm 566 sound/pci/lola/lola_pcm.c for (i = 0; bits && i < pcm->num_streams; i++) { pcm 568 sound/pci/lola/lola_pcm.c struct lola_stream *str = &pcm->streams[i]; pcm 590 sound/pci/lola/lola_pcm.c struct snd_pcm *pcm; pcm 596 sound/pci/lola/lola_pcm.c PAGE_SIZE, &chip->pcm[i].bdl); pcm 602 sound/pci/lola/lola_pcm.c chip->pcm[SNDRV_PCM_STREAM_PLAYBACK].num_streams, pcm 603 sound/pci/lola/lola_pcm.c chip->pcm[SNDRV_PCM_STREAM_CAPTURE].num_streams, pcm 604 sound/pci/lola/lola_pcm.c &pcm); pcm 607 sound/pci/lola/lola_pcm.c strlcpy(pcm->name, "Digigram Lola", sizeof(pcm->name)); pcm 608 sound/pci/lola/lola_pcm.c pcm->private_data = chip; pcm 610 sound/pci/lola/lola_pcm.c if (chip->pcm[i].num_streams) pcm 611 sound/pci/lola/lola_pcm.c snd_pcm_set_ops(pcm, i, &lola_pcm_ops); pcm 614 sound/pci/lola/lola_pcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, pcm 622 sound/pci/lola/lola_pcm.c snd_dma_free_pages(&chip->pcm[0].bdl); pcm 623 sound/pci/lola/lola_pcm.c snd_dma_free_pages(&chip->pcm[1].bdl); pcm 686 sound/pci/lola/lola_pcm.c struct lola_pcm *pcm = &chip->pcm[dir]; pcm 690 sound/pci/lola/lola_pcm.c for (i = 0; i < pcm->num_streams; i++, nid++) { pcm 691 sound/pci/lola/lola_pcm.c err = lola_init_stream(chip, &pcm->streams[i], i, nid, dir); pcm 113 sound/pci/lola/lola_proc.c for (i = 0; i < chip->pcm[CAPT].num_streams; i++, nid++) pcm 115 sound/pci/lola/lola_proc.c for (i = 0; i < chip->pcm[PLAY].num_streams; i++, nid++) pcm 264 sound/pci/lx6464es/lx6464es.c dev_dbg(substream->pcm->card->dev, "->lx_pcm_close\n"); pcm 823 sound/pci/lx6464es/lx6464es.c struct snd_pcm *pcm; pcm 835 sound/pci/lx6464es/lx6464es.c 1, 1, &pcm); pcm 839 sound/pci/lx6464es/lx6464es.c pcm->private_data = chip; pcm 841 sound/pci/lx6464es/lx6464es.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &lx_ops_playback); pcm 842 sound/pci/lx6464es/lx6464es.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &lx_ops_capture); pcm 844 sound/pci/lx6464es/lx6464es.c pcm->info_flags = 0; pcm 845 sound/pci/lx6464es/lx6464es.c pcm->nonatomic = true; pcm 846 sound/pci/lx6464es/lx6464es.c strcpy(pcm->name, card_name); pcm 848 sound/pci/lx6464es/lx6464es.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 852 sound/pci/lx6464es/lx6464es.c chip->pcm = pcm; pcm 87 sound/pci/lx6464es/lx6464es.h struct snd_pcm *pcm; pcm 735 sound/pci/maestro3.c struct snd_pcm *pcm; pcm 1391 sound/pci/maestro3.c dev_err(substream->pcm->card->dev, "oh my, not aligned\n"); pcm 1847 sound/pci/maestro3.c struct snd_pcm *pcm; pcm 1851 sound/pci/maestro3.c MAX_PLAYBACKS, MAX_CAPTURES, &pcm); pcm 1855 sound/pci/maestro3.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_m3_playback_ops); pcm 1856 sound/pci/maestro3.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_m3_capture_ops); pcm 1858 sound/pci/maestro3.c pcm->private_data = chip; pcm 1859 sound/pci/maestro3.c pcm->info_flags = 0; pcm 1860 sound/pci/maestro3.c strcpy(pcm->name, chip->card->driver); pcm 1861 sound/pci/maestro3.c chip->pcm = pcm; pcm 1863 sound/pci/maestro3.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 424 sound/pci/mixart/mixart.c dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_START\n"); pcm 441 sound/pci/mixart/mixart.c dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_STOP\n"); pcm 448 sound/pci/mixart/mixart.c dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_PUSH\n"); pcm 453 sound/pci/mixart/mixart.c dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_RELEASE\n"); pcm 714 sound/pci/mixart/mixart.c struct snd_pcm *pcm = subs->pcm; pcm 722 sound/pci/mixart/mixart.c if ( pcm == chip->pcm ) { pcm 726 sound/pci/mixart/mixart.c snd_BUG_ON(pcm != chip->pcm_dig); pcm 793 sound/pci/mixart/mixart.c struct snd_pcm *pcm = subs->pcm; pcm 801 sound/pci/mixart/mixart.c if ( pcm == chip->pcm ) { pcm 805 sound/pci/mixart/mixart.c snd_BUG_ON(pcm != chip->pcm_dig); pcm 935 sound/pci/mixart/mixart.c static void preallocate_buffers(struct snd_mixart *chip, struct snd_pcm *pcm) pcm 943 sound/pci/mixart/mixart.c for (subs = pcm->streams[stream].substream; subs; subs = subs->next, idx++) pcm 945 sound/pci/mixart/mixart.c subs->dma_device.id = subs->pcm->device << 16 | pcm 950 sound/pci/mixart/mixart.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 959 sound/pci/mixart/mixart.c struct snd_pcm *pcm; pcm 965 sound/pci/mixart/mixart.c MIXART_CAPTURE_STREAMS, &pcm)) < 0) { pcm 971 sound/pci/mixart/mixart.c pcm->private_data = chip; pcm 973 sound/pci/mixart/mixart.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_mixart_playback_ops); pcm 974 sound/pci/mixart/mixart.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_mixart_capture_ops); pcm 976 sound/pci/mixart/mixart.c pcm->info_flags = 0; pcm 977 sound/pci/mixart/mixart.c pcm->nonatomic = true; pcm 978 sound/pci/mixart/mixart.c strcpy(pcm->name, name); pcm 980 sound/pci/mixart/mixart.c preallocate_buffers(chip, pcm); pcm 982 sound/pci/mixart/mixart.c chip->pcm = pcm; pcm 992 sound/pci/mixart/mixart.c struct snd_pcm *pcm; pcm 998 sound/pci/mixart/mixart.c MIXART_CAPTURE_STREAMS, &pcm)) < 0) { pcm 1004 sound/pci/mixart/mixart.c pcm->private_data = chip; pcm 1006 sound/pci/mixart/mixart.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_mixart_playback_ops); pcm 1007 sound/pci/mixart/mixart.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_mixart_capture_ops); pcm 1009 sound/pci/mixart/mixart.c pcm->info_flags = 0; pcm 1010 sound/pci/mixart/mixart.c pcm->nonatomic = true; pcm 1011 sound/pci/mixart/mixart.c strcpy(pcm->name, name); pcm 1013 sound/pci/mixart/mixart.c preallocate_buffers(chip, pcm); pcm 1015 sound/pci/mixart/mixart.c chip->pcm_dig = pcm; pcm 158 sound/pci/mixart/mixart.h struct snd_pcm *pcm; /* PCM analog i/o */ pcm 233 sound/pci/nm256/nm256.c struct snd_pcm *pcm; pcm 940 sound/pci/nm256/nm256.c struct snd_pcm *pcm; pcm 950 sound/pci/nm256/nm256.c 1, 1, &pcm); pcm 954 sound/pci/nm256/nm256.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_nm256_playback_ops); pcm 955 sound/pci/nm256/nm256.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_nm256_capture_ops); pcm 957 sound/pci/nm256/nm256.c pcm->private_data = chip; pcm 958 sound/pci/nm256/nm256.c pcm->info_flags = 0; pcm 959 sound/pci/nm256/nm256.c chip->pcm = pcm; pcm 690 sound/pci/oxygen/oxygen_pcm.c struct snd_pcm *pcm; pcm 699 sound/pci/oxygen/oxygen_pcm.c 0, outs, ins, &pcm); pcm 703 sound/pci/oxygen/oxygen_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 706 sound/pci/oxygen/oxygen_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 709 sound/pci/oxygen/oxygen_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 711 sound/pci/oxygen/oxygen_pcm.c pcm->private_data = chip; pcm 712 sound/pci/oxygen/oxygen_pcm.c strcpy(pcm->name, "Multichannel"); pcm 714 sound/pci/oxygen/oxygen_pcm.c snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream, pcm 720 sound/pci/oxygen/oxygen_pcm.c snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, pcm 730 sound/pci/oxygen/oxygen_pcm.c err = snd_pcm_new(chip->card, "Digital", 1, outs, ins, &pcm); pcm 734 sound/pci/oxygen/oxygen_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 737 sound/pci/oxygen/oxygen_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 739 sound/pci/oxygen/oxygen_pcm.c pcm->private_data = chip; pcm 740 sound/pci/oxygen/oxygen_pcm.c strcpy(pcm->name, "Digital"); pcm 741 sound/pci/oxygen/oxygen_pcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 756 sound/pci/oxygen/oxygen_pcm.c 2, outs, ins, &pcm); pcm 760 sound/pci/oxygen/oxygen_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 767 sound/pci/oxygen/oxygen_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 769 sound/pci/oxygen/oxygen_pcm.c pcm->private_data = chip; pcm 770 sound/pci/oxygen/oxygen_pcm.c strcpy(pcm->name, outs ? "Front Panel" : "Analog 2"); pcm 771 sound/pci/oxygen/oxygen_pcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 779 sound/pci/oxygen/oxygen_pcm.c err = snd_pcm_new(chip->card, "Analog3", 3, 0, ins, &pcm); pcm 782 sound/pci/oxygen/oxygen_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 787 sound/pci/oxygen/oxygen_pcm.c pcm->private_data = chip; pcm 788 sound/pci/oxygen/oxygen_pcm.c strcpy(pcm->name, "Analog 3"); pcm 789 sound/pci/oxygen/oxygen_pcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1152 sound/pci/pcxhr/pcxhr.c struct snd_pcm *pcm; pcm 1158 sound/pci/pcxhr/pcxhr.c chip->nb_streams_capt, &pcm)) < 0) { pcm 1162 sound/pci/pcxhr/pcxhr.c pcm->private_data = chip; pcm 1165 sound/pci/pcxhr/pcxhr.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcxhr_ops); pcm 1167 sound/pci/pcxhr/pcxhr.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pcxhr_ops); pcm 1169 sound/pci/pcxhr/pcxhr.c pcm->info_flags = 0; pcm 1170 sound/pci/pcxhr/pcxhr.c pcm->nonatomic = true; pcm 1171 sound/pci/pcxhr/pcxhr.c strcpy(pcm->name, name); pcm 1173 sound/pci/pcxhr/pcxhr.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1176 sound/pci/pcxhr/pcxhr.c chip->pcm = pcm; pcm 158 sound/pci/pcxhr/pcxhr.h struct snd_pcm *pcm; /* PCM */ pcm 422 sound/pci/riptide/riptide.c struct snd_pcm *pcm; pcm 1682 sound/pci/riptide/riptide.c struct snd_pcm *pcm; pcm 1687 sound/pci/riptide/riptide.c &pcm)) < 0) pcm 1689 sound/pci/riptide/riptide.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1691 sound/pci/riptide/riptide.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 1693 sound/pci/riptide/riptide.c pcm->private_data = chip; pcm 1694 sound/pci/riptide/riptide.c pcm->info_flags = 0; pcm 1695 sound/pci/riptide/riptide.c strcpy(pcm->name, "RIPTIDE"); pcm 1696 sound/pci/riptide/riptide.c chip->pcm = pcm; pcm 1697 sound/pci/riptide/riptide.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, pcm 1319 sound/pci/rme32.c static void snd_rme32_free_spdif_pcm(struct snd_pcm *pcm) pcm 1321 sound/pci/rme32.c struct rme32 *rme32 = (struct rme32 *) pcm->private_data; pcm 1326 sound/pci/rme32.c snd_rme32_free_adat_pcm(struct snd_pcm *pcm) pcm 1328 sound/pci/rme32.c struct rme32 *rme32 = (struct rme32 *) pcm->private_data; pcm 1593 sound/pci/rme96.c snd_rme96_free_spdif_pcm(struct snd_pcm *pcm) pcm 1595 sound/pci/rme96.c struct rme96 *rme96 = pcm->private_data; pcm 1600 sound/pci/rme96.c snd_rme96_free_adat_pcm(struct snd_pcm *pcm) pcm 1602 sound/pci/rme96.c struct rme96 *rme96 = pcm->private_data; pcm 488 sound/pci/rme9652/hdsp.c struct snd_pcm *pcm; pcm 3838 sound/pci/rme9652/hdsp.c snd_pcm_period_elapsed(hdsp->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); pcm 3841 sound/pci/rme9652/hdsp.c snd_pcm_period_elapsed(hdsp->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream); pcm 4921 sound/pci/rme9652/hdsp.c struct snd_pcm *pcm; pcm 4924 sound/pci/rme9652/hdsp.c if ((err = snd_pcm_new(card, hdsp->card_name, 0, 1, 1, &pcm)) < 0) pcm 4927 sound/pci/rme9652/hdsp.c hdsp->pcm = pcm; pcm 4928 sound/pci/rme9652/hdsp.c pcm->private_data = hdsp; pcm 4929 sound/pci/rme9652/hdsp.c strcpy(pcm->name, hdsp->card_name); pcm 4931 sound/pci/rme9652/hdsp.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_hdsp_playback_ops); pcm 4932 sound/pci/rme9652/hdsp.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_hdsp_capture_ops); pcm 4934 sound/pci/rme9652/hdsp.c pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; pcm 1045 sound/pci/rme9652/hdspm.c struct snd_pcm *pcm; /* has one pcm */ pcm 6402 sound/pci/rme9652/hdspm.c struct snd_pcm *pcm; pcm 6405 sound/pci/rme9652/hdspm.c pcm = hdspm->pcm; pcm 6409 sound/pci/rme9652/hdspm.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, pcm 6434 sound/pci/rme9652/hdspm.c struct snd_pcm *pcm; pcm 6437 sound/pci/rme9652/hdspm.c err = snd_pcm_new(card, hdspm->card_name, 0, 1, 1, &pcm); pcm 6441 sound/pci/rme9652/hdspm.c hdspm->pcm = pcm; pcm 6442 sound/pci/rme9652/hdspm.c pcm->private_data = hdspm; pcm 6443 sound/pci/rme9652/hdspm.c strcpy(pcm->name, hdspm->card_name); pcm 6445 sound/pci/rme9652/hdspm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 6447 sound/pci/rme9652/hdspm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 6450 sound/pci/rme9652/hdspm.c pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; pcm 235 sound/pci/rme9652/rme9652.c struct snd_pcm *pcm; pcm 1833 sound/pci/rme9652/rme9652.c snd_pcm_period_elapsed(rme9652->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); pcm 1837 sound/pci/rme9652/rme9652.c snd_pcm_period_elapsed(rme9652->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream); pcm 2419 sound/pci/rme9652/rme9652.c struct snd_pcm *pcm; pcm 2424 sound/pci/rme9652/rme9652.c 0, 1, 1, &pcm)) < 0) { pcm 2428 sound/pci/rme9652/rme9652.c rme9652->pcm = pcm; pcm 2429 sound/pci/rme9652/rme9652.c pcm->private_data = rme9652; pcm 2430 sound/pci/rme9652/rme9652.c strcpy(pcm->name, rme9652->card_name); pcm 2432 sound/pci/rme9652/rme9652.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_rme9652_playback_ops); pcm 2433 sound/pci/rme9652/rme9652.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_rme9652_capture_ops); pcm 2435 sound/pci/rme9652/rme9652.c pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; pcm 107 sound/pci/sis7019.c struct snd_pcm *pcm; pcm 887 sound/pci/sis7019.c struct snd_pcm *pcm; pcm 893 sound/pci/sis7019.c rc = snd_pcm_new(sis->card, "SiS7019", 0, 64, 1, &pcm); pcm 897 sound/pci/sis7019.c pcm->private_data = sis; pcm 898 sound/pci/sis7019.c strcpy(pcm->name, "SiS7019"); pcm 899 sound/pci/sis7019.c sis->pcm = pcm; pcm 901 sound/pci/sis7019.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &sis_playback_ops); pcm 902 sound/pci/sis7019.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &sis_capture_ops); pcm 907 sound/pci/sis7019.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 211 sound/pci/sonicvibes.c struct snd_pcm *pcm; pcm 618 sound/pci/sonicvibes.c if (sonic->pcm) { pcm 870 sound/pci/sonicvibes.c struct snd_pcm *pcm; pcm 873 sound/pci/sonicvibes.c if ((err = snd_pcm_new(sonic->card, "s3_86c617", device, 1, 1, &pcm)) < 0) pcm 875 sound/pci/sonicvibes.c if (snd_BUG_ON(!pcm)) pcm 878 sound/pci/sonicvibes.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sonicvibes_playback_ops); pcm 879 sound/pci/sonicvibes.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_sonicvibes_capture_ops); pcm 881 sound/pci/sonicvibes.c pcm->private_data = sonic; pcm 882 sound/pci/sonicvibes.c pcm->info_flags = 0; pcm 883 sound/pci/sonicvibes.c strcpy(pcm->name, "S3 SonicVibes"); pcm 884 sound/pci/sonicvibes.c sonic->pcm = pcm; pcm 886 sound/pci/sonicvibes.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 263 sound/pci/trident/trident.h pcm: 1, pcm 379 sound/pci/trident/trident.h struct snd_pcm *pcm; /* ADC/DAC PCM */ pcm 2162 sound/pci/trident/trident_main.c struct snd_pcm *pcm; pcm 2165 sound/pci/trident/trident_main.c if ((err = snd_pcm_new(trident->card, "trident_dx_nx", device, trident->ChanPCM, 1, &pcm)) < 0) pcm 2168 sound/pci/trident/trident_main.c pcm->private_data = trident; pcm 2171 sound/pci/trident/trident_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_trident_nx_playback_ops); pcm 2173 sound/pci/trident/trident_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_trident_playback_ops); pcm 2175 sound/pci/trident/trident_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 2180 sound/pci/trident/trident_main.c pcm->info_flags = 0; pcm 2181 sound/pci/trident/trident_main.c pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; pcm 2182 sound/pci/trident/trident_main.c strcpy(pcm->name, "Trident 4DWave"); pcm 2183 sound/pci/trident/trident_main.c trident->pcm = pcm; pcm 2187 sound/pci/trident/trident_main.c for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substream->next) pcm 2191 sound/pci/trident/trident_main.c snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, pcm 2195 sound/pci/trident/trident_main.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 3730 sound/pci/trident/trident_main.c if (!voice->pcm || voice->substream == NULL) { pcm 3815 sound/pci/trident/trident_main.c pvoice->pcm = 1; pcm 3858 sound/pci/trident/trident_main.c if (voice->pcm) pcm 3862 sound/pci/trident/trident_main.c voice->use = voice->pcm = voice->synth = voice->midi = 0; pcm 1302 sound/pci/via82xx.c struct viadev *viadev = &chip->devs[chip->capture_devno + substream->pcm->device]; pcm 1436 sound/pci/via82xx.c struct snd_pcm *pcm; pcm 1447 sound/pci/via82xx.c err = snd_pcm_new(chip->card, chip->card->shortname, 0, 4, 1, &pcm); pcm 1450 sound/pci/via82xx.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via8233_playback_ops); pcm 1451 sound/pci/via82xx.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_via8233_capture_ops); pcm 1452 sound/pci/via82xx.c pcm->private_data = chip; pcm 1453 sound/pci/via82xx.c strcpy(pcm->name, chip->card->shortname); pcm 1454 sound/pci/via82xx.c chip->pcms[0] = pcm; pcm 1461 sound/pci/via82xx.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, pcm 1465 sound/pci/via82xx.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1472 sound/pci/via82xx.c err = snd_pcm_new(chip->card, chip->card->shortname, 1, 1, 1, &pcm); pcm 1475 sound/pci/via82xx.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via8233_multi_ops); pcm 1476 sound/pci/via82xx.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_via8233_capture_ops); pcm 1477 sound/pci/via82xx.c pcm->private_data = chip; pcm 1478 sound/pci/via82xx.c strcpy(pcm->name, chip->card->shortname); pcm 1479 sound/pci/via82xx.c chip->pcms[1] = pcm; pcm 1485 sound/pci/via82xx.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, pcm 1489 sound/pci/via82xx.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1504 sound/pci/via82xx.c struct snd_pcm *pcm; pcm 1515 sound/pci/via82xx.c err = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm); pcm 1518 sound/pci/via82xx.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via8233_multi_ops); pcm 1519 sound/pci/via82xx.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_via8233_capture_ops); pcm 1520 sound/pci/via82xx.c pcm->private_data = chip; pcm 1521 sound/pci/via82xx.c strcpy(pcm->name, chip->card->shortname); pcm 1522 sound/pci/via82xx.c chip->pcms[0] = pcm; pcm 1528 sound/pci/via82xx.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, pcm 1532 sound/pci/via82xx.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1544 sound/pci/via82xx.c err = snd_pcm_new(chip->card, chip->card->shortname, 1, 1, 0, &pcm); pcm 1547 sound/pci/via82xx.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via8233_playback_ops); pcm 1548 sound/pci/via82xx.c pcm->private_data = chip; pcm 1549 sound/pci/via82xx.c strcpy(pcm->name, chip->card->shortname); pcm 1550 sound/pci/via82xx.c chip->pcms[1] = pcm; pcm 1554 sound/pci/via82xx.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, pcm 1565 sound/pci/via82xx.c struct snd_pcm *pcm; pcm 1573 sound/pci/via82xx.c err = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm); pcm 1576 sound/pci/via82xx.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via686_playback_ops); pcm 1577 sound/pci/via82xx.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_via686_capture_ops); pcm 1578 sound/pci/via82xx.c pcm->private_data = chip; pcm 1579 sound/pci/via82xx.c strcpy(pcm->name, chip->card->shortname); pcm 1580 sound/pci/via82xx.c chip->pcms[0] = pcm; pcm 1584 sound/pci/via82xx.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, pcm 777 sound/pci/via82xx_modem.c struct viadev *viadev = &chip->devs[chip->capture_devno + substream->pcm->device]; pcm 834 sound/pci/via82xx_modem.c struct snd_pcm *pcm; pcm 842 sound/pci/via82xx_modem.c err = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm); pcm 845 sound/pci/via82xx_modem.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via686_playback_ops); pcm 846 sound/pci/via82xx_modem.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_via686_capture_ops); pcm 847 sound/pci/via82xx_modem.c pcm->dev_class = SNDRV_PCM_CLASS_MODEM; pcm 848 sound/pci/via82xx_modem.c pcm->private_data = chip; pcm 849 sound/pci/via82xx_modem.c strcpy(pcm->name, chip->card->shortname); pcm 850 sound/pci/via82xx_modem.c chip->pcms[0] = pcm; pcm 854 sound/pci/via82xx_modem.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, pcm 232 sound/pci/ymfpci/ymfpci.h pcm: 1, pcm 323 sound/pci/ymfpci/ymfpci.h struct snd_pcm *pcm; pcm 223 sound/pci/ymfpci/ymfpci_main.c voice->pcm = 1; pcm 225 sound/pci/ymfpci/ymfpci_main.c voice2->pcm = 1; pcm 279 sound/pci/ymfpci/ymfpci_main.c pvoice->use = pvoice->pcm = pvoice->synth = pvoice->midi = 0; pcm 399 sound/pci/ymfpci/ymfpci_main.c if (substream->pcm == chip->pcm && !ypcm->use_441_slot) { pcm 676 sound/pci/ymfpci/ymfpci_main.c substream->pcm == chip->pcm); pcm 678 sound/pci/ymfpci/ymfpci_main.c if (substream->pcm == chip->pcm && !ypcm->use_441_slot) { pcm 1136 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm *pcm; pcm 1139 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_pcm_new(chip->card, "YMFPCI", device, 32, 1, &pcm)) < 0) pcm 1141 sound/pci/ymfpci/ymfpci_main.c pcm->private_data = chip; pcm 1143 sound/pci/ymfpci/ymfpci_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ymfpci_playback_ops); pcm 1144 sound/pci/ymfpci/ymfpci_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ymfpci_capture_rec_ops); pcm 1147 sound/pci/ymfpci/ymfpci_main.c pcm->info_flags = 0; pcm 1148 sound/pci/ymfpci/ymfpci_main.c strcpy(pcm->name, "YMFPCI"); pcm 1149 sound/pci/ymfpci/ymfpci_main.c chip->pcm = pcm; pcm 1151 sound/pci/ymfpci/ymfpci_main.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1154 sound/pci/ymfpci/ymfpci_main.c return snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1171 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm *pcm; pcm 1174 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_pcm_new(chip->card, "YMFPCI - PCM2", device, 0, 1, &pcm)) < 0) pcm 1176 sound/pci/ymfpci/ymfpci_main.c pcm->private_data = chip; pcm 1178 sound/pci/ymfpci/ymfpci_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ymfpci_capture_ac97_ops); pcm 1181 sound/pci/ymfpci/ymfpci_main.c pcm->info_flags = 0; pcm 1182 sound/pci/ymfpci/ymfpci_main.c sprintf(pcm->name, "YMFPCI - %s", pcm 1184 sound/pci/ymfpci/ymfpci_main.c chip->pcm2 = pcm; pcm 1186 sound/pci/ymfpci/ymfpci_main.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1205 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm *pcm; pcm 1208 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_pcm_new(chip->card, "YMFPCI - IEC958", device, 1, 0, &pcm)) < 0) pcm 1210 sound/pci/ymfpci/ymfpci_main.c pcm->private_data = chip; pcm 1212 sound/pci/ymfpci/ymfpci_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ymfpci_playback_spdif_ops); pcm 1215 sound/pci/ymfpci/ymfpci_main.c pcm->info_flags = 0; pcm 1216 sound/pci/ymfpci/ymfpci_main.c strcpy(pcm->name, "YMFPCI - IEC958"); pcm 1217 sound/pci/ymfpci/ymfpci_main.c chip->pcm_spdif = pcm; pcm 1219 sound/pci/ymfpci/ymfpci_main.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1246 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm *pcm; pcm 1249 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_pcm_new(chip->card, "YMFPCI - Rear", device, 1, 0, &pcm)) < 0) pcm 1251 sound/pci/ymfpci/ymfpci_main.c pcm->private_data = chip; pcm 1253 sound/pci/ymfpci/ymfpci_main.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ymfpci_playback_4ch_ops); pcm 1256 sound/pci/ymfpci/ymfpci_main.c pcm->info_flags = 0; pcm 1257 sound/pci/ymfpci/ymfpci_main.c strcpy(pcm->name, "YMFPCI - Rear PCM"); pcm 1258 sound/pci/ymfpci/ymfpci_main.c chip->pcm_4ch = pcm; pcm 1260 sound/pci/ymfpci/ymfpci_main.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1263 sound/pci/ymfpci/ymfpci_main.c return snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1858 sound/pci/ymfpci/ymfpci_main.c substream = chip->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; pcm 1863 sound/pci/ymfpci/ymfpci_main.c kctl->id.device = chip->pcm->device; pcm 87 sound/pcmcia/pdaudiocf/pdaudiocf.h struct snd_pcm *pcm; pcm 274 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c struct snd_pcm *pcm; pcm 277 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c err = snd_pcm_new(chip->card, "PDAudioCF", 0, 0, 1, &pcm); pcm 281 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pdacf_pcm_capture_ops); pcm 283 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c pcm->private_data = chip; pcm 284 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c pcm->info_flags = 0; pcm 285 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c pcm->nonatomic = true; pcm 286 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c strcpy(pcm->name, chip->card->shortname); pcm 287 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c chip->pcm = pcm; pcm 289 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c err = snd_ak4117_build(chip->ak4117, pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); pcm 695 sound/ppc/pmac.c struct snd_pcm *pcm; pcm 701 sound/ppc/pmac.c err = snd_pcm_new(chip->card, chip->card->driver, 0, 1, num_captures, &pcm); pcm 705 sound/ppc/pmac.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_pmac_playback_ops); pcm 707 sound/ppc/pmac.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_pmac_capture_ops); pcm 709 sound/ppc/pmac.c pcm->private_data = chip; pcm 710 sound/ppc/pmac.c pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; pcm 711 sound/ppc/pmac.c strcpy(pcm->name, chip->card->shortname); pcm 712 sound/ppc/pmac.c chip->pcm = pcm; pcm 724 sound/ppc/pmac.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 129 sound/ppc/pmac.h struct snd_pcm *pcm; pcm 997 sound/ppc/snd_ps3.c &(the_card.pcm)); pcm 1001 sound/ppc/snd_ps3.c the_card.pcm->private_data = &the_card; pcm 1002 sound/ppc/snd_ps3.c strcpy(the_card.pcm->name, "SPDIF"); pcm 1005 sound/ppc/snd_ps3.c snd_pcm_set_ops(the_card.pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1008 sound/ppc/snd_ps3.c the_card.pcm->info_flags = SNDRV_PCM_INFO_NONINTERLEAVED; pcm 1010 sound/ppc/snd_ps3.c snd_pcm_lib_preallocate_pages_for_all(the_card.pcm, pcm 52 sound/ppc/snd_ps3.h struct snd_pcm *pcm; pcm 844 sound/ppc/tumbler.c DEFINE_MONO("PCM Playback Volume", pcm), pcm 223 sound/sh/aica.c dreamcastcard = substream->pcm->private_data; pcm 295 sound/sh/aica.c dreamcastcard = substream->pcm->private_data; pcm 319 sound/sh/aica.c dreamcastcard = substream->pcm->private_data; pcm 333 sound/sh/aica.c dreamcastcard = substream->pcm->private_data; pcm 357 sound/sh/aica.c struct snd_card_aica *dreamcastcard = substream->pcm->private_data; pcm 386 sound/sh/aica.c struct snd_card_aica *dreamcastcard = substream->pcm->private_data; pcm 431 sound/sh/aica.c struct snd_pcm *pcm; pcm 436 sound/sh/aica.c &pcm); pcm 439 sound/sh/aica.c pcm->private_data = dreamcastcard; pcm 440 sound/sh/aica.c strcpy(pcm->name, "AICA PCM"); pcm 441 sound/sh/aica.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 444 sound/sh/aica.c snd_pcm_lib_preallocate_pages_for_all(pcm, pcm 255 sound/sh/sh_dac_audio.c struct snd_pcm *pcm; pcm 258 sound/sh/sh_dac_audio.c err = snd_pcm_new(chip->card, "SH_DAC PCM", device, 1, 0, &pcm); pcm 262 sound/sh/sh_dac_audio.c pcm->private_data = chip; pcm 263 sound/sh/sh_dac_audio.c strcpy(pcm->name, "SH_DAC PCM"); pcm 264 sound/sh/sh_dac_audio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sh_dac_pcm_ops); pcm 267 sound/sh/sh_dac_audio.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, pcm 1144 sound/soc/amd/acp-pcm-dma.c snd_pcm_lib_preallocate_pages_for_all(rtd->pcm, pcm 1151 sound/soc/amd/acp-pcm-dma.c snd_pcm_lib_preallocate_pages_for_all(rtd->pcm, pcm 387 sound/soc/amd/raven/acp3x-pcm-dma.c snd_pcm_lib_preallocate_pages_for_all(rtd->pcm, SNDRV_DMA_TYPE_DEV, pcm 37 sound/soc/atmel/atmel-pcm-pdc.c static int atmel_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, pcm 40 sound/soc/atmel/atmel-pcm-pdc.c struct snd_pcm_substream *substream = pcm->streams[stream].substream; pcm 45 sound/soc/atmel/atmel-pcm-pdc.c buf->dev.dev = pcm->card->dev; pcm 47 sound/soc/atmel/atmel-pcm-pdc.c buf->area = dma_alloc_coherent(pcm->card->dev, size, pcm 70 sound/soc/atmel/atmel-pcm-pdc.c struct snd_pcm *pcm = rtd->pcm; pcm 77 sound/soc/atmel/atmel-pcm-pdc.c if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { pcm 79 sound/soc/atmel/atmel-pcm-pdc.c ret = atmel_pcm_preallocate_dma_buffer(pcm, pcm 85 sound/soc/atmel/atmel-pcm-pdc.c if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { pcm 87 sound/soc/atmel/atmel-pcm-pdc.c ret = atmel_pcm_preallocate_dma_buffer(pcm, pcm 96 sound/soc/atmel/atmel-pcm-pdc.c static void atmel_pcm_free(struct snd_pcm *pcm) pcm 103 sound/soc/atmel/atmel-pcm-pdc.c substream = pcm->streams[stream].substream; pcm 110 sound/soc/atmel/atmel-pcm-pdc.c dma_free_coherent(pcm->card->dev, buf->bytes, pcm 59 sound/soc/atmel/atmel_wm8904.c SND_SOC_DAILINK_DEFS(pcm, pcm 71 sound/soc/atmel/atmel_wm8904.c SND_SOC_DAILINK_REG(pcm), pcm 119 sound/soc/atmel/sam9g20_wm8731.c SND_SOC_DAILINK_DEFS(pcm, pcm 130 sound/soc/atmel/sam9g20_wm8731.c SND_SOC_DAILINK_REG(pcm), pcm 297 sound/soc/atmel/tse850-pcm5142.c SND_SOC_DAILINK_DEFS(pcm, pcm 308 sound/soc/atmel/tse850-pcm5142.c SND_SOC_DAILINK_REG(pcm), pcm 319 sound/soc/au1x/dbdma2.c struct snd_pcm *pcm = rtd->pcm; pcm 321 sound/soc/au1x/dbdma2.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 296 sound/soc/au1x/dma.c struct snd_pcm *pcm = rtd->pcm; pcm 298 sound/soc/au1x/dma.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, pcm 726 sound/soc/bcm/cygnus-pcm.c static int cygnus_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) pcm 728 sound/soc/bcm/cygnus-pcm.c struct snd_pcm_substream *substream = pcm->streams[stream].substream; pcm 736 sound/soc/bcm/cygnus-pcm.c buf->dev.dev = pcm->card->dev; pcm 738 sound/soc/bcm/cygnus-pcm.c buf->area = dma_alloc_coherent(pcm->card->dev, size, pcm 765 sound/soc/bcm/cygnus-pcm.c static void cygnus_dma_free_dma_buffers(struct snd_pcm *pcm) pcm 770 sound/soc/bcm/cygnus-pcm.c substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; pcm 774 sound/soc/bcm/cygnus-pcm.c dma_free_coherent(pcm->card->dev, buf->bytes, pcm 780 sound/soc/bcm/cygnus-pcm.c substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; pcm 784 sound/soc/bcm/cygnus-pcm.c dma_free_coherent(pcm->card->dev, buf->bytes, pcm 794 sound/soc/bcm/cygnus-pcm.c struct snd_pcm *pcm = rtd->pcm; pcm 802 sound/soc/bcm/cygnus-pcm.c if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { pcm 803 sound/soc/bcm/cygnus-pcm.c ret = cygnus_pcm_preallocate_dma_buffer(pcm, pcm 809 sound/soc/bcm/cygnus-pcm.c if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { pcm 810 sound/soc/bcm/cygnus-pcm.c ret = cygnus_pcm_preallocate_dma_buffer(pcm, pcm 813 sound/soc/bcm/cygnus-pcm.c cygnus_dma_free_dma_buffers(pcm); pcm 134 sound/soc/codecs/hdac_hda.c struct hdac_hda_pcm *pcm; pcm 137 sound/soc/codecs/hdac_hda.c pcm = &hda_pvt->pcm[dai->id]; pcm 139 sound/soc/codecs/hdac_hda.c pcm[dai->id].stream_tag[SNDRV_PCM_STREAM_PLAYBACK] = tx_mask; pcm 141 sound/soc/codecs/hdac_hda.c pcm[dai->id].stream_tag[SNDRV_PCM_STREAM_CAPTURE] = rx_mask; pcm 175 sound/soc/codecs/hdac_hda.c hda_pvt->pcm[dai->id].format_val[substream->stream] = format_val; pcm 185 sound/soc/codecs/hdac_hda.c struct hda_pcm *pcm; pcm 188 sound/soc/codecs/hdac_hda.c pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai); pcm 189 sound/soc/codecs/hdac_hda.c if (!pcm) pcm 192 sound/soc/codecs/hdac_hda.c hda_stream = &pcm->stream[substream->stream]; pcm 206 sound/soc/codecs/hdac_hda.c struct hda_pcm *pcm; pcm 212 sound/soc/codecs/hdac_hda.c pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai); pcm 213 sound/soc/codecs/hdac_hda.c if (!pcm) pcm 216 sound/soc/codecs/hdac_hda.c hda_stream = &pcm->stream[substream->stream]; pcm 218 sound/soc/codecs/hdac_hda.c stream = hda_pvt->pcm[dai->id].stream_tag[substream->stream]; pcm 219 sound/soc/codecs/hdac_hda.c format_val = hda_pvt->pcm[dai->id].format_val[substream->stream]; pcm 235 sound/soc/codecs/hdac_hda.c struct hda_pcm *pcm; pcm 239 sound/soc/codecs/hdac_hda.c pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai); pcm 240 sound/soc/codecs/hdac_hda.c if (!pcm) pcm 243 sound/soc/codecs/hdac_hda.c snd_hda_codec_pcm_get(pcm); pcm 245 sound/soc/codecs/hdac_hda.c hda_stream = &pcm->stream[substream->stream]; pcm 249 sound/soc/codecs/hdac_hda.c snd_hda_codec_pcm_put(pcm); pcm 260 sound/soc/codecs/hdac_hda.c struct hda_pcm *pcm; pcm 263 sound/soc/codecs/hdac_hda.c pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai); pcm 264 sound/soc/codecs/hdac_hda.c if (!pcm) pcm 267 sound/soc/codecs/hdac_hda.c hda_stream = &pcm->stream[substream->stream]; pcm 271 sound/soc/codecs/hdac_hda.c snd_hda_codec_pcm_put(pcm); pcm 16 sound/soc/codecs/hdac_hda.h struct hdac_hda_pcm pcm[2]; pcm 153 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm; pcm 155 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pcm, &hdmi->pcm_list, head) { pcm 156 sound/soc/codecs/hdac_hdmi.c if (pcm->cvt == cvt) pcm 157 sound/soc/codecs/hdac_hdmi.c return pcm; pcm 163 sound/soc/codecs/hdac_hdmi.c static void hdac_hdmi_jack_report(struct hdac_hdmi_pcm *pcm, pcm 175 sound/soc/codecs/hdac_hdmi.c if (pcm->jack_event == 0) { pcm 178 sound/soc/codecs/hdac_hdmi.c pcm->pcm_id); pcm 179 sound/soc/codecs/hdac_hdmi.c snd_soc_jack_report(pcm->jack, SND_JACK_AVOUT, pcm 182 sound/soc/codecs/hdac_hdmi.c pcm->jack_event++; pcm 189 sound/soc/codecs/hdac_hdmi.c if (pcm->jack_event == 1) pcm 190 sound/soc/codecs/hdac_hdmi.c snd_soc_jack_report(pcm->jack, 0, SND_JACK_AVOUT); pcm 191 sound/soc/codecs/hdac_hdmi.c if (pcm->jack_event > 0) pcm 192 sound/soc/codecs/hdac_hdmi.c pcm->jack_event--; pcm 213 sound/soc/codecs/hdac_hdmi.c static void hdac_hdmi_jack_report_sync(struct hdac_hdmi_pcm *pcm, pcm 216 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_jack_report(pcm, port, is_connect); pcm 291 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm; pcm 293 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pcm, &hdmi->pcm_list, head) { pcm 294 sound/soc/codecs/hdac_hdmi.c if (pcm->pcm_id == pcm_idx) pcm 295 sound/soc/codecs/hdac_hdmi.c return pcm; pcm 363 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm, struct hdac_hdmi_port *port) pcm 370 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_cvt *cvt = pcm->cvt; pcm 379 sound/soc/codecs/hdac_hdmi.c pcm->channels, pcm->chmap_set, true, pcm->chmap); pcm 385 sound/soc/codecs/hdac_hdmi.c pcm->channels, pcm->chmap, pcm->chmap_set); pcm 452 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm; pcm 458 sound/soc/codecs/hdac_hdmi.c pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt); pcm 460 sound/soc/codecs/hdac_hdmi.c if (pcm) pcm 461 sound/soc/codecs/hdac_hdmi.c pcm->stream_tag = (tx_mask << 4); pcm 471 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm; pcm 480 sound/soc/codecs/hdac_hdmi.c pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt); pcm 481 sound/soc/codecs/hdac_hdmi.c if (!pcm) pcm 484 sound/soc/codecs/hdac_hdmi.c pcm->format = format; pcm 485 sound/soc/codecs/hdac_hdmi.c pcm->channels = params_channels(hparams); pcm 531 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm; pcm 535 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pcm, &hdmi->pcm_list, head) { pcm 536 sound/soc/codecs/hdac_hdmi.c if (pcm->cvt == cvt) { pcm 537 sound/soc/codecs/hdac_hdmi.c if (list_empty(&pcm->port_list)) pcm 540 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(port, &pcm->port_list, head) { pcm 541 sound/soc/codecs/hdac_hdmi.c mutex_lock(&pcm->lock); pcm 544 sound/soc/codecs/hdac_hdmi.c mutex_unlock(&pcm->lock); pcm 637 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm; pcm 641 sound/soc/codecs/hdac_hdmi.c pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt); pcm 643 sound/soc/codecs/hdac_hdmi.c if (pcm) { pcm 644 sound/soc/codecs/hdac_hdmi.c mutex_lock(&pcm->lock); pcm 645 sound/soc/codecs/hdac_hdmi.c pcm->chmap_set = false; pcm 646 sound/soc/codecs/hdac_hdmi.c memset(pcm->chmap, 0, sizeof(pcm->chmap)); pcm 647 sound/soc/codecs/hdac_hdmi.c pcm->channels = 0; pcm 648 sound/soc/codecs/hdac_hdmi.c mutex_unlock(&pcm->lock); pcm 722 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm = NULL; pcm 725 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pcm, &hdmi->pcm_list, head) { pcm 726 sound/soc/codecs/hdac_hdmi.c if (list_empty(&pcm->port_list)) pcm 729 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(p, &pcm->port_list, head) { pcm 731 sound/soc/codecs/hdac_hdmi.c return pcm; pcm 773 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm; pcm 778 sound/soc/codecs/hdac_hdmi.c pcm = hdac_hdmi_get_pcm(hdev, port); pcm 779 sound/soc/codecs/hdac_hdmi.c if (!pcm) pcm 796 sound/soc/codecs/hdac_hdmi.c return hdac_hdmi_setup_audio_infoframe(hdev, pcm, port); pcm 819 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm; pcm 824 sound/soc/codecs/hdac_hdmi.c pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, cvt); pcm 825 sound/soc/codecs/hdac_hdmi.c if (!pcm) pcm 841 sound/soc/codecs/hdac_hdmi.c AC_VERB_SET_CHANNEL_STREAMID, pcm->stream_tag); pcm 843 sound/soc/codecs/hdac_hdmi.c AC_VERB_SET_STREAM_FORMAT, pcm->format); pcm 909 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm = NULL; pcm 920 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pcm, &hdmi->pcm_list, head) { pcm 921 sound/soc/codecs/hdac_hdmi.c if (list_empty(&pcm->port_list)) pcm 924 sound/soc/codecs/hdac_hdmi.c list_for_each_entry_safe(p, p_next, &pcm->port_list, head) { pcm 927 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_jack_report_sync(pcm, port, false); pcm 937 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pcm, &hdmi->pcm_list, head) { pcm 938 sound/soc/codecs/hdac_hdmi.c if (!strcmp(cvt_name, pcm->cvt->name)) { pcm 939 sound/soc/codecs/hdac_hdmi.c list_add_tail(&port->head, &pcm->port_list); pcm 941 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_jack_report_sync(pcm, port, true); pcm 1256 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm; pcm 1292 sound/soc/codecs/hdac_hdmi.c pcm = hdac_hdmi_get_pcm(hdev, port); pcm 1304 sound/soc/codecs/hdac_hdmi.c if (pcm) { pcm 1305 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_jack_report(pcm, port, false); pcm 1314 sound/soc/codecs/hdac_hdmi.c if (pcm) { pcm 1315 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_jack_report(pcm, port, true); pcm 1664 sound/soc/codecs/hdac_hdmi.c if (rtd->pcm && (rtd->pcm->device == device)) pcm 1665 sound/soc/codecs/hdac_hdmi.c return rtd->pcm; pcm 1796 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm; pcm 1804 sound/soc/codecs/hdac_hdmi.c pcm = devm_kzalloc(&hdev->dev, sizeof(*pcm), GFP_KERNEL); pcm 1805 sound/soc/codecs/hdac_hdmi.c if (!pcm) pcm 1807 sound/soc/codecs/hdac_hdmi.c pcm->pcm_id = device; pcm 1808 sound/soc/codecs/hdac_hdmi.c pcm->cvt = hdmi->dai_map[dai->id].cvt; pcm 1809 sound/soc/codecs/hdac_hdmi.c pcm->jack_event = 0; pcm 1810 sound/soc/codecs/hdac_hdmi.c pcm->jack = jack; pcm 1811 sound/soc/codecs/hdac_hdmi.c mutex_init(&pcm->lock); pcm 1812 sound/soc/codecs/hdac_hdmi.c INIT_LIST_HEAD(&pcm->port_list); pcm 1824 sound/soc/codecs/hdac_hdmi.c list_add_tail(&pcm->head, &hdmi->pcm_list); pcm 1967 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); pcm 1969 sound/soc/codecs/hdac_hdmi.c memcpy(chmap, pcm->chmap, ARRAY_SIZE(pcm->chmap)); pcm 1976 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); pcm 1979 sound/soc/codecs/hdac_hdmi.c if (!pcm) pcm 1982 sound/soc/codecs/hdac_hdmi.c if (list_empty(&pcm->port_list)) pcm 1985 sound/soc/codecs/hdac_hdmi.c mutex_lock(&pcm->lock); pcm 1986 sound/soc/codecs/hdac_hdmi.c pcm->chmap_set = true; pcm 1987 sound/soc/codecs/hdac_hdmi.c memcpy(pcm->chmap, chmap, ARRAY_SIZE(pcm->chmap)); pcm 1988 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(port, &pcm->port_list, head) pcm 1990 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_setup_audio_infoframe(hdev, pcm, port); pcm 1991 sound/soc/codecs/hdac_hdmi.c mutex_unlock(&pcm->lock); pcm 1997 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); pcm 1999 sound/soc/codecs/hdac_hdmi.c if (!pcm) pcm 2002 sound/soc/codecs/hdac_hdmi.c if (list_empty(&pcm->port_list)) pcm 2011 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); pcm 2014 sound/soc/codecs/hdac_hdmi.c if (!pcm) pcm 2017 sound/soc/codecs/hdac_hdmi.c if (list_empty(&pcm->port_list)) pcm 2020 sound/soc/codecs/hdac_hdmi.c port = list_first_entry(&pcm->port_list, struct hdac_hdmi_port, head); pcm 5 sound/soc/codecs/hdac_hdmi.h int hdac_hdmi_jack_init(struct snd_soc_dai *dai, int pcm, pcm 620 sound/soc/codecs/hdmi-codec.c .device = rtd->pcm->device, pcm 624 sound/soc/codecs/hdmi-codec.c ret = snd_pcm_add_chmap_ctls(rtd->pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 252 sound/soc/dwc/dwc-pcm.c snd_pcm_lib_preallocate_pages_for_all(rtd->pcm, pcm 258 sound/soc/dwc/dwc-pcm.c static void dw_pcm_free(struct snd_pcm *pcm) pcm 260 sound/soc/dwc/dwc-pcm.c snd_pcm_lib_preallocate_free_for_all(pcm); pcm 336 sound/soc/fsl/fsl_asrc_dma.c struct snd_pcm *pcm = rtd->pcm; pcm 346 sound/soc/fsl/fsl_asrc_dma.c substream = pcm->streams[i].substream; pcm 350 sound/soc/fsl/fsl_asrc_dma.c ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->card->dev, pcm 361 sound/soc/fsl/fsl_asrc_dma.c if (--i == 0 && pcm->streams[i].substream) pcm 362 sound/soc/fsl/fsl_asrc_dma.c snd_dma_free_pages(&pcm->streams[i].substream->dma_buffer); pcm 367 sound/soc/fsl/fsl_asrc_dma.c static void fsl_asrc_dma_pcm_free(struct snd_pcm *pcm) pcm 373 sound/soc/fsl/fsl_asrc_dma.c substream = pcm->streams[i].substream; pcm 286 sound/soc/fsl/fsl_dma.c struct snd_pcm *pcm = rtd->pcm; pcm 297 sound/soc/fsl/fsl_dma.c if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { pcm 300 sound/soc/fsl/fsl_dma.c &pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); pcm 307 sound/soc/fsl/fsl_dma.c if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { pcm 310 sound/soc/fsl/fsl_dma.c &pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->dma_buffer); pcm 313 sound/soc/fsl/fsl_dma.c snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); pcm 827 sound/soc/fsl/fsl_dma.c static void fsl_dma_free_dma_buffers(struct snd_pcm *pcm) pcm 832 sound/soc/fsl/fsl_dma.c for (i = 0; i < ARRAY_SIZE(pcm->streams); i++) { pcm 833 sound/soc/fsl/fsl_dma.c substream = pcm->streams[i].substream; pcm 215 sound/soc/fsl/imx-pcm-fiq.c ret = dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, pcm 236 sound/soc/fsl/imx-pcm-fiq.c static int imx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) pcm 238 sound/soc/fsl/imx-pcm-fiq.c struct snd_pcm_substream *substream = pcm->streams[stream].substream; pcm 243 sound/soc/fsl/imx-pcm-fiq.c buf->dev.dev = pcm->card->dev; pcm 245 sound/soc/fsl/imx-pcm-fiq.c buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL); pcm 256 sound/soc/fsl/imx-pcm-fiq.c struct snd_pcm *pcm = rtd->pcm; pcm 263 sound/soc/fsl/imx-pcm-fiq.c if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { pcm 264 sound/soc/fsl/imx-pcm-fiq.c ret = imx_pcm_preallocate_dma_buffer(pcm, pcm 270 sound/soc/fsl/imx-pcm-fiq.c if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { pcm 271 sound/soc/fsl/imx-pcm-fiq.c ret = imx_pcm_preallocate_dma_buffer(pcm, pcm 284 sound/soc/fsl/imx-pcm-fiq.c struct snd_pcm *pcm = rtd->pcm; pcm 292 sound/soc/fsl/imx-pcm-fiq.c substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; pcm 299 sound/soc/fsl/imx-pcm-fiq.c substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; pcm 312 sound/soc/fsl/imx-pcm-fiq.c static void imx_pcm_free(struct snd_pcm *pcm) pcm 319 sound/soc/fsl/imx-pcm-fiq.c substream = pcm->streams[stream].substream; pcm 327 sound/soc/fsl/imx-pcm-fiq.c dma_free_wc(pcm->card->dev, buf->bytes, buf->area, buf->addr); pcm 332 sound/soc/fsl/imx-pcm-fiq.c static void imx_pcm_fiq_free(struct snd_pcm *pcm) pcm 336 sound/soc/fsl/imx-pcm-fiq.c imx_pcm_free(pcm); pcm 233 sound/soc/fsl/mpc5200_dma.c dev_err(substream->pcm->card->dev, "invalid buffer size\n"); pcm 307 sound/soc/fsl/mpc5200_dma.c struct snd_pcm *pcm = rtd->pcm; pcm 312 sound/soc/fsl/mpc5200_dma.c card, dai, pcm); pcm 318 sound/soc/fsl/mpc5200_dma.c if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { pcm 319 sound/soc/fsl/mpc5200_dma.c rc = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->card->dev, pcm 320 sound/soc/fsl/mpc5200_dma.c size, &pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); pcm 325 sound/soc/fsl/mpc5200_dma.c if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { pcm 326 sound/soc/fsl/mpc5200_dma.c rc = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->card->dev, pcm 327 sound/soc/fsl/mpc5200_dma.c size, &pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->dma_buffer); pcm 335 sound/soc/fsl/mpc5200_dma.c if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) pcm 336 sound/soc/fsl/mpc5200_dma.c snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); pcm 344 sound/soc/fsl/mpc5200_dma.c static void psc_dma_free(struct snd_pcm *pcm) pcm 346 sound/soc/fsl/mpc5200_dma.c struct snd_soc_pcm_runtime *rtd = pcm->private_data; pcm 351 sound/soc/fsl/mpc5200_dma.c dev_dbg(component->dev, "psc_dma_free(pcm=%p)\n", pcm); pcm 354 sound/soc/fsl/mpc5200_dma.c substream = pcm->streams[stream].substream; pcm 194 sound/soc/intel/atom/sst-mfld-platform-pcm.c index = sst_get_stream_mapping(pstream->pcm->device, pcm 380 sound/soc/intel/atom/sst-mfld-platform-pcm.c snprintf(substream->pcm->id, sizeof(substream->pcm->id), pcm 593 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (substream->pcm->internal) pcm 610 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (substream->pcm->internal) pcm 681 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct snd_pcm *pcm = rtd->pcm; pcm 685 sound/soc/intel/atom/sst-mfld-platform-pcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, pcm 54 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data pcm[BYT_PCM_COUNT]; pcm 67 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; pcm 139 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; pcm 172 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; pcm 237 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; pcm 249 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; pcm 277 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; pcm 319 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct snd_pcm *pcm = rtd->pcm; pcm 324 sound/soc/intel/baytrail/sst-baytrail-pcm.c if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream || pcm 325 sound/soc/intel/baytrail/sst-baytrail-pcm.c pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { pcm 327 sound/soc/intel/baytrail/sst-baytrail-pcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 373 sound/soc/intel/baytrail/sst-baytrail-pcm.c mutex_init(&priv_data->pcm[i].mutex); pcm 374 sound/soc/intel/baytrail/sst-baytrail-pcm.c INIT_WORK(&priv_data->pcm[i].work, sst_byt_pcm_work); pcm 228 sound/soc/intel/boards/bxt_da7219_max98357a.c struct bxt_hdmi_pcm *pcm; pcm 230 sound/soc/intel/boards/bxt_da7219_max98357a.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 231 sound/soc/intel/boards/bxt_da7219_max98357a.c if (!pcm) pcm 234 sound/soc/intel/boards/bxt_da7219_max98357a.c pcm->device = BXT_DPCM_AUDIO_HDMI1_PB + dai->id; pcm 235 sound/soc/intel/boards/bxt_da7219_max98357a.c pcm->codec_dai = dai; pcm 237 sound/soc/intel/boards/bxt_da7219_max98357a.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 606 sound/soc/intel/boards/bxt_da7219_max98357a.c struct bxt_hdmi_pcm *pcm; pcm 618 sound/soc/intel/boards/bxt_da7219_max98357a.c list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { pcm 619 sound/soc/intel/boards/bxt_da7219_max98357a.c component = pcm->codec_dai->component; pcm 621 sound/soc/intel/boards/bxt_da7219_max98357a.c "HDMI/DP, pcm=%d Jack", pcm->device); pcm 629 sound/soc/intel/boards/bxt_da7219_max98357a.c err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, pcm 188 sound/soc/intel/boards/bxt_rt298.c struct bxt_hdmi_pcm *pcm; pcm 190 sound/soc/intel/boards/bxt_rt298.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 191 sound/soc/intel/boards/bxt_rt298.c if (!pcm) pcm 194 sound/soc/intel/boards/bxt_rt298.c pcm->device = BXT_DPCM_AUDIO_HDMI1_PB + dai->id; pcm 195 sound/soc/intel/boards/bxt_rt298.c pcm->codec_dai = dai; pcm 197 sound/soc/intel/boards/bxt_rt298.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 525 sound/soc/intel/boards/bxt_rt298.c struct bxt_hdmi_pcm *pcm; pcm 530 sound/soc/intel/boards/bxt_rt298.c list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { pcm 531 sound/soc/intel/boards/bxt_rt298.c component = pcm->codec_dai->component; pcm 533 sound/soc/intel/boards/bxt_rt298.c "HDMI/DP, pcm=%d Jack", pcm->device); pcm 541 sound/soc/intel/boards/bxt_rt298.c err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, pcm 210 sound/soc/intel/boards/glk_rt5682_max98357a.c struct glk_hdmi_pcm *pcm; pcm 212 sound/soc/intel/boards/glk_rt5682_max98357a.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 213 sound/soc/intel/boards/glk_rt5682_max98357a.c if (!pcm) pcm 216 sound/soc/intel/boards/glk_rt5682_max98357a.c pcm->device = GLK_DPCM_AUDIO_HDMI1_PB + dai->id; pcm 217 sound/soc/intel/boards/glk_rt5682_max98357a.c pcm->codec_dai = dai; pcm 219 sound/soc/intel/boards/glk_rt5682_max98357a.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 544 sound/soc/intel/boards/glk_rt5682_max98357a.c struct glk_hdmi_pcm *pcm; pcm 548 sound/soc/intel/boards/glk_rt5682_max98357a.c list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { pcm 549 sound/soc/intel/boards/glk_rt5682_max98357a.c component = pcm->codec_dai->component; pcm 551 sound/soc/intel/boards/glk_rt5682_max98357a.c "HDMI/DP, pcm=%d Jack", pcm->device); pcm 559 sound/soc/intel/boards/glk_rt5682_max98357a.c err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, pcm 207 sound/soc/intel/boards/kbl_da7219_max98357a.c struct kbl_hdmi_pcm *pcm; pcm 209 sound/soc/intel/boards/kbl_da7219_max98357a.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 210 sound/soc/intel/boards/kbl_da7219_max98357a.c if (!pcm) pcm 213 sound/soc/intel/boards/kbl_da7219_max98357a.c pcm->device = device; pcm 214 sound/soc/intel/boards/kbl_da7219_max98357a.c pcm->codec_dai = dai; pcm 216 sound/soc/intel/boards/kbl_da7219_max98357a.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 543 sound/soc/intel/boards/kbl_da7219_max98357a.c struct kbl_hdmi_pcm *pcm; pcm 548 sound/soc/intel/boards/kbl_da7219_max98357a.c list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { pcm 549 sound/soc/intel/boards/kbl_da7219_max98357a.c component = pcm->codec_dai->component; pcm 551 sound/soc/intel/boards/kbl_da7219_max98357a.c "HDMI/DP, pcm=%d Jack", pcm->device); pcm 559 sound/soc/intel/boards/kbl_da7219_max98357a.c err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, pcm 382 sound/soc/intel/boards/kbl_da7219_max98927.c struct kbl_hdmi_pcm *pcm; pcm 384 sound/soc/intel/boards/kbl_da7219_max98927.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 385 sound/soc/intel/boards/kbl_da7219_max98927.c if (!pcm) pcm 388 sound/soc/intel/boards/kbl_da7219_max98927.c pcm->device = device; pcm 389 sound/soc/intel/boards/kbl_da7219_max98927.c pcm->codec_dai = dai; pcm 391 sound/soc/intel/boards/kbl_da7219_max98927.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 971 sound/soc/intel/boards/kbl_da7219_max98927.c struct kbl_hdmi_pcm *pcm; pcm 977 sound/soc/intel/boards/kbl_da7219_max98927.c list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { pcm 978 sound/soc/intel/boards/kbl_da7219_max98927.c component = pcm->codec_dai->component; pcm 980 sound/soc/intel/boards/kbl_da7219_max98927.c "HDMI/DP, pcm=%d Jack", pcm->device); pcm 988 sound/soc/intel/boards/kbl_da7219_max98927.c err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, pcm 214 sound/soc/intel/boards/kbl_rt5660.c struct kbl_hdmi_pcm *pcm; pcm 216 sound/soc/intel/boards/kbl_rt5660.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 217 sound/soc/intel/boards/kbl_rt5660.c if (!pcm) pcm 220 sound/soc/intel/boards/kbl_rt5660.c pcm->device = device; pcm 221 sound/soc/intel/boards/kbl_rt5660.c pcm->codec_dai = dai; pcm 223 sound/soc/intel/boards/kbl_rt5660.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 465 sound/soc/intel/boards/kbl_rt5660.c struct kbl_hdmi_pcm *pcm; pcm 470 sound/soc/intel/boards/kbl_rt5660.c list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { pcm 471 sound/soc/intel/boards/kbl_rt5660.c component = pcm->codec_dai->component; pcm 473 sound/soc/intel/boards/kbl_rt5660.c "HDMI/DP, pcm=%d Jack", pcm->device); pcm 481 sound/soc/intel/boards/kbl_rt5660.c err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, pcm 309 sound/soc/intel/boards/kbl_rt5663_max98927.c struct kbl_hdmi_pcm *pcm; pcm 311 sound/soc/intel/boards/kbl_rt5663_max98927.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 312 sound/soc/intel/boards/kbl_rt5663_max98927.c if (!pcm) pcm 315 sound/soc/intel/boards/kbl_rt5663_max98927.c pcm->device = device; pcm 316 sound/soc/intel/boards/kbl_rt5663_max98927.c pcm->codec_dai = dai; pcm 318 sound/soc/intel/boards/kbl_rt5663_max98927.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 883 sound/soc/intel/boards/kbl_rt5663_max98927.c struct kbl_hdmi_pcm *pcm; pcm 888 sound/soc/intel/boards/kbl_rt5663_max98927.c list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { pcm 889 sound/soc/intel/boards/kbl_rt5663_max98927.c component = pcm->codec_dai->component; pcm 891 sound/soc/intel/boards/kbl_rt5663_max98927.c "HDMI/DP, pcm=%d Jack", pcm->device); pcm 899 sound/soc/intel/boards/kbl_rt5663_max98927.c err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, pcm 194 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c struct kbl_hdmi_pcm *pcm; pcm 196 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 197 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c if (!pcm) pcm 200 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c pcm->device = device; pcm 201 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c pcm->codec_dai = dai; pcm 203 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 597 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c struct kbl_hdmi_pcm *pcm; pcm 602 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { pcm 603 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c component = pcm->codec_dai->component; pcm 605 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c "HDMI/DP,pcm=%d Jack", pcm->device); pcm 612 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, pcm 22 sound/soc/intel/boards/skl_hda_dsp_common.c struct skl_hda_hdmi_pcm *pcm; pcm 25 sound/soc/intel/boards/skl_hda_dsp_common.c pcm = devm_kzalloc(card->dev, sizeof(*pcm), GFP_KERNEL); pcm 26 sound/soc/intel/boards/skl_hda_dsp_common.c if (!pcm) pcm 31 sound/soc/intel/boards/skl_hda_dsp_common.c pcm->codec_dai = snd_soc_card_get_codec_dai(card, dai_name); pcm 32 sound/soc/intel/boards/skl_hda_dsp_common.c if (!pcm->codec_dai) pcm 35 sound/soc/intel/boards/skl_hda_dsp_common.c pcm->device = device; pcm 36 sound/soc/intel/boards/skl_hda_dsp_common.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 138 sound/soc/intel/boards/skl_hda_dsp_common.c struct skl_hda_hdmi_pcm *pcm; pcm 142 sound/soc/intel/boards/skl_hda_dsp_common.c list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { pcm 143 sound/soc/intel/boards/skl_hda_dsp_common.c component = pcm->codec_dai->component; pcm 145 sound/soc/intel/boards/skl_hda_dsp_common.c "HDMI/DP, pcm=%d Jack", pcm->device); pcm 147 sound/soc/intel/boards/skl_hda_dsp_common.c SND_JACK_AVOUT, &pcm->hdmi_jack, pcm 153 sound/soc/intel/boards/skl_hda_dsp_common.c err = snd_jack_add_new_kctl(pcm->hdmi_jack.jack, pcm 158 sound/soc/intel/boards/skl_hda_dsp_common.c err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, pcm 159 sound/soc/intel/boards/skl_hda_dsp_common.c &pcm->hdmi_jack); pcm 186 sound/soc/intel/boards/skl_nau88l25_max98357a.c struct skl_hdmi_pcm *pcm; pcm 188 sound/soc/intel/boards/skl_nau88l25_max98357a.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 189 sound/soc/intel/boards/skl_nau88l25_max98357a.c if (!pcm) pcm 192 sound/soc/intel/boards/skl_nau88l25_max98357a.c pcm->device = SKL_DPCM_AUDIO_HDMI1_PB; pcm 193 sound/soc/intel/boards/skl_nau88l25_max98357a.c pcm->codec_dai = dai; pcm 195 sound/soc/intel/boards/skl_nau88l25_max98357a.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 204 sound/soc/intel/boards/skl_nau88l25_max98357a.c struct skl_hdmi_pcm *pcm; pcm 206 sound/soc/intel/boards/skl_nau88l25_max98357a.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 207 sound/soc/intel/boards/skl_nau88l25_max98357a.c if (!pcm) pcm 210 sound/soc/intel/boards/skl_nau88l25_max98357a.c pcm->device = SKL_DPCM_AUDIO_HDMI2_PB; pcm 211 sound/soc/intel/boards/skl_nau88l25_max98357a.c pcm->codec_dai = dai; pcm 213 sound/soc/intel/boards/skl_nau88l25_max98357a.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 222 sound/soc/intel/boards/skl_nau88l25_max98357a.c struct skl_hdmi_pcm *pcm; pcm 224 sound/soc/intel/boards/skl_nau88l25_max98357a.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 225 sound/soc/intel/boards/skl_nau88l25_max98357a.c if (!pcm) pcm 228 sound/soc/intel/boards/skl_nau88l25_max98357a.c pcm->device = SKL_DPCM_AUDIO_HDMI3_PB; pcm 229 sound/soc/intel/boards/skl_nau88l25_max98357a.c pcm->codec_dai = dai; pcm 231 sound/soc/intel/boards/skl_nau88l25_max98357a.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 602 sound/soc/intel/boards/skl_nau88l25_max98357a.c struct skl_hdmi_pcm *pcm; pcm 607 sound/soc/intel/boards/skl_nau88l25_max98357a.c list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { pcm 608 sound/soc/intel/boards/skl_nau88l25_max98357a.c component = pcm->codec_dai->component; pcm 610 sound/soc/intel/boards/skl_nau88l25_max98357a.c "HDMI/DP, pcm=%d Jack", pcm->device); pcm 619 sound/soc/intel/boards/skl_nau88l25_max98357a.c err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, pcm 205 sound/soc/intel/boards/skl_nau88l25_ssm4567.c struct skl_hdmi_pcm *pcm; pcm 207 sound/soc/intel/boards/skl_nau88l25_ssm4567.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 208 sound/soc/intel/boards/skl_nau88l25_ssm4567.c if (!pcm) pcm 211 sound/soc/intel/boards/skl_nau88l25_ssm4567.c pcm->device = SKL_DPCM_AUDIO_HDMI1_PB; pcm 212 sound/soc/intel/boards/skl_nau88l25_ssm4567.c pcm->codec_dai = dai; pcm 214 sound/soc/intel/boards/skl_nau88l25_ssm4567.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 223 sound/soc/intel/boards/skl_nau88l25_ssm4567.c struct skl_hdmi_pcm *pcm; pcm 225 sound/soc/intel/boards/skl_nau88l25_ssm4567.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 226 sound/soc/intel/boards/skl_nau88l25_ssm4567.c if (!pcm) pcm 229 sound/soc/intel/boards/skl_nau88l25_ssm4567.c pcm->device = SKL_DPCM_AUDIO_HDMI2_PB; pcm 230 sound/soc/intel/boards/skl_nau88l25_ssm4567.c pcm->codec_dai = dai; pcm 232 sound/soc/intel/boards/skl_nau88l25_ssm4567.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 242 sound/soc/intel/boards/skl_nau88l25_ssm4567.c struct skl_hdmi_pcm *pcm; pcm 244 sound/soc/intel/boards/skl_nau88l25_ssm4567.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 245 sound/soc/intel/boards/skl_nau88l25_ssm4567.c if (!pcm) pcm 248 sound/soc/intel/boards/skl_nau88l25_ssm4567.c pcm->device = SKL_DPCM_AUDIO_HDMI3_PB; pcm 249 sound/soc/intel/boards/skl_nau88l25_ssm4567.c pcm->codec_dai = dai; pcm 251 sound/soc/intel/boards/skl_nau88l25_ssm4567.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 643 sound/soc/intel/boards/skl_nau88l25_ssm4567.c struct skl_hdmi_pcm *pcm; pcm 648 sound/soc/intel/boards/skl_nau88l25_ssm4567.c list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { pcm 649 sound/soc/intel/boards/skl_nau88l25_ssm4567.c component = pcm->codec_dai->component; pcm 651 sound/soc/intel/boards/skl_nau88l25_ssm4567.c "HDMI/DP, pcm=%d Jack", pcm->device); pcm 660 sound/soc/intel/boards/skl_nau88l25_ssm4567.c err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, pcm 147 sound/soc/intel/boards/skl_rt286.c struct skl_hdmi_pcm *pcm; pcm 149 sound/soc/intel/boards/skl_rt286.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 150 sound/soc/intel/boards/skl_rt286.c if (!pcm) pcm 153 sound/soc/intel/boards/skl_rt286.c pcm->device = SKL_DPCM_AUDIO_HDMI1_PB + dai->id; pcm 154 sound/soc/intel/boards/skl_rt286.c pcm->codec_dai = dai; pcm 156 sound/soc/intel/boards/skl_rt286.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 484 sound/soc/intel/boards/skl_rt286.c struct skl_hdmi_pcm *pcm; pcm 489 sound/soc/intel/boards/skl_rt286.c list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { pcm 490 sound/soc/intel/boards/skl_rt286.c component = pcm->codec_dai->component; pcm 492 sound/soc/intel/boards/skl_rt286.c "HDMI/DP, pcm=%d Jack", pcm->device); pcm 500 sound/soc/intel/boards/skl_rt286.c err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, pcm 122 sound/soc/intel/boards/sof_rt5682.c struct sof_hdmi_pcm *pcm; pcm 124 sound/soc/intel/boards/sof_rt5682.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); pcm 125 sound/soc/intel/boards/sof_rt5682.c if (!pcm) pcm 129 sound/soc/intel/boards/sof_rt5682.c pcm->device = rtd->dai_link->id; pcm 130 sound/soc/intel/boards/sof_rt5682.c pcm->codec_dai = dai; pcm 132 sound/soc/intel/boards/sof_rt5682.c list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); pcm 273 sound/soc/intel/boards/sof_rt5682.c struct sof_hdmi_pcm *pcm; pcm 281 sound/soc/intel/boards/sof_rt5682.c list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { pcm 282 sound/soc/intel/boards/sof_rt5682.c component = pcm->codec_dai->component; pcm 284 sound/soc/intel/boards/sof_rt5682.c "HDMI/DP, pcm=%d Jack", pcm->device); pcm 292 sound/soc/intel/boards/sof_rt5682.c err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, pcm 137 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_pcm_data pcm[HSW_PCM_COUNT][2]; pcm 187 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][stream]; pcm 236 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][stream]; pcm 432 sound/soc/intel/haswell/sst-haswell-pcm.c unsigned char *dma_area, size_t size, int pcm) pcm 449 sound/soc/intel/haswell/sst-haswell-pcm.c pg_table = (u32 *)(pdata->dmab[pcm][stream].area + idx); pcm 480 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; pcm 678 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; pcm 787 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; pcm 808 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; pcm 841 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; pcm 883 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; pcm 906 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; pcm 920 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; pcm 935 sound/soc/intel/haswell/sst-haswell-pcm.c struct snd_pcm *pcm = rtd->pcm; pcm 941 sound/soc/intel/haswell/sst-haswell-pcm.c if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream || pcm 942 sound/soc/intel/haswell/sst-haswell-pcm.c pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { pcm 943 sound/soc/intel/haswell/sst-haswell-pcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, pcm 949 sound/soc/intel/haswell/sst-haswell-pcm.c if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) pcm 950 sound/soc/intel/haswell/sst-haswell-pcm.c priv_data->pcm[rtd->cpu_dai->id][SNDRV_PCM_STREAM_PLAYBACK].hsw_pcm = pcm; pcm 951 sound/soc/intel/haswell/sst-haswell-pcm.c if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) pcm 952 sound/soc/intel/haswell/sst-haswell-pcm.c priv_data->pcm[rtd->cpu_dai->id][SNDRV_PCM_STREAM_CAPTURE].hsw_pcm = pcm; pcm 1063 sound/soc/intel/haswell/sst-haswell-pcm.c mutex_init(&priv_data->pcm[i][SNDRV_PCM_STREAM_PLAYBACK].mutex); pcm 1072 sound/soc/intel/haswell/sst-haswell-pcm.c mutex_init(&priv_data->pcm[i][SNDRV_PCM_STREAM_CAPTURE].mutex); pcm 1293 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; pcm 1327 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; pcm 1340 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; pcm 1077 sound/soc/intel/skylake/skl-pcm.c struct snd_soc_tplg_pcm *pcm, struct snd_soc_dai *dai) pcm 1134 sound/soc/intel/skylake/skl-pcm.c if (s->pcm->card != substream->pcm->card) pcm 1147 sound/soc/intel/skylake/skl-pcm.c if (s->pcm->card != substream->pcm->card) pcm 1290 sound/soc/intel/skylake/skl-pcm.c static void skl_pcm_free(struct snd_pcm *pcm) pcm 1292 sound/soc/intel/skylake/skl-pcm.c snd_pcm_lib_preallocate_free_for_all(pcm); pcm 1301 sound/soc/intel/skylake/skl-pcm.c struct snd_pcm *pcm = rtd->pcm; pcm 1311 sound/soc/intel/skylake/skl-pcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, pcm 501 sound/soc/intel/skylake/skl-topology.h struct snd_soc_tplg_pcm *pcm, struct snd_soc_dai *dai); pcm 251 sound/soc/kirkwood/kirkwood-dma.c static int kirkwood_dma_preallocate_dma_buffer(struct snd_pcm *pcm, pcm 254 sound/soc/kirkwood/kirkwood-dma.c struct snd_pcm_substream *substream = pcm->streams[stream].substream; pcm 259 sound/soc/kirkwood/kirkwood-dma.c buf->dev.dev = pcm->card->dev; pcm 260 sound/soc/kirkwood/kirkwood-dma.c buf->area = dma_alloc_coherent(pcm->card->dev, size, pcm 273 sound/soc/kirkwood/kirkwood-dma.c struct snd_pcm *pcm = rtd->pcm; pcm 280 sound/soc/kirkwood/kirkwood-dma.c if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { pcm 281 sound/soc/kirkwood/kirkwood-dma.c ret = kirkwood_dma_preallocate_dma_buffer(pcm, pcm 287 sound/soc/kirkwood/kirkwood-dma.c if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { pcm 288 sound/soc/kirkwood/kirkwood-dma.c ret = kirkwood_dma_preallocate_dma_buffer(pcm, pcm 297 sound/soc/kirkwood/kirkwood-dma.c static void kirkwood_dma_free_dma_buffers(struct snd_pcm *pcm) pcm 304 sound/soc/kirkwood/kirkwood-dma.c substream = pcm->streams[stream].substream; pcm 311 sound/soc/kirkwood/kirkwood-dma.c dma_free_coherent(pcm->card->dev, buf->bytes, pcm 124 sound/soc/mediatek/common/mtk-afe-platform-driver.c struct snd_pcm *pcm = rtd->pcm; pcm 129 sound/soc/mediatek/common/mtk-afe-platform-driver.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 135 sound/soc/mediatek/common/mtk-afe-platform-driver.c void mtk_afe_pcm_free(struct snd_pcm *pcm) pcm 137 sound/soc/mediatek/common/mtk-afe-platform-driver.c snd_pcm_lib_preallocate_free_for_all(pcm); pcm 23 sound/soc/mediatek/common/mtk-afe-platform-driver.h void mtk_afe_pcm_free(struct snd_pcm *pcm); pcm 115 sound/soc/mediatek/mt2701/mt2701-cs42448.c dev_err(substream->pcm->card->dev, pcm 316 sound/soc/meson/axg-fifo.c snd_pcm_lib_preallocate_pages(rtd->pcm->streams[type].substream, pcm 142 sound/soc/pxa/mmp-pcm.c static void mmp_pcm_free_dma_buffers(struct snd_pcm *pcm) pcm 156 sound/soc/pxa/mmp-pcm.c substream = pcm->streams[stream].substream; pcm 177 sound/soc/pxa/mmp-pcm.c buf->dev.dev = substream->pcm->card->dev; pcm 194 sound/soc/pxa/mmp-pcm.c struct snd_pcm *pcm = rtd->pcm; pcm 198 sound/soc/pxa/mmp-pcm.c substream = pcm->streams[stream].substream; pcm 208 sound/soc/pxa/mmp-pcm.c mmp_pcm_free_dma_buffers(pcm); pcm 403 sound/soc/qcom/lpass-platform.c return dma_mmap_coherent(substream->pcm->card->dev, vma, pcm 504 sound/soc/qcom/lpass-platform.c struct snd_pcm *pcm = soc_runtime->pcm; pcm 510 sound/soc/qcom/lpass-platform.c psubstream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; pcm 521 sound/soc/qcom/lpass-platform.c csubstream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; pcm 538 sound/soc/qcom/lpass-platform.c static void lpass_platform_pcm_free(struct snd_pcm *pcm) pcm 543 sound/soc/qcom/lpass-platform.c for (i = 0; i < ARRAY_SIZE(pcm->streams); i++) { pcm 544 sound/soc/qcom/lpass-platform.c substream = pcm->streams[i].substream; pcm 807 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_pcm *pcm = rtd->pcm; pcm 813 sound/soc/qcom/qdsp6/q6asm-dai.c psubstream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; pcm 823 sound/soc/qcom/qdsp6/q6asm-dai.c csubstream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; pcm 838 sound/soc/qcom/qdsp6/q6asm-dai.c static void q6asm_dai_pcm_free(struct snd_pcm *pcm) pcm 843 sound/soc/qcom/qdsp6/q6asm-dai.c for (i = 0; i < ARRAY_SIZE(pcm->streams); i++) { pcm 844 sound/soc/qcom/qdsp6/q6asm-dai.c substream = pcm->streams[i].substream; pcm 126 sound/soc/rockchip/rockchip_rt5645.c SND_SOC_DAILINK_DEFS(pcm, pcm 139 sound/soc/rockchip/rockchip_rt5645.c SND_SOC_DAILINK_REG(pcm), pcm 334 sound/soc/samsung/idma.c static void idma_free(struct snd_pcm *pcm) pcm 339 sound/soc/samsung/idma.c substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; pcm 353 sound/soc/samsung/idma.c static int preallocate_idma_buffer(struct snd_pcm *pcm, int stream) pcm 355 sound/soc/samsung/idma.c struct snd_pcm_substream *substream = pcm->streams[stream].substream; pcm 358 sound/soc/samsung/idma.c buf->dev.dev = pcm->card->dev; pcm 373 sound/soc/samsung/idma.c struct snd_pcm *pcm = rtd->pcm; pcm 380 sound/soc/samsung/idma.c if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { pcm 381 sound/soc/samsung/idma.c ret = preallocate_idma_buffer(pcm, pcm 149 sound/soc/samsung/pcm.c static void s3c_pcm_snd_txctrl(struct s3c_pcm_info *pcm, int on) pcm 151 sound/soc/samsung/pcm.c void __iomem *regs = pcm->regs; pcm 171 sound/soc/samsung/pcm.c if (!pcm->idleclk) pcm 180 sound/soc/samsung/pcm.c static void s3c_pcm_snd_rxctrl(struct s3c_pcm_info *pcm, int on) pcm 182 sound/soc/samsung/pcm.c void __iomem *regs = pcm->regs; pcm 202 sound/soc/samsung/pcm.c if (!pcm->idleclk) pcm 215 sound/soc/samsung/pcm.c struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(rtd->cpu_dai); pcm 218 sound/soc/samsung/pcm.c dev_dbg(pcm->dev, "Entered %s\n", __func__); pcm 224 sound/soc/samsung/pcm.c spin_lock_irqsave(&pcm->lock, flags); pcm 227 sound/soc/samsung/pcm.c s3c_pcm_snd_rxctrl(pcm, 1); pcm 229 sound/soc/samsung/pcm.c s3c_pcm_snd_txctrl(pcm, 1); pcm 231 sound/soc/samsung/pcm.c spin_unlock_irqrestore(&pcm->lock, flags); pcm 237 sound/soc/samsung/pcm.c spin_lock_irqsave(&pcm->lock, flags); pcm 240 sound/soc/samsung/pcm.c s3c_pcm_snd_rxctrl(pcm, 0); pcm 242 sound/soc/samsung/pcm.c s3c_pcm_snd_txctrl(pcm, 0); pcm 244 sound/soc/samsung/pcm.c spin_unlock_irqrestore(&pcm->lock, flags); pcm 259 sound/soc/samsung/pcm.c struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(rtd->cpu_dai); pcm 260 sound/soc/samsung/pcm.c void __iomem *regs = pcm->regs; pcm 266 sound/soc/samsung/pcm.c dev_dbg(pcm->dev, "Entered %s\n", __func__); pcm 276 sound/soc/samsung/pcm.c spin_lock_irqsave(&pcm->lock, flags); pcm 281 sound/soc/samsung/pcm.c clk = pcm->pclk; pcm 283 sound/soc/samsung/pcm.c clk = pcm->cclk; pcm 286 sound/soc/samsung/pcm.c sclk_div = clk_get_rate(clk) / pcm->sclk_per_fs / pcm 295 sound/soc/samsung/pcm.c sync_div = pcm->sclk_per_fs - 1; pcm 304 sound/soc/samsung/pcm.c spin_unlock_irqrestore(&pcm->lock, flags); pcm 306 sound/soc/samsung/pcm.c dev_dbg(pcm->dev, "PCMSOURCE_CLK-%lu SCLK=%ufs SCLK_DIV=%d SYNC_DIV=%d\n", pcm 307 sound/soc/samsung/pcm.c clk_get_rate(clk), pcm->sclk_per_fs, pcm 316 sound/soc/samsung/pcm.c struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai); pcm 317 sound/soc/samsung/pcm.c void __iomem *regs = pcm->regs; pcm 322 sound/soc/samsung/pcm.c dev_dbg(pcm->dev, "Entered %s\n", __func__); pcm 324 sound/soc/samsung/pcm.c spin_lock_irqsave(&pcm->lock, flags); pcm 333 sound/soc/samsung/pcm.c dev_err(pcm->dev, "Unsupported clock inversion!\n"); pcm 343 sound/soc/samsung/pcm.c dev_err(pcm->dev, "Unsupported master/slave format!\n"); pcm 350 sound/soc/samsung/pcm.c pcm->idleclk = 1; pcm 353 sound/soc/samsung/pcm.c pcm->idleclk = 0; pcm 356 sound/soc/samsung/pcm.c dev_err(pcm->dev, "Invalid Clock gating request!\n"); pcm 371 sound/soc/samsung/pcm.c dev_err(pcm->dev, "Unsupported data format!\n"); pcm 379 sound/soc/samsung/pcm.c spin_unlock_irqrestore(&pcm->lock, flags); pcm 387 sound/soc/samsung/pcm.c struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai); pcm 391 sound/soc/samsung/pcm.c pcm->sclk_per_fs = div; pcm 404 sound/soc/samsung/pcm.c struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai); pcm 405 sound/soc/samsung/pcm.c void __iomem *regs = pcm->regs; pcm 416 sound/soc/samsung/pcm.c if (clk_get_rate(pcm->cclk) != freq) pcm 417 sound/soc/samsung/pcm.c clk_set_rate(pcm->cclk, freq); pcm 440 sound/soc/samsung/pcm.c struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(dai); pcm 442 sound/soc/samsung/pcm.c snd_soc_dai_init_dma_data(dai, pcm->dma_playback, pcm->dma_capture); pcm 483 sound/soc/samsung/pcm.c struct s3c_pcm_info *pcm; pcm 502 sound/soc/samsung/pcm.c pcm = &s3c_pcm[pdev->id]; pcm 503 sound/soc/samsung/pcm.c pcm->dev = &pdev->dev; pcm 505 sound/soc/samsung/pcm.c spin_lock_init(&pcm->lock); pcm 508 sound/soc/samsung/pcm.c pcm->sclk_per_fs = 128; pcm 511 sound/soc/samsung/pcm.c pcm->regs = devm_ioremap_resource(&pdev->dev, mem_res); pcm 512 sound/soc/samsung/pcm.c if (IS_ERR(pcm->regs)) pcm 513 sound/soc/samsung/pcm.c return PTR_ERR(pcm->regs); pcm 515 sound/soc/samsung/pcm.c pcm->cclk = devm_clk_get(&pdev->dev, "audio-bus"); pcm 516 sound/soc/samsung/pcm.c if (IS_ERR(pcm->cclk)) { pcm 518 sound/soc/samsung/pcm.c return PTR_ERR(pcm->cclk); pcm 520 sound/soc/samsung/pcm.c ret = clk_prepare_enable(pcm->cclk); pcm 525 sound/soc/samsung/pcm.c dev_set_drvdata(&pdev->dev, pcm); pcm 527 sound/soc/samsung/pcm.c pcm->pclk = devm_clk_get(&pdev->dev, "pcm"); pcm 528 sound/soc/samsung/pcm.c if (IS_ERR(pcm->pclk)) { pcm 530 sound/soc/samsung/pcm.c ret = PTR_ERR(pcm->pclk); pcm 533 sound/soc/samsung/pcm.c ret = clk_prepare_enable(pcm->pclk); pcm 547 sound/soc/samsung/pcm.c pcm->dma_capture = &s3c_pcm_stereo_in[pdev->id]; pcm 548 sound/soc/samsung/pcm.c pcm->dma_playback = &s3c_pcm_stereo_out[pdev->id]; pcm 571 sound/soc/samsung/pcm.c clk_disable_unprepare(pcm->pclk); pcm 573 sound/soc/samsung/pcm.c clk_disable_unprepare(pcm->cclk); pcm 579 sound/soc/samsung/pcm.c struct s3c_pcm_info *pcm = &s3c_pcm[pdev->id]; pcm 582 sound/soc/samsung/pcm.c clk_disable_unprepare(pcm->cclk); pcm 583 sound/soc/samsung/pcm.c clk_disable_unprepare(pcm->pclk); pcm 308 sound/soc/sh/dma-sh7760.c struct snd_pcm *pcm = rtd->pcm; pcm 313 sound/soc/sh/dma-sh7760.c snd_pcm_lib_preallocate_pages_for_all(pcm, pcm 1772 sound/soc/sh/fsi.c rtd->pcm, pcm 1216 sound/soc/sh/rcar/core.c for (substream = rtd->pcm->streams[stream].substream; pcm 117 sound/soc/sh/siu.h struct snd_pcm *pcm; pcm 129 sound/soc/sh/siu.h to_platform_device(substream->pcm->card->dev); pcm 51 sound/soc/sh/siu_dai.c u32 pcm; pcm 67 sound/soc/sh/siu_dai.c .pcm = 0x40000000, pcm 73 sound/soc/sh/siu_dai.c .pcm = 0x04000000, pcm 81 sound/soc/sh/siu_dai.c .pcm = 0x00400000, pcm 87 sound/soc/sh/siu_dai.c .pcm = 0x00040000, pcm 99 sound/soc/sh/siu_dai.c dev_dbg(port_info->pcm->card->dev, "%s\n", __func__); pcm 342 sound/soc/sh/siu_dai.c dev_dbg(port_info->pcm->card->dev, "%s\n", __func__); pcm 356 sound/soc/sh/siu_dai.c struct device *dev = port_info->pcm->card->dev; pcm 387 sound/soc/sh/siu_dai.c struct device *dev = port_info->pcm->card->dev; pcm 501 sound/soc/sh/siu_dai.c dev_dbg(substream->pcm->card->dev, "%s: port=%d@%p\n", __func__, pcm 521 sound/soc/sh/siu_dai.c dev_dbg(substream->pcm->card->dev, "%s: port=%d@%p\n", __func__, pcm 549 sound/soc/sh/siu_dai.c dev_dbg(substream->pcm->card->dev, pcm 609 sound/soc/sh/siu_dai.c ifctl = siu_flags[info->port_id].playback.pcm | pcm 610 sound/soc/sh/siu_dai.c siu_flags[info->port_id].capture.pcm; pcm 109 sound/soc/sh/siu_pcm.c struct device *dev = substream->pcm->card->dev; pcm 157 sound/soc/sh/siu_pcm.c struct device *dev = substream->pcm->card->dev; pcm 205 sound/soc/sh/siu_pcm.c struct device *dev = substream->pcm->card->dev; pcm 266 sound/soc/sh/siu_pcm.c struct device *dev = siu_stream->substream->pcm->card->dev; pcm 288 sound/soc/sh/siu_pcm.c struct device *dev = ss->pcm->card->dev; pcm 304 sound/soc/sh/siu_pcm.c struct device *dev = ss->pcm->card->dev; pcm 337 sound/soc/sh/siu_pcm.c struct device *dev = ss->pcm->card->dev; pcm 373 sound/soc/sh/siu_pcm.c struct device *dev = ss->pcm->card->dev; pcm 396 sound/soc/sh/siu_pcm.c struct device *dev = ss->pcm->card->dev; pcm 441 sound/soc/sh/siu_pcm.c struct device *dev = ss->pcm->card->dev; pcm 482 sound/soc/sh/siu_pcm.c struct device *dev = ss->pcm->card->dev; pcm 519 sound/soc/sh/siu_pcm.c struct snd_pcm *pcm = rtd->pcm; pcm 544 sound/soc/sh/siu_pcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, pcm 548 sound/soc/sh/siu_pcm.c (*port_info)->pcm = pcm; pcm 561 sound/soc/sh/siu_pcm.c static void siu_pcm_free(struct snd_pcm *pcm) pcm 563 sound/soc/sh/siu_pcm.c struct platform_device *pdev = to_platform_device(pcm->card->dev); pcm 571 sound/soc/sh/siu_pcm.c dev_dbg(pcm->card->dev, "%s\n", __func__); pcm 529 sound/soc/soc-component.c int snd_soc_pcm_component_new(struct snd_pcm *pcm) pcm 531 sound/soc/soc-component.c struct snd_soc_pcm_runtime *rtd = pcm->private_data; pcm 549 sound/soc/soc-component.c void snd_soc_pcm_component_free(struct snd_pcm *pcm) pcm 551 sound/soc/soc-component.c struct snd_soc_pcm_runtime *rtd = pcm->private_data; pcm 559 sound/soc/soc-component.c component->driver->pcm_free(pcm); pcm 129 sound/soc/soc-compress.c fe->pcm->streams[cstream->direction].substream; pcm 533 sound/soc/soc-compress.c fe->pcm->streams[cstream->direction].substream; pcm 921 sound/soc/soc-compress.c rtd->pcm = be_pcm; pcm 349 sound/soc/soc-core.c return rtd->pcm->streams[stream].substream; pcm 475 sound/soc/soc-core.c snd_pcm_suspend_all(rtd->pcm); pcm 4302 sound/soc/soc-dapm.c struct snd_pcm_str *streams = rtd->pcm->streams; pcm 36 sound/soc/soc-generic-dmaengine-pcm.c static struct device *dmaengine_dma_dev(struct dmaengine_pcm *pcm, pcm 39 sound/soc/soc-generic-dmaengine-pcm.c if (!pcm->chan[substream->stream]) pcm 42 sound/soc/soc-generic-dmaengine-pcm.c return pcm->chan[substream->stream]->device->dev; pcm 84 sound/soc/soc-generic-dmaengine-pcm.c struct dmaengine_pcm *pcm = soc_component_to_pcm(component); pcm 94 sound/soc/soc-generic-dmaengine-pcm.c if (!pcm->config) pcm 97 sound/soc/soc-generic-dmaengine-pcm.c prepare_slave_config = pcm->config->prepare_slave_config; pcm 117 sound/soc/soc-generic-dmaengine-pcm.c struct dmaengine_pcm *pcm = soc_component_to_pcm(component); pcm 118 sound/soc/soc-generic-dmaengine-pcm.c struct device *dma_dev = dmaengine_dma_dev(pcm, substream); pcm 119 sound/soc/soc-generic-dmaengine-pcm.c struct dma_chan *chan = pcm->chan[substream->stream]; pcm 129 sound/soc/soc-generic-dmaengine-pcm.c if (pcm->config && pcm->config->pcm_hardware) pcm 131 sound/soc/soc-generic-dmaengine-pcm.c pcm->config->pcm_hardware); pcm 145 sound/soc/soc-generic-dmaengine-pcm.c if (pcm->flags & SND_DMAENGINE_PCM_FLAG_NO_RESIDUE) pcm 207 sound/soc/soc-generic-dmaengine-pcm.c struct dmaengine_pcm *pcm = soc_component_to_pcm(component); pcm 208 sound/soc/soc-generic-dmaengine-pcm.c struct dma_chan *chan = pcm->chan[substream->stream]; pcm 224 sound/soc/soc-generic-dmaengine-pcm.c struct dmaengine_pcm *pcm = soc_component_to_pcm(component); pcm 230 sound/soc/soc-generic-dmaengine-pcm.c if ((pcm->flags & SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX) && pcm->chan[0]) pcm 231 sound/soc/soc-generic-dmaengine-pcm.c return pcm->chan[0]; pcm 233 sound/soc/soc-generic-dmaengine-pcm.c if (pcm->config && pcm->config->compat_request_channel) pcm 234 sound/soc/soc-generic-dmaengine-pcm.c return pcm->config->compat_request_channel(rtd, substream); pcm 236 sound/soc/soc-generic-dmaengine-pcm.c if (pcm->config) pcm 237 sound/soc/soc-generic-dmaengine-pcm.c fn = pcm->config->compat_filter_fn; pcm 265 sound/soc/soc-generic-dmaengine-pcm.c struct dmaengine_pcm *pcm = soc_component_to_pcm(component); pcm 266 sound/soc/soc-generic-dmaengine-pcm.c const struct snd_dmaengine_pcm_config *config = pcm->config; pcm 282 sound/soc/soc-generic-dmaengine-pcm.c substream = rtd->pcm->streams[i].substream; pcm 286 sound/soc/soc-generic-dmaengine-pcm.c if (!pcm->chan[i] && config && config->chan_names[i]) pcm 287 sound/soc/soc-generic-dmaengine-pcm.c pcm->chan[i] = dma_request_slave_channel(dev, pcm 290 sound/soc/soc-generic-dmaengine-pcm.c if (!pcm->chan[i] && (pcm->flags & SND_DMAENGINE_PCM_FLAG_COMPAT)) { pcm 291 sound/soc/soc-generic-dmaengine-pcm.c pcm->chan[i] = dmaengine_pcm_compat_request_channel(rtd, pcm 295 sound/soc/soc-generic-dmaengine-pcm.c if (!pcm->chan[i]) { pcm 303 sound/soc/soc-generic-dmaengine-pcm.c dmaengine_dma_dev(pcm, substream), pcm 307 sound/soc/soc-generic-dmaengine-pcm.c if (!dmaengine_pcm_can_report_residue(dev, pcm->chan[i])) pcm 308 sound/soc/soc-generic-dmaengine-pcm.c pcm->flags |= SND_DMAENGINE_PCM_FLAG_NO_RESIDUE; pcm 310 sound/soc/soc-generic-dmaengine-pcm.c if (rtd->pcm->streams[i].pcm->name[0] == '\0') { pcm 311 sound/soc/soc-generic-dmaengine-pcm.c strscpy_pad(rtd->pcm->streams[i].pcm->name, pcm 312 sound/soc/soc-generic-dmaengine-pcm.c rtd->pcm->streams[i].pcm->id, pcm 313 sound/soc/soc-generic-dmaengine-pcm.c sizeof(rtd->pcm->streams[i].pcm->name)); pcm 326 sound/soc/soc-generic-dmaengine-pcm.c struct dmaengine_pcm *pcm = soc_component_to_pcm(component); pcm 328 sound/soc/soc-generic-dmaengine-pcm.c if (pcm->flags & SND_DMAENGINE_PCM_FLAG_NO_RESIDUE) pcm 342 sound/soc/soc-generic-dmaengine-pcm.c struct dmaengine_pcm *pcm = soc_component_to_pcm(component); pcm 345 sound/soc/soc-generic-dmaengine-pcm.c void *buf, unsigned long bytes) = pcm->config->process; pcm 408 sound/soc/soc-generic-dmaengine-pcm.c static int dmaengine_pcm_request_chan_of(struct dmaengine_pcm *pcm, pcm 415 sound/soc/soc-generic-dmaengine-pcm.c if ((pcm->flags & SND_DMAENGINE_PCM_FLAG_NO_DT) || (!dev->of_node && pcm 433 sound/soc/soc-generic-dmaengine-pcm.c if (pcm->flags & SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX) pcm 443 sound/soc/soc-generic-dmaengine-pcm.c pcm->chan[i] = NULL; pcm 445 sound/soc/soc-generic-dmaengine-pcm.c pcm->chan[i] = chan; pcm 447 sound/soc/soc-generic-dmaengine-pcm.c if (pcm->flags & SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX) pcm 451 sound/soc/soc-generic-dmaengine-pcm.c if (pcm->flags & SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX) pcm 452 sound/soc/soc-generic-dmaengine-pcm.c pcm->chan[1] = pcm->chan[0]; pcm 457 sound/soc/soc-generic-dmaengine-pcm.c static void dmaengine_pcm_release_chan(struct dmaengine_pcm *pcm) pcm 463 sound/soc/soc-generic-dmaengine-pcm.c if (!pcm->chan[i]) pcm 465 sound/soc/soc-generic-dmaengine-pcm.c dma_release_channel(pcm->chan[i]); pcm 466 sound/soc/soc-generic-dmaengine-pcm.c if (pcm->flags & SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX) pcm 480 sound/soc/soc-generic-dmaengine-pcm.c struct dmaengine_pcm *pcm; pcm 483 sound/soc/soc-generic-dmaengine-pcm.c pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); pcm 484 sound/soc/soc-generic-dmaengine-pcm.c if (!pcm) pcm 488 sound/soc/soc-generic-dmaengine-pcm.c pcm->component.debugfs_prefix = "dma"; pcm 490 sound/soc/soc-generic-dmaengine-pcm.c pcm->config = config; pcm 491 sound/soc/soc-generic-dmaengine-pcm.c pcm->flags = flags; pcm 493 sound/soc/soc-generic-dmaengine-pcm.c ret = dmaengine_pcm_request_chan_of(pcm, dev, config); pcm 498 sound/soc/soc-generic-dmaengine-pcm.c ret = snd_soc_add_component(dev, &pcm->component, pcm 502 sound/soc/soc-generic-dmaengine-pcm.c ret = snd_soc_add_component(dev, &pcm->component, pcm 510 sound/soc/soc-generic-dmaengine-pcm.c dmaengine_pcm_release_chan(pcm); pcm 511 sound/soc/soc-generic-dmaengine-pcm.c kfree(pcm); pcm 526 sound/soc/soc-generic-dmaengine-pcm.c struct dmaengine_pcm *pcm; pcm 532 sound/soc/soc-generic-dmaengine-pcm.c pcm = soc_component_to_pcm(component); pcm 535 sound/soc/soc-generic-dmaengine-pcm.c dmaengine_pcm_release_chan(pcm); pcm 536 sound/soc/soc-generic-dmaengine-pcm.c kfree(pcm); pcm 2863 sound/soc/soc-pcm.c static void soc_pcm_private_free(struct snd_pcm *pcm) pcm 2865 sound/soc/soc-pcm.c struct snd_soc_pcm_runtime *rtd = pcm->private_data; pcm 2869 sound/soc/soc-pcm.c snd_soc_pcm_component_free(pcm); pcm 2878 sound/soc/soc-pcm.c struct snd_pcm *pcm; pcm 2922 sound/soc/soc-pcm.c playback, capture, &pcm); pcm 2928 sound/soc/soc-pcm.c playback, capture, &pcm); pcm 2940 sound/soc/soc-pcm.c capture, &pcm); pcm 2956 sound/soc/soc-pcm.c pcm->nonatomic = rtd->dai_link->nonatomic; pcm 2957 sound/soc/soc-pcm.c rtd->pcm = pcm; pcm 2958 sound/soc/soc-pcm.c pcm->private_data = rtd; pcm 2962 sound/soc/soc-pcm.c pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->private_data = rtd; pcm 2964 sound/soc/soc-pcm.c pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->private_data = rtd; pcm 3004 sound/soc/soc-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &rtd->ops); pcm 3007 sound/soc/soc-pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &rtd->ops); pcm 3009 sound/soc/soc-pcm.c ret = snd_soc_pcm_component_new(pcm); pcm 3015 sound/soc/soc-pcm.c pcm->private_free = soc_pcm_private_free; pcm 3016 sound/soc/soc-pcm.c pcm->no_device_suspend = true; pcm 3049 sound/soc/soc-pcm.c return be->pcm->streams[stream].substream; pcm 308 sound/soc/soc-topology.c struct snd_soc_tplg_pcm *pcm, struct snd_soc_dai *dai) pcm 312 sound/soc/soc-topology.c pcm, dai); pcm 1820 sound/soc/soc-topology.c struct snd_soc_tplg_pcm *pcm) pcm 1831 sound/soc/soc-topology.c if (strlen(pcm->dai_name)) pcm 1832 sound/soc/soc-topology.c dai_drv->name = kstrdup(pcm->dai_name, GFP_KERNEL); pcm 1833 sound/soc/soc-topology.c dai_drv->id = le32_to_cpu(pcm->dai_id); pcm 1835 sound/soc/soc-topology.c if (pcm->playback) { pcm 1837 sound/soc/soc-topology.c caps = &pcm->caps[SND_SOC_TPLG_STREAM_PLAYBACK]; pcm 1841 sound/soc/soc-topology.c if (pcm->capture) { pcm 1843 sound/soc/soc-topology.c caps = &pcm->caps[SND_SOC_TPLG_STREAM_CAPTURE]; pcm 1847 sound/soc/soc-topology.c if (pcm->compress) pcm 1851 sound/soc/soc-topology.c ret = soc_tplg_dai_load(tplg, dai_drv, pcm, NULL); pcm 1895 sound/soc/soc-topology.c struct snd_soc_tplg_pcm *pcm) pcm 1920 sound/soc/soc-topology.c if (strlen(pcm->pcm_name)) { pcm 1921 sound/soc/soc-topology.c link->name = kstrdup(pcm->pcm_name, GFP_KERNEL); pcm 1922 sound/soc/soc-topology.c link->stream_name = kstrdup(pcm->pcm_name, GFP_KERNEL); pcm 1924 sound/soc/soc-topology.c link->id = le32_to_cpu(pcm->pcm_id); pcm 1926 sound/soc/soc-topology.c if (strlen(pcm->dai_name)) pcm 1927 sound/soc/soc-topology.c link->cpus->dai_name = kstrdup(pcm->dai_name, GFP_KERNEL); pcm 1936 sound/soc/soc-topology.c link->dpcm_playback = le32_to_cpu(pcm->playback); pcm 1937 sound/soc/soc-topology.c link->dpcm_capture = le32_to_cpu(pcm->capture); pcm 1938 sound/soc/soc-topology.c if (pcm->flag_mask) pcm 1940 sound/soc/soc-topology.c le32_to_cpu(pcm->flag_mask), pcm 1941 sound/soc/soc-topology.c le32_to_cpu(pcm->flags)); pcm 1969 sound/soc/soc-topology.c struct snd_soc_tplg_pcm *pcm) pcm 1973 sound/soc/soc-topology.c ret = soc_tplg_dai_create(tplg, pcm); pcm 1977 sound/soc/soc-topology.c return soc_tplg_fe_link_create(tplg, pcm); pcm 2010 sound/soc/soc-topology.c struct snd_soc_tplg_pcm **pcm) pcm 2016 sound/soc/soc-topology.c *pcm = NULL; pcm 2045 sound/soc/soc-topology.c *pcm = dest; pcm 2052 sound/soc/soc-topology.c struct snd_soc_tplg_pcm *pcm, *_pcm; pcm 2065 sound/soc/soc-topology.c pcm = (struct snd_soc_tplg_pcm *)tplg->pos; pcm 2066 sound/soc/soc-topology.c size = le32_to_cpu(pcm->size); pcm 2084 sound/soc/soc-topology.c pcm = (struct snd_soc_tplg_pcm *)tplg->pos; pcm 2085 sound/soc/soc-topology.c size = le32_to_cpu(pcm->size); pcm 2090 sound/soc/soc-topology.c if (size == sizeof(*pcm)) { pcm 2092 sound/soc/soc-topology.c _pcm = pcm; pcm 2095 sound/soc/soc-topology.c ret = pcm_new_ver(tplg, pcm, &_pcm); pcm 34 sound/soc/sof/core.c if (strcmp(spcm->pcm.dai_name, name) == 0) pcm 38 sound/soc/sof/core.c if (*spcm->pcm.caps[0].name && pcm 39 sound/soc/sof/core.c !strcmp(spcm->pcm.caps[0].name, name)) pcm 43 sound/soc/sof/core.c if (*spcm->pcm.caps[1].name && pcm 44 sound/soc/sof/core.c !strcmp(spcm->pcm.caps[1].name, name)) pcm 77 sound/soc/sof/core.c if (le32_to_cpu(spcm->pcm.pcm_id) == pcm_id) pcm 50 sound/soc/sof/pcm.c spcm->pcm.pcm_id); pcm 107 sound/soc/sof/pcm.c struct sof_ipc_pcm_params pcm; pcm 120 sound/soc/sof/pcm.c spcm->pcm.pcm_id, substream->stream); pcm 122 sound/soc/sof/pcm.c memset(&pcm, 0, sizeof(pcm)); pcm 128 sound/soc/sof/pcm.c params_buffer_bytes(params), spcm->pcm.pcm_id); pcm 145 sound/soc/sof/pcm.c pcm.params.buffer.pages = PFN_UP(runtime->dma_bytes); pcm 148 sound/soc/sof/pcm.c pcm.hdr.size = sizeof(pcm); pcm 149 sound/soc/sof/pcm.c pcm.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS; pcm 150 sound/soc/sof/pcm.c pcm.comp_id = spcm->stream[substream->stream].comp_id; pcm 151 sound/soc/sof/pcm.c pcm.params.hdr.size = sizeof(pcm.params); pcm 152 sound/soc/sof/pcm.c pcm.params.buffer.phy_addr = pcm 154 sound/soc/sof/pcm.c pcm.params.buffer.size = runtime->dma_bytes; pcm 155 sound/soc/sof/pcm.c pcm.params.direction = substream->stream; pcm 156 sound/soc/sof/pcm.c pcm.params.sample_valid_bytes = params_width(params) >> 3; pcm 157 sound/soc/sof/pcm.c pcm.params.buffer_fmt = SOF_IPC_BUFFER_INTERLEAVED; pcm 158 sound/soc/sof/pcm.c pcm.params.rate = params_rate(params); pcm 159 sound/soc/sof/pcm.c pcm.params.channels = params_channels(params); pcm 160 sound/soc/sof/pcm.c pcm.params.host_period_bytes = params_period_bytes(params); pcm 166 sound/soc/sof/pcm.c pcm.params.sample_container_bytes = ret >> 3; pcm 171 sound/soc/sof/pcm.c pcm.params.frame_fmt = SOF_IPC_FRAME_S16_LE; pcm 174 sound/soc/sof/pcm.c pcm.params.frame_fmt = SOF_IPC_FRAME_S24_4LE; pcm 177 sound/soc/sof/pcm.c pcm.params.frame_fmt = SOF_IPC_FRAME_S32_LE; pcm 180 sound/soc/sof/pcm.c pcm.params.frame_fmt = SOF_IPC_FRAME_FLOAT; pcm 190 sound/soc/sof/pcm.c &pcm.params); pcm 196 sound/soc/sof/pcm.c dev_dbg(sdev->dev, "stream_tag %d", pcm.params.stream_tag); pcm 199 sound/soc/sof/pcm.c ret = sof_ipc_tx_message(sdev->ipc, pcm.hdr.cmd, &pcm, sizeof(pcm), pcm 203 sound/soc/sof/pcm.c pcm.params.stream_tag); pcm 257 sound/soc/sof/pcm.c dev_dbg(sdev->dev, "pcm: free stream %d dir %d\n", spcm->pcm.pcm_id, pcm 299 sound/soc/sof/pcm.c dev_dbg(sdev->dev, "pcm: prepare stream %d dir %d\n", spcm->pcm.pcm_id, pcm 338 sound/soc/sof/pcm.c spcm->pcm.pcm_id, substream->stream, cmd); pcm 426 sound/soc/sof/pcm.c spcm->pcm.pcm_id, substream->stream, host, dai); pcm 450 sound/soc/sof/pcm.c dev_dbg(sdev->dev, "pcm: open stream %d dir %d\n", spcm->pcm.pcm_id, pcm 456 sound/soc/sof/pcm.c caps = &spcm->pcm.caps[substream->stream]; pcm 525 sound/soc/sof/pcm.c dev_dbg(sdev->dev, "pcm: close stream %d dir %d\n", spcm->pcm.pcm_id, pcm 564 sound/soc/sof/pcm.c struct snd_pcm *pcm = rtd->pcm; pcm 576 sound/soc/sof/pcm.c dev_dbg(sdev->dev, "creating new PCM %s\n", spcm->pcm.pcm_name); pcm 579 sound/soc/sof/pcm.c if (!spcm->pcm.playback) pcm 582 sound/soc/sof/pcm.c caps = &spcm->pcm.caps[stream]; pcm 588 sound/soc/sof/pcm.c snd_pcm_lib_preallocate_pages(pcm->streams[stream].substream, pcm 596 sound/soc/sof/pcm.c if (!spcm->pcm.capture) pcm 599 sound/soc/sof/pcm.c caps = &spcm->pcm.caps[stream]; pcm 605 sound/soc/sof/pcm.c snd_pcm_lib_preallocate_pages(pcm->streams[stream].substream, pcm 301 sound/soc/sof/sof-priv.h struct snd_soc_tplg_pcm pcm; pcm 517 sound/soc/sof/sof-priv.h if (le32_to_cpu(spcm->pcm.dai_id) == rtd->dai_link->id) pcm 57 sound/soc/sof/topology.c struct sof_ipc_pcm_params pcm; pcm 62 sound/soc/sof/topology.c memset(&pcm, 0, sizeof(pcm)); pcm 75 sound/soc/sof/topology.c pcm.hdr.size = sizeof(pcm); pcm 76 sound/soc/sof/topology.c pcm.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS; pcm 77 sound/soc/sof/topology.c pcm.comp_id = swidget->comp_id; pcm 78 sound/soc/sof/topology.c pcm.params.hdr.size = sizeof(pcm.params); pcm 79 sound/soc/sof/topology.c pcm.params.direction = dir; pcm 80 sound/soc/sof/topology.c pcm.params.sample_valid_bytes = params_width(params) >> 3; pcm 81 sound/soc/sof/topology.c pcm.params.buffer_fmt = SOF_IPC_BUFFER_INTERLEAVED; pcm 82 sound/soc/sof/topology.c pcm.params.rate = params_rate(params); pcm 83 sound/soc/sof/topology.c pcm.params.channels = params_channels(params); pcm 84 sound/soc/sof/topology.c pcm.params.host_period_bytes = params_period_bytes(params); pcm 89 sound/soc/sof/topology.c pcm.params.frame_fmt = SOF_IPC_FRAME_S16_LE; pcm 92 sound/soc/sof/topology.c pcm.params.frame_fmt = SOF_IPC_FRAME_S24_4LE; pcm 95 sound/soc/sof/topology.c pcm.params.frame_fmt = SOF_IPC_FRAME_S32_LE; pcm 102 sound/soc/sof/topology.c ret = sof_ipc_tx_message(sdev->ipc, pcm.hdr.cmd, &pcm, sizeof(pcm), pcm 1288 sound/soc/sof/topology.c spcm->pcm.caps[dir].name, pcm 2271 sound/soc/sof/topology.c struct snd_soc_tplg_pcm *pcm, struct snd_soc_dai *dai) pcm 2280 sound/soc/sof/topology.c if (!pcm) pcm 2291 sound/soc/sof/topology.c if (pcm) { pcm 2292 sound/soc/sof/topology.c spcm->pcm = *pcm; pcm 2293 sound/soc/sof/topology.c dev_dbg(sdev->dev, "tplg: load pcm %s\n", pcm->dai_name); pcm 2299 sound/soc/sof/topology.c if (!spcm->pcm.playback) pcm 2302 sound/soc/sof/topology.c caps = &spcm->pcm.caps[stream]; pcm 2326 sound/soc/sof/topology.c if (!spcm->pcm.capture) pcm 2329 sound/soc/sof/topology.c caps = &spcm->pcm.caps[stream]; pcm 2352 sound/soc/sof/topology.c if (spcm->pcm.playback) pcm 2364 sound/soc/sof/topology.c if (spcm->pcm.playback) pcm 2367 sound/soc/sof/topology.c if (spcm->pcm.capture) pcm 473 sound/soc/sprd/sprd-pcm-dma.c struct snd_pcm *pcm = rtd->pcm; pcm 481 sound/soc/sprd/sprd-pcm-dma.c substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; pcm 493 sound/soc/sprd/sprd-pcm-dma.c substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; pcm 501 sound/soc/sprd/sprd-pcm-dma.c snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); pcm 509 sound/soc/sprd/sprd-pcm-dma.c static void sprd_pcm_free(struct snd_pcm *pcm) pcm 514 sound/soc/sprd/sprd-pcm-dma.c for (i = 0; i < ARRAY_SIZE(pcm->streams); i++) { pcm 515 sound/soc/sprd/sprd-pcm-dma.c substream = pcm->streams[i].substream; pcm 303 sound/soc/stm/stm32_adfsdm.c struct snd_pcm *pcm = rtd->pcm; pcm 308 sound/soc/stm/stm32_adfsdm.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 313 sound/soc/stm/stm32_adfsdm.c static void stm32_adfsdm_pcm_free(struct snd_pcm *pcm) pcm 317 sound/soc/stm/stm32_adfsdm.c substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; pcm 319 sound/soc/stm/stm32_adfsdm.c snd_pcm_lib_preallocate_free_for_all(pcm); pcm 1171 sound/soc/stm/stm32_sai_sub.c knew.device = rtd->pcm->device; pcm 1172 sound/soc/stm/stm32_sai_sub.c return snd_ctl_add(rtd->pcm->card, snd_ctl_new1(&knew, sai)); pcm 124 sound/soc/tegra/tegra_alc5632.c SND_SOC_DAILINK_DEFS(pcm, pcm 137 sound/soc/tegra/tegra_alc5632.c SND_SOC_DAILINK_REG(pcm), pcm 168 sound/soc/tegra/tegra_max98090.c SND_SOC_DAILINK_DEFS(pcm, pcm 180 sound/soc/tegra/tegra_max98090.c SND_SOC_DAILINK_REG(pcm), pcm 161 sound/soc/tegra/tegra_rt5677.c SND_SOC_DAILINK_DEFS(pcm, pcm 173 sound/soc/tegra/tegra_rt5677.c SND_SOC_DAILINK_REG(pcm), pcm 87 sound/soc/tegra/tegra_wm8753.c SND_SOC_DAILINK_DEFS(pcm, pcm 99 sound/soc/tegra/tegra_wm8753.c SND_SOC_DAILINK_REG(pcm), pcm 289 sound/soc/txx9/txx9aclc.c struct snd_pcm *pcm = rtd->pcm; pcm 314 sound/soc/txx9/txx9aclc.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 231 sound/soc/uniphier/aio-dma.c struct snd_pcm *pcm = rtd->pcm; pcm 238 sound/soc/uniphier/aio-dma.c snd_pcm_lib_preallocate_pages_for_all(pcm, pcm 245 sound/soc/uniphier/aio-dma.c static void uniphier_aiodma_free(struct snd_pcm *pcm) pcm 247 sound/soc/uniphier/aio-dma.c snd_pcm_lib_preallocate_free_for_all(pcm); pcm 233 sound/soc/ux500/mop500_ab8500.c substream->pcm->name, pcm 234 sound/soc/ux500/mop500_ab8500.c substream->pcm->id, pcm 539 sound/soc/xilinx/xlnx_formatter_pcm.c snd_pcm_lib_preallocate_pages_for_all(rtd->pcm, pcm 469 sound/soc/xtensa/xtfpga-i2s.c snd_pcm_lib_preallocate_pages_for_all(rtd->pcm, SNDRV_DMA_TYPE_DEV, pcm 326 sound/sparc/amd7930.c struct snd_pcm *pcm; pcm 761 sound/sparc/amd7930.c struct snd_pcm *pcm; pcm 768 sound/sparc/amd7930.c /* capture count */ 1, &pcm)) < 0) pcm 771 sound/sparc/amd7930.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_amd7930_playback_ops); pcm 772 sound/sparc/amd7930.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_amd7930_capture_ops); pcm 774 sound/sparc/amd7930.c pcm->private_data = amd; pcm 775 sound/sparc/amd7930.c pcm->info_flags = 0; pcm 776 sound/sparc/amd7930.c strcpy(pcm->name, amd->card->shortname); pcm 777 sound/sparc/amd7930.c amd->pcm = pcm; pcm 779 sound/sparc/amd7930.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, pcm 94 sound/sparc/cs4231.c struct snd_pcm *pcm; pcm 1228 sound/sparc/cs4231.c struct snd_pcm *pcm; pcm 1231 sound/sparc/cs4231.c err = snd_pcm_new(card, "CS4231", 0, 1, 1, &pcm); pcm 1235 sound/sparc/cs4231.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1237 sound/sparc/cs4231.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 1241 sound/sparc/cs4231.c pcm->private_data = chip; pcm 1242 sound/sparc/cs4231.c pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; pcm 1243 sound/sparc/cs4231.c strcpy(pcm->name, "CS4231"); pcm 1245 sound/sparc/cs4231.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, pcm 1249 sound/sparc/cs4231.c chip->pcm = pcm; pcm 1541 sound/sparc/cs4231.c if (snd_BUG_ON(!chip || !chip->pcm)) pcm 1544 sound/sparc/cs4231.c strcpy(card->mixername, chip->pcm->name); pcm 2234 sound/sparc/dbri.c struct snd_pcm *pcm; pcm 2241 sound/sparc/dbri.c /* capture count */ 1, &pcm)) < 0) pcm 2244 sound/sparc/dbri.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_dbri_ops); pcm 2245 sound/sparc/dbri.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_dbri_ops); pcm 2247 sound/sparc/dbri.c pcm->private_data = card->private_data; pcm 2248 sound/sparc/dbri.c pcm->info_flags = 0; pcm 2249 sound/sparc/dbri.c strcpy(pcm->name, card->shortname); pcm 2251 sound/sparc/dbri.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, pcm 63 sound/spi/at73c213.c struct snd_pcm *pcm; pcm 335 sound/spi/at73c213.c struct snd_pcm *pcm; pcm 339 sound/spi/at73c213.c device, 1, 0, &pcm); pcm 343 sound/spi/at73c213.c pcm->private_data = chip; pcm 344 sound/spi/at73c213.c pcm->info_flags = SNDRV_PCM_INFO_BLOCK_TRANSFER; pcm 345 sound/spi/at73c213.c strcpy(pcm->name, "at73c213"); pcm 346 sound/spi/at73c213.c chip->pcm = pcm; pcm 348 sound/spi/at73c213.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &at73c213_playback_ops); pcm 350 sound/spi/at73c213.c snd_pcm_lib_preallocate_pages_for_all(chip->pcm, pcm 717 sound/spi/at73c213.c if (chip == NULL || chip->pcm == NULL) pcm 722 sound/spi/at73c213.c strcpy(card->mixername, chip->pcm->name); pcm 49 sound/usb/6fire/chip.c if (chip->pcm) pcm 68 sound/usb/6fire/chip.c if (chip->pcm) pcm 22 sound/usb/6fire/chip.h struct pcm_runtime *pcm; pcm 290 sound/usb/6fire/pcm.c struct pcm_runtime *rt = in_urb->chip->pcm; pcm 378 sound/usb/6fire/pcm.c struct pcm_runtime *rt = urb->chip->pcm; pcm 617 sound/usb/6fire/pcm.c struct snd_pcm *pcm; pcm 650 sound/usb/6fire/pcm.c ret = snd_pcm_new(chip->card, "DMX6FireUSB", 0, 1, 1, &pcm); pcm 658 sound/usb/6fire/pcm.c pcm->private_data = rt; pcm 659 sound/usb/6fire/pcm.c strcpy(pcm->name, "DMX 6Fire USB"); pcm 660 sound/usb/6fire/pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcm_ops); pcm 661 sound/usb/6fire/pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pcm_ops); pcm 670 sound/usb/6fire/pcm.c rt->instance = pcm; pcm 672 sound/usb/6fire/pcm.c chip->pcm = rt; pcm 678 sound/usb/6fire/pcm.c struct pcm_runtime *rt = chip->pcm; pcm 700 sound/usb/6fire/pcm.c struct pcm_runtime *rt = chip->pcm; pcm 704 sound/usb/6fire/pcm.c chip->pcm = NULL; pcm 809 sound/usb/caiaq/audio.c cdev->n_audio_out, cdev->n_audio_in, &cdev->pcm); pcm 816 sound/usb/caiaq/audio.c cdev->pcm->private_data = cdev; pcm 817 sound/usb/caiaq/audio.c strlcpy(cdev->pcm->name, cdev->product_name, sizeof(cdev->pcm->name)); pcm 842 sound/usb/caiaq/audio.c snd_pcm_set_ops(cdev->pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 844 sound/usb/caiaq/audio.c snd_pcm_set_ops(cdev->pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 111 sound/usb/caiaq/device.h struct snd_pcm *pcm; pcm 172 sound/usb/card.h struct snd_pcm *pcm; pcm 24 sound/usb/hiface/chip.h struct pcm_runtime *pcm; pcm 307 sound/usb/hiface/pcm.c struct pcm_runtime *rt = out_urb->chip->pcm; pcm 548 sound/usb/hiface/pcm.c struct pcm_runtime *rt = chip->pcm; pcm 561 sound/usb/hiface/pcm.c struct pcm_runtime *rt = chip->pcm; pcm 567 sound/usb/hiface/pcm.c kfree(chip->pcm); pcm 568 sound/usb/hiface/pcm.c chip->pcm = NULL; pcm 571 sound/usb/hiface/pcm.c static void hiface_pcm_free(struct snd_pcm *pcm) pcm 573 sound/usb/hiface/pcm.c struct pcm_runtime *rt = pcm->private_data; pcm 583 sound/usb/hiface/pcm.c struct snd_pcm *pcm; pcm 606 sound/usb/hiface/pcm.c ret = snd_pcm_new(chip->card, "USB-SPDIF Audio", 0, 1, 0, &pcm); pcm 612 sound/usb/hiface/pcm.c pcm->private_data = rt; pcm 613 sound/usb/hiface/pcm.c pcm->private_free = hiface_pcm_free; pcm 615 sound/usb/hiface/pcm.c strlcpy(pcm->name, "USB-SPDIF Audio", sizeof(pcm->name)); pcm 616 sound/usb/hiface/pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcm_ops); pcm 618 sound/usb/hiface/pcm.c rt->instance = pcm; pcm 620 sound/usb/hiface/pcm.c chip->pcm = rt; pcm 237 sound/usb/line6/pcm.c if (s->pcm->card != substream->pcm->card) pcm 476 sound/usb/line6/pcm.c static void line6_cleanup_pcm(struct snd_pcm *pcm) pcm 478 sound/usb/line6/pcm.c struct snd_line6_pcm *line6pcm = snd_pcm_chip(pcm); pcm 488 sound/usb/line6/pcm.c struct snd_pcm *pcm; pcm 495 sound/usb/line6/pcm.c pcm = *pcm_ret; pcm 496 sound/usb/line6/pcm.c strcpy(pcm->name, line6->properties->name); pcm 499 sound/usb/line6/pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 501 sound/usb/line6/pcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_line6_capture_ops); pcm 504 sound/usb/line6/pcm.c snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, pcm 532 sound/usb/line6/pcm.c struct snd_pcm *pcm; pcm 538 sound/usb/line6/pcm.c err = snd_line6_new_pcm(line6, &pcm); pcm 547 sound/usb/line6/pcm.c line6pcm->pcm = pcm; pcm 559 sound/usb/line6/pcm.c pcm->private_data = line6pcm; pcm 560 sound/usb/line6/pcm.c pcm->private_free = line6_cleanup_pcm; pcm 38 sound/usb/line6/pcm.h (line6pcm->pcm->streams[stream].substream) pcm 144 sound/usb/line6/pcm.h struct snd_pcm *pcm; pcm 33 sound/usb/media.c int snd_media_stream_init(struct snd_usb_substream *subs, struct snd_pcm *pcm, pcm 38 sound/usb/media.c struct device *pcm_dev = &pcm->streams[stream].dev; pcm 68 sound/usb/media.c mctl->media_entity.name = pcm->name; pcm 56 sound/usb/media.h int snd_media_stream_init(struct snd_usb_substream *subs, struct snd_pcm *pcm, pcm 67 sound/usb/media.h struct snd_pcm *pcm, int stream) pcm 84 sound/usb/misc/ua101.c struct snd_pcm *pcm; pcm 1292 sound/usb/misc/ua101.c err = snd_pcm_new(card, name, 0, 1, 1, &ua->pcm); pcm 1295 sound/usb/misc/ua101.c ua->pcm->private_data = ua; pcm 1296 sound/usb/misc/ua101.c strcpy(ua->pcm->name, name); pcm 1297 sound/usb/misc/ua101.c snd_pcm_set_ops(ua->pcm, SNDRV_PCM_STREAM_PLAYBACK, &playback_pcm_ops); pcm 1298 sound/usb/misc/ua101.c snd_pcm_set_ops(ua->pcm, SNDRV_PCM_STREAM_CAPTURE, &capture_pcm_ops); pcm 1345 sound/usb/pcm.c ret = snd_media_stream_init(subs, as->pcm, direction); pcm 1844 sound/usb/pcm.c void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream) pcm 1854 sound/usb/pcm.c snd_pcm_set_ops(pcm, stream, ops); pcm 1859 sound/usb/pcm.c struct snd_pcm *pcm = subs->stream->pcm; pcm 1860 sound/usb/pcm.c struct snd_pcm_substream *s = pcm->streams[subs->direction].substream; pcm 8 sound/usb/pcm.h void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream); pcm 141 sound/usb/proc.c snd_iprintf(buffer, "%s : %s\n", stream->chip->card->longname, stream->pcm->name); pcm 67 sound/usb/stream.c static void snd_usb_audio_pcm_free(struct snd_pcm *pcm) pcm 69 sound/usb/stream.c struct snd_usb_stream *stream = pcm->private_data; pcm 71 sound/usb/stream.c stream->pcm = NULL; pcm 98 sound/usb/stream.c snd_usb_set_pcm_ops(as->pcm, stream); pcm 209 sound/usb/stream.c static int add_chmap(struct snd_pcm *pcm, int stream, pcm 224 sound/usb/stream.c err = snd_pcm_add_chmap_ctls(pcm, stream, NULL, 0, 0, &chmap); pcm 484 sound/usb/stream.c struct snd_pcm *pcm; pcm 505 sound/usb/stream.c err = snd_pcm_new_stream(as->pcm, stream, 1); pcm 509 sound/usb/stream.c return add_chmap(as->pcm, stream, subs); pcm 522 sound/usb/stream.c &pcm); pcm 527 sound/usb/stream.c as->pcm = pcm; pcm 528 sound/usb/stream.c pcm->private_data = as; pcm 529 sound/usb/stream.c pcm->private_free = snd_usb_audio_pcm_free; pcm 530 sound/usb/stream.c pcm->info_flags = 0; pcm 532 sound/usb/stream.c sprintf(pcm->name, "USB Audio #%d", chip->pcm_devs); pcm 534 sound/usb/stream.c strcpy(pcm->name, "USB Audio"); pcm 551 sound/usb/stream.c return add_chmap(pcm, stream, &as->substream[stream]); pcm 741 sound/usb/usx2y/usbusx2yaudio.c struct snd_card *card = substream->pstr->pcm->card; pcm 927 sound/usb/usx2y/usbusx2yaudio.c static void snd_usX2Y_pcm_private_free(struct snd_pcm *pcm) pcm 929 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream **usX2Y_stream = pcm->private_data; pcm 936 sound/usb/usx2y/usbusx2yaudio.c struct snd_pcm *pcm; pcm 956 sound/usb/usx2y/usbusx2yaudio.c &pcm); pcm 963 sound/usb/usx2y/usbusx2yaudio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_usX2Y_pcm_ops); pcm 964 sound/usb/usx2y/usbusx2yaudio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_usX2Y_pcm_ops); pcm 966 sound/usb/usx2y/usbusx2yaudio.c pcm->private_data = usX2Y_substream; pcm 967 sound/usb/usx2y/usbusx2yaudio.c pcm->private_free = snd_usX2Y_pcm_private_free; pcm 968 sound/usb/usx2y/usbusx2yaudio.c pcm->info_flags = 0; pcm 970 sound/usb/usx2y/usbusx2yaudio.c sprintf(pcm->name, NAME_ALLCAPS" Audio #%d", usX2Y(card)->pcm_devs); pcm 973 sound/usb/usx2y/usbusx2yaudio.c snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream, pcm 979 sound/usb/usx2y/usbusx2yaudio.c snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, pcm 701 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_pcm *pcm; pcm 718 sound/usb/usx2y/usx2yhwdeppcm.c err = snd_pcm_new(card, NAME_ALLCAPS" hwdep Audio", 2, 1, 1, &pcm); pcm 722 sound/usb/usx2y/usx2yhwdeppcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_usX2Y_usbpcm_ops); pcm 723 sound/usb/usx2y/usx2yhwdeppcm.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_usX2Y_usbpcm_ops); pcm 725 sound/usb/usx2y/usx2yhwdeppcm.c pcm->private_data = usX2Y(card)->subs; pcm 726 sound/usb/usx2y/usx2yhwdeppcm.c pcm->info_flags = 0; pcm 728 sound/usb/usx2y/usx2yhwdeppcm.c sprintf(pcm->name, NAME_ALLCAPS" hwdep Audio"); pcm 729 sound/usb/usx2y/usx2yhwdeppcm.c snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream, pcm 733 sound/usb/usx2y/usx2yhwdeppcm.c snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, pcm 568 sound/x86/intel_hdmi_audio.c struct snd_pcm *pcm) pcm 572 sound/x86/intel_hdmi_audio.c err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 1622 sound/x86/intel_hdmi_audio.c struct snd_pcm *pcm) pcm 1628 sound/x86/intel_hdmi_audio.c "HDMI/DP,pcm=%d", pcm->device); pcm 1697 sound/x86/intel_hdmi_audio.c struct snd_pcm *pcm; pcm 1792 sound/x86/intel_hdmi_audio.c MAX_CAP_STREAMS, &pcm); pcm 1797 sound/x86/intel_hdmi_audio.c pcm->private_data = ctx; pcm 1798 sound/x86/intel_hdmi_audio.c pcm->info_flags = 0; pcm 1799 sound/x86/intel_hdmi_audio.c strlcpy(pcm->name, card->shortname, strlen(card->shortname)); pcm 1801 sound/x86/intel_hdmi_audio.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &had_pcm_ops); pcm 1806 sound/x86/intel_hdmi_audio.c snd_pcm_lib_preallocate_pages_for_all(pcm, pcm 1821 sound/x86/intel_hdmi_audio.c kctl->id.device = pcm->device; pcm 1829 sound/x86/intel_hdmi_audio.c ret = had_register_chmap_ctls(ctx, pcm); pcm 1833 sound/x86/intel_hdmi_audio.c ret = had_create_jack(ctx, pcm); pcm 51 sound/xen/xen_snd_front_alsa.c struct snd_pcm *pcm; pcm 723 sound/xen/xen_snd_front_alsa.c struct snd_pcm *pcm; pcm 780 sound/xen/xen_snd_front_alsa.c &pcm); pcm 784 sound/xen/xen_snd_front_alsa.c pcm->private_data = pcm_instance_info; pcm 785 sound/xen/xen_snd_front_alsa.c pcm->info_flags = 0; pcm 787 sound/xen/xen_snd_front_alsa.c pcm->nonatomic = true; pcm 788 sound/xen/xen_snd_front_alsa.c strncpy(pcm->name, "Virtual card PCM", sizeof(pcm->name)); pcm 791 sound/xen/xen_snd_front_alsa.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, pcm 795 sound/xen/xen_snd_front_alsa.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, pcm 798 sound/xen/xen_snd_front_alsa.c pcm_instance_info->pcm = pcm;