Home
last modified time | relevance | path

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

/linux/sound/pci/cs46xx/
H A Dcs46xx_lib.c864 struct snd_cs46xx_pcm * cpcm = runtime->private_data; in snd_cs46xx_pb_trans_copy() local
865 memcpy(cpcm->hw_buf.area + rec->hw_data, runtime->dma_area + rec->sw_data, bytes); in snd_cs46xx_pb_trans_copy()
871 struct snd_cs46xx_pcm * cpcm = runtime->private_data; in snd_cs46xx_playback_transfer() local
872 return snd_pcm_indirect_playback_transfer(substream, &cpcm->pcm_rec, in snd_cs46xx_playback_transfer()
896 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; in snd_cs46xx_playback_direct_pointer() local
898 if (snd_BUG_ON(!cpcm->pcm_channel)) in snd_cs46xx_playback_direct_pointer()
902 ptr = snd_cs46xx_peek(chip, (cpcm->pcm_channel->pcm_reader_scb->address + 2) << 2); in snd_cs46xx_playback_direct_pointer()
906 ptr -= cpcm->hw_buf.addr; in snd_cs46xx_playback_direct_pointer()
907 return ptr >> cpcm->shift; in snd_cs46xx_playback_direct_pointer()
914 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; in snd_cs46xx_playback_indirect_pointer() local
[all …]
/linux/sound/soc/codecs/
H A Dhdac_hda.c342 struct hda_pcm *cpcm; in snd_soc_find_pcm_from_dai() local
378 list_for_each_entry(cpcm, &hcodec->pcm_list_head, list) { in snd_soc_find_pcm_from_dai()
379 if (strstr(cpcm->name, pcm_name)) { in snd_soc_find_pcm_from_dai()
381 if (strstr(cpcm->name, "Alt Analog")) in snd_soc_find_pcm_from_dai()
384 return cpcm; in snd_soc_find_pcm_from_dai()
394 struct hda_pcm *cpcm; in is_hdmi_codec() local
396 list_for_each_entry(cpcm, &hcodec->pcm_list_head, list) { in is_hdmi_codec()
397 if (cpcm->pcm_type == HDA_PCM_TYPE_HDMI) in is_hdmi_codec()
/linux/sound/hda/common/
H A Dcontroller.c693 struct hda_pcm *cpcm) in snd_hda_attach_pcm_stream() argument
699 int pcm_dev = cpcm->device; in snd_hda_attach_pcm_stream()
711 err = snd_pcm_new(chip->card, cpcm->name, pcm_dev, in snd_hda_attach_pcm_stream()
712 cpcm->stream[SNDRV_PCM_STREAM_PLAYBACK].substreams, in snd_hda_attach_pcm_stream()
713 cpcm->stream[SNDRV_PCM_STREAM_CAPTURE].substreams, in snd_hda_attach_pcm_stream()
717 strscpy(pcm->name, cpcm->name, sizeof(pcm->name)); in snd_hda_attach_pcm_stream()
726 apcm->info = cpcm; in snd_hda_attach_pcm_stream()
729 if (cpcm->pcm_type == HDA_PCM_TYPE_MODEM) in snd_hda_attach_pcm_stream()
732 cpcm->pcm = pcm; in snd_hda_attach_pcm_stream()
734 if (cpcm->stream[s].substreams) in snd_hda_attach_pcm_stream()
H A Dproc.c78 struct hda_pcm *cpcm; in print_nid_pcms() local
80 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in print_nid_pcms()
82 if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL) in print_nid_pcms()
86 cpcm->name, in print_nid_pcms()
87 snd_hda_pcm_type_name[cpcm->pcm_type], in print_nid_pcms()
88 cpcm->pcm->device); in print_nid_pcms()
H A Dcodec.c1759 struct hda_pcm *cpcm; in snd_hda_lock_devices() local
1760 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in snd_hda_lock_devices()
1761 if (!cpcm->pcm) in snd_hda_lock_devices()
1763 if (cpcm->pcm->streams[0].substream_opened || in snd_hda_lock_devices()
1764 cpcm->pcm->streams[1].substream_opened) in snd_hda_lock_devices()
3004 struct hda_pcm *cpcm; in snd_hda_codec_shutdown() local
3012 list_for_each_entry(cpcm, &codec->pcm_list_head, list) in snd_hda_codec_shutdown()
3013 snd_pcm_suspend_all(cpcm->pcm); in snd_hda_codec_shutdown()
3261 struct hda_pcm *cpcm; in snd_hda_codec_parse_pcms() local
3277 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in snd_hda_codec_parse_pcms()
[all …]