Lines Matching refs: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->sig_bits = pcm->stream[dir].maxbps; in hda_codec_create_dais()
60 if (!pcm->stream[dir].substreams) { in hda_codec_create_dais()
61 dev_info(dev, "skipping capture dai for %s\n", pcm->name); in hda_codec_create_dais()
66 devm_kasprintf(dev, GFP_KERNEL, "%s %s", pcm->name, in hda_codec_create_dais()
70 stream->channels_min = pcm->stream[dir].channels_min; in hda_codec_create_dais()
71 stream->channels_max = pcm->stream[dir].channels_max; in hda_codec_create_dais()
72 stream->rates = pcm->stream[dir].rates; in hda_codec_create_dais()
73 stream->formats = pcm->stream[dir].formats; in hda_codec_create_dais()
74 stream->sig_bits = pcm->stream[dir].maxbps; in hda_codec_create_dais()
85 struct hda_pcm *pcm; in hda_codec_register_dais() local
90 list_for_each_entry(pcm, &codec->pcm_list_head, list) in hda_codec_register_dais()
99 list_for_each_entry(pcm, &codec->pcm_list_head, list) { in hda_codec_register_dais()
104 dev_err(component->dev, "register dai for %s failed\n", pcm->name); in hda_codec_register_dais()
115 snd_soc_dai_init_dma_data(dai, &pcm->stream[0], &pcm->stream[1]); in hda_codec_register_dais()
126 struct hda_pcm *pcm; in hda_codec_unregister_dais() local
131 list_for_each_entry(pcm, &codec->pcm_list_head, list) { in hda_codec_unregister_dais()
132 if (strcmp(dai->driver->name, pcm->name)) in hda_codec_unregister_dais()