Lines Matching defs:pcm
14 #include <sound/pcm.h>
23 #include "pcm.h"
66 static void snd_usb_audio_pcm_free(struct snd_pcm *pcm)
68 struct snd_usb_stream *stream = pcm->private_data;
70 stream->pcm = NULL;
98 snd_usb_set_pcm_ops(as->pcm, stream);
209 static int add_chmap(struct snd_pcm *pcm, int stream,
224 err = snd_pcm_add_chmap_ctls(pcm, stream, NULL, 0, 0, &chmap);
475 * if not, create a new pcm stream. note, fp is added to the substream
487 struct snd_pcm *pcm;
512 err = snd_pcm_new_stream(as->pcm, stream, 1);
516 return add_chmap(as->pcm, stream, subs);
519 /* create a new pcm */
529 &pcm);
534 as->pcm = pcm;
535 pcm->private_data = as;
536 pcm->private_free = snd_usb_audio_pcm_free;
537 pcm->info_flags = 0;
539 sprintf(pcm->name, "USB Audio #%d", chip->pcm_devs);
541 strcpy(pcm->name, "USB Audio");
558 return add_chmap(pcm, stream, &as->substream[stream]);