/kernel/linux/linux-5.10/sound/pci/cs46xx/ |
H A D | cs46xx_lib.c | 868 struct snd_cs46xx_pcm * cpcm = runtime->private_data; in snd_cs46xx_pb_trans_copy() local 869 memcpy(cpcm->hw_buf.area + rec->hw_data, runtime->dma_area + rec->sw_data, bytes); in snd_cs46xx_pb_trans_copy() 875 struct snd_cs46xx_pcm * cpcm = runtime->private_data; in snd_cs46xx_playback_transfer() local 876 return snd_pcm_indirect_playback_transfer(substream, &cpcm->pcm_rec, in snd_cs46xx_playback_transfer() 900 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; in snd_cs46xx_playback_direct_pointer() local 902 if (snd_BUG_ON(!cpcm->pcm_channel)) in snd_cs46xx_playback_direct_pointer() 906 ptr = snd_cs46xx_peek(chip, (cpcm->pcm_channel->pcm_reader_scb->address + 2) << 2); in snd_cs46xx_playback_direct_pointer() 910 ptr -= cpcm->hw_buf.addr; in snd_cs46xx_playback_direct_pointer() 911 return ptr >> cpcm->shift; in snd_cs46xx_playback_direct_pointer() 918 struct snd_cs46xx_pcm *cpcm in snd_cs46xx_playback_indirect_pointer() local 953 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; snd_cs46xx_playback_trigger() local 1041 _cs46xx_adjust_sample_rate(struct snd_cs46xx *chip, struct snd_cs46xx_pcm *cpcm, int sample_rate) _cs46xx_adjust_sample_rate() argument 1082 struct snd_cs46xx_pcm *cpcm; snd_cs46xx_playback_hw_params() local 1186 struct snd_cs46xx_pcm *cpcm; snd_cs46xx_playback_hw_free() local 1210 struct snd_cs46xx_pcm *cpcm; snd_cs46xx_playback_prepare() local 1343 struct snd_cs46xx_pcm *cpcm = NULL; snd_cs46xx_interrupt() local 1491 struct snd_cs46xx_pcm * cpcm; _cs46xx_playback_open_channel() local 1608 struct snd_cs46xx_pcm * cpcm; snd_cs46xx_playback_close() local [all...] |
/kernel/linux/linux-6.6/sound/pci/cs46xx/ |
H A D | cs46xx_lib.c | 868 struct snd_cs46xx_pcm * cpcm = runtime->private_data; in snd_cs46xx_pb_trans_copy() local 869 memcpy(cpcm->hw_buf.area + rec->hw_data, runtime->dma_area + rec->sw_data, bytes); in snd_cs46xx_pb_trans_copy() 875 struct snd_cs46xx_pcm * cpcm = runtime->private_data; in snd_cs46xx_playback_transfer() local 876 return snd_pcm_indirect_playback_transfer(substream, &cpcm->pcm_rec, in snd_cs46xx_playback_transfer() 900 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; in snd_cs46xx_playback_direct_pointer() local 902 if (snd_BUG_ON(!cpcm->pcm_channel)) in snd_cs46xx_playback_direct_pointer() 906 ptr = snd_cs46xx_peek(chip, (cpcm->pcm_channel->pcm_reader_scb->address + 2) << 2); in snd_cs46xx_playback_direct_pointer() 910 ptr -= cpcm->hw_buf.addr; in snd_cs46xx_playback_direct_pointer() 911 return ptr >> cpcm->shift; in snd_cs46xx_playback_direct_pointer() 918 struct snd_cs46xx_pcm *cpcm in snd_cs46xx_playback_indirect_pointer() local 953 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; snd_cs46xx_playback_trigger() local 1041 _cs46xx_adjust_sample_rate(struct snd_cs46xx *chip, struct snd_cs46xx_pcm *cpcm, int sample_rate) _cs46xx_adjust_sample_rate() argument 1083 struct snd_cs46xx_pcm *cpcm; snd_cs46xx_playback_hw_params() local 1183 struct snd_cs46xx_pcm *cpcm; snd_cs46xx_playback_hw_free() local 1205 struct snd_cs46xx_pcm *cpcm; snd_cs46xx_playback_prepare() local 1332 struct snd_cs46xx_pcm *cpcm = NULL; snd_cs46xx_interrupt() local 1480 struct snd_cs46xx_pcm * cpcm; _cs46xx_playback_open_channel() local 1597 struct snd_cs46xx_pcm * cpcm; snd_cs46xx_playback_close() local [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | hdac_hda.c | 332 struct hda_pcm *cpcm; in snd_soc_find_pcm_from_dai() local 368 list_for_each_entry(cpcm, &hcodec->pcm_list_head, list) { in snd_soc_find_pcm_from_dai() 369 if (strstr(cpcm->name, pcm_name)) { in snd_soc_find_pcm_from_dai() 371 if (strstr(cpcm->name, "Alt Analog")) in snd_soc_find_pcm_from_dai() 374 return cpcm; in snd_soc_find_pcm_from_dai() 384 struct hda_pcm *cpcm; in is_hdmi_codec() local 386 list_for_each_entry(cpcm, &hcodec->pcm_list_head, list) { in is_hdmi_codec() 387 if (cpcm->pcm_type == HDA_PCM_TYPE_HDMI) in is_hdmi_codec()
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
H A D | hdac_hda.c | 329 struct hda_pcm *cpcm; in snd_soc_find_pcm_from_dai() local 365 list_for_each_entry(cpcm, &hcodec->pcm_list_head, list) { in snd_soc_find_pcm_from_dai() 366 if (strstr(cpcm->name, pcm_name)) in snd_soc_find_pcm_from_dai() 367 return cpcm; in snd_soc_find_pcm_from_dai() 376 struct hda_pcm *cpcm; in is_hdmi_codec() local 378 list_for_each_entry(cpcm, &hcodec->pcm_list_head, list) { in is_hdmi_codec() 379 if (cpcm->pcm_type == HDA_PCM_TYPE_HDMI) in is_hdmi_codec()
|
/kernel/linux/linux-5.10/sound/pci/hda/ |
H A D | hda_controller.c | 725 struct hda_pcm *cpcm) in snd_hda_attach_pcm_stream() 731 int pcm_dev = cpcm->device; in snd_hda_attach_pcm_stream() 743 err = snd_pcm_new(chip->card, cpcm->name, pcm_dev, in snd_hda_attach_pcm_stream() 744 cpcm->stream[SNDRV_PCM_STREAM_PLAYBACK].substreams, in snd_hda_attach_pcm_stream() 745 cpcm->stream[SNDRV_PCM_STREAM_CAPTURE].substreams, in snd_hda_attach_pcm_stream() 749 strlcpy(pcm->name, cpcm->name, sizeof(pcm->name)); in snd_hda_attach_pcm_stream() 758 apcm->info = cpcm; in snd_hda_attach_pcm_stream() 761 if (cpcm->pcm_type == HDA_PCM_TYPE_MODEM) in snd_hda_attach_pcm_stream() 764 cpcm->pcm = pcm; in snd_hda_attach_pcm_stream() 766 if (cpcm in snd_hda_attach_pcm_stream() 724 snd_hda_attach_pcm_stream(struct hda_bus *_bus, struct hda_codec *codec, struct hda_pcm *cpcm) snd_hda_attach_pcm_stream() argument [all...] |
H A D | hda_proc.c | 78 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 D | hda_codec.c | 1757 struct hda_pcm *cpcm; in snd_hda_lock_devices() local 1758 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in snd_hda_lock_devices() 1759 if (!cpcm->pcm) in snd_hda_lock_devices() 1761 if (cpcm->pcm->streams[0].substream_opened || in snd_hda_lock_devices() 1762 cpcm->pcm->streams[1].substream_opened) in snd_hda_lock_devices() 3278 struct hda_pcm *cpcm; in snd_hda_codec_parse_pcms() local 3294 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in snd_hda_codec_parse_pcms() 3298 struct hda_pcm_stream *info = &cpcm->stream[stream]; in snd_hda_codec_parse_pcms() 3306 cpcm->name); in snd_hda_codec_parse_pcms() 3320 struct hda_pcm *cpcm; in snd_hda_codec_build_pcms() local [all...] |
/kernel/linux/linux-6.6/sound/pci/hda/ |
H A D | hda_controller.c | 696 struct hda_pcm *cpcm) in snd_hda_attach_pcm_stream() 702 int pcm_dev = cpcm->device; in snd_hda_attach_pcm_stream() 714 err = snd_pcm_new(chip->card, cpcm->name, pcm_dev, in snd_hda_attach_pcm_stream() 715 cpcm->stream[SNDRV_PCM_STREAM_PLAYBACK].substreams, in snd_hda_attach_pcm_stream() 716 cpcm->stream[SNDRV_PCM_STREAM_CAPTURE].substreams, in snd_hda_attach_pcm_stream() 720 strscpy(pcm->name, cpcm->name, sizeof(pcm->name)); in snd_hda_attach_pcm_stream() 729 apcm->info = cpcm; in snd_hda_attach_pcm_stream() 732 if (cpcm->pcm_type == HDA_PCM_TYPE_MODEM) in snd_hda_attach_pcm_stream() 735 cpcm->pcm = pcm; in snd_hda_attach_pcm_stream() 737 if (cpcm in snd_hda_attach_pcm_stream() 695 snd_hda_attach_pcm_stream(struct hda_bus *_bus, struct hda_codec *codec, struct hda_pcm *cpcm) snd_hda_attach_pcm_stream() argument [all...] |
H A D | hda_proc.c | 78 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 D | hda_codec.c | 1797 struct hda_pcm *cpcm; in snd_hda_lock_devices() local 1798 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in snd_hda_lock_devices() 1799 if (!cpcm->pcm) in snd_hda_lock_devices() 1801 if (cpcm->pcm->streams[0].substream_opened || in snd_hda_lock_devices() 1802 cpcm->pcm->streams[1].substream_opened) in snd_hda_lock_devices() 3047 struct hda_pcm *cpcm; in snd_hda_codec_shutdown() local 3054 list_for_each_entry(cpcm, &codec->pcm_list_head, list) in snd_hda_codec_shutdown() 3055 snd_pcm_suspend_all(cpcm->pcm); in snd_hda_codec_shutdown() 3296 struct hda_pcm *cpcm; in snd_hda_codec_parse_pcms() local 3312 list_for_each_entry(cpcm, in snd_hda_codec_parse_pcms() 3338 struct hda_pcm *cpcm; snd_hda_codec_build_pcms() local [all...] |
/kernel/linux/linux-5.10/include/sound/ |
H A D | hda_codec.h | 453 struct hda_pcm *cpcm);
|
/kernel/linux/linux-6.6/include/sound/ |
H A D | hda_codec.h | 459 struct hda_pcm *cpcm);
|