Lines Matching refs:cpcm
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, &codec->pcm_list_head, list) { in snd_hda_codec_parse_pcms()
3316 struct hda_pcm_stream *info = &cpcm->stream[stream]; in snd_hda_codec_parse_pcms()
3324 cpcm->name); in snd_hda_codec_parse_pcms()
3338 struct hda_pcm *cpcm; in snd_hda_codec_build_pcms() local
3346 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in snd_hda_codec_build_pcms()
3347 if (cpcm->pcm) in snd_hda_codec_build_pcms()
3349 if (!cpcm->stream[0].substreams && !cpcm->stream[1].substreams) in snd_hda_codec_build_pcms()
3352 dev = get_empty_pcm_device(bus, cpcm->pcm_type); in snd_hda_codec_build_pcms()
3354 cpcm->device = SNDRV_PCM_INVALID_DEVICE; in snd_hda_codec_build_pcms()
3357 cpcm->device = dev; in snd_hda_codec_build_pcms()
3358 err = snd_hda_attach_pcm_stream(bus, codec, cpcm); in snd_hda_codec_build_pcms()