/* ALSA create a PCM device: Called when initializing the board. Sets up the name and hooks up the callbacks  */
static int snd_cx25821_pcm(snd_cx25821_card_t *chip, int device, char *name)
/* ALSA create a PCM device: Called when initializing the board. Sets up the name and hooks up the callbacks  */
static int snd_cx25821_pcm(snd_cx25821_card_t *chip, int device, char *name)
{
	struct snd_pcm *pcm;
	int err;
	err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm);
	if (err < 0) {
		printk(KERN_INFO "ERROR: FAILED snd_pcm_new() in %s\n",
		       __func__);
		return err;
	}
	pcm->private_data = chip;
	pcm->info_flags = 0;
	strcpy(pcm->name, name);
	snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cx25821_pcm_ops);
	return 0;
}