Home
last modified time | relevance | path

Searched refs:cpcm (Results 1 – 4 of 4) sorted by relevance

/linux-4.1.27/sound/pci/cs46xx/
Dcs46xx_lib.c882 struct snd_cs46xx_pcm * cpcm = runtime->private_data; in snd_cs46xx_pb_trans_copy() local
883 memcpy(cpcm->hw_buf.area + rec->hw_data, runtime->dma_area + rec->sw_data, bytes); in snd_cs46xx_pb_trans_copy()
889 struct snd_cs46xx_pcm * cpcm = runtime->private_data; in snd_cs46xx_playback_transfer() local
890 snd_pcm_indirect_playback_transfer(substream, &cpcm->pcm_rec, snd_cs46xx_pb_trans_copy); in snd_cs46xx_playback_transfer()
914 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; in snd_cs46xx_playback_direct_pointer() local
916 if (snd_BUG_ON(!cpcm->pcm_channel)) in snd_cs46xx_playback_direct_pointer()
920 ptr = snd_cs46xx_peek(chip, (cpcm->pcm_channel->pcm_reader_scb->address + 2) << 2); in snd_cs46xx_playback_direct_pointer()
924 ptr -= cpcm->hw_buf.addr; in snd_cs46xx_playback_direct_pointer()
925 return ptr >> cpcm->shift; in snd_cs46xx_playback_direct_pointer()
932 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; in snd_cs46xx_playback_indirect_pointer() local
[all …]
/linux-4.1.27/sound/pci/hda/
Dhda_proc.c107 struct hda_pcm *cpcm; in print_nid_pcms() local
109 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in print_nid_pcms()
111 if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL) in print_nid_pcms()
115 cpcm->name, in print_nid_pcms()
116 snd_hda_pcm_type_name[cpcm->pcm_type], in print_nid_pcms()
117 cpcm->pcm->device); in print_nid_pcms()
Dhda_controller.c932 struct hda_pcm *cpcm) in azx_attach_pcm_stream() argument
937 int pcm_dev = cpcm->device; in azx_attach_pcm_stream()
948 err = snd_pcm_new(chip->card, cpcm->name, pcm_dev, in azx_attach_pcm_stream()
949 cpcm->stream[SNDRV_PCM_STREAM_PLAYBACK].substreams, in azx_attach_pcm_stream()
950 cpcm->stream[SNDRV_PCM_STREAM_CAPTURE].substreams, in azx_attach_pcm_stream()
954 strlcpy(pcm->name, cpcm->name, sizeof(pcm->name)); in azx_attach_pcm_stream()
961 apcm->info = cpcm; in azx_attach_pcm_stream()
964 if (cpcm->pcm_type == HDA_PCM_TYPE_MODEM) in azx_attach_pcm_stream()
967 cpcm->pcm = pcm; in azx_attach_pcm_stream()
969 if (cpcm->stream[s].substreams) in azx_attach_pcm_stream()
Dhda_codec.c1838 struct hda_pcm *cpcm; in snd_hda_lock_devices() local
1839 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in snd_hda_lock_devices()
1840 if (!cpcm->pcm) in snd_hda_lock_devices()
1842 if (cpcm->pcm->streams[0].substream_opened || in snd_hda_lock_devices()
1843 cpcm->pcm->streams[1].substream_opened) in snd_hda_lock_devices()
3788 struct hda_pcm *cpcm; in snd_hda_codec_parse_pcms() local
3804 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in snd_hda_codec_parse_pcms()
3808 struct hda_pcm_stream *info = &cpcm->stream[stream]; in snd_hda_codec_parse_pcms()
3816 cpcm->name); in snd_hda_codec_parse_pcms()
3829 struct hda_pcm *cpcm; in snd_hda_codec_build_pcms() local
[all …]