Lines Matching defs:pcm
2046 int i, pcm;
2055 for (pcm = 0; pcm < codec->num_pcms; pcm++) {
2056 struct hda_pcm *cpcm = &codec->pcm_info[pcm];
2057 if (!cpcm->pcm)
2059 if (cpcm->pcm->streams[0].substream_opened ||
2060 cpcm->pcm->streams[1].substream_opened) {
2075 if (codec->pcm_info[i].pcm) {
2076 snd_device_free(card, codec->pcm_info[i].pcm);
3572 static int snd_hda_attach_pcm(struct hda_codec *codec, struct hda_pcm *pcm)
3578 if (snd_BUG_ON(!pcm->name))
3581 info = &pcm->stream[stream];
3588 return bus->ops.attach_pcm(bus, codec, pcm);
3594 unsigned int pcm;
3612 for (pcm = 0; pcm < codec->num_pcms; pcm++) {
3613 struct hda_pcm *cpcm = &codec->pcm_info[pcm];
3619 if (!cpcm->pcm) {
4746 * @pcm: PCM caps bits
4752 void snd_print_pcm_rates(int pcm, char *buf, int buflen)
4761 if (pcm & (1 << i))
4770 * @pcm: PCM caps bits
4776 void snd_print_pcm_bits(int pcm, char *buf, int buflen)
4782 if (pcm & (AC_SUPPCM_BITS_8 << i))