Lines Matching full:pcm

21 	struct hda_pcm *pcm;  in hda_codec_create_dais()  local
28 pcm = list_first_entry(&codec->pcm_list_head, struct hda_pcm, list); in hda_codec_create_dais()
30 for (i = 0; i < pcm_count; i++, pcm = list_next_entry(pcm, list)) { in hda_codec_create_dais()
34 dev_info(dev, "creating for %s %d\n", pcm->name, i); in hda_codec_create_dais()
36 drvs[i].name = pcm->name; in hda_codec_create_dais()
41 if (!pcm->stream[dir].substreams) { in hda_codec_create_dais()
42 dev_info(dev, "skipping playback dai for %s\n", pcm->name); in hda_codec_create_dais()
47 devm_kasprintf(dev, GFP_KERNEL, "%s %s", pcm->name, in hda_codec_create_dais()
51 stream->channels_min = pcm->stream[dir].channels_min; in hda_codec_create_dais()
52 stream->channels_max = pcm->stream[dir].channels_max; in hda_codec_create_dais()
53 stream->rates = pcm->stream[dir].rates; in hda_codec_create_dais()
54 stream->formats = pcm->stream[dir].formats; in hda_codec_create_dais()
55 stream->subformats = pcm->stream[dir].subformats; in hda_codec_create_dais()
56 stream->sig_bits = pcm->stream[dir].maxbps; in hda_codec_create_dais()
61 if (!pcm->stream[dir].substreams) { in hda_codec_create_dais()
62 dev_info(dev, "skipping capture dai for %s\n", pcm->name); in hda_codec_create_dais()
67 devm_kasprintf(dev, GFP_KERNEL, "%s %s", pcm->name, in hda_codec_create_dais()
71 stream->channels_min = pcm->stream[dir].channels_min; in hda_codec_create_dais()
72 stream->channels_max = pcm->stream[dir].channels_max; in hda_codec_create_dais()
73 stream->rates = pcm->stream[dir].rates; in hda_codec_create_dais()
74 stream->formats = pcm->stream[dir].formats; in hda_codec_create_dais()
75 stream->subformats = pcm->stream[dir].subformats; in hda_codec_create_dais()
76 stream->sig_bits = pcm->stream[dir].maxbps; in hda_codec_create_dais()
87 struct hda_pcm *pcm; in hda_codec_register_dais() local
92 list_for_each_entry(pcm, &codec->pcm_list_head, list) in hda_codec_register_dais()
101 list_for_each_entry(pcm, &codec->pcm_list_head, list) { in hda_codec_register_dais()
106 dev_err(component->dev, "register dai for %s failed\n", pcm->name); in hda_codec_register_dais()
117 snd_soc_dai_init_dma_data(dai, &pcm->stream[0], &pcm->stream[1]); in hda_codec_register_dais()
128 struct hda_pcm *pcm; in hda_codec_unregister_dais() local
133 list_for_each_entry(pcm, &codec->pcm_list_head, list) { in hda_codec_unregister_dais()
134 if (strcmp(dai->driver->name, pcm->name)) in hda_codec_unregister_dais()