Lines Matching refs:cpcm
1759 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()
3281 struct hda_pcm_stream *info = &cpcm->stream[stream]; in snd_hda_codec_parse_pcms()
3289 cpcm->name); in snd_hda_codec_parse_pcms()
3303 struct hda_pcm *cpcm; in snd_hda_codec_build_pcms() local
3311 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in snd_hda_codec_build_pcms()
3312 if (cpcm->pcm) in snd_hda_codec_build_pcms()
3314 if (!cpcm->stream[0].substreams && !cpcm->stream[1].substreams) in snd_hda_codec_build_pcms()
3317 dev = get_empty_pcm_device(bus, cpcm->pcm_type); in snd_hda_codec_build_pcms()
3319 cpcm->device = SNDRV_PCM_INVALID_DEVICE; in snd_hda_codec_build_pcms()
3322 cpcm->device = dev; in snd_hda_codec_build_pcms()
3323 err = snd_hda_attach_pcm_stream(bus, codec, cpcm); in snd_hda_codec_build_pcms()