Lines Matching refs:cpcm
1800 struct hda_pcm *cpcm; in snd_hda_lock_devices() local
1801 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in snd_hda_lock_devices()
1802 if (!cpcm->pcm) in snd_hda_lock_devices()
1804 if (cpcm->pcm->streams[0].substream_opened || in snd_hda_lock_devices()
1805 cpcm->pcm->streams[1].substream_opened) in snd_hda_lock_devices()
3046 struct hda_pcm *cpcm; in snd_hda_codec_shutdown() local
3053 list_for_each_entry(cpcm, &codec->pcm_list_head, list) in snd_hda_codec_shutdown()
3054 snd_pcm_suspend_all(cpcm->pcm); in snd_hda_codec_shutdown()
3295 struct hda_pcm *cpcm; in snd_hda_codec_parse_pcms() local
3311 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in snd_hda_codec_parse_pcms()
3315 struct hda_pcm_stream *info = &cpcm->stream[stream]; in snd_hda_codec_parse_pcms()
3323 cpcm->name); in snd_hda_codec_parse_pcms()
3337 struct hda_pcm *cpcm; in snd_hda_codec_build_pcms() local
3345 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in snd_hda_codec_build_pcms()
3346 if (cpcm->pcm) in snd_hda_codec_build_pcms()
3348 if (!cpcm->stream[0].substreams && !cpcm->stream[1].substreams) in snd_hda_codec_build_pcms()
3351 dev = get_empty_pcm_device(bus, cpcm->pcm_type); in snd_hda_codec_build_pcms()
3353 cpcm->device = SNDRV_PCM_INVALID_DEVICE; in snd_hda_codec_build_pcms()
3356 cpcm->device = dev; in snd_hda_codec_build_pcms()
3357 err = snd_hda_attach_pcm_stream(bus, codec, cpcm); in snd_hda_codec_build_pcms()