Lines Matching refs:pcm
1405 if ((status1 & HISR_VC1) && chip->pcm) { in snd_cs46xx_interrupt()
1544 dev_dbg(substream->pcm->card->dev, "open front channel\n"); in snd_cs46xx_playback_open()
1551 dev_dbg(substream->pcm->card->dev, "open rear channel\n"); in snd_cs46xx_playback_open_rear()
1557 dev_dbg(substream->pcm->card->dev, "open center - LFE channel\n"); in snd_cs46xx_playback_open_clfe()
1782 struct snd_pcm *pcm; in snd_cs46xx_pcm() local
1785 if ((err = snd_pcm_new(chip->card, "CS46xx", device, MAX_PLAYBACK_CHANNELS, 1, &pcm)) < 0) in snd_cs46xx_pcm()
1788 pcm->private_data = chip; in snd_cs46xx_pcm()
1790 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs46xx_playback_ops); in snd_cs46xx_pcm()
1791 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cs46xx_capture_ops); in snd_cs46xx_pcm()
1794 pcm->info_flags = 0; in snd_cs46xx_pcm()
1795 strcpy(pcm->name, "CS46xx"); in snd_cs46xx_pcm()
1796 chip->pcm = pcm; in snd_cs46xx_pcm()
1798 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_cs46xx_pcm()
1808 struct snd_pcm *pcm; in snd_cs46xx_pcm_rear() local
1811 if ((err = snd_pcm_new(chip->card, "CS46xx - Rear", device, MAX_PLAYBACK_CHANNELS, 0, &pcm)) < 0) in snd_cs46xx_pcm_rear()
1814 pcm->private_data = chip; in snd_cs46xx_pcm_rear()
1816 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs46xx_playback_rear_ops); in snd_cs46xx_pcm_rear()
1819 pcm->info_flags = 0; in snd_cs46xx_pcm_rear()
1820 strcpy(pcm->name, "CS46xx - Rear"); in snd_cs46xx_pcm_rear()
1821 chip->pcm_rear = pcm; in snd_cs46xx_pcm_rear()
1823 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_cs46xx_pcm_rear()
1831 struct snd_pcm *pcm; in snd_cs46xx_pcm_center_lfe() local
1834 …if ((err = snd_pcm_new(chip->card, "CS46xx - Center LFE", device, MAX_PLAYBACK_CHANNELS, 0, &pcm))… in snd_cs46xx_pcm_center_lfe()
1837 pcm->private_data = chip; in snd_cs46xx_pcm_center_lfe()
1839 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs46xx_playback_clfe_ops); in snd_cs46xx_pcm_center_lfe()
1842 pcm->info_flags = 0; in snd_cs46xx_pcm_center_lfe()
1843 strcpy(pcm->name, "CS46xx - Center LFE"); in snd_cs46xx_pcm_center_lfe()
1844 chip->pcm_center_lfe = pcm; in snd_cs46xx_pcm_center_lfe()
1846 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_cs46xx_pcm_center_lfe()
1854 struct snd_pcm *pcm; in snd_cs46xx_pcm_iec958() local
1857 if ((err = snd_pcm_new(chip->card, "CS46xx - IEC958", device, 1, 0, &pcm)) < 0) in snd_cs46xx_pcm_iec958()
1860 pcm->private_data = chip; in snd_cs46xx_pcm_iec958()
1862 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cs46xx_playback_iec958_ops); in snd_cs46xx_pcm_iec958()
1865 pcm->info_flags = 0; in snd_cs46xx_pcm_iec958()
1866 strcpy(pcm->name, "CS46xx - IEC958"); in snd_cs46xx_pcm_iec958()
1867 chip->pcm_rear = pcm; in snd_cs46xx_pcm_iec958()
1869 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_cs46xx_pcm_iec958()
3782 snd_pcm_suspend_all(chip->pcm); in snd_cs46xx_suspend()