init_viadev(chip, chip->capture_devno, VIA_REG_CAPTURE_8233_STATUS, 1); 
init_viadev(chip, chip->capture_devno, VIA_REG_CAPTURE_8233_STATUS, 6, 1); 
static int __devinit snd_via8233a_pcm_new(via82xx_t *chip){	snd_pcm_t *pcm;	int err;	chip->multi_devno = 0;	chip->playback_devno = 1;	chip->capture_devno = 2;	chip->num_devs = 3;	chip->intr_mask = 0x03033000; /* FLAG|EOL for rec0, mc, sdx3 */	/* PCM #0:  multi-channel playback and capture */	err = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm);	if (err < 0)		return err;	snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via8233_multi_ops);	snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_via8233_capture_ops);	pcm->private_data = chip;	strcpy(pcm->name, chip->card->shortname);	chip->pcms[0] = pcm;	/* set up playback */	init_viadev(chip, chip->multi_devno, VIA_REG_MULTPLAY_STATUS, 0);	/* capture */	init_viadev(chip, chip->capture_devno, VIA_REG_CAPTURE_8233_STATUS, 1);	if ((err = snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG,							 snd_dma_pci_data(chip->pci), 64*1024, 128*1024)) < 0)		return err;	/* SPDIF supported? */	if (! ac97_can_spdif(chip->ac97))		return 0;	/* PCM #1:  DXS3 playback (for spdif) */	err = snd_pcm_new(chip->card, chip->card->shortname, 1, 1, 0, &pcm);	if (err < 0)		return err;	snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_via8233_playback_ops);	pcm->private_data = chip;	strcpy(pcm->name, chip->card->shortname);	chip->pcms[1] = pcm;	/* set up playback */	init_viadev(chip, chip->playback_devno, 0x30, 0);	if ((err = snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG,							 snd_dma_pci_data(chip->pci), 64*1024, 128*1024)) < 0)		return err;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4f550df58f4758ea023704b409830ad9c3b47771/via82xx.c/clean/sound/pci/via82xx.c